/*
Theme Name: Fer & Flux
Description: Thème sur-mesure « atelier électronique » pour Soudure Élec Pro — sérigraphie PCB, pastilles de soudure, typo Archivo/Karla/Fira Code. Plomberie NetOS (lead form, quiz, lexique) avec identité propre.
Version: 1.2
Author: Seobooster Ltd
Text Domain: ferflux
*/

/* ================= Base ================= */
:root {
  --paper: #f4f1ea;
  --card: #fffdf8;
  --ink: #23201a;
  --muted: #675f52;
  --line: #e3dccb;
  --line-soft: #ece6d8;
  --hot: #d9480f;
  --hot-d: #ad3607;
  --dark: #211a12;
  --dark-2: #2c241a;
  --pcb: #1d3a2c;
  --pcb-deep: #142b20;
  --pcb-l: #2f8a5c;
  --pcb-pale: #bfe3cf;
  --cream: #f4f1ea;
  --radius: 14px;
  --shadow: 0 10px 30px -18px rgba(35, 32, 26, .45);
  --font-head: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -4%, #efe8da 0, transparent 42%),
    var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hot-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hot); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.16rem; font-weight: 700; }
.wrap { width: min(1140px, 92vw); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 999; }

/* étiquette sérigraphie */
.silk {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pcb-l);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 14px;
  background: rgba(47, 138, 92, .06);
}
.silk-light { color: #8fd4ac; background: rgba(47, 138, 92, .18); }

/* ================= Boutons ================= */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-hot { background: var(--hot); color: #fff !important; }
.btn-hot:hover { background: var(--hot-d); }
.btn-dark { background: var(--dark); color: var(--cream) !important; }
.btn-cream { background: var(--cream); color: var(--dark) !important; }
.btn-ghost { background: transparent; color: var(--cream) !important; border-color: rgba(244, 241, 234, .55); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(244, 241, 234, .08); }

/* ================= Header ================= */
.site-header {
  background: var(--dark);
  border-bottom: 3px solid var(--hot);
  position: sticky;
  top: 0;
  z-index: 60;
}
.header-in { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand .logo-mark { color: var(--cream); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #8fd4ac;
}
.brand-bottom { font-family: var(--font-head); font-weight: 900; font-size: 1.22rem; letter-spacing: .01em; color: var(--cream); }
.brand-bottom em { font-style: normal; color: var(--hot); padding-left: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav .menu a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .94rem;
  color: #ded7c9;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav .menu a:hover { color: #fff; background: rgba(244, 241, 234, .09); }
.nav .menu .current-menu-item > a, .nav .menu .current_page_item > a { color: #fff; box-shadow: inset 0 -2px 0 var(--hot); border-radius: 8px 8px 0 0; }
.btn-head { padding: 9px 16px; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; border-radius: 2px; }

/* ================= Hero accueil ================= */
.hero { position: relative; background: var(--dark); color: var(--cream); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47, 138, 92, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 138, 92, .13) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0, transparent 72%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; padding: clamp(48px, 7vw, 92px) 0; }
.hero h1 { color: #fff; margin: 6px 0 16px; }
.hero h1 em { font-style: normal; color: var(--hot); text-decoration: underline; text-decoration-color: rgba(217, 72, 15, .5); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero-sub { color: #cfc8b8; font-size: 1.08rem; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 8px; }
.hero-stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats dt { font-family: var(--font-mono); font-weight: 600; font-size: 1.35rem; color: #8fd4ac; }
.hero-stats dd { color: #b8b0a0; font-size: .86rem; max-width: 20ch; }
.hero-art svg { width: 100%; max-width: 430px; margin-inline: auto; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .4)); }

/* ================= Sections communes ================= */
section { padding: clamp(44px, 6vw, 76px) 0; }
.site-header, .page-head { padding: 0; }
.sec-head { max-width: 640px; margin-bottom: 34px; }
.sec-head p { color: var(--muted); margin-top: 8px; }

/* ================= Silos « établis » ================= */
.etablis { background: var(--paper); }
.silo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.silo {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
  box-shadow: 0 1px 0 var(--line);
  display: flex; flex-direction: column;
}
.silo:hover { box-shadow: var(--shadow); }
.silo-ref {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  color: var(--pcb-l); border: 1px dashed var(--pcb-l); border-radius: 4px; padding: 2px 7px;
}
.silo h3 { margin-bottom: 8px; padding-right: 44px; }
.silo h3 a { color: var(--ink); text-decoration: none; }
.silo h3 a:hover { color: var(--hot-d); }
.silo > p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.silo-kids { list-style: none; margin: 0 0 14px; border-top: 1px solid var(--line-soft); }
.silo-kids li { border-bottom: 1px solid var(--line-soft); }
.silo-kids a { display: block; padding: 8px 0 8px 18px; font-size: .93rem; color: var(--ink); text-decoration: none; position: relative; }
.silo-kids a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--pcb-l); transform: translateY(-50%); }
.silo-kids a:hover { color: var(--hot-d); }
.silo-more { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--hot-d); text-decoration: none; }
.silo-more:hover { text-decoration: underline; }

/* ================= Bande référence citable ================= */
.ref-band { background: var(--pcb); color: var(--cream); }
.ref-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.ref-band h2 { color: #fff; margin: 4px 0 12px; }
.ref-band p { color: var(--pcb-pale); max-width: 54ch; margin-bottom: 22px; }
.ref-mini { width: 100%; max-width: 340px; margin-left: auto; border-collapse: collapse; background: var(--pcb-deep); border-radius: 12px; overflow: hidden; font-family: var(--font-mono); font-size: .95rem; }
.ref-mini th, .ref-mini td { padding: 12px 18px; border-bottom: 1px solid rgba(191, 227, 207, .14); text-align: left; }
.ref-mini th { color: #8fd4ac; font-weight: 500; }
.ref-mini td { color: #fff; text-align: right; font-weight: 600; }
.ref-mini tr:last-child th, .ref-mini tr:last-child td { border-bottom: 0; }

/* ================= Podium classement ================= */
.podium { background: var(--paper); }
.podium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.podium-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; position: relative;
}
.podium-card.p-1 { border-color: var(--hot); border-width: 2px; padding-block: 40px; box-shadow: var(--shadow); }
.podium-rank {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 900; font-size: 1.2rem;
  background: var(--dark); color: var(--cream); margin-bottom: 12px;
}
.p-1 .podium-rank { background: var(--hot); }
.podium-card p { color: var(--muted); font-size: .93rem; margin-top: 8px; }
.podium-cta { text-align: center; margin-top: 28px; }

/* ================= Cartes ================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-img { margin: -20px -20px 6px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16/8; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.04rem; }
.card p { color: var(--muted); font-size: .92rem; }
.card-go { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--hot-d); }

/* ================= Outils ================= */
.tools { background: var(--paper); padding-top: 0; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool {
  border-radius: var(--radius); padding: 30px 26px; text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tool h3 { font-size: 1.35rem; }
.tool-diag { background: var(--dark); }
.tool-diag h3 { color: #fff; }
.tool-diag p { color: #cfc8b8; }
.tool-diag .card-go { color: #ff9e6b; }
.tool-lex { background: var(--card); border: 1px solid var(--line); }
.tool-lex p { color: var(--muted); }
.tool-lex .card-go { color: var(--hot-d); }

/* ================= Preuve sociale ================= */
.trust { background: var(--card); border-block: 1px solid var(--line); }
.trust-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 40px; }
.how { border-left: 3px solid var(--pcb-l); padding: 4px 0 4px 18px; }
.how-n { font-family: var(--font-mono); font-weight: 600; color: var(--pcb-l); font-size: .85rem; }
.how h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.how p { color: var(--muted); font-size: .93rem; }
.trust-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stars { color: var(--hot); letter-spacing: 3px; margin-bottom: 10px; }
.review blockquote { font-style: italic; color: var(--ink); }
.review figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }

/* ================= Annuaire ================= */
.annuaire-band { background: var(--dark-2); color: var(--cream); }
.ann-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.annuaire-band h2 { color: #fff; margin: 4px 0 8px; }
.annuaire-band p { color: #cfc8b8; max-width: 58ch; }

/* ================= CTA final + form ================= */
.final-cta { background: var(--pcb-deep); color: var(--cream); }
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.final-cta h2 { color: #fff; margin: 4px 0 12px; }
.final-copy p { color: var(--pcb-pale); }
.final-points { list-style: none; margin-top: 20px; }
.final-points li { padding: 7px 0 7px 26px; position: relative; color: #dfeee6; }
.final-points li::before { content: "✓"; position: absolute; left: 0; color: #8fd4ac; font-weight: 700; }

/* ================= Page head / article ================= */
.page-head { background: var(--dark); color: var(--cream); padding: clamp(30px, 4vw, 48px) 0; border-bottom: 3px solid var(--hot); }
.page-head h1 { color: #fff; max-width: 26ch; }
.page-sub { color: #cfc8b8; margin-top: 10px; max-width: 62ch; }
.page-meta { margin-top: 14px; font-family: var(--font-mono); font-size: .78rem; color: #a89f8d; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.page-meta .dot { color: var(--hot); }
.crumbs { font-size: .82rem; margin-bottom: 14px; color: #a89f8d; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: #d6cfbf; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs b { color: #8fd4ac; font-weight: 500; }
.page-cover { margin: 26px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.page-cover img { width: 100%; aspect-ratio: 16/8; max-height: 420px; object-fit: cover; }

/* ================= Prose ================= */
.content { padding: clamp(34px, 5vw, 56px) 0; }
.prose { max-width: 780px; }
.prose-narrow { max-width: 700px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; padding-top: .4em; position: relative; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 54px; height: 3px; background: linear-gradient(90deg, var(--hot), var(--pcb-l)); border-radius: 2px; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: .45em 0; }
.prose ul li::marker { color: var(--hot); }
.prose .intro { font-size: 1.14rem; color: #4d4639; font-weight: 500; }
.prose img { border-radius: 12px; }
.prose figure.img { margin: 1.6em 0; }
.prose figure.img img { width: 100%; box-shadow: var(--shadow); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; font-family: var(--font-mono); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose thead th { background: var(--dark); color: var(--cream); font-family: var(--font-head); font-weight: 700; text-align: left; padding: 11px 14px; font-size: .88rem; }
.prose td, .prose tbody th { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; text-align: left; }
.prose tbody tr:nth-child(even) { background: #faf7ef; }
.prose tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.table-wrap table { min-width: 560px; }
.prose .note {
  border: 1px solid var(--line); border-left: 4px solid var(--pcb-l);
  background: #eef4ee; border-radius: 10px; padding: 16px 20px; font-size: .96rem;
}
.prose .note.warn { border-left-color: var(--hot); background: #fbeee4; }
.prose .note b:first-child { font-family: var(--font-head); }
.prose blockquote { border-left: 4px solid var(--hot); padding: 6px 0 6px 20px; color: #4d4639; font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: #ece6d8; padding: 2px 6px; border-radius: 5px; }

/* Sommaire */
.toc {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--hot);
  border-radius: 12px; padding: 20px 24px; margin-bottom: 2em;
}
.toc-title { font-family: var(--font-head); font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.toc ol { margin: 12px 0 0; padding-left: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 34px; }
.toc li { counter-increment: toc; margin: 6px 0; break-inside: avoid; font-size: .93rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); color: var(--pcb-l); margin-right: 9px; font-size: .8rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--hot-d); text-decoration: underline; }

/* CTA milieu d'article */
.atelier-cta { margin: 2.2em 0; }
.atelier-cta-in {
  background: var(--dark); color: var(--cream); border-radius: var(--radius);
  padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  border-left: 5px solid var(--hot);
}
.atelier-cta-in p { flex: 1 1 320px; color: #ded7c9; margin: 0; }
.atelier-cta-in p b { color: #fff; }
.atelier-cta .silk { margin: 0; flex-basis: 100%; width: max-content; }

/* FAQ accordéon */
.faq-block { margin-top: 2em; }
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 0; margin: 10px 0; overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 15px 46px 15px 18px;
  font-family: var(--font-head); font-weight: 700; font-size: .99rem; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--hot);
}
details.faq[open] summary::after { content: "–"; }
details.faq[open] summary { border-bottom: 1px dashed var(--line); }
details.faq > p, details.faq > div { padding: 14px 18px 16px; color: #4d4639; }

/* Encadré annonceurs / citation */
.prose .partner-box {
  background: linear-gradient(135deg, #2c241a, #211a12);
  color: var(--cream); border-radius: var(--radius); padding: 26px 28px;
  border: 1px solid #4a3f2e;
}
.prose .partner-box h3, .prose .partner-box h2 { color: #fff; margin-top: 0; }
.prose .partner-box h2::before { display: none; }
.prose .partner-box p, .prose .partner-box li { color: #ded7c9; }
.prose .partner-box a { color: #ff9e6b; }

/* Note de classement */
.prose .rank-badge {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--dark); color: var(--cream); font-family: var(--font-head); font-weight: 900;
  margin-right: 10px;
}

/* ================= Lead form ================= */
.netos-lead {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.final-form .netos-lead { background: #fffdf8; }
.netos-hp { position: absolute; left: -9999px; }
.netos-progress { height: 5px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.netos-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), var(--pcb-l)); transition: width .25s ease; }
.netos-intro { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.netos-step { border: 0; }
.netos-step legend { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; margin-bottom: 10px; }
.netos-field { display: block; margin: 10px 0; font-size: .92rem; }
.netos-field > span { display: block; font-weight: 700; margin-bottom: 5px; }
.netos-field input[type="text"], .netos-field input[type="tel"], .netos-field input[type="email"],
.netos-field select, .netos-field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; background: #fff; color: var(--ink);
}
.netos-field input:focus, .netos-field select:focus, .netos-field textarea:focus { outline: 2px solid var(--hot); outline-offset: 1px; border-color: var(--hot); }
.netos-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.netos-chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .88rem; background: #fff; }
.netos-chip:hover { border-color: var(--hot); }
.netos-chip input { margin-right: 6px; accent-color: var(--hot); }
.netos-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.netos-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.netos-nav { display: flex; gap: 10px; margin-top: 14px; }
.netos-nav button { flex: 1; padding: 11px 14px; border-radius: 9px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.netos-prev { background: var(--line-soft); color: var(--ink); }
.netos-next, .netos-submit { background: var(--hot); color: #fff; }
.netos-next:hover, .netos-submit:hover { background: var(--hot-d); }
.netos-rassure { display: block; text-align: center; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.netos-lead-ok { background: #e5f3e9; border: 1px solid #9fd2ad; color: #1d5a2f; border-radius: 9px; padding: 10px 14px; margin-bottom: 12px; font-size: .92rem; }

/* Page lead (bas d'article) */
.page-lead { background: var(--pcb); color: var(--cream); }
.page-lead h2 { color: #fff; margin: 4px 0 10px; }
.page-lead p { color: var(--pcb-pale); max-width: 50ch; }
.page-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

/* Related */
.related { background: var(--paper); }

/* ================= Sticky + modale ================= */
.netos-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 10px 14px; background: rgba(33, 26, 18, .96); text-align: center;
  transform: translateY(110%); transition: transform .25s ease; display: none;
}
.netos-sticky-cta.show { transform: none; }
.netos-modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(24, 19, 12, .66);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.netos-modal.is-open { display: flex; }
.netos-modal-box { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; border-radius: var(--radius); }
.netos-modal-close {
  position: absolute; top: 8px; right: 10px; z-index: 2;
  background: var(--dark); color: #fff; border: 0; width: 34px; height: 34px;
  border-radius: 50%; font-size: 1.2rem; cursor: pointer;
}

/* ================= Quiz ================= */
.netos-quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quiz-bar { height: 6px; background: var(--line-soft); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.quiz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), var(--pcb-l)); transition: width .3s ease; }
.quiz-q { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; margin: 12px 0; }
.quiz-intro { color: var(--muted); font-size: .94rem; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  text-align: left; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; font: inherit; cursor: pointer; transition: border-color .12s ease, transform .12s ease;
}
.quiz-opt:hover { border-color: var(--hot); transform: translateX(4px); }
.quiz-result { text-align: center; }
.badge-res {
  display: inline-block; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; background: var(--pcb); color: #8fd4ac; border-radius: 6px;
  padding: 5px 12px; margin-bottom: 12px;
}
.quiz-result p { margin-bottom: 16px; }

/* ================= Lexique ================= */
.glossary-search {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; margin: 6px 0 18px; background: #fff;
}
.glossary-search:focus { outline: 2px solid var(--hot); border-color: var(--hot); }
.glossary-list { display: grid; gap: 10px; }
.glossary-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.glossary-item dt { font-family: var(--font-head); font-weight: 800; color: var(--hot-d); }
.glossary-item dd { color: #4d4639; font-size: .95rem; margin-top: 4px; }

/* ================= Footer ================= */
.site-footer { background: var(--dark); color: #cfc8b8; margin-top: 0; }
.trace-divider svg { display: block; width: 100%; height: 24px; background: var(--pcb-deep); }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 34px; padding: 46px 0 34px; }
.foot-brand p { font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.foot-mail a { color: #8fd4ac; }
.foot-nav h4, .foot-cta h4 {
  color: #fff; font-size: .82rem; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px;
}
.foot-nav ul { list-style: none; }
.foot-nav li { margin: 7px 0; }
.foot-nav a { color: #ded7c9; text-decoration: none; font-size: .94rem; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-cta p { font-size: .92rem; margin-bottom: 16px; }
.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid #3a3226; padding: 18px 0 26px; font-size: .84rem; color: #a89f8d;
}
.foot-legal a { color: #ded7c9; text-decoration: none; margin-left: 18px; }
.foot-legal a:hover { text-decoration: underline; }

/* ================= Responsive ================= */
@media (max-width: 1020px) {
  .hero-in, .ref-in, .final-grid, .page-lead-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .ref-mini { margin-left: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--dark); flex-direction: column; align-items: stretch;
    padding: 12px 5vw 20px; border-bottom: 3px solid var(--hot); gap: 8px;
  }
  .nav.is-open { display: flex; }
  .nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .menu a { padding: 12px 8px; border-bottom: 1px solid #3a3226; }
  .btn-head { text-align: center; }
  .tools-grid, .podium-grid { grid-template-columns: 1fr; }
  .netos-sticky-cta { display: block; }
  .toc ol { columns: 1; }
  .netos-lead-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
