/* Cystite.org, feuille de style unique. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf6ee;
  --bg-soft: #f5ecdf;
  --surface: #ffffff;
  --ink: #1d2a29;
  --ink-soft: #3c4a48;
  --muted: #5d6b69;
  --line: #e7dccb;
  --primary: #1f4e79;
  --primary-strong: #163a5b;
  --primary-soft: #e4ecf5;
  --accent: #d9576b;
  --accent-soft: #fbe4e8;
  --accent-ink: #a3283d;
  --butter: #f6e7b8;
  --sage: #cfe0ea;
  --danger: #a62a1a;
  --danger-soft: #fde8e3;
  --shadow: 0 1px 2px rgba(29, 42, 41, .06), 0 8px 24px rgba(29, 42, 41, .06);
  --shadow-lg: 0 2px 6px rgba(29, 42, 41, .06), 0 24px 48px rgba(29, 42, 41, .10);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --measure: 70ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1615;
    --bg-soft: #131e1d;
    --surface: #172322;
    --ink: #e8efec;
    --ink-soft: #c9d5d2;
    --muted: #9fb0ac;
    --line: #26363a;
    --primary: #8fbbe6;
    --primary-strong: #b3d2f0;
    --primary-soft: #182b40;
    --accent: #f08a9b;
    --accent-soft: #3a1d24;
    --accent-ink: #f5a3b1;
    --butter: #3a3420;
    --sage: #1d3042;
    --danger: #ff8a78;
    --danger-soft: #3a1c18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); font-variation-settings: 'opsz' 72; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 2.2em 0 .6em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); margin: 1.8em 0 .5em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 650; color: var(--ink); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; font-weight: 650; letter-spacing: -.02em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem .7rem; border-radius: 999px; }
.nav a:hover { background: var(--primary-soft); color: var(--primary); }
.nav a[aria-current='page'] { color: var(--primary); background: var(--primary-soft); }
.nav .btn { margin-left: .5rem; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 1.25rem; left: 1.25rem; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .75rem; display: grid; gap: .15rem; }
.menu-panel a { padding: .75rem 1rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--primary-soft); }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; font-family: var(--sans); line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 28%, transparent); }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #0e1615; } }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-small { padding: .55rem 1rem; font-size: .92rem; }
.nav .btn-primary { color: #fff; }
@media (prefers-color-scheme: dark) { .nav .btn-primary { color: #0e1615; } }

/* Accueil */
.hero { padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2rem, 4vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 1rem; }
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); line-height: 1.06; }
.hero-text { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-media { position: relative; }
.hero-media::before { content: ''; position: absolute; inset: 8% -4% -6% 10%; background: var(--sage); border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; z-index: -1; }
.hero-media img { border-radius: 32px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { order: -1; } }

.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 40rem; }

