/* Site 2 — style A « Barbier classique » (validé le 2026-10-06) : papier crème, encre, bordeaux, laiton. Police Archivo. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4EEE3;
  --paper-2: #EADFCB;
  --ink: #1B1A17;
  --muted: #5E574C;
  --ox: #7A2E2A;
  --brass: #8A6A35; /* laiton assombri pour rester lisible en petit texte */
  --rule: #D6CBB7;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 "Archivo", system-ui, sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ox); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.is-soon { color: var(--muted); opacity: .6; }

/* ---------- En-tête : logo centré, rubriques dessous ---------- */
.masthead { border-bottom: 3px double var(--ink); }
.mast-row { position: relative; text-align: center; padding-top: 26px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: clamp(24px, 5vw, 36px); letter-spacing: -1px; line-height: 1; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-mark { flex: none; width: 44px; height: 44px; }
.logo-text em { font-style: normal; font-weight: 500; color: var(--ox); }
.tagline { margin: 6px 0 0; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.menu-btn { position: absolute; right: 16px; top: 28px; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }

.silo-nav { border-top: 1px solid var(--rule); }
.silo-row { display: flex; justify-content: center; gap: 4px 26px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-weight: 600; font-size: 15px; }
.silo-link { color: var(--ink); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.silo-link.is-on, a.silo-link:hover { color: var(--ox); border-bottom-color: var(--ox); }

.menu { border-top: 1px solid var(--rule); background: var(--paper); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 28px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; }
.menu-title { font-weight: 700; margin-bottom: 6px; }
.menu-title a { color: var(--ink); }
.menu ul { list-style: none; padding: 0; margin: 0; }
.menu li { padding: 3px 0; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--ox); text-decoration: underline; }

.example-flag { margin-top: 14px; padding: 8px 12px !important; background: var(--ink); color: var(--paper); font-size: 14px; }
.crumb { font-size: 14px; color: var(--muted); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumb a { color: var(--muted); }

/* ---------- Page article ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.article { max-width: 740px; padding: 10px 0 56px; }
.article h1 { font-weight: 800; font-size: clamp(30px, 6vw, 48px); line-height: 1.05; letter-spacing: -1.4px; margin: 12px 0 10px; }
.meta { font-size: 14px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.article h2 { font-weight: 800; font-size: 28px; letter-spacing: -.6px; margin: 40px 0 14px; scroll-margin-top: 16px; }
.article h3 { font-weight: 700; font-size: 21px; letter-spacing: -.3px; margin: 26px 0 8px; }

/* Réponse en haut : grand chiffre bordeaux + choix */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.verdict-num { font-weight: 800; font-size: 72px; line-height: .85; color: var(--ox); margin: 0; letter-spacing: -3px; }
.verdict-label { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.verdict-name { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.4px; margin-bottom: 6px; }
.verdict-alt { list-style: none; padding: 0; margin: 14px 0 0; font-size: 16px; }
.verdict-alt li { padding: 4px 0; border-top: 1px dotted var(--rule); }

.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .4px; padding: 12px 22px; margin: 6px 0 4px; }
.btn:hover { background: var(--ox); color: #fff; }

/* Sommaire */
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--ox); text-decoration: underline; }
.toc-inline { margin: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 10px 0; font-size: 16px; }
.toc-inline summary { font-weight: 700; cursor: pointer; }
.toc-inline ol { margin-top: 8px; }
.sidebar { position: sticky; top: 16px; padding-top: 40px; }
.toc-side { font-size: 15px; border-top: 3px double var(--ink); padding-top: 12px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass); }
.toc-side li { padding: 4px 0; }

/* Tableau comparatif : filets, pas de cartes */
.table-wrap { overflow-x: auto; margin: 6px 0 10px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 700; }
.compare tbody th a { color: var(--ink); }
.compare tr.is-best th, .compare tr.is-best td { background: var(--paper-2); }

/* Encadré produit : séparé par un filet noir, image à gauche */
.product { display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 22px 0 6px; border-top: 1px solid var(--ink); margin-top: 26px; scroll-margin-top: 16px; }
.product-img { height: 130px; background: var(--paper-2); color: var(--ox); display: flex; align-items: center; justify-content: center; }
.product-img .icon { width: 56px; height: 56px; }
.product-img.has-photo { background: #fff; padding: 6px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-rank { font-size: 14px; font-weight: 700; color: var(--ox); margin: 0 0 2px; }
.product h3 { margin: 0 0 6px; font-size: 24px; }
.product-who { color: var(--muted); margin-bottom: 12px; }
.product-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 16px; }
.col-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
.product-cols ul { list-style: none; padding: 0; margin: 0 0 10px; }
.product-cols li { padding: 4px 0; border-bottom: 1px dotted var(--rule); }

/* Encadré « Bon à savoir » / « Avant de lire » : fond papier foncé, sans trait de côté */
.callout { background: var(--paper-2); padding: 16px 18px; margin: 20px 0; }
.callout-title { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ox); margin-bottom: 4px; }
.callout p:last-child { margin-bottom: 0; }

