/* Cheynet.fr — feuille de style unique, mobile-first, polices système, sans framework. */
:root {
  --navy: #002e4f;
  --navy-2: #003e66;
  --accent: #2ea3f2;
  --link: #0a65a8;
  --link-h: #004a80;
  --ink: #1b2631;
  --muted: #5a6876;
  --line: #dde5ec;
  --soft: #f2f6f9;
  --bg: #ffffff;
  --ok: #17784a;
  --err: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 46, 79, .06), 0 4px 16px rgba(0, 46, 79, .06);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--link-h); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small { font-size: .65em; font-weight: 500; color: var(--muted); }
.sr, .nav-cb { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.i { flex: none; width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 64px; gap: 0 16px; }
.logo { display: inline-flex; color: var(--navy); padding: 10px 0; }
.logo svg { height: 40px; width: auto; }
.nav-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--navy); cursor: pointer; user-select: none; }
.nav-btn .close { display: none; }
.nav-cb:checked + .nav-btn .open { display: none; }
.nav-cb:checked + .nav-btn .close { display: inline; }
.nav-cb:focus-visible + .nav-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.nav { display: none; flex-basis: 100%; padding: 4px 0 16px; }
.nav-cb:checked ~ .nav { display: block; }
.nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.nav li a { display: block; padding: 12px 4px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a[aria-current] { color: var(--link); }
.search-mini { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.search-mini input { flex: 1; min-width: 0; border: 0; padding: 0 12px; min-height: 44px; font: inherit; }
.search-mini button { border: 0; background: var(--soft); color: var(--navy); width: 48px; cursor: pointer; display: grid; place-items: center; }

@media (min-width: 960px) {
  .nav-btn { display: none; }
  .nav { display: flex !important; align-items: center; gap: 20px; flex-basis: auto; padding: 0; }
  .nav ul { display: flex; gap: 4px; margin: 0; }
  .nav li a { border: 0; padding: 8px 12px; border-radius: 8px; }
  .nav li a:hover { background: var(--soft); }
  .nav a[aria-current] { background: var(--soft); }
  .search-mini { width: 200px; }
  .logo svg { height: 44px; }
}

/* ---------- Boutons, formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--soft); color: var(--navy); }
.search { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.search .btn span { display: none; }
@media (min-width: 520px) { .search .btn span { display: inline; } }
.form { margin-top: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #c4d0db; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-err { color: var(--err); font-size: .9rem; margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; background: var(--soft); border-left: 4px solid var(--accent); margin: 16px 0 24px; }
.notice.ok { border-color: var(--ok); background: #ecf8f1; }
.notice.err { border-color: var(--err); background: #fdf0ef; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- Accueil ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0b5d93 100%); color: #fff; padding: 40px 0 44px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { color: #d6e6f2; font-size: 1.15rem; max-width: 60ch; margin-bottom: 24px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.hero .search input { border-color: transparent; }
.hero .btn { background: var(--accent); color: #00243e; }
.hero .btn:hover { background: #59b7f5; }
@media (min-width: 960px) { .hero { padding: 64px 0 68px; } }

.block { margin: 40px 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.block-title { font-size: 1.4rem; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.block-head .block-title { margin-bottom: 0; }
.more { font-weight: 600; text-decoration: none; padding: 8px 0; }
.intro { background: var(--soft); border-radius: var(--radius); padding: 28px var(--gutter); }
.intro-head p { max-width: none; }
.intro-head h2 { margin-bottom: .4em; }
.intro-head p { color: #33414f; }
.pillars { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.pillar:hover { transform: translateY(-2px); color: var(--ink); }
.pillar strong { color: var(--navy); font-size: 1.1rem; }
.pillar span { font-size: .95rem; color: var(--muted); line-height: 1.5; }
.intro-sub { margin: 8px 0 16px; font-size: 1.25rem; }
.basics { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .basics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .basics { grid-template-columns: repeat(3, 1fr); } }
.basic { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.basic strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.basic p { margin: 0; color: #3d4b59; font-size: .97rem; line-height: 1.6; }
.basic .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--navy); }
.basic-cta { background: var(--navy); border-color: var(--navy); }
.basic-cta strong { color: #fff; }
.basic-cta p { color: #d6e6f2; margin-bottom: 14px; }
.basic-cta .btn { background: var(--accent); color: #00243e; min-height: 44px; }
.intro-foot { margin: 20px 0 0; color: #33414f; }
@media (min-width: 720px) { .intro { padding: 40px 44px; } }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4, .grid-feature { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-feature { grid-template-columns: repeat(4, 1fr); }
  .grid-feature .card-big { grid-column: span 2; grid-row: span 2; }
}
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-big .card-img { aspect-ratio: 16 / 10; }
.ph { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy), var(--accent)); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-title { font-size: 1.06rem; margin: 0; }
.card-big .card-title { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--link); text-decoration: underline; }
.card-ex { color: var(--muted); margin: 0; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding-top: 4px; font-size: .85rem; color: var(--muted); }
.tag { align-self: flex-start; display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--link); background: #e8f4fd; padding: 4px 10px; border-radius: 99px; text-decoration: none; }
.tag:hover { background: #d4ebfb; }

/* ---------- En-têtes de pages, fil d'Ariane, pagination ---------- */
.crumbs { margin: 20px 0 8px; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa8b5; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.crumbs a { color: var(--muted); }
.page-head { margin: 16px 0 28px; }
.page-head .lead { color: var(--muted); max-width: 70ch; }
.page-head .search { margin: 20px 0; }
.page-head.center .search, .page-head.center .lead { margin-left: auto; margin-right: auto; }
.count { color: var(--muted); font-size: .95rem; margin: 0; }
.big404 { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; line-height: 1; margin: 24px 0 8px; color: var(--accent); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 36px 0; }
.pager-n { color: var(--muted); }

/* ---------- Article ---------- */
.with-side { display: grid; gap: 40px; }
@media (min-width: 1100px) { .with-side { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.post { min-width: 0; }
.post-head { margin: 12px 0 20px; }
.post-head .tag { margin-bottom: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; margin: 0; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.post-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.toc { background: var(--soft); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 28px; }
.toc summary { font-weight: 700; color: var(--navy); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.toc ol { margin: 10px 0 4px; padding-left: 22px; }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { font-family: var(--serif); font-size: 1.125rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > * { max-width: 72ch; }
.prose h2 { font-family: var(--sans); margin: 1.8em 0 .6em; }
.prose h3, .prose h4 { font-family: var(--sans); margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: #33414f; font-style: italic; }
.prose figure { margin: 1.6em 0; }
.prose figure img, .prose picture img { border-radius: 10px; }
.prose figcaption { font: .88rem var(--sans); color: var(--muted); margin-top: 8px; text-align: center; }
.prose picture { margin: 1.4em 0; }
.prose p > picture { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 10px; max-width: 100%; }
.prose table { border-collapse: collapse; width: 100%; font: .95rem/1.5 var(--sans); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); color: var(--navy); }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { overflow-wrap: anywhere; }

.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 40px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.author-box p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.author-box .author-name { color: var(--navy); font-weight: 700; font-size: 1.05rem; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--accent)); }

/* ---------- Barre latérale ---------- */
.side { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1099px) { .side { display: none; } }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-box .search { flex-direction: column; }
.side-box .search .btn span { display: inline; }
.side-title { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.side-cats, .mini-list { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats span { color: var(--muted); font-size: .9rem; }
.mini-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { display: block; font-weight: 600; line-height: 1.35; text-decoration: none; color: var(--navy); }
.mini-list a:hover { color: var(--link); text-decoration: underline; }
.mini-list time { font-size: .82rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #c9d9e6; margin-top: 64px; padding: 40px 0 0; }
.footer-in { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 2fr 1fr 1fr; } }
.logo-light { color: #fff; }
.f-brand p { max-width: 42ch; margin-top: 8px; }
.f-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a { color: #c9d9e6; display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; text-decoration: none; }
.f-col a:hover { color: #fff; text-decoration: underline; }
.f-bottom { margin-top: 32px; padding: 18px var(--gutter) 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #9fb5c7; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
@media print { .site-header, .site-footer, .side, .toc, .author-box, .block { display: none; } }
.logo .lg-t1 { fill: var(--link); }
.logo-light .lg-t1 { fill: var(--accent); }
.logo-light .lg-box { fill: #0b4f80; }
@media (max-width: 639px) { .crumbs li[aria-current] { display: none; } }

/* Texte de rubrique sous la liste */
.cat-guide h2 { font-size: 1.4rem; margin-top: 0; }
.cat-guide h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.cat-guide p, .cat-guide li { color: #33414f; }
.cat-guide ul { padding-left: 1.2em; }
.cat-guide li::marker { color: var(--accent); }
.cat-guide .faq { display: grid; gap: 10px; margin-top: 8px; }
.cat-guide details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.cat-guide summary { font-weight: 700; color: var(--navy); cursor: pointer; min-height: 28px; }
.cat-guide details p { margin: 10px 0 2px; }
/* FAQ dans les articles */
.prose details { font-family: var(--sans); font-size: 1rem; background: var(--soft); border-radius: 10px; padding: 12px 16px; margin: 10px 0; max-width: 72ch; }
.prose summary { font-weight: 700; color: var(--navy); cursor: pointer; min-height: 28px; }
.prose details p { margin: 10px 0 2px; }
.prose .table-wrap table { margin: 0; }
