:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-subtle: #f0f2f5;
  --card: #ffffff;
  --border: #e5e8ec;
  --border-strong: #d0d5db;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #8894a2;
  --accent: #ea580c;
  --accent-dim: #c2410c;
  --accent-soft: #fff1e6;
  --accent-soft-strong: #ffe4cc;
  --accent-grad: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --ok: #059669;
  --ok-soft: #d1fae5;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --crit: #dc2626;
  --crit-soft: #fee2e2;
  --link: #0b63c4;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.05);
  --font-sans: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
:target { scroll-margin-top: 80px; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.6; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, video { max-width: 100%; }
a { color: var(--link); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.site-header { background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; gap: 40px; }
.brand { font-size: 1.25rem; color: var(--text); font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 32px; height: 32px; background: var(--accent-grad); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); position: relative; flex-shrink: 0; }
.brand-icon::after { content: ''; width: 10px; height: 10px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 2.5px rgba(234,88,12,0.3); animation: pulse 2s ease-in-out infinite; }
.brand strong { color: var(--accent); font-weight: 800; }
.brand .tld { color: var(--text-dim); font-size: 0.85rem; font-weight: 400; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.85; } }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em; }
.main-nav a:hover { color: var(--accent); text-decoration: none; }

main { min-height: 70vh; padding: 0 0 64px; }
main > .wrap:first-child { padding-top: 28px; }

h1 { font-size: 2.1rem; margin: 0 0 12px; line-height: 1.25; color: var(--text); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 1.55rem; margin: 40px 0 16px; color: var(--text); font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--text); font-weight: 600; letter-spacing: -0.015em; }

.breadcrumb { font-size: 0.9rem; color: var(--text-muted); margin: 24px 0 16px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li::after { content: '›'; margin-left: 8px; color: var(--text-dim); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--text-muted); }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff7f0 0%, var(--bg) 100%); padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(234,88,12,0.08) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(249,115,22,0.06) 0%, transparent 40%); pointer-events: none; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; max-width: 720px; }
.hero h1 .accent { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 680px; margin: 18px 0 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero-illustration { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 440px; height: 280px; opacity: 0.85; pointer-events: none; color: var(--accent); }
.hero-illustration svg { width: 100%; height: 100%; }

.search-box { display: flex; gap: 8px; margin: 28px 0 20px; max-width: 640px; }
.search-box input { flex: 1; background: #fff; border: 1.5px solid var(--border-strong); color: var(--text); padding: 16px 20px; border-radius: var(--radius); font-size: 1.02rem; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; box-shadow: var(--shadow-sm); }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box button { background: var(--accent-grad); border: 0; color: #fff; padding: 16px 30px; border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: 1rem; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 12px rgba(234,88,12,0.25); }
.search-box button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(234,88,12,0.35); }
.search-box button svg { width: 18px; height: 18px; }

.stat-bar { display: flex; gap: 24px; margin: 16px 0 0; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.95rem; }
.stat svg { width: 18px; height: 18px; color: var(--accent); }
.stat strong { color: var(--text); font-size: 1.05rem; font-weight: 700; }

/* Cards */
.code-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0; transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; color: var(--text); position: relative; box-shadow: var(--shadow-xs); }
.code-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); }
.code-card .code { font-family: var(--font-mono); font-size: 1.35rem; color: var(--accent); font-weight: 700; letter-spacing: -0.02em; display: inline-block; }
.code-card h3 { margin: 8px 0 6px; color: var(--text); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.012em; }
.code-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px; flex-shrink: 0; }
.card-icon svg { width: 24px; height: 24px; }
.code-card.has-icon { padding-top: 22px; }

