/* ==========================================================================
   Faille Humaine — design system
   ========================================================================== */
:root {
  --primary: #14213D;
  --primary-dark: #0D1729;
  --primary-ink: #0D1729;
  --secondary: #E07A1F;
  --tint: #EBE6DA;
  --tint-2: #E2DCCD;
  --ink: #1B2333;
  --muted: #545C6B;
  --line: #D8D1C2;
  --bg: #F4F1EA;
  --alert: #A64B0A;
  --alert-bg: #FBEBD9;
  --ok: #0F7A55;
  --ok-bg: #E6F6EF;
  --warn: #9A5B00;
  --warn-bg: #FFF4DD;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 23, 41, .08);
  --shadow-lg: 0 24px 60px rgba(13, 23, 41, .16);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 var(--s4); color: var(--primary-ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.3em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary-ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-dark); background: var(--tint-2); padding: 6px 12px; border-radius: 999px; margin-bottom: var(--s4); }
.eyebrow svg { width: 16px; height: 16px; }
[data-lucide] { width: 1.1em; height: 1.1em; vertical-align: -.15em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; line-height: 1.1; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(20, 33, 61, .28); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn--ghost:hover { background: var(--tint-2); color: var(--primary-ink); }
.btn--light { background: var(--secondary); color: var(--primary-ink); }
.btn--light:hover { background: #fff; color: var(--primary-ink); }
.btn--alert { background: var(--alert); color: #fff; }
.btn--alert:hover { background: #8A3E08; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 1.25rem; color: var(--primary-ink); font-weight: 500; }
.brand b { color: var(--primary); font-weight: 700; }
.brand--light { color: #fff; }
.brand--light b { color: var(--secondary); }
.burger { display: none; background: none; border: 0; padding: 8px; color: var(--primary-ink); cursor: pointer; }
.burger svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav > a:not(.btn), .dropdown__btn { font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .2s; }
.nav > a:not(.btn):hover, .dropdown__btn:hover, .is-active { background: var(--tint); color: var(--primary-dark); }
.nav__cta { margin-left: var(--s2); }
.dropdown { position: relative; }
.dropdown__menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 330px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s2); display: none; }
.dropdown.is-open .dropdown__menu { display: block; }
.dropdown__menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.dropdown__menu a:hover { background: var(--tint); }
.dropdown__menu svg { color: var(--primary); width: 22px; height: 22px; flex: none; margin-top: 2px; }
.dropdown__menu b { display: block; font-family: var(--font-head); }
.dropdown__menu small { color: var(--muted); font-size: .86rem; }

/* Sections */
.section { padding: var(--s8) 0; }
.section--tint { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.section--deep { background: var(--primary-ink); color: #F4F1EA; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: var(--s7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: var(--s8) 0 var(--s9); background:
  radial-gradient(900px 500px at 90% -10%, var(--tint-2), transparent 60%),
  radial-gradient(600px 400px at -5% 100%, #FBF9F4, transparent 60%), #fff; }
.hero__grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 62%, var(--secondary) 62%); padding: 0 .1em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0; }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); list-style: none; padding: 0; margin: var(--s5) 0 0; color: var(--muted); font-size: .95rem; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--ok); }
.hero__visual { position: relative; }
.hero__visual::before { content: ''; position: absolute; inset: 8% -4% -6% 8%; background: var(--secondary); border-radius: 36px; transform: rotate(3deg); opacity: .55; z-index: 0; }
.hero__visual > * { position: relative; z-index: 1; }
.hero__tag { position: absolute !important; top: -14px; left: 12px; z-index: 3 !important; background: var(--alert); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(166, 75, 10, .35); }

/* Specimens — maquettes */
.specimen { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font-body); }
.specimen__top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--line); }
.specimen__dot { width: 10px; height: 10px; border-radius: 50%; background: #D8D1C2; }
.specimen__label { margin-left: 8px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.specimen__from { padding: 14px 20px 0; font-family: var(--mono); font-size: .86rem; color: var(--muted); }
.specimen__head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.5; word-break: break-word; background: #FBF9F4; }
.specimen__head div + div { margin-top: 4px; }
.specimen__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.specimen__body--mail { gap: 12px; font-size: .98rem; }
.specimen__body--mail p { margin: 0; }
.bubble { margin: 0; max-width: 92%; background: #EBE6DA; color: #1B2333; padding: 12px 16px; border-radius: 18px 18px 18px 4px; line-height: 1.55; word-break: break-word; font-size: .98rem; }
.bubble--me { align-self: flex-end; background: var(--primary); color: #fff; border-radius: 18px 18px 4px 18px; }
.specimen--whatsapp .bubble:not(.bubble--me) { background: #E8F6EE; }
.specimen--call .specimen__top { background: #EFEBE1; }
.specimen figcaption { padding: 10px 20px 14px; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); background: #FBF9F4; }
.clue { position: relative; background: #FBEBD9; color: #7A3E06; border-bottom: 3px solid var(--alert); border-radius: 4px; padding: 1px 4px; margin-right: 18px; font-weight: 500; }
.clue::after { content: attr(data-n); position: absolute; top: -10px; right: -16px; width: 20px; height: 20px; background: var(--alert); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); line-height: 1; }
.bubble--me .clue { background: #fff; }

.legend { list-style: none; counter-reset: l; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s2); }
.legend li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink); }
.legend li::before { counter-increment: l; content: counter(l); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--alert); color: #fff; font-weight: 700; font-family: var(--font-head); font-size: .8rem; display: grid; place-items: center; margin-top: 2px; }

/* Stats */
.stats { margin-top: calc(var(--s8) * -.55); position: relative; z-index: 4; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: #fff; padding: var(--s5); text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Grids & cards */
.grid { display: grid; gap: var(--s5); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--secondary); color: inherit; }
.card h3 { margin-bottom: var(--s2); color: var(--primary-ink); }
.card p { color: var(--muted); font-size: .96rem; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tint-2); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: var(--s4); }
.card__icon svg { width: 24px; height: 24px; }
.card__more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); display: inline-flex; gap: 6px; align-items: center; }
.card--fiche .card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s3); }
.card--fiche .card__quote { font-family: var(--mono); font-size: .84rem; background: #F6F3EC; border-left: 4px solid var(--alert); padding: 10px 12px; border-radius: 0 10px 10px 0; color: #3A4356; margin-bottom: var(--s4); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--tint-2); color: var(--primary-ink); }
.badge--d1 { background: var(--warn-bg); color: var(--warn); }
.badge--d2 { background: #FFE9D6; color: #A14A00; }
.badge--d3 { background: var(--alert-bg); color: var(--alert); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }

/* Anatomy steps */
.steps { display: grid; gap: var(--s4); counter-reset: st; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5) var(--s5) var(--s5) 76px; }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: var(--s5); top: var(--s5); width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
.step--alert::before { background: var(--alert); }
.step--ok::before { background: var(--ok); }

/* Scorer */
.scorer { display: grid; gap: var(--s6); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: var(--s5); box-shadow: var(--shadow); }
.scorer__list { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.scorer__list legend { font-family: var(--font-head); font-weight: 600; margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: background .2s, border-color .2s; font-size: .98rem; }
.check:hover { background: var(--tint); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--alert); flex: none; }
.check:has(input:checked) { background: var(--alert-bg); border-color: #E9C59C; }
.scorer__result { border-radius: 20px; padding: var(--s5); background: var(--ok-bg); color: #0B4D36; display: flex; flex-direction: column; gap: var(--s3); align-self: start; position: sticky; top: 96px; transition: background .3s, color .3s; }
.scorer__result[data-level="1"] { background: var(--warn-bg); color: #5E3800; }
.scorer__result[data-level="2"] { background: #FFE9D6; color: #6B2F00; }
.scorer__result[data-level="3"] { background: var(--alert-bg); color: #6B3305; }
.scorer__gauge { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .8); overflow: hidden; }
.scorer__gauge span { display: block; height: 100%; width: 4%; background: currentColor; border-radius: 999px; transition: width .35s; }
.scorer__verdict { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin: 0; }
.scorer__result p { margin: 0; font-size: .98rem; }
.scorer__small { font-size: .82rem !important; opacity: .85; }

/* Rules band */
.rules { display: grid; gap: var(--s4); }
.rule { background: rgba(255, 255, 255, .07); border: 1px solid rgba(244, 241, 234, .25); border-radius: var(--radius); padding: var(--s5); }
.rule b { font-family: var(--font-head); font-size: 2rem; color: var(--secondary); display: block; line-height: 1; margin-bottom: 8px; }
.rule h3 { font-size: 1.1rem; margin-bottom: 6px; }
.rule p { margin: 0; color: #E3DED2; font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--s5); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--primary-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: 28px; padding: var(--s7) var(--s5); display: grid; gap: var(--s5); align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(244, 241, 234, .2); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #EDE8DC; }
.cta-band > * { position: relative; z-index: 1; }

/* Breadcrumb */
.breadcrumb { font-size: .9rem; color: var(--muted); padding: var(--s4) 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: #A3A8B2; }
.breadcrumb a { color: var(--muted); }

/* Page head (listing, category) */
.page-head { padding: var(--s6) 0 var(--s7); background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.page-head .lead { margin-bottom: 0; }
.page-head__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--primary); color: #fff; display: grid; place-items: center; margin-bottom: var(--s4); }
.page-head__icon svg { width: 32px; height: 32px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: var(--s6); }
.chip { font-family: var(--font-head); font-weight: 600; font-size: .92rem; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--primary); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.search { flex: 1 1 240px; position: relative; max-width: 340px; margin-left: auto; }
.search input { width: 100%; font: inherit; padding: 11px 16px 11px 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.search input:focus { outline: 3px solid var(--secondary); border-color: var(--primary); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.empty { display: none; text-align: center; padding: var(--s7); color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* Prose / patterns */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s5); }
.patterns { list-style: none; padding: 0; display: grid; gap: 12px; }
.patterns li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--alert-bg); border-radius: var(--radius-sm); color: #6B3305; }
.patterns svg { color: var(--alert); flex: none; margin-top: 4px; }

/* Fiche */
.fiche-hero { padding: var(--s5) 0 var(--s6); background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); }
.fiche-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: var(--s4) 0; color: var(--muted); font-size: .92rem; }
.fiche-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); max-width: 20ch; }
.fiche-layout { display: grid; gap: var(--s7); padding: var(--s6) 0 var(--s8); }
.fiche-main > section { margin-bottom: var(--s7); scroll-margin-top: 96px; }
.block-title { display: flex; align-items: center; gap: 12px; }
.block-title__n { width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.05rem; flex: none; }
.block-title--alert .block-title__n { background: var(--alert); }
.block-title--ok .block-title__n { background: var(--ok); }
.clue-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; }
.clue-item__n { width: 36px; height: 36px; border-radius: 50%; background: var(--alert); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.clue-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.clue-item p { margin: 0; color: var(--muted); font-size: .98rem; }
.reflex { list-style: none; counter-reset: r; padding: 0; display: grid; gap: 12px; }
.reflex li { counter-increment: r; display: flex; gap: 14px; align-items: flex-start; background: var(--ok-bg); border: 1px solid #BFE6D4; border-radius: var(--radius-sm); padding: 14px 16px; color: #0B3D2B; }
.reflex li::before { content: counter(r); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem; display: grid; place-items: center; margin-top: 1px; }
.callout { background: var(--warn-bg); border: 1px solid #E9C59C; border-radius: var(--radius); padding: var(--s5); }
.callout h3 { color: #5E3800; display: flex; gap: 10px; align-items: center; }
.callout ul { margin: 0; color: #4A3000; }
.callout li { margin-bottom: 8px; }
.report-list { display: grid; gap: 12px; }
.report-item { display: flex; gap: 14px; align-items: flex-start; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.report-item:hover { border-color: var(--primary); box-shadow: var(--shadow); color: inherit; }
.report-item svg { color: var(--primary); width: 22px; height: 22px; flex: none; margin-top: 3px; }
.report-item b { display: block; font-family: var(--font-head); color: var(--primary-ink); }
.report-item span { color: var(--muted); font-size: .93rem; }
.aside { display: grid; gap: var(--s4); align-self: start; }
.aside__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.aside__box h2 { font-size: 1.05rem; margin-bottom: var(--s3); }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.toc a:hover { background: var(--tint); color: var(--primary-dark); }
.aside__box--alert { background: var(--alert-bg); border-color: #E9C59C; }
.aside__box--alert h2 { color: var(--alert); display: flex; gap: 8px; align-items: center; }
.aside__box--alert p { font-size: .94rem; color: #6B3305; }

/* Signaler */
.sit-grid { display: grid; gap: var(--s5); }
.sit { border-radius: var(--radius); padding: var(--s5); border: 1px solid var(--line); background: #fff; }
.sit h3 { display: flex; gap: 10px; align-items: center; }
.sit--a { border-top: 5px solid var(--primary); }
.sit--b { border-top: 5px solid var(--warn); }
.sit--c { border-top: 5px solid var(--alert); }
.sit--d { border-top: 5px solid var(--ok); }
.sit ol { margin: 0; padding-left: 1.2em; }
.sit li { margin-bottom: 8px; }
.phone-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); background: var(--tint); border: 1px solid var(--tint-2); border-radius: var(--radius); padding: var(--s5); }
.phone-box b { font-family: var(--font-head); font-size: 1.6rem; color: var(--primary-ink); }

/* Quiz */
.quiz { max-width: 760px; margin-inline: auto; }
.quiz__bar { height: 8px; background: var(--tint-2); border-radius: 999px; overflow: hidden; margin-bottom: var(--s5); }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s; }
.quiz__count { font-family: var(--font-head); font-weight: 600; color: var(--muted); margin-bottom: var(--s3); }
.quiz__choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.quiz__choices .btn { padding: 16px; }
.quiz__feedback { margin-top: var(--s5); padding: var(--s5); border-radius: var(--radius); display: none; }
.quiz__feedback.is-good { display: block; background: var(--ok-bg); color: #0B3D2B; }
.quiz__feedback.is-bad { display: block; background: var(--alert-bg); color: #6B3305; }
.quiz__feedback b { font-family: var(--font-head); display: block; font-size: 1.15rem; margin-bottom: 6px; }
.quiz__feedback p { margin-bottom: var(--s4); }
.quiz__end { text-align: center; display: none; }
.quiz__score { font-family: var(--font-head); font-size: 4rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: var(--s3); }

/* Footer */
.site-footer { background: var(--primary-ink); color: #E3DED2; margin-top: var(--s8); padding-top: var(--s7); }
.footer-grid { display: grid; gap: var(--s6); padding-bottom: var(--s6); }
.footer-brand p { margin: var(--s4) 0; max-width: 40ch; }
.footer-title { font-size: 1rem; color: #fff; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:not(.btn) { color: #E3DED2; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--secondary); text-decoration: underline; }
.footer-urgence { background: rgba(255, 255, 255, .07); border-radius: var(--radius); padding: var(--s5); align-self: start; }
.footer-urgence p { font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(244, 241, 234, .2); padding: var(--s5) 0; font-size: .85rem; color: #B8B4AA; }
.footer-bottom p { margin: 0; }

/* Reveal */
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, a.card:hover { transform: none; }
}

/* Responsive */
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .sit-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr auto; padding: var(--s7); }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .scorer { grid-template-columns: 1.3fr .8fr; padding: var(--s6); }
  .rules { grid-template-columns: repeat(3, 1fr); }
  .fiche-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .aside { position: sticky; top: 96px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}
@media (max-width: 899px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: var(--s3) 20px var(--s5); box-shadow: var(--shadow); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .dropdown__menu { position: static; display: none; box-shadow: none; border: 0; min-width: 0; padding-left: var(--s3); }
  .nav__cta { margin: var(--s2) 0 0; }
  .section { padding: var(--s7) 0; }
  .search { max-width: none; margin-left: 0; }
  .scorer__result { position: static; }
  .quiz__choices { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .step { padding: var(--s5) var(--s4) var(--s5) 68px; }
  .step::before { left: var(--s4); }
  .clue-item { grid-template-columns: 1fr; }
}
/* [05-tools] Outils faille-humaine (ancre de résultat, champ lien, adresse décomposée) */
#resultat { scroll-margin-top: 110px; outline: none; }
html:has(#resultat[autofocus]) { scroll-behavior: auto; }
.outil__champ { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-family: var(--mono); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.outil__champ:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.outil__url { font-family: var(--mono); font-size: .95rem; word-break: break-all; background: var(--tint); padding: 12px 14px; border-radius: var(--radius-sm); }
.outil__url .u-scheme, .outil__url .u-chemin { color: var(--muted); }
.outil__url .u-sous { color: var(--alert); }
.outil__url .u-domaine { background: var(--primary); color: #fff; padding: 1px 4px; border-radius: 4px; font-weight: 700; }
/* [/05-tools] */

/* ===== BLOC SOUS-MENU OUTILS — sans JavaScript (hover + focus-within) ===== */
.nav-item{position:relative;display:inline-flex;align-items:center}
.has-sub>a::after{content:"";display:inline-block;width:5px;height:5px;margin-left:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.has-sub::after{content:"";position:absolute;top:100%;left:0;right:0;height:18px}
.sub-nav{position:absolute;top:calc(100% + 18px);left:-16px;z-index:30;min-width:296px;flex-direction:column;gap:1px;padding:8px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 34px rgba(31,58,77,.14);display:none}
.has-sub:hover>.sub-nav,.has-sub:focus-within>.sub-nav{display:flex}
.sub-nav a{display:block;padding:9px 12px;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap;border-left:2px solid transparent}
.sub-nav a small{display:block;margin-top:2px;font-family:var(--font-body);font-size:11px;font-weight:400;color:var(--text-muted)}
.sub-nav a:hover,.sub-nav a:focus{background:var(--fill);color:var(--primary);border-left-color:var(--primary)}
.sub-nav a:hover small,.sub-nav a:focus small{color:var(--text-secondary)}
.sub-nav-all{margin-top:5px;border-top:1px solid var(--line);padding-top:11px!important;color:var(--primary)}
@media(max-width:850px){
.nav-item{display:block}
.has-sub::after{display:none}
.has-sub>a::after{transform:rotate(45deg) translateY(-2px)}
.sub-nav{position:static;display:flex;min-width:0;margin:9px 0 4px 2px;padding:2px 0 2px 14px;border:0;border-left:2px solid var(--line);box-shadow:none;background:transparent;gap:0}
.sub-nav a{white-space:normal;padding:7px 0;font-size:13px;border-left:0}
.sub-nav a small{display:none}
.sub-nav a:hover,.sub-nav a:focus{background:transparent}
.sub-nav-all{padding-top:8px!important}
}

/* [05b-adapt] Tokens attendus par le bloc sous-menu, alignés sur ce front ; items de nav enveloppés */
:root { --surface: #FBF9F4; --fill: var(--tint); --text-muted: var(--muted); --text-secondary: #3A4356; }
.nav .nav-item > a { font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; display: inline-flex; align-items: center; transition: background .2s; }
.nav .nav-item > a:hover { background: var(--tint); color: var(--primary-dark); }
.sub-nav { border-radius: var(--radius-sm); }
@media (max-width: 899px) {
  .nav-item { display: block; }
  .has-sub::after { display: none; }
  .sub-nav { position: static; display: flex; min-width: 0; margin: 4px 0 4px 16px; padding: 2px 0 2px 14px; border: 0; border-left: 2px solid var(--line); box-shadow: none; background: transparent; gap: 0; }
  .sub-nav a { white-space: normal; padding: 7px 0; border-left: 0; }
  .sub-nav a small { display: none; }
}
/* [/05b-adapt] */