/* Conforme — cibronen.com
   Palette: paper #FAFAF7 · ink #131C33 · bleu administratif #2440B3
   · tampon #2F54D1 · validation #0E6B45 · filet #D8D9D4 */

:root {
  --paper: #FAFAF7;
  --ink: #131C33;
  --ink-60: #5A6075;
  --bleu: #2440B3;
  --tampon: #2F54D1;
  --vert: #0E6B45;
  --filet: #D8D9D4;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Spectral", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }

/* ---------- En-tête ---------- */

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 0;
}

.marque {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.marque:hover { text-decoration: none; }

nav.site a {
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

/* ---------- Héros ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 0.75em;
  max-width: 17ch;
  text-wrap: balance;
}

.hero p.chapeau {
  font-size: 1.15rem;
  max-width: 44ch;
  margin: 0 0 1.6em;
  color: var(--ink);
}

.hero .statut {
  font-size: 0.95rem;
  color: var(--ink-60);
  margin-top: 1.2em;
  max-width: 44ch;
}

.cta {
  display: inline-block;
  background: var(--bleu);
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 3px;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 500;
}
.cta:hover { background: #1C339A; text-decoration: none; }

/* ---------- Artefact facture ---------- */

.facture {
  background: #FFFFFF;
  border: 1px solid var(--filet);
  box-shadow: 0 1px 0 var(--filet);
  padding: 26px 26px 20px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
  max-width: 400px;
  justify-self: end;
  width: 100%;
}

.facture .entete {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--filet);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.facture .num { font-weight: 600; }

.facture table { width: 100%; border-collapse: collapse; }
.facture td { padding: 3px 0; vertical-align: top; }
.facture td:last-child { text-align: right; white-space: nowrap; }
.facture tr.total td {
  border-top: 1px solid var(--filet);
  padding-top: 7px;
  font-weight: 600;
}

.facture .mention {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--filet);
  color: var(--ink-60);
  font-size: 0.7rem;
}

.tampon {
  position: absolute;
  top: 38%;
  right: -14px;
  transform: rotate(-11deg);
  border: 3px solid var(--tampon);
  color: var(--tampon);
  border-radius: 6px;
  padding: 0.3em 0.8em;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  background: rgba(255, 255, 255, 0.82);
  animation: presse 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 0.35s both;
}

@keyframes presse {
  from { transform: rotate(-11deg) scale(1.6); opacity: 0; }
  to   { transform: rotate(-11deg) scale(1);   opacity: 1; }
}

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

/* ---------- Sections ---------- */

section { padding: 48px 0; border-top: 1px solid var(--filet); }

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.2em;
}

section > p { max-width: 62ch; }

/* ---------- Calendrier de la réforme ---------- */

.calendrier { list-style: none; margin: 0; padding: 0; max-width: 640px; }

.calendrier li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--filet);
}
.calendrier li:last-child { border-bottom: none; }

.calendrier .date {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--bleu);
  font-weight: 500;
  padding-top: 2px;
}

.calendrier .passe .date { color: var(--vert); }

.calendrier p { margin: 0; }

/* ---------- Prestations (lignes de facture) ---------- */

.lignes { max-width: 720px; }

.lignes dl { margin: 0; }

.lignes .ligne {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--filet);
}

.lignes dt { font-weight: 600; font-size: 1.05rem; }

.lignes dd {
  margin: 0.3em 0 0;
  grid-column: 1;
  color: var(--ink-60);
  max-width: 56ch;
}

.lignes .inclus {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--vert);
  white-space: nowrap;
}

/* ---------- Tarif ---------- */

.tarif { max-width: 640px; }

.tarif .prix {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  margin: 0.2em 0 0.1em;
}
.tarif .prix small { font-size: 1rem; font-weight: 400; color: var(--ink-60); }

.tarif .fondateurs {
  margin-top: 1em;
  padding: 14px 18px;
  border-left: 3px solid var(--bleu);
  background: #FFFFFF;
  max-width: 52ch;
}
.tarif .fondateurs p { margin: 0; }

/* ---------- Éditeur / contact ---------- */

.editeur { max-width: 62ch; }

/* ---------- Pied ---------- */

footer.site {
  border-top: 1px solid var(--filet);
  padding: 32px 0 48px;
  font-size: 0.9rem;
  color: var(--ink-60);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

footer.site nav a { margin-right: 1.4rem; }

/* ---------- Pages légales ---------- */

main.legale { max-width: 68ch; padding: 48px 0 72px; }
main.legale h1 { font-size: 1.8rem; max-width: none; }
main.legale h2 { font-size: 1.2rem; margin-top: 2em; }

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 40px; }
  .facture { justify-self: start; }
  .tampon { right: 6px; }
  .calendrier li { grid-template-columns: 1fr; gap: 4px; }
  nav.site a { margin-left: 1rem; }
}

.marque .par {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-60);
  letter-spacing: 0;
  margin-left: 0.35em;
}