.marque-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; color: var(--text); box-shadow: var(--shadow-xs); }
.marque-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); }
.marque-card-inner { display: flex; align-items: center; gap: 14px; }
.marque-logo { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; flex-shrink: 0; font-family: var(--font-sans); box-shadow: var(--shadow-sm); }
.marque-info h3 { margin: 0 0 2px; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.012em; }
.marque-info p { margin: 0; color: var(--text-muted); font-size: 0.86rem; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.badge-sev-low { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-sev-medium { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-sev-high { background: var(--crit-soft); color: var(--crit); border-color: transparent; }
.badge-sev-critical { background: var(--crit); color: #fff; border-color: transparent; }

.severity-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; border: 1px solid transparent; }
.severity-chip svg { width: 14px; height: 14px; }

/* Layout */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

.info-box { background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255,255,255,0) 100%); border-left: 3px solid var(--accent); padding: 18px 22px; border-radius: var(--radius); margin: 28px 0; color: var(--text); }
.info-box strong { color: var(--text); }

/* Feature strip */
.feature-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 40px 0; padding: 28px; background: var(--bg-alt); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 8px; }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h4 { margin: 0 0 4px; font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.feature p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 24px 0 32px; position: relative; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow-xs); transition: box-shadow 0.2s, transform 0.2s; }
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-num { position: absolute; top: -14px; left: 24px; background: var(--accent-grad); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; box-shadow: var(--shadow-sm); }
.step-icon { color: var(--accent); margin: 6px 0 10px; }
.step-icon svg { width: 30px; height: 30px; }
.step h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.012em; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* Article content */
.article-content { margin: 32px 0; max-width: 820px; }
.article-content h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.article-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--text); }
.article-content p { margin: 10px 0; color: var(--text); }
.article-content ul, .article-content ol { margin: 10px 0 14px; color: var(--text); }
.article-content li { margin: 4px 0; }
.article-content strong { color: var(--text); font-weight: 700; }

/* FAQ */
.faq { max-width: 820px; margin: 16px 0; }
.faq-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 10px 0; transition: border-color 0.15s, background 0.15s; }
.faq-item[open] { border-color: var(--accent); background: var(--bg); box-shadow: var(--shadow-sm); }
.faq-item summary { font-weight: 600; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); letter-spacing: -0.01em; }
.faq-item summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 12px 0 0; color: var(--text-muted); line-height: 1.65; }

/* Pattern section */
.callout { background: var(--accent-grad); color: #fff; padding: 40px 48px; border-radius: var(--radius-lg); margin: 40px 0; position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.callout::after { content: ''; position: absolute; right: 40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.callout h2 { color: #fff; margin: 0 0 10px; font-size: 1.8rem; border: 0; padding: 0; }
.callout p { color: rgba(255,255,255,0.95); margin: 0 0 20px; font-size: 1.02rem; max-width: 640px; }
.callout .btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--accent); padding: 12px 24px; border-radius: var(--radius); font-weight: 600; box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.callout .btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: var(--shadow-md); }
.callout .btn svg { width: 18px; height: 18px; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 72px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-cols h4 { margin: 0 0 14px; font-size: 0.95rem; color: var(--text); font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; font-size: 0.8rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 8px 0; }
.footer-cols a { color: var(--text-muted); font-size: 0.92rem; }
.footer-cols a:hover { color: var(--accent); }
.footer-cols p { color: var(--text-muted); font-size: 0.92rem; margin: 0; line-height: 1.6; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; color: var(--text-dim); font-size: 0.85rem; }

/* Section titles with decoration */
.section-title { position: relative; padding-bottom: 14px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--accent-grad); border-radius: 2px; }