/* Questions fréquentes */
.faq details { border-top: 1px solid var(--rule); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }

.sources { margin-top: 44px; font-size: 15px; color: var(--muted); }
.sources h2 { font-size: 18px !important; letter-spacing: 0 !important; margin: 0 0 8px !important; }

/* À lire aussi : simple liste à filets */
.related { margin-top: 36px; border-top: 3px double var(--ink); }
.related h2 { font-size: 22px !important; margin-top: 18px !important; }
.related-grid { display: grid; }
.related-card { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 600; text-decoration: none; }
a.related-card:hover { color: var(--ox); }

/* ---------- Rubriques et accueil : mise en page de journal ---------- */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
.band { font-size: 13px !important; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-align: center; padding: 10px 0; margin: 0 0 22px !important; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

.home { padding-top: 24px; padding-bottom: 56px; }

/* À la une : grand article à gauche, colonne à droite, séparés par un filet vertical */
.front { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; margin-bottom: 44px; }
.front-lead { padding-right: 36px; border-right: 1px solid var(--rule); }
.front-title { font-weight: 800; font-size: clamp(32px, 5.5vw, 56px); line-height: 1.02; letter-spacing: -1.8px; margin: 4px 0 14px; }
.front-title a, .front-title span { color: var(--ink); text-decoration: none; }
.front-title a:hover { color: var(--ox); }
.front-dek { font-size: 20px; color: var(--muted); max-width: 34em; }
.front-more { display: inline-block; font-weight: 700; color: var(--ox); }
.front-side { padding-left: 32px; }
.front-list { list-style: none; padding: 0; margin: 0; counter-reset: une; }
.front-list li { counter-increment: une; display: grid; grid-template-columns: 38px 1fr; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 700; line-height: 1.3; }
.front-list li::before { content: counter(une, decimal-leading-zero); grid-row: span 2; font-weight: 800; font-size: 20px; color: var(--ox); }
.front-list a, .front-list li > span:not(.front-silo) { color: var(--ink); text-decoration: none; }
.front-list a:hover { color: var(--ox); }
.front-silo { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }

/* Rubriques : colonnes de journal séparées par des filets verticaux */
.sections { margin-bottom: 44px; }
.columns { display: grid; grid-template-columns: repeat(3, 1fr); }
.column { padding: 4px 24px 26px; border-left: 1px solid var(--rule); }
.column:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.column:nth-child(3n) { padding-right: 0; }
.column:nth-child(n+4) { border-top: 1px solid var(--rule); padding-top: 22px; }
.column-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--ox); }
.column-head .icon { width: 30px; height: 30px; flex: none; }
.column-head h3 { font-weight: 800; font-size: 22px; letter-spacing: -.4px; }
.column-head h3 a, .column-head h3 span { color: var(--ink); text-decoration: none; }
.column-head h3 a:hover { color: var(--ox); }
.column-desc { font-size: 15px; color: var(--muted); }
.column-list { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.column-list li { padding: 6px 0; border-top: 1px dotted var(--rule); }
.column-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.column-list a:hover { color: var(--ox); text-decoration: underline; }

/* Questions : grandes lignes à deux colonnes */
.question-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.question-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column-reverse; gap: 2px; }
.question-list a, .question-list li > span:not(.question-silo) { font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.3px; color: var(--ink); text-decoration: none; }
.question-list a:hover { color: var(--ox); }
.question-silo { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }

