/*
  Smart Mill : feuille de style du site public (front).
  Sans framework : CSS natif (variables, grid, flex). Le backoffice garde ses propres styles (admin/css).
  Magenta = couleur Smart Mill. Chaque logiciel a sa couleur via .pc-paie / .pc-gestion / .pc-edi / .pc-compta.
*/

/* ---------- Tokens ---------- */
:root {
    --bg: #faf8f9;
    --surface: #ffffff;
    --ink: #1c1a1c;
    --muted: #6b6469;
    --line: #e8e1e5;
    --brand: #b0004f;
    --brand-ink: #ffffff;
    --brand-soft: #f8e6ee;
    --ok: #1f7a4d;
    --ok-soft: #e2f3ea;
    --warn: #a15c00;
    --warn-soft: #fbefd9;
    --danger: #b3261e;
    --danger-soft: #fbe5e3;
    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --gutter: max(16px, env(safe-area-inset-left, 0px));
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #151215;
        --surface: #1f1a1e;
        --ink: #f3eef1;
        --muted: #a79ea4;
        --line: #33292f;
        --brand: #ff4f8f;
        --brand-ink: #1a0610;
        --brand-soft: #3a1626;
        --ok: #5fd39a;
        --ok-soft: #173326;
        --warn: #f0b35c;
        --warn-soft: #3a2a10;
        --danger: #ff8a80;
        --danger-soft: #3d1a17;
        color-scheme: dark;
    }
}