/* Vehicle picker form */
.vehicle-picker { background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg) 100%); border: 1px solid var(--accent-soft-strong); border-radius: var(--radius-lg); padding: 18px 22px; margin: 16px 0 24px; box-shadow: var(--shadow-sm); }
.vehicle-picker-label { font-size: 0.92rem; font-weight: 700; color: var(--accent-dim); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; letter-spacing: -0.01em; }
.vehicle-picker-label svg { width: 18px; height: 18px; }
.vehicle-picker-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.vehicle-picker select { flex: 1 1 160px; min-width: 140px; padding: 11px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-family: inherit; font-size: 0.95rem; cursor: pointer; transition: border-color 0.15s; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.vehicle-picker select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vehicle-picker select:disabled { opacity: 0.5; cursor: not-allowed; background-color: var(--bg-alt); }
.vehicle-picker button { background: var(--accent-grad); border: 0; color: #fff; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; font-size: 0.95rem; font-family: inherit; transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 3px 10px rgba(234,88,12,0.2); }
.vehicle-picker button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(234,88,12,0.3); }

/* Ordered steps list (effacer le code etc) */
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 18px 0 24px; }
.steps-list > li { counter-increment: step; position: relative; padding: 14px 18px 14px 58px; margin: 8px 0; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.6; }
.steps-list > li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; box-shadow: var(--shadow-sm); }

/* Action box "Que faire maintenant ?" */
.action-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; margin: 24px 0 32px; background: var(--bg); box-shadow: var(--shadow-sm); position: relative; }
.action-box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.action-box-ok::before   { background: var(--ok); }
.action-box-warn::before { background: var(--warn); }
.action-box-crit::before { background: var(--crit); }
.action-box h2 { font-size: 1.3rem !important; margin: 0 0 18px !important; }
.action-box h2 svg { width: 22px; height: 22px; color: var(--accent); }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; }
.action-item { display: flex; gap: 14px; align-items: flex-start; }
.action-item-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.action-item-icon svg { width: 22px; height: 22px; }
.action-item-label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 3px; }
.action-item-value { font-size: 1.02rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; }
.action-item-value .badge { margin-left: 4px; vertical-align: middle; }
.action-item-desc { font-size: 0.86rem; color: var(--text-muted); margin-top: 4px; line-height: 1.45; }

/* Layout with sidebar */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin: 8px 0 0; }
.layout-sidebar > .page-main { min-width: 0; }
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-xs); }
.sidebar-card h4 { margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; display: flex; align-items: center; gap: 7px; }
.sidebar-card h4 svg { width: 14px; height: 14px; color: var(--accent); }
.sidebar-fact { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 0.88rem; }
.sidebar-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-fact:first-child { padding-top: 0; }
.sidebar-fact .label { color: var(--text-muted); flex-shrink: 0; }
.sidebar-fact .value { color: var(--text); font-weight: 600; text-align: right; }
.sidebar-fact .value.mono { font-family: var(--font-mono); color: var(--accent); }
.sidebar-toc { list-style: none; padding: 0; margin: 0; }
.sidebar-toc li { margin: 0; }
.sidebar-toc a { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; color: var(--text-muted); font-size: 0.88rem; text-decoration: none; transition: background 0.15s, color 0.15s; }
.sidebar-toc a:hover { background: var(--bg-alt); color: var(--accent); text-decoration: none; }
.sidebar-toc a svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-dim); }
.sidebar-toc a:hover svg { color: var(--accent); }
.sidebar-verdict { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: var(--radius-sm); }
.sidebar-verdict + .sidebar-verdict { margin-top: 8px; }
.sidebar-verdict svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.sidebar-verdict-ok { background: var(--ok-soft); color: var(--ok); }
.sidebar-verdict-warn { background: var(--warn-soft); color: var(--warn); }
.sidebar-verdict-crit { background: var(--crit-soft); color: var(--crit); }
.sidebar-verdict .title { font-weight: 700; font-size: 0.88rem; margin: 0 0 2px; line-height: 1.3; }
.sidebar-verdict .desc { font-size: 0.82rem; line-height: 1.45; opacity: 0.92; }
.sidebar-cta { background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255,255,255,0) 100%); border-color: var(--accent-soft-strong); }
.sidebar-cta h4 { color: var(--accent); }
.sidebar-cta p { margin: 0 0 10px; font-size: 0.86rem; color: var(--text); line-height: 1.5; }
.sidebar-cta a { font-size: 0.87rem; font-weight: 600; color: var(--accent); }
.sidebar-top-codes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sidebar-top-codes a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--text); border: 1px solid var(--border); background: var(--bg); transition: border-color 0.15s, background 0.15s; }
.sidebar-top-codes a:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.sidebar-top-codes .code { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 0.92rem; flex-shrink: 0; }
.sidebar-top-codes .freq { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }

