/* bureau-opere.fr — feuille de style
   Grille typographique : 12 colonnes, filets noirs, un seul accent bleu. */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #0a0a0a;
  --ink-2: #2f2f2f;
  --muted: #595959;
  --hair: #cccccc;
  --tint: #f4f4f2;
  --blue: #1f3cff;
  --blue-dark: #0e22c9;
  --blue-tint: #eef0ff;
  --bg: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
  --gut: 16px;
  --gap: 20px;
  --wrap: 1280px;
}

@media (min-width: 760px) { :root { --gut: 32px; --gap: 24px; } }
@media (min-width: 1100px) { :root { --gut: 48px; } }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

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

strong { font-weight: 700; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}
.skip:focus { left: var(--gut); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }

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

.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.logo small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

@media (max-width: 759px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--hair);
    padding-top: 8px;
  }
}

/* ---------- Éléments communs ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 12px; height: 12px; background: var(--blue); flex: none; }

.lede { font-size: clamp(1.12rem, 1.7vw, 1.35rem); line-height: 1.45; margin: 0; max-width: 40ch; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 20px;
  border: 2px solid var(--blue);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.crumbs { margin: 0 0 32px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- Hero accueil ---------- */

.hero { padding: 40px 0 56px; border-bottom: 1px solid var(--ink); }
.hero h1 {
  margin: 0 0 36px;
  font-size: clamp(2.6rem, 8.2vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 13ch;
}
.hero-lede { margin-bottom: 36px; }

.facts { margin: 0 0 36px; border-top: 3px solid var(--ink); }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--ink); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 16px; line-height: 1.35; font-weight: 500; }

.art { pointer-events: none; max-width: 260px; }
.art svg { width: 100%; height: auto; }

@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero h1 { grid-column: 1 / span 11; margin-bottom: 56px; }
  .hero-lede { grid-column: 1 / span 5; margin-bottom: 0; }
  .facts { grid-column: 7 / span 3; margin-bottom: 0; }
  .art { grid-column: 10 / span 3; justify-self: end; align-self: end; max-width: none; width: 100%; }
}

/* ---------- Sections numérotées (accueil) ---------- */

.sec { padding: 72px 0 0; }
.sec-grid { border-top: 1px solid var(--ink); padding-top: 16px; }
.num {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.sec-head h2 {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

@media (min-width: 900px) {
  .sec { padding-top: 104px; }
  .sec-head { grid-column: 1 / span 4; padding-right: 16px; }
  .sec-body { grid-column: 5 / span 8; }
  .sec-head h2 { position: sticky; top: 24px; }
}

/* ---------- Texte courant ---------- */

.prose > *:first-child { margin-top: 0; }
.prose p,
.prose ul,
.prose ol { margin: 0 0 18px; max-width: 68ch; }
.prose h3 {
  margin: 40px 0 12px;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.prose ul:not([class]) { list-style: none; padding: 0; }
.prose ul:not([class]) > li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.prose ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--ink);
}
.prose ol:not([class]) { padding-left: 1.4em; }
.prose ol:not([class]) > li { margin-bottom: 9px; padding-left: 4px; }
.prose ol:not([class]) > li::marker { color: var(--blue); font-weight: 700; }

/* ---------- Étapes numérotées ---------- */

.steps { list-style: none; counter-reset: st; margin: 28px 0; padding: 0; border-bottom: 1px solid var(--ink); }
.steps > li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
}
.steps > li::before {
  content: counter(st, decimal-leading-zero);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.steps h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.25; }
.steps p { margin: 0; }
.prose .steps { max-width: none; }

/* ---------- Tableaux ---------- */

.tbl { margin: 32px 0 14px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.tbl caption {
  caption-side: top;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  padding: 0 0 12px;
}
.tbl thead th {
  text-align: left;
  vertical-align: bottom;
  padding: 10px 14px 10px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
}
.tbl tbody th,
.tbl tbody td,
.tbl tfoot th,
.tbl tfoot td {
  text-align: left;
  vertical-align: top;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--ink);
}
.tbl tbody th { font-weight: 700; }
.tbl tfoot th,
.tbl tfoot td { font-weight: 700; border-bottom: 3px solid var(--ink); }
.tbl .key { background: var(--blue-tint); padding-left: 12px; }
.tbl thead th.key { background: var(--blue); color: #fff; }
.tbl .key + th,
.tbl .key + td { padding-left: 14px; }
.tbl .amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .lvl { font-weight: 700; white-space: nowrap; }
.tbl .lvl-3 { color: var(--blue); }
.tbl-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 80ch; }

