/* ═══════════════════════════════════════════════════════
   BREVIO.NEWS — Aide (/help) — feuille de style témoin
   Clone fidèle du squelette prod (nav/footer/cta + langage .ab-*)
   + thème sombre via prefers-color-scheme (#0e1a2c nuit)
   Charte c12 : ambre #e8b84f · bronze #987654 · encre #0a0a0a · ivoire #F0EBE0
   ═══════════════════════════════════════════════════════ */

:root {
  --font-serif: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Inter', 'Archivo', sans-serif;

  --black: #000000;
  --ink: #0a0a0a;
  --grey-darkest: #1a1a1c;
  --grey-darker: #2a2a2e;
  --grey-dark: #3f3f46;
  --grey-medium: #71717a;
  --grey-light: #a1a1aa;
  --grey-lighter: #d4d4d8;
  --grey-lightest: #e4e4e7;
  --grey-border: #f4f4f5;
  --white-warm: #fafaf9;
  --white: #ffffff;
  --ivory: #F0EBE0;

  --bronze: #987654;
  --bronze-strong: #7A5F42;
  --amber: #e8b84f;
  --night: #0e1a2c;
  --night-card: #142236;
  --night-line: rgba(240, 235, 224, 0.12);

  /* rôles clairs (par défaut) */
  --bg: var(--white-warm);
  --bg-alt: var(--white);
  --fg: var(--ink);
  --fg-soft: var(--grey-dark);
  --fg-mute: var(--grey-medium);
  --line: var(--grey-border);
  --line-strong: var(--grey-lighter);
  --accent: var(--bronze);         /* accent texte en clair */
  --accent-link: var(--bronze-strong);
  --card: var(--white);
  --nav-bg: rgba(250, 250, 249, 0.96);
  --code-bg: #f3f0ea;
  --code-fg: #6b5637;

  --max-width: 1600px;
  --content-width: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --bg-alt: #0b1524;
    --fg: var(--ivory);
    --fg-soft: rgba(240, 235, 224, 0.82);
    --fg-mute: rgba(240, 235, 224, 0.58);
    --line: var(--night-line);
    --line-strong: rgba(240, 235, 224, 0.22);
    --accent: var(--amber);
    --accent-link: var(--amber);
    --card: var(--night-card);
    --nav-bg: rgba(14, 26, 44, 0.94);
    --code-bg: rgba(240, 235, 224, 0.08);
    --code-fg: var(--amber);
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s ease, color 0.4s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══════ NAV (fixed) ═══════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 24px 80px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}
.nav.scrolled { padding: 16px 80px; box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo { font-size: 14px; font-weight: 900; letter-spacing: 0.1em; position: relative; display: inline-block; }
.nav-logo::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.4s ease;
}
.nav-logo:hover::after { width: 100%; }
.nav-links { display: flex; gap: 56px; align-items: center; }
.nav-links a {
  font-size: 11px; font-weight: 700; color: var(--fg-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%); width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current { color: var(--fg); }
.nav-links a.current::after { width: 100%; }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.nav-lang {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700; color: var(--fg-mute);
  background: none; border: 1px solid var(--line-strong); text-transform: uppercase;
  padding: 8px 14px; cursor: pointer; letter-spacing: 0.08em; transition: all 0.3s;
}
.nav-lang:hover { border-color: var(--fg); color: var(--fg); }
.btn-signin {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mute); padding: 10px 20px; transition: color 0.3s;
}
.btn-signin:hover { color: var(--fg); }
.btn-signup {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg); padding: 10px 24px;
  transition: all 0.3s;
}
.btn-signup:hover { background: var(--grey-darkest); border-color: var(--grey-darkest); color: var(--ivory); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--fg); margin: 5px 0; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; flex-direction: column; padding: 24px 80px 32px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 14px; font-weight: 600; color: var(--fg-soft);
  padding: 16px 0; border-bottom: 1px solid var(--line);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu-divider { height: 1px; background: var(--line-strong); margin: 8px 0; }