@media (max-width: 980px) {
  .layout-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; order: 2; }
  .layout-sidebar > .page-main { order: 1; }
}

/* Responsive */
@media (max-width: 820px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-illustration { opacity: 0.3; width: 260px; height: 180px; right: -50px; }
  .action-box { padding: 20px 22px; }
  .action-box h2 { font-size: 1.2rem !important; }
  .action-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; margin: 32px 0 14px; }
  .sidebar-card { padding: 14px 16px; }
  .sidebar-top-codes a { padding: 8px 10px; gap: 8px; }
  .sidebar-top-codes .freq { font-size: 0.75rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .code-card { padding: 16px 18px; }
  .info-box { padding: 14px 18px; }
  .feature-strip { padding: 20px; grid-template-columns: 1fr; }
  .steps-list > li { padding: 12px 14px 12px 50px; }
  .steps-list > li::before { width: 28px; height: 28px; font-size: 0.9rem; top: 13px; }
  .vehicle-picker { padding: 14px 16px; }
  .vehicle-picker-row { flex-direction: column; gap: 8px; }
  .vehicle-picker select, .vehicle-picker button { width: 100%; flex: 1 1 auto; }
  .breadcrumb { font-size: 0.82rem; }
  /* Title block (logo + h1) : logo plus petit, wrap si besoin */
  .title-block { gap: 12px !important; flex-wrap: wrap; }
  .title-block .card-icon, .title-block .marque-logo { width: 48px !important; height: 48px !important; font-size: 1rem !important; }
  .title-block .card-icon svg { width: 26px !important; height: 26px !important; }
  /* Forcer les inline-flex titles à devenir responsive via sélecteur fallback */
  .page-main > div[style*="gap:18px"] { gap: 12px !important; }
  .page-main > div[style*="gap:18px"] > .card-icon,
  .page-main > div[style*="gap:18px"] > .marque-logo { width: 48px !important; height: 48px !important; }
  .article-content h2 { font-size: 1.2rem; }
  .article-content h3 { font-size: 1.02rem; }
  .callout { padding: 24px 20px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; letter-spacing: -0.02em; }
  h2 { font-size: 1.15rem; }
  .hero h1 { font-size: 1.6rem; }
  .action-box { padding: 16px 18px; border-radius: var(--radius); }
  .action-box h2 { font-size: 1.1rem !important; }
  .action-item { gap: 12px; }
  .action-item-icon { width: 34px; height: 34px; border-radius: 8px; }
  .action-item-icon svg { width: 18px; height: 18px; }
  .action-item-value { font-size: 0.95rem; }
  .action-item-desc { font-size: 0.82rem; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .main-nav { margin-left: 0; gap: 14px; font-size: 0.88rem; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .main-nav a { flex-shrink: 0; }
  .brand { font-size: 1.1rem; }
  .callout { padding: 22px 18px; }
  .callout h2 { font-size: 1.3rem; }
  .breadcrumb ol { gap: 6px; }
  .severity-chip { font-size: 0.76rem; padding: 4px 10px; }
  .severity-chip svg { width: 12px; height: 12px; }
  /* Sidebar verdict sur mobile : plus compact */
  .sidebar-verdict { padding: 10px 12px; }
  .sidebar-verdict .title { font-size: 0.85rem; }
  .sidebar-verdict .desc { font-size: 0.78rem; }
  /* Logo et title : encore plus compact */
  .page-main > div[style*="gap:18px"] > .card-icon,
  .page-main > div[style*="gap:18px"] > .marque-logo { width: 42px !important; height: 42px !important; font-size: 0.85rem !important; }
  .page-main > div[style*="gap:18px"] > .card-icon svg { width: 22px !important; height: 22px !important; }
}