.alert-band { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); border-radius: var(--radius); padding: 1.4rem 1.6rem; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.alert-band svg { width: 34px; height: 34px; color: var(--danger); flex: none; margin-top: .1rem; }
.alert-band h2 { font-size: 1.3rem; margin: 0 0 .35rem; }
.alert-band p { margin: 0 0 .6rem; color: var(--ink-soft); }
.alert-band ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.alert-band li { background: var(--surface); border: 1px solid color-mix(in srgb, var(--danger) 20%, transparent); color: var(--ink); border-radius: 999px; padding: .3rem .8rem; font-size: .92rem; font-weight: 500; }
.emergency-numbers { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.emergency-numbers span { font-weight: 700; color: var(--danger); background: var(--surface); border-radius: 10px; padding: .25rem .7rem; border: 1px solid color-mix(in srgb, var(--danger) 20%, transparent); }

.essentials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.essential { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.essential .num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; display: block; margin-bottom: .6rem; font-weight: 600; }
.essential h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.essential p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 960px) { .essentials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .essentials { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.feature img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.feature-body { padding: clamp(1.5rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.feature-body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: .2rem 0 .7rem; }
.feature-body p { color: var(--ink-soft); }
.feature:hover h3 { color: var(--primary); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.tag { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: .28rem .65rem; border-radius: 999px; text-decoration: none; }
a.tag:hover { color: var(--primary-strong); }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.cat h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.cat h3 a { color: var(--ink); text-decoration: none; }
.cat h3 a:hover { color: var(--primary); }
.cat p { color: var(--muted); font-size: .97rem; }
.cat ul { list-style: none; margin: .2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.cat li a { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.cat li:last-child a { border-bottom: 0; }
.cat li a::after { content: '\2192'; color: var(--accent); }
.cat li a:hover { color: var(--primary); }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cats { grid-template-columns: 1fr; } }

.tool-band { background: var(--primary); color: #eef4fa; border-radius: 28px; padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.tool-band::after { content: ''; position: absolute; width: 300px; height: 300px; right: -90px; top: -150px; border-radius: 50%; background: radial-gradient(circle at 35% 65%, #f1a0ad, #d9576b); opacity: .9; }
.tool-band::before { content: ''; position: absolute; width: 140px; height: 140px; right: 160px; bottom: -90px; border-radius: 50%; background: var(--butter); opacity: .22; }
.tool-band h2 { color: #fff; margin: 0 0 .6rem; }
.tool-band p { color: #d5e3f1; margin: 0; font-size: 1.08rem; }
.tool-band .btn { background: #fff; color: var(--primary); position: relative; z-index: 1; justify-self: end; }
.tool-band .btn:hover { background: var(--butter); color: #163a5b; }
@media (prefers-color-scheme: dark) { .tool-band { background: #1a3552; } .tool-band .btn { color: #163a5b; } }
@media (max-width: 760px) { .tool-band { grid-template-columns: 1fr; } .tool-band .btn { justify-self: start; } }

/* Cartes d'articles */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card:hover h3 a { color: var(--primary); }
.card p { margin: 0; color: var(--muted); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: .4rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Fil d'Ariane */
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 1.6rem 0 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }

/* Article */
.article-head { max-width: 860px; }
.article-head .lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.8rem; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.article-figure { margin: 0 0 2.5rem; }
.article-figure img { border-radius: 26px; aspect-ratio: 16 / 8; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article-aside { position: sticky; top: 96px; display: grid; gap: 1.2rem; }
@media (max-width: 1020px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; order: -1; } .article-aside .aside-alert { display: none; } }
.prose { max-width: var(--measure); font-size: 1.08rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-top: .2em; }
.prose h2::before { content: ''; display: block; width: 36px; height: 3px; background: var(--accent); border-radius: 3px; margin-bottom: .7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 1rem 1.4rem; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose a { font-weight: 500; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.prose th, .prose td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--primary-soft); color: var(--ink); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }

.essentials-box { background: var(--primary-soft); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 0 0 2.4rem; }
.essentials-box h2 { font-size: 1.25rem; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.essentials-box h2::before { display: none; }
.essentials-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.essentials-box li { position: relative; padding-left: 1.9rem; margin: 0; }
.essentials-box li::before { content: ''; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 70% no-repeat; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.toc summary { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; }
.toc[open] summary::after { content: '\2212'; }
.toc ol { list-style: none; margin: .8rem 0 0; padding: 0; counter-reset: toc; display: grid; gap: .1rem; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 1.6rem 1fr; padding: .38rem 0; color: var(--ink-soft); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 600; font-size: .8rem; padding-top: .1rem; }
.toc a:hover { color: var(--primary); }

.aside-alert { background: var(--danger-soft); border-radius: var(--radius); padding: 1.2rem 1.3rem; font-size: .93rem; }
.aside-alert strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: .3rem; color: var(--danger); }
.aside-alert p { margin: 0 0 .5rem; color: var(--ink-soft); }
.aside-alert a { font-weight: 600; }
.aside-tool { background: var(--butter); border-radius: var(--radius); padding: 1.2rem 1.3rem; font-size: .93rem; }
.aside-tool strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: .3rem; }
.aside-tool p { margin: 0 0 .7rem; color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { .aside-tool p { color: var(--ink-soft); } }

.faq { margin-top: 3rem; }
.faq h2 { margin-top: 0; }
.faq-item { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); margin-bottom: .7rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; position: relative; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.1rem; top: .85rem; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .answer { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq-item .answer p:last-child { margin-bottom: 0; }

.disclaimer { margin-top: 2.6rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); border: 1px dashed var(--line); color: var(--muted); font-size: .93rem; display: flex; gap: .8rem; }
.disclaimer svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: .15rem; }
.disclaimer p { margin: 0; }

.related { margin-top: 1rem; }

/* Pages de rubrique */
.page-head { padding: .5rem 0 2rem; max-width: 820px; }
.page-head .lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Outil */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(1.3rem, 3vw, 2.2rem); max-width: 860px; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; }
.tool legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: .9rem; padding: 0; display: flex; align-items: center; gap: .6rem; }
.tool legend .step { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--sans); font-size: .95rem; }
@media (prefers-color-scheme: dark) { .tool legend .step { color: #0e1615; } }
.choice { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: .55rem; cursor: pointer; background: var(--bg); transition: border-color .15s ease, background .15s ease; }
.choice:hover { border-color: var(--primary); }
.choice input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--primary); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice-danger:has(input:checked) { border-color: var(--danger); background: var(--danger-soft); }
.choice-danger input { accent-color: var(--danger); }
.choice span { font-weight: 550; }
.choice small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; margin-top: .15rem; }
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.ages .choice { margin: 0; }
@media (max-width: 700px) { .ages { grid-template-columns: repeat(2, 1fr); } }
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .55rem; }
.profiles .choice { margin: 0; }
.tool-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.tool-result { margin-top: 1.6rem; border-radius: 18px; padding: 1.4rem 1.5rem; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); }
.tool-result[hidden] { display: none; }
.tool-result.is-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.tool-result h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.tool-result h2::before { display: none; }
.tool-result p { margin: 0 0 .6rem; }
.score { display: inline-flex; align-items: baseline; gap: .5rem; font-weight: 600; margin-bottom: .6rem; }
.score b { font-family: var(--serif); font-size: 2.2rem; color: var(--primary); line-height: 1; }
.tool-warning { font-size: .93rem; color: var(--muted); margin-top: 1.2rem; }
.tool[hidden] { display: none; }
.noscript { background: var(--butter); padding: 1rem 1.2rem; border-radius: 12px; }

/* Glossaire */
.letters { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.letters a { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.letters a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.glossary dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-top: 1.3rem; }
.glossary dd { margin: .3rem 0 0; color: var(--ink-soft); }
.glossary h2 { margin-top: 2rem; font-size: 1.8rem; color: var(--accent-ink); }

/* Plan du site */
.sitemap-list { columns: 2 320px; column-gap: 3rem; }
.sitemap-list section { break-inside: avoid; margin-bottom: 1.8rem; }
.sitemap-list h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.sitemap-list ul { margin: 0; padding-left: 1.1rem; }
.sitemap-list li { margin: .3rem 0; }

/* Pied de page */
.site-footer { margin-top: clamp(3rem, 6vw, 6rem); background: #0f2236; color: #c7d3e0; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #e9f0f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #93aac4; margin: 0 0 .9rem; font-weight: 650; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 1.5rem; display: inline-flex; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.footer-brand svg { width: 36px; height: 36px; }
.footer-emergency { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-emergency span { border: 1px solid #2b4560; border-radius: 10px; padding: .3rem .7rem; color: #fff; }
.footer-bottom { border-top: 1px solid #223a55; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #93aac4; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.not-found { text-align: center; padding: 4rem 0 2rem; max-width: 640px; margin: 0 auto; }
.not-found .code { font-family: var(--serif); font-size: 6rem; color: var(--accent); line-height: 1; margin: 0; }

/* Ajustements */
.card-body .tag, .feature-body .tag { align-self: flex-start; }
@media (max-width: 560px) { .alert-band { grid-template-columns: 1fr; gap: .6rem; } }

/* Utilitaires */
.mt-xl { margin-top: 3rem; }
.self-start { align-self: start; }
.pt-0 { padding-top: 0 !important; }
.center { justify-content: center; }

@media print {
  .site-header, .site-footer, .article-aside, .related, .hero-actions, .tool-band { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { display: block; }
  a { color: #000; }
}