/* Page de rubrique */
.hub { padding-top: 10px; padding-bottom: 56px; }
.hub-head { text-align: center; max-width: 720px; margin: 10px auto 30px; }
.hub-icon { color: var(--ox); display: flex; justify-content: center; margin-bottom: 8px; }
.hub-icon .icon { width: 44px; height: 44px; }
.hub-head h1 { font-weight: 800; font-size: clamp(34px, 7vw, 58px); letter-spacing: -1.8px; line-height: 1; margin: 2px 0 14px; }
.hub-intro { font-size: 19px; color: var(--muted); }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; border-top: 3px double var(--ink); }
.hub-group { padding: 22px 32px 26px 0; border-bottom: 1px solid var(--rule); }
.hub-group:nth-child(even) { padding: 22px 0 26px 32px; border-left: 1px solid var(--rule); }
.hub-group h2 { font-weight: 800; font-size: 26px; letter-spacing: -.6px; margin-bottom: 14px; }
.hub-main { display: block; font-weight: 800; font-size: 21px; line-height: 1.25; letter-spacing: -.3px; color: var(--ox); text-decoration: none; margin-bottom: 4px; }
a.hub-main:hover { color: var(--ink); text-decoration: underline; }
.hub-also { margin-top: 18px; }
.hub-list { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.hub-list li { padding: 6px 0; border-top: 1px dotted var(--rule); }
.hub-list a { color: var(--ink); text-decoration: none; }
.hub-list a:hover { color: var(--ox); text-decoration: underline; }

@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; }
  .front-lead { padding-right: 0; border-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .front-side { padding-left: 0; padding-top: 18px; }
  .columns { grid-template-columns: 1fr 1fr; }
  .column, .column:nth-child(n) { border-left: 0; border-top: 1px solid var(--rule); padding: 18px 0 20px; }
  .column:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 20px; }
  .column:nth-child(odd) { padding-right: 20px; }
  .column:nth-child(-n+2) { border-top: 0; padding-top: 4px; }
}
@media (max-width: 640px) {
  .columns, .question-list, .hub-grid { grid-template-columns: 1fr; }
  .column:nth-child(n) { border-left: 0; padding: 18px 0 20px; border-top: 1px solid var(--rule); }
  .column:first-child { border-top: 0; padding-top: 4px; }
  .hub-group, .hub-group:nth-child(even) { padding: 20px 0; border-left: 0; }
  .hub-head { text-align: left; }
  .hub-icon { justify-content: flex-start; }
}

/* ---------- Pied de page ---------- */
.site-footer { border-top: 3px double var(--ink); padding: 28px 0 22px; font-size: 15px; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: var(--muted); }
.affiliate-notice { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink); }
.copy { font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Bannière cookies : en bas, ne couvre pas le texte */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: var(--paper); font-size: 15px; z-index: 40; }
.cookie-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.cookie-row p { margin: 0; flex: 1 1 320px; }
.cookie-row a { color: var(--paper); }
.cookie-actions { display: flex; gap: 10px; }
.btn-cookie { font: 700 15px "Archivo", sans-serif; padding: 10px 18px; border: 1px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; }
.btn-cookie[data-consent="accept"] { background: var(--paper); color: var(--ink); }

/* ---------- Téléphone ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { display: none; }
}
@media (min-width: 901px) {
  .toc-inline { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .mast-row { text-align: left; padding-top: 16px; padding-right: 64px; }
  .menu-btn { top: 16px; }
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; }
  .silo-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 22px; white-space: nowrap; }
  .product { grid-template-columns: 1fr; gap: 12px; }
  .product-img { height: 110px; }
  .product-cols { grid-template-columns: 1fr; gap: 6px; }
  .verdict-num { font-size: 52px; }
  .btn { display: block; text-align: center; }
}

/* Pages obligatoires */
.page-simple { margin: 0 auto; }
.page-simple h1 { margin-bottom: 14px; }
.contact-mail { font-weight: 800; font-size: 22px; color: var(--ox); }

/* Tableau comparatif : bouton par produit, et une fiche par produit sur téléphone (retour site 1, 2026-10-06) */
.btn-small { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; font-size: 13px; padding: 7px 12px; white-space: nowrap; }
.btn-small:hover { background: var(--ox); color: #fff; }
.compare td.cell-cta { text-align: right; vertical-align: middle; }
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  .compare.is-responsive { min-width: 0; }
  .compare.is-responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare.is-responsive tr { display: block; border-top: 1px solid var(--ink); padding: 10px 0 12px; }
  .compare.is-responsive tbody th { display: block; border: 0; padding: 0 0 6px; font-size: 18px; }
  .compare.is-responsive td { display: flex; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px dotted var(--rule); padding: 6px 0; text-align: right; }
  .compare.is-responsive td::before { content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brass); text-align: left; }
  .compare.is-responsive td.cell-cta { border-bottom: 0; padding-top: 10px; }
  .compare.is-responsive td.cell-cta::before { content: none; }
  .compare.is-responsive td.cell-cta .btn-small { display: block; width: 100%; text-align: center; padding: 11px; font-size: 15px; }
  .compare.is-responsive tr.is-best th, .compare.is-responsive tr.is-best td { background: transparent; }
  .compare.is-responsive tr.is-best { background: var(--paper-2); padding-left: 10px; padding-right: 10px; }
}

/* Fiches produits */
.verdict-fiche { grid-template-columns: 110px 1fr; align-items: start; }
.verdict-fiche .product-img { height: 110px; }
.fiche-cols { margin: 6px 0 4px; }
.spec-list { list-style: none; padding: 0; columns: 2; column-gap: 32px; font-size: 16px; }
.spec-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px dotted var(--rule); }
@media (max-width: 640px) { .spec-list { columns: 1; } .verdict-fiche { grid-template-columns: 1fr; } .verdict-fiche .product-img { height: 90px; } }