/* Couleur par logiciel : le moulin change de couleur, le site garde le magenta. */
.pc { --brand: var(--a-l); --brand-soft: var(--s-l); --brand-ink: var(--i-l); }
.pc-paie { --a-l: #9a4d00; --s-l: #fdecd0; --i-l: #ffffff; --a-d: #f9a21a; --s-d: #3a2810; --i-d: #2a1600; }
.pc-gestion { --a-l: #1f78b7; --s-l: #e1f0f9; --i-l: #ffffff; --a-d: #6ecbec; --s-d: #12303f; --i-d: #06222f; }
.pc-edi { --a-l: #5a4fcf; --s-l: #ebe9fb; --i-l: #ffffff; --a-d: #a79bff; --s-d: #26224a; --i-d: #120f2e; }
.pc-compta { --a-l: #217a4d; --s-l: #e1f2e8; --i-l: #ffffff; --a-d: #6fd69b; --s-d: #153322; --i-d: #072013; }
@media (prefers-color-scheme: dark) {
    .pc { --brand: var(--a-d); --brand-soft: var(--s-d); --brand-ink: var(--i-d); }
}

/* Moulin : une image, une couleur par logiciel. */
.mill-mag { filter: hue-rotate(131deg) saturate(1.15); }
.mill-violet { filter: hue-rotate(50deg); }
.mill-green { filter: hue-rotate(-62deg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 var(--font-body);
    padding-left: var(--gutter);
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; }
.bleed { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .card { background: var(--bg); }
.eyebrow { font: 500 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- Boutons, pastilles ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 700 .95rem var(--font-body); text-decoration: none; cursor: pointer;
    padding: .8rem 1.2rem; border-radius: 10px;
    border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.sm { padding: .55rem .95rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.pill { font: 700 .72rem var(--font-body); padding: .2rem .6rem; border-radius: 99px; white-space: nowrap; background: var(--brand-soft); color: var(--brand); }
.tag {
    display: inline-block; font: 500 .7rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
    background: var(--brand); color: var(--brand-ink); padding: .2rem .55rem; border-radius: 6px;
}

/* ---------- Alertes, cookies ---------- */
.alert { padding: .8rem 1rem; border-radius: 10px; font-weight: 500; margin-bottom: 1rem; }
.alert[hidden] { display: none; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--brand-soft); color: var(--brand); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.flash { display: flex; justify-content: space-between; gap: 1rem; align-items: center; max-width: 1120px; margin: .8rem auto 0; }
.flash button { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }

.cookie-banner {
    position: fixed; z-index: 60; left: var(--gutter); right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    max-width: 760px; margin-inline: auto;
    background: var(--ink); color: var(--bg); border-radius: 14px; padding: 1rem 1.2rem;
    display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); font-size: .92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner a { text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: .5rem; }
.cookie-banner .btn { border-color: var(--bg); color: var(--bg); }
.cookie-banner .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Annonces (bandeau + bloc) ---------- */
.announcement-bar { background: var(--ink); color: var(--bg); margin-inline: calc(-1 * var(--gutter)); padding: .55rem var(--gutter); font-size: .92rem; }
.announcement-bar[hidden] { display: none; }
.announcement-bar-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; }
.announcement-bar-inner p { margin: 0; }
.announcement-label { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: .1rem .5rem; border-radius: 99px; font-size: .72rem; font-weight: 700; margin-right: .4rem; }
.announcement-bar-text { margin-left: .3rem; opacity: .9; }
.announcement-bar-actions { display: flex; gap: 1rem; align-items: center; }
.announcement-bar-link { font-weight: 700; text-underline-offset: 3px; }
.announcement-close { background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }

.announcement-block { padding-block: 3rem; }
.announcement-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.announcement-inner.single { grid-template-columns: 1fr; }
.announcement-inner > * { min-width: 0; }
.announcement-block h2 { margin: .8rem 0; }
.announcement-description { color: var(--muted); max-width: 40rem; }
.announcement-highlights { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .45rem; }
.announcement-highlights li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: .55rem; }
.announcement-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.announcement-image { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .5); }

/* ---------- En-tête ---------- */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; max-width: 1120px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: .6rem; font: 800 1.35rem var(--font-display); text-decoration: none; letter-spacing: -.03em; }
.logo img { width: 36px; height: 36px; display: block; }

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font: 700 .9rem var(--font-body); color: var(--ink); cursor: pointer; }
.main-nav { display: flex; gap: .2rem; align-items: center; }
.main-nav > a, .main-nav summary {
    text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font: 500 .95rem var(--font-body);
    color: var(--muted); cursor: pointer; list-style: none;
}
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav summary::after { content: " ▾"; font-size: .7rem; }
.main-nav > a:hover, .main-nav summary:hover, .main-nav [aria-current="page"], .main-nav details[data-current] summary { color: var(--ink); background: var(--brand-soft); }
.main-nav a.btn { color: var(--brand-ink); margin-left: .4rem; }
.main-nav a.btn:hover { background: var(--brand); }
.main-nav details { position: relative; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .5rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); z-index: 30; }
.menu a { display: block; text-decoration: none; padding: .6rem .8rem; border-radius: 9px; font-weight: 700; font-size: .92rem; }
.menu a span { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.menu a:hover { background: var(--brand-soft); }
.nav-search { display: flex; margin-left: .3rem; }
.nav-search input { width: 150px; padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; }

/* ---------- Accueil ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.deco { position: absolute; right: -110px; top: -70px; width: 470px; max-width: 60vw; opacity: .1; pointer-events: none; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .deco { animation: none; } }

.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-block: 3rem 4rem; }
.hero > div { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin-top: 1.25rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.trust { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.25rem; font-size: .9rem; color: var(--muted); }
.trust b { color: var(--ink); font-family: var(--font-display); font-size: 1.4rem; display: block; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.tab { font: 700 .85rem var(--font-body); padding: .5rem .9rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.soon { font: 500 .62rem var(--font-mono); background: var(--brand); color: var(--brand-ink); padding: .05rem .35rem; border-radius: 5px; text-transform: uppercase; }
.tab .soon { background: var(--brand); }

.win { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(176, 0, 79, .35), 0 2px 0 var(--line); overflow: hidden; min-width: 0; }
.pc .win { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4), 0 2px 0 var(--line); }
.win-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.win-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.win-bar small { margin-left: .6rem; color: var(--muted); font: 500 .75rem var(--font-mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { display: block; width: 100%; aspect-ratio: var(--ar, 16 / 10); object-fit: cover; object-position: top left; background: #fff; }
.pane[hidden] { display: none; }
.win-soon { padding: 2.2rem 1.4rem; display: grid; gap: .8rem; place-items: center; text-align: center; min-height: 260px; }
.win-soon img { width: 84px; height: 84px; }

section.s { padding-block: 3.5rem; }
.head { display: grid; gap: .9rem; max-width: 42rem; margin-bottom: 2.2rem; }
.head p { color: var(--muted); }

.grid2, .grid3, .grid4 { display: grid; gap: 1.25rem; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.card p { color: var(--muted); font-size: .95rem; }
.card .pw { width: 48px; height: 48px; display: block; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; font-size: .9rem; }
.card li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: .55rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--brand); }
.card .more:hover { text-decoration: underline; }
.card.dash { border-style: dashed; background: transparent; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--brand); }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.q { margin: 0; padding: 1.5rem; border-radius: 16px; background: var(--brand-soft); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.q p { font: 500 1.02rem/1.5 var(--font-display); }
.q footer { margin-top: auto; font-size: .88rem; color: var(--muted); }
.q footer b { display: block; color: var(--ink); font-size: .92rem; }

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; margin-bottom: 2.5rem; }
/* Logos clients en blanc sur fond transparent : tuile toujours foncée, en thème clair comme en sombre. */
.logos div { background: #1c1a1c; border: 1px solid #1c1a1c; border-radius: 12px; padding: .7rem; display: grid; place-items: center; aspect-ratio: 3 / 2; }
.logos img { width: 100%; height: 100%; object-fit: contain; opacity: .85; transition: opacity .2s; }
.logos div:hover img { opacity: 1; }
@media (prefers-color-scheme: dark) { .logos div { background: var(--surface); border-color: var(--line); } }
@media (prefers-reduced-motion: reduce) { .logos img { transition: none; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat b { font: 800 2.6rem var(--font-display); color: var(--brand); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- Pages produit ---------- */
.crumb { font-size: .85rem; color: var(--muted); padding-top: 1.5rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--brand); }
.product-title { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.product-title img { width: clamp(40px, 6vw, 64px); height: auto; flex: none; }

.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.split > * { min-width: 0; }
.prose p { color: var(--muted); max-width: 44rem; }
.prose p + p { margin-top: 1rem; }
.prose h2, .prose h3 { margin: 2rem 0 1rem; }
.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.modules li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; }
.modules li::before { content: "→"; color: var(--brand); font-weight: 700; margin-right: .6rem; }
.modules small { display: block; color: var(--muted); margin-left: 1.5rem; }
.side { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; display: grid; gap: .7rem; }
.side .btn { width: 100%; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.step { padding-top: 1rem; border-top: 2px solid var(--ink); counter-increment: s; min-width: 0; }
.step::before { content: "Étape " counter(s); font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.step h3 { margin: .4rem 0; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.shots figure { margin: 0; display: grid; gap: .6rem; min-width: 0; }
.shots a { display: block; border-radius: 12px; }
.shots img { width: 100%; aspect-ratio: var(--ar, 16 / 10); object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -26px rgba(12, 59, 92, .55); transition: transform .2s; }
.shots a:hover img { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .shots a:hover img { transform: none; } }
.shots figcaption { font-size: .9rem; color: var(--muted); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(10, 8, 10, .85); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 90vh; border-radius: 10px; background: #fff; }
dialog.lightbox form { position: absolute; top: .5rem; right: .5rem; margin: 0; }
dialog.lightbox button { background: var(--ink); color: var(--bg); border: 0; border-radius: 99px; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer; }

details.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details.faq summary { cursor: pointer; font: 700 1.02rem var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); margin-top: .6rem; max-width: 44rem; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 700; font-size: .9rem; display: grid; gap: .4rem; }
.form input, .form select, .form textarea {
    padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font: inherit; width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; min-width: 0; }
.panel h3 { margin-bottom: .6rem; }
.info-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.info-list li { border-bottom: 1px dashed var(--line); padding-bottom: .6rem; }
.info-list small { display: block; color: var(--muted); font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.info-list a { text-underline-offset: 3px; }
.recaptcha-note { font-size: .78rem; color: var(--muted); }

/* ---------- Téléchargements ---------- */
.dl { display: grid; gap: .1rem; margin-top: 1rem; }
.dl a.row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; text-decoration: none; padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
.dl a.row:last-child { border-bottom: 0; }
.dl a.row img { width: 40px; height: 40px; }
.dl a.row:hover b { color: var(--brand); }
.dl small { color: var(--muted); display: block; }

/* ---------- Actualités, recherche ---------- */
.news-list { display: grid; gap: 1.25rem; }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; }
.news-item h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.news-meta { color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.news-item p + p { margin-top: .8rem; }
.news-item a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.results li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.results a { font-weight: 700; color: var(--brand); text-underline-offset: 3px; }
.results div { color: var(--muted); margin-top: .4rem; font-size: .93rem; }
.results mark { background: var(--brand-soft); color: inherit; border-radius: 3px; }

.page-head { padding-block: 3rem 1rem; max-width: 46rem; display: grid; gap: .9rem; }
.page-head p { color: var(--muted); }
.legal-text h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal-text p, .legal-text li { color: var(--muted); max-width: 46rem; }
.legal-text ul { padding-left: 1.2rem; }
.error-page { padding-block: 5rem; text-align: left; display: grid; gap: 1rem; justify-items: start; }
.error-page img { width: 96px; height: 96px; }

/* ---------- Guides ---------- */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.guide-card h2 { font-size: 1.3rem; }
.guide-card h2 a { text-decoration: none; }
.guide-card p { color: var(--muted); }
.guide-card .btn { align-self: flex-start; margin-top: auto; }
.guide-meta { color: var(--muted); font-size: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.guide-breadcrumb { font-size: .85rem; color: var(--muted); padding-top: 1.5rem; }
.guide-breadcrumb a { text-decoration: none; }
.guide-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; padding-block: 1.5rem 4rem; }
.guide-layout > * { min-width: 0; }
.guide-toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; font-size: .9rem; }
.guide-toc h2 { font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: .6rem; }
.guide-toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.guide-toc ol ol { margin-top: .3rem; }
.guide-toc a { text-decoration: none; color: var(--muted); }
.guide-toc a:hover { color: var(--brand); }
.guide-content h1 { margin-bottom: 1rem; }
.guide-lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.guide-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin: 1.2rem 0 2rem; }
.guide-actions a:not(.btn) { text-underline-offset: 3px; font-weight: 700; color: var(--brand); }
.guide-content .guide-meta { margin-top: 1rem; }
.guide-section { padding-top: 1.5rem; scroll-margin-top: 1rem; max-width: 50rem; }
.guide-section h2 { font-size: 1.7rem; margin-bottom: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.guide-section h3 { font-size: 1.3rem; margin: 1.4rem 0 .6rem; }
.guide-section h4, .guide-block-title { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.guide-section p, .guide-section li { color: var(--ink); }
.guide-section p + p, .guide-section p + ul, .guide-section p + ol { margin-top: .8rem; }
.guide-section ul, .guide-section ol { padding-left: 1.3rem; display: grid; gap: .4rem; margin-block: .8rem; }
.guide-section-summary { color: var(--muted); }
.guide-section code { font: 500 .88em var(--font-mono); background: var(--brand-soft); color: var(--brand); padding: .1rem .35rem; border-radius: 5px; }
.guide-section a { color: var(--brand); text-underline-offset: 3px; }
.guide-callout { border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0; border: 1px solid var(--line); background: var(--surface); }
.guide-callout-title { font-weight: 700; margin-bottom: .3rem; }
.guide-callout-tip { background: var(--ok-soft); border-color: transparent; }
.guide-callout-warning { background: var(--warn-soft); border-color: transparent; }
.guide-callout-note { background: var(--brand-soft); border-color: transparent; }
.guide-table { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.guide-table table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .92rem; }
.guide-table caption { text-align: left; font-weight: 700; padding: .8rem 1rem; }
.guide-table th, .guide-table td { text-align: left; padding: .7rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.guide-table th { font: 500 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg); }
.guide-figure { margin: 1.4rem 0; }
.guide-figure img { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-figure figcaption { color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.guide-back { margin-top: 3rem; }

@media print {
    .site-header, .site-footer, .guide-toc, .guide-actions, .cookie-banner, .announcement-bar, .news-band, .skip-link { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .guide-layout { display: block; }
}

/* ---------- Pied de page ---------- */
.news-band { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 2.5rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 1rem; }
.news-band h2 { font-size: 1.6rem; max-width: 22rem; }
.news-band form { display: flex; gap: .6rem; flex-wrap: wrap; flex: 1; min-width: 240px; max-width: 30rem; }
.news-band input { flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--muted); background: transparent; color: var(--bg); font: inherit; }
.news-band .btn.primary { border-color: var(--brand); }
.site-footer { padding-block: 3.5rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; font-size: .92rem; color: var(--muted); }
.site-footer h2 { font: 700 .8rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: .8rem; }
.site-footer a { display: block; text-decoration: none; padding: .2rem 0; }
.site-footer a.logo { display: flex; color: var(--ink); padding: 0; }
.site-footer a:hover { color: var(--brand); }
.legal { border-top: 1px solid var(--line); padding-block: 1.2rem 2rem; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.legal a { text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero, .split, .announcement-inner { grid-template-columns: 1fr; }
    .hero { padding-block: 2rem 3rem; }
    .quotes, .grid3, .stats { grid-template-columns: 1fr; }
    .grid4, .steps, .grid2 { grid-template-columns: 1fr 1fr; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .side { position: static; }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc { position: static; max-height: none; }

    .nav-toggle { display: inline-flex; }
    .site-header { flex-wrap: wrap; }
    .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .6rem; }
    .main-nav.open { display: flex; }
    .main-nav a.btn { margin: .4rem 0 0; }
    .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 .6rem; }
    .nav-search { margin: .4rem 0 0; }
    .nav-search input { width: 100%; }
}
@media (max-width: 560px) {
    .grid4, .steps, .grid2 { grid-template-columns: 1fr; }
    .news-band { padding: 1.5rem; }
    .site-footer { grid-template-columns: 1fr; }
    .dl a.row { grid-template-columns: auto 1fr; }
    .dl a.row .btn { grid-column: 1 / -1; }
}

/* ---------- Versions ---------- */
.releases { display: grid; gap: 1.25rem; }
.release-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.release-head h2 { font-size: 1.4rem; }
.release-head .pill.version { margin-left: auto; }
.changelog { white-space: pre-line; color: var(--muted); max-width: 60rem; font-size: .95rem; }

/* ---------- Vérification des téléchargements ---------- */
.dl .dl-item { border-bottom: 1px solid var(--line); }
.dl .dl-item:last-child { border-bottom: 0; }
.dl .dl-item a.row { border-bottom: 0; }
.verify { margin: 0 0 .9rem 56px; font-size: .9rem; }
.verify summary { cursor: pointer; color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.verify p { margin-top: .6rem; color: var(--muted); max-width: 40rem; }
.hash { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.hash code { flex: 1 1 18rem; min-width: 0; word-break: break-all; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 500 .78rem/1.5 var(--font-mono); user-select: all; }
.verify p code { font: 500 .82em var(--font-mono); background: var(--brand-soft); color: var(--brand); padding: .1rem .35rem; border-radius: 5px; word-break: break-all; }
@media (max-width: 560px) { .verify { margin-left: 0; } }

/* ---------- Pied de page : présentation ---------- */
.footer-about { margin-top: .8rem; max-width: 20rem; }
.page-head.wide { max-width: 52rem; }
.panel-intro { margin: .4rem 0 1rem; }
.updated { margin-top: 2rem; font-size: .9rem; color: var(--muted); }

/* ---------- Utilitaires (remplacent les styles inline ; !important pour passer devant les sélecteurs de composant) ---------- */
.pt-1 { padding-top: 1rem !important; }
.pt-15 { padding-top: 1.5rem !important; }
.pb-3 { padding-bottom: 3rem !important; }
.pb-4 { padding-bottom: 4rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-05 { margin-top: .5rem !important; }
.mt-1 { margin-top: 1rem !important; }
.mb-1 { margin-bottom: 1rem !important; }
.ml-05 { margin-left: .5rem !important; }
.h-sm { font-size: 1.4rem !important; }
.maxw-32 { max-width: 32rem; }
.self-start { align-self: flex-start; }
.text-link { text-underline-offset: 3px; }
.inline-link { display: inline !important; padding: 0 !important; text-decoration: underline; text-underline-offset: 3px; }
