:root {
    --fond: #0d1117;
    --fond-carte: #161b22;
    --bordure: #262c36;
    --texte: #e6edf3;
    --texte-doux: #8b949e;
    --accent: #58a6ff;
    --accent-doux: #7cc3ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
}

h1, h2, h3 { line-height: 1.3; font-weight: 600; }

a { color: var(--accent); }

main a,
footer a,
.breadcrumb a {
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

main a:hover,
footer a:hover,
.breadcrumb a:hover { color: var(--accent-doux); }

.skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    background: var(--accent);
    color: #0d1117;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    z-index: 100;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
    outline: 0.15rem solid var(--accent);
    outline-offset: 0.15rem;
}

.wrap {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

header { border-bottom: 1px solid var(--bordure); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--texte);
    text-decoration: none;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
}

header nav a {
    color: var(--texte-doux);
    text-decoration: none;
    font-size: 0.9rem;
}
header nav a:hover,
header nav a:focus-visible { color: var(--texte); text-decoration: underline; }

main { display: block; }

section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--bordure);
}
section:last-of-type { border-bottom: none; }

#hero { padding-top: 3rem; padding-bottom: 3rem; }

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
    margin: 0 0 1rem;
    max-width: 38rem;
}

.lead {
    color: var(--texte-doux);
    max-width: 40rem;
    margin: 0 0 1.5rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
    background: transparent;
    color: var(--texte);
    border-color: var(--bordure);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.statut {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--bordure);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--texte-doux);
}

.pastille {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulsation 2s ease-in-out infinite;
}

@keyframes pulsation {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

h2 { font-size: 1.5rem; margin: 0 0 0.5rem; }

h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }

.reponse {
    max-width: 44rem;
    margin: 0 0 1.25rem;
}

.section-intro {
    color: var(--texte-doux);
    max-width: 44rem;
    margin: 0 0 1.5rem;
}

p { max-width: 44rem; }

.date-maj {
    font-size: 0.85rem;
    color: var(--texte-doux);
    margin: 0 0 1.5rem;
}

.stat-row {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}

.stat-row li {
    border: 1px solid var(--bordure);
    border-radius: 0.75rem;
    background: var(--fond-carte);
    padding: 1.1rem 1.25rem;
}

.stat-chiffre {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--texte);
    line-height: 1.2;
}

.stat-libelle {
    display: block;
    font-size: 0.85rem;
    color: var(--texte-doux);
    margin-top: 0.25rem;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 0.2rem solid var(--accent);
    background: var(--fond-carte);
    border-radius: 0 0.5rem 0.5rem 0;
}

blockquote p { margin: 0 0 0.6rem; }
blockquote footer { padding: 0; font-size: 0.85rem; color: var(--texte-doux); }
cite { font-style: normal; color: var(--texte-doux); }

.captcha-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
}

.captcha-grid > div {
    border: 1px solid var(--bordure);
    border-radius: 0.75rem;
    background: var(--fond-carte);
    padding: 1.25rem;
}

.captcha-grid dt {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.captcha-grid dd {
    margin: 0;
    color: var(--texte-doux);
    font-size: 0.9rem;
}

.note {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--texte-doux);
}

.steps {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 1rem;
    max-width: 44rem;
}

.steps li { padding-left: 0.25rem; color: var(--texte-doux); }
.steps strong { color: var(--texte); }

.feature-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--texte-doux);
    display: grid;
    gap: 0.5rem;
    max-width: 44rem;
}

.faq-list { display: grid; gap: 0.75rem; }

details {
    border: 1px solid var(--bordure);
    border-radius: 0.75rem;
    background: var(--fond-carte);
    padding: 0.9rem 1.1rem;
}

summary { cursor: pointer; font-weight: 600; }

summary h3 {
    display: inline;
    font-size: 1rem;
    margin: 0;
}

details p { margin: 0.75rem 0 0; color: var(--texte-doux); }

.sources {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--texte-doux);
    font-size: 0.9rem;
    display: grid;
    gap: 0.4rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--texte-doux);
    padding-top: 1.25rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb li + li::before { content: "/ "; color: var(--bordure); }

footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--texte-doux);
    border-top: 1px solid var(--bordure);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
}

.footer-liens {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
}

.lang-switch span[aria-current="true"] {
    color: var(--texte);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .pastille { animation: none; }
    html { scroll-behavior: auto; }
}