@media (max-width: 759px) {
  .tbl.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tbl.stack table,
  .tbl.stack tbody,
  .tbl.stack tfoot,
  .tbl.stack tr,
  .tbl.stack th,
  .tbl.stack td { display: block; width: auto; }
  .tbl.stack tr { border-top: 3px solid var(--ink); padding: 12px 0 14px; }
  .tbl.stack tbody tr:last-child { border-bottom: 1px solid var(--ink); }
  .tbl.stack tbody th,
  .tbl.stack tfoot th { border: 0; padding: 0 0 8px; font-size: 17px; }
  .tbl.stack td {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    column-gap: 12px;
    border: 0;
    border-top: 1px solid var(--hair);
    padding: 9px 0;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  .tbl.stack td::before {
    content: attr(data-label);
    padding-top: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .tbl.stack td.key { padding-left: 8px; padding-right: 8px; }
  .tbl.stack .amount { text-align: left; white-space: normal; }
  .tbl.stack tfoot tr { border-bottom: 3px solid var(--ink); }
  .tbl.stack tfoot td { border-top: 1px solid var(--hair); }
}

/* ---------- Encadrés ---------- */

.note { border: 1px solid var(--ink); padding: 18px 20px; margin: 32px 0; max-width: 68ch; }
.note .label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 8px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note p:last-child { margin-bottom: 0; }

.formula {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 68ch;
}
.formula span { color: var(--blue); padding: 0 2px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; margin: 8px 0 24px; }
.two h3 { margin: 16px 0 14px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.two .mark { color: var(--blue); }
@media (min-width: 760px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Index des guides ---------- */

.index { list-style: none; margin: 8px 0 0; padding: 0; border-top: 3px solid var(--ink); max-width: none !important; }
.index a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  column-gap: 14px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}
.index .i-n { font-size: 18px; font-weight: 700; color: var(--blue); line-height: 1.2; }
.index .i-t {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.index .i-d { display: block; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.index .i-a { justify-self: end; font-size: 24px; line-height: 1; transition: transform 0.15s ease; }
.index a:hover { color: var(--ink); }
.index a:hover .i-t { color: var(--blue); }
.index a:hover .i-a { transform: translateX(4px); color: var(--blue); }

/* ---------- FAQ ---------- */

.faq { border-bottom: 1px solid var(--ink); max-width: 68ch; }
.faq details { border-top: 1px solid var(--ink); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 15px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue); }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { margin: 0 0 12px; }

/* ---------- Pages guides ---------- */

.ghero { padding: 28px 0 56px; border-bottom: 1px solid var(--ink); }
.ghero .crumbs { margin-bottom: 36px; }
.ghero-num {
  margin: 28px 0 0;
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--blue);
  pointer-events: none;
}
.ghero h1 {
  margin: 0 0 28px;
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.ghero .meta { margin: 24px 0 0; font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .ghero { padding-bottom: 72px; }
  .ghero-main { grid-column: 1 / span 9; grid-row: 2; }
  .ghero-num { grid-column: 10 / span 3; grid-row: 2; justify-self: end; align-self: end; margin: 0; }
}

.figs { padding: 0; }
.figs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gap);
}
.figs li { padding: 22px 0; border-bottom: 1px solid var(--ink); }
.figs b {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--blue);
}
.figs span { display: block; max-width: 34ch; font-size: 15px; line-height: 1.45; }
@media (min-width: 760px) {
  .figs ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.wide { padding: 72px 0 0; }
.wide h2,
.article h2 {
  margin: 0 0 22px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  scroll-margin-top: 16px;
}
.wide h2 .n,
.article h2 .n {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.wide .intro { max-width: 68ch; margin: 0 0 8px; }

.article { padding: 64px 0 0; }
.article .prose-col h2 { margin-top: 72px; }
.article .prose-col > h2:first-child { margin-top: 0; }

.toc { margin-bottom: 48px; }
.toc p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.toc a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
}
.toc a span { color: var(--blue); font-weight: 700; }
.toc a:hover { color: var(--blue); }

@media (min-width: 900px) {
  .toc { grid-column: 1 / span 3; margin: 0; position: sticky; top: 24px; align-self: start; }
  .prose-col { grid-column: 5 / span 8; }
}

.next { padding: 96px 0 0; }
.next .kicker { margin-bottom: 16px; }

/* ---------- Checklist ---------- */

.check { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--ink); max-width: 68ch; }
.check li { border-bottom: 1px solid var(--hair); }
.check label {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  padding: 11px 0;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- Contact & mentions ---------- */

.contact-hero { padding: 28px 0 72px; border-bottom: 1px solid var(--ink); }
.contact-hero h1 {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.mail-big {
  display: inline-block;
  margin: 40px 0 0;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--blue);
  font-size: clamp(1.45rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-big:hover { border-bottom-color: var(--ink); }

.cols { padding-top: 56px; }
.cols h2 {
  margin: 0 0 14px;
  padding-top: 14px;
  border-top: 3px solid var(--ink);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}
.cols > div { margin-bottom: 40px; }
@media (min-width: 900px) {
  .cols > div:nth-child(1) { grid-column: 1 / span 6; }
  .cols > div:nth-child(2) { grid-column: 8 / span 5; }
}

.legal .prose-col h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 56px; }
.fineprint { font-size: 14px; color: var(--muted); }

/* ---------- Pied de page ---------- */

.site-footer { margin-top: 112px; padding: 56px 0 28px; background: var(--ink); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #b9c3ff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px var(--gap); }
.foot-mark {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.foot-mark i { display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.06em; background: var(--blue); }
.foot-brand p:not(.foot-mark) { max-width: 44ch; margin: 0; color: #d6d6d6; font-size: 15px; }
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #fff; }
.site-footer li a { display: block; padding: 10px 0; border-bottom: 1px solid #444; text-decoration: none; font-size: 15px; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid #fff;
  font-size: 13px;
  color: #cfcfcf;
}
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Impression ---------- */

@media print {
  .skip, .nav, .toc, .site-footer, .next, .actions, .ghero-num, .art { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; }
  .site-header, .ghero, .hero { border: 0; padding: 0 0 12pt; }
  .article, .sec, .wide { padding-top: 16pt; }
  .prose-col, .sec-body, .sec-head { grid-column: 1 / -1 !important; }
  .faq details > div { display: block; }
  .check li, .tbl tr { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .index .i-a { transition: none; }
}