.mobile-menu-signup { background: var(--fg); color: var(--bg); text-align: center; padding: 16px; margin-top: 8px; }

/* ═══════ CONTENEUR AIDE (langage .ab-*) ═══════ */
.hp { font-family: var(--font-sans); color: var(--fg); }
.hp-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 80px; }
.hp-narrow { max-width: var(--content-width); }
.hp-kicker { font-size: 11px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--accent); }
.hp h1.hp-title {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(42px, 6vw, 78px); line-height: 1.04; margin: 18px 0 0;
}
.hp h2.hp-sec {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400; margin: 14px 0 26px; color: var(--fg);
}
.hp h3.hp-sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: 23px; line-height: 1.3; margin: 0 0 14px; color: var(--fg);
}
.hp-prose { font-size: 16.5px; line-height: 1.85; color: var(--fg-soft); max-width: 680px; }
.hp-prose p { margin-bottom: 20px; }
.hp-prose p:last-child { margin-bottom: 0; }
.hp-prose strong { color: var(--fg); font-weight: 700; }
.hp-prose a { color: var(--accent-link); border-bottom: 1px solid color-mix(in srgb, var(--accent-link) 45%, transparent); transition: border-color .3s, opacity .3s; }
.hp-prose a:hover { opacity: .78; border-bottom-color: var(--accent-link); }

/* hero du guide */
.hp-hero { padding: 170px 0 60px; }
.hp-hero .hp-lede { margin-top: 34px; font-size: 18px; line-height: 1.8; color: var(--fg-mute); max-width: 620px; }

/* bandes */
.hp-pad { padding: 60px 0; }
.hp-band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* blocs de section */
.hp-block { margin-top: 54px; }
.hp-block:first-of-type { margin-top: 30px; }

