/* Politiqs — site vitrine */
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url("../fonts/site/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Schibsted Grotesk";
    font-style: normal;
    font-display: swap;
    font-weight: 400 900;
    src: url("../fonts/site/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Aucune couleur de parti : un prune d'encre, neutre sur l'échiquier belge */
    --paper: #f7f7fb;
    --ink: #2a1f3d;
    --plum: #5e3591;
    --plum-deep: #45256c;
    --lilac: #ece6f5;
    --stone: #625d70;
    --rule: #dcd6e5;
    --seat: #cfc8db;
    --white: #ffffff;
    --error: #a12a2a;
    --ok: #1d6b3a;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Schibsted Grotesk", system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
    font-feature-settings: "tnum" 0;
}
a { color: var(--plum); text-underline-offset: .18em; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.measure { max-width: 38rem; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 1.5rem; align-items: center; font-size: .95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--plum); }
@media (max-width: 40rem) { .top nav a:not(.login) { display: none; } }

/* Boutons */
.btn { display: inline-block; padding: .8rem 1.25rem; border-radius: .5rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 2px solid var(--plum); }
.btn-primary { background: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--white); }
.btn-quiet { background: transparent; color: var(--plum); }
.btn-quiet:hover { background: var(--lilac); }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 3.5rem 0 4.5rem; }
@media (max-width: 52rem) { .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 850; margin: 0 0 1.25rem; max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; color: var(--stone); margin: 0 0 2rem; max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hemicycle { width: 100%; height: auto; display: block; }
.hemicycle .seat { fill: var(--seat); }
.hemicycle .seat.ours { fill: var(--plum); }
.hemicycle figcaption, figure.chamber figcaption { font-size: .92rem; color: var(--stone); margin-top: .75rem; max-width: 30rem; }
figure.chamber { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
    .hemicycle .seat { opacity: 0; animation: seat-in .45s ease-out forwards; animation-delay: calc(var(--i) * 28ms); }
    @keyframes seat-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin: 0 0 1rem; max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 .35rem; font-weight: 750; letter-spacing: -.01em; }
.intro { color: var(--stone); font-size: 1.1rem; margin: 0 0 2.5rem; max-width: 38rem; }

/* Ordre du jour : les fonctions, présentées comme les points d'une réunion */
.agenda { list-style: none; margin: 0; padding: 0; counter-reset: point; border-top: 2px solid var(--ink); }
.agenda li { counter-increment: point; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.agenda li::before { content: "Point " counter(point); font-weight: 750; color: var(--plum); font-variant-numeric: tabular-nums; padding-top: .1rem; }
.agenda p { margin: 0; color: var(--stone); max-width: 40rem; }
.agenda .tag { font-weight: 600; color: var(--plum); font-size: .9rem; margin-left: .35rem; }
@media (max-width: 36rem) { .agenda li { grid-template-columns: 1fr; gap: .35rem; } }

/* Observatoire */
.band { background: var(--lilac); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--plum); }
.sample { background: var(--white); border-radius: .75rem; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--rule); }
.sample table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.sample th, .sample td { padding: .55rem .4rem; text-align: right; border-bottom: 1px solid var(--rule); }
.sample th:first-child, .sample td:first-child { text-align: left; }
.sample thead th { font-weight: 650; color: var(--stone); font-size: .85rem; }
.sample .muted { color: var(--stone); }
.sample p { font-size: .85rem; color: var(--stone); margin: .75rem 0 0; }

/* Sécurité */
.guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; margin: 0; }
.guarantees dt { font-weight: 750; margin-bottom: .3rem; }
.guarantees dd { margin: 0; color: var(--stone); }

/* Offres */
.offers { width: 100%; border-collapse: collapse; }
.offers th, .offers td { text-align: left; vertical-align: top; padding: 1.1rem .75rem 1.1rem 0; border-bottom: 1px solid var(--rule); }
.offers thead th { font-size: .9rem; color: var(--stone); font-weight: 600; border-bottom: 2px solid var(--ink); }
.offers .plan { font-weight: 750; font-size: 1.1rem; }
.offers .for { display: block; color: var(--stone); font-size: .92rem; font-weight: 400; }
.offers .price { font-weight: 800; font-size: 1.35rem; white-space: nowrap; letter-spacing: -.01em; }
.offers .unit { display: block; color: var(--stone); font-size: .88rem; font-weight: 400; letter-spacing: 0; white-space: normal; }
.offers td.inc { color: var(--stone); max-width: 26rem; }
.note { font-size: .9rem; color: var(--stone); margin-top: 1rem; }
@media (max-width: 44rem) {
    .offers thead { display: none; }
    .offers, .offers tbody, .offers tr, .offers td, .offers th { display: block; width: 100%; }
    .offers tr { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
    .offers th, .offers td { border: 0; padding: .15rem 0; }
}

/* Démo */
form.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
@media (max-width: 40rem) { form.demo { grid-template-columns: 1fr; } }
form.demo .full { grid-column: 1 / -1; }
form.demo label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: .35rem; }
form.demo input, form.demo textarea { width: 100%; font: inherit; padding: .75rem .85rem; border: 1px solid #bdb5cc; border-radius: .5rem; background: var(--white); color: var(--ink); }
form.demo textarea { min-height: 7rem; resize: vertical; }
form.demo input:focus, form.demo textarea:focus { outline: 3px solid var(--plum); outline-offset: 1px; border-color: var(--plum); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: .5rem; padding: 1rem 1.15rem; margin-bottom: 1.5rem; }
.alert-ok { background: #e3f1e8; color: var(--ok); }
.alert-error { background: #f6e3e3; color: var(--error); }
.small { font-size: .88rem; color: var(--stone); }

/* Pied de page */
footer.site { padding: 2.5rem 0 3rem; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--stone); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer.site a { color: var(--stone); }

/* Pages légales */
.doc { padding: 2.5rem 0 4rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1.5rem; }
.doc h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; max-width: none; }
.doc p, .doc li { max-width: 42rem; }
.doc .todo { background: #fff3cd; padding: 0 .3rem; border-radius: .25rem; }