/* ═══════ CARTES DES SIX GUIDES (hover inversé c12) ═══════ */
.hp-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 54px; }
@media (max-width: 1100px) { .hp-guides { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .hp-guides { grid-template-columns: 1fr; } }
.hp-guide {
  background: var(--card); padding: 40px 38px; position: relative;
  transition: background .4s cubic-bezier(.2,.7,.3,1), transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
  display: flex; flex-direction: column;
}
.hp-guide .hp-guide-num { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hp-guide h3 { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 25px; margin: 0 0 12px; color: var(--fg); transition: color .35s; }
.hp-guide p { font-size: 14.5px; line-height: 1.75; color: var(--fg-mute); margin: 0; transition: color .35s; }
.hp-guide .hp-guide-go { margin-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
@media (hover: hover) {
  .hp-guide:hover { background: var(--ink); transform: translateY(-6px); box-shadow: 0 30px 60px rgba(10,10,10,.28); }
  .hp-guide:hover h3 { color: var(--ivory); }
  .hp-guide:hover p { color: rgba(240,235,224,.72); }
  .hp-guide:hover .hp-guide-num, .hp-guide:hover .hp-guide-go { color: var(--amber); }
}

/* ═══════ TABLEAU DES FORMULES ═══════ */
.hp-table-wrap { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hp-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.hp-table th, .hp-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hp-table thead th {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-mute); border-bottom: 1px solid var(--line-strong);
}
.hp-table thead th.hp-col-pro { color: var(--accent); }
.hp-table tbody th {
  font-weight: 600; color: var(--fg); font-size: 14.5px; width: 30%;
}
.hp-table tbody td { color: var(--fg-soft); }
.hp-table .hp-yes { color: var(--accent); font-weight: 700; }
.hp-table .hp-price { font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--fg); }
.hp-table tbody tr:hover td, .hp-table tbody tr:hover th { background: var(--bg-alt); }
.hp-table td.hp-col-pro, .hp-table th.hp-col-pro { background: color-mix(in srgb, var(--amber) 7%, transparent); }

/* ═══════ CODE DISCRET (?only=...) ═══════ */
code.hp-code {
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Mono', ui-monospace, monospace;
  font-size: 0.86em; background: var(--code-bg); color: var(--code-fg);
  padding: 2px 8px; border-radius: 4px; letter-spacing: 0; white-space: nowrap;
}

/* listes de définition (interrupteurs, lecteurs) */
.hp-deflist { margin-top: 32px; border-top: 1px solid var(--line); }
.hp-def { padding: 26px 0; border-bottom: 1px solid var(--line); }
.hp-def dt { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 20px; color: var(--fg); margin-bottom: 8px; }
.hp-def dt .hp-tag { font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-left: 12px; vertical-align: middle; }
.hp-def dd { font-size: 15.5px; line-height: 1.8; color: var(--fg-soft); }

/* fil d'ariane retour hub */
.hp-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 60px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hp-back:hover { opacity: .75; }

/* encart (membre fondateur) */
.hp-callout {
  margin-top: 44px; border: 1px solid var(--accent); border-radius: 4px;
  background: color-mix(in srgb, var(--amber) 6%, transparent); padding: 34px 36px;
}
.hp-callout h3 { font-family: var(--font-serif); font-style: italic; font-weight: 700; font-size: 22px; color: var(--fg); margin: 0 0 12px; }
.hp-callout p { font-size: 15.5px; line-height: 1.8; color: var(--fg-soft); margin: 0; }
.hp-callout a { color: var(--accent-link); border-bottom: 1px solid color-mix(in srgb, var(--accent-link) 45%, transparent); }

/* ═══════ CTA ═══════ */
.cta { padding: 180px 80px; text-align: center; background: var(--bg); position: relative; }
.cta::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 120px; background: linear-gradient(180deg, var(--line-strong), transparent);
}
.cta-title { font-family: var(--font-serif); font-size: clamp(40px, 7vw, 96px); font-weight: 400; line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 44px; color: var(--fg); }
.cta-title .serif { font-style: italic; font-weight: 400; display: block; }
.cta-button {
  font-family: var(--font-sans); font-size: 12px; font-weight: 900;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  padding: 26px 66px; cursor: pointer; position: relative; overflow: hidden;
  transition: color 0.4s; display: inline-block;
}
.cta-button::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 0; height: 0; background: var(--accent); border-radius: 50%; transition: width 0.6s, height 0.6s;
}
.cta-button:hover::before { width: 460px; height: 460px; }
.cta-button:hover { color: var(--ink); }
.cta-button span { position: relative; z-index: 1; }

/* ═══════ FOOTER ═══════ */
.footer { padding: 120px 80px 60px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 100px; margin-bottom: 100px; }
.footer-about h3 { font-family: 'Outfit', var(--font-sans); font-weight: 200; font-size: 15px; letter-spacing: 0.35em; margin-bottom: 24px; }
.footer-about p { font-size: 15px; line-height: 1.8; color: var(--fg-soft); }
.footer-col h4 { font-size: 10px; font-weight: 900; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 28px; color: var(--fg-mute); }
.footer-col a { display: block; font-size: 14px; font-weight: 500; color: var(--fg-soft); margin-bottom: 14px; transition: all 0.3s; }
.footer-col a:hover { color: var(--fg); padding-left: 16px; }
.footer-bottom { padding-top: 60px; border-top: 1px solid var(--line); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.05em; font-family: 'Outfit', var(--font-sans); }
.footer-lang { display: flex; justify-content: center; align-items: center; gap: 0.75rem; padding: 1.5rem 0 0; font-size: 13px; }
.footer-lang a { color: var(--fg-mute); font-weight: 400; }
.footer-lang a.current { color: var(--fg); font-weight: 600; }
.footer-lang span { color: var(--line-strong); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
@media (max-width: 960px) { .hp-inner { padding: 0 24px; } .footer { padding: 90px 24px 50px; } .cta { padding: 130px 24px; } }
@media (max-width: 768px) {
  .nav { padding: 20px 24px; } .nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; } .nav-actions .btn-signin, .nav-actions .btn-signup { display: none; }
  .hamburger { display: block; } .mobile-menu { padding: 16px 24px 24px; }
  .hp-hero { padding: 130px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}
