/* Surbanioke — feuille de style commune */

:root {
  --bg: #eef0f2;
  --bg-alt: #dfe3e7;
  --dark: #1b2733;
  --ink: #151a20;
  --muted: #636d78;
  --accent: #2c4a7c;
  --accent2: #a35a2a;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gap: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- planche ---------- */

.sheet {
  max-width: 1180px;
  margin: 40px auto;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 28px;
}

/* ---------- en-tête ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark);
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.masthead nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.masthead nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  border-bottom-color: var(--accent2);
}

/* ---------- hero ---------- */

.hero { padding: 52px 0 0; }

.hero h1 {
  grid-column: 1 / 9;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.12;
  margin: 0;
}

.hero .lede {
  grid-column: 1 / 8;
  margin: 0;
}

.hero .lede + .lede { margin-top: -8px; }

.specs {
  grid-column: 9 / 13;
  border: 1px solid var(--dark);
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  align-self: start;
}

.specs dl { margin: 0; }

.specs dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
}

.specs dd {
  margin: 2px 0 12px;
  color: var(--ink);
}

.specs dd:last-child { margin-bottom: 0; }

/* ---------- rythme des sections ---------- */

main section { margin-top: 88px; }

.rule {
  position: relative;
  height: 1px;
  background: var(--dark);
  margin: 88px 0 0;
}

.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: var(--dark);
}

.rule::before { left: 0; }
.rule::after { right: 0; }

.rule + section { margin-top: 44px; }

/* ---------- titres et texte ---------- */

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.25;
  margin: 0 0 4px;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  margin: 26px 0 2px;
}

.num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 6px;
}

.col-text {
  grid-column: 1 / 8;
}

.col-text > p:first-of-type { margin-top: 10px; }

.col-wide { grid-column: 1 / 11; }

.side {
  grid-column: 9 / 13;
  align-self: start;
  border: 1px solid var(--muted);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}

.side h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0 0 8px;
}

.side ul,
.side ol { margin: 0; padding-left: 18px; }

.side li { margin-bottom: 6px; }

.side li:last-child { margin-bottom: 0; }

.side p { margin: 0 0 8px; }

.side p:last-child { margin-bottom: 0; }

/* table décalée dans la marge droite */
.side--offset {
  grid-column: 8 / 13;
  border: 1px solid var(--accent2);
}

ul.checklist,
ol.steps {
  padding-left: 0;
  list-style: none;
  margin: 14px 0 0;
}

ul.checklist li,
ol.steps li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

ol.steps { counter-reset: step; }

ol.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent2);
}

.caption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.dl-flat {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 14px;
}

.dl-flat dt {
  font-family: var(--serif);
  font-size: 18px;
}

.dl-flat dd {
  margin: 2px 0 0;
  border-left: 1px solid var(--accent2);
  padding-left: 14px;
}

/* ---------- section contrastée ---------- */

.dark {
  background: var(--dark);
  color: var(--bg);
  margin-left: -40px;
  margin-right: -40px;
  padding: 56px 40px;
}

.dark h2,
.dark h3 { color: var(--bg); }

.dark .num { color: #c9835a; }

.dark a { color: #9db6dd; }

.dark .side {
  border: 1px solid #4a5a6b;
  color: var(--bg);
}

.dark .caption { color: #9aa6b2; }

.dark ul.checklist li::before { background: #9db6dd; }

/* ---------- contact ---------- */

.contact-line {
  font-family: var(--serif);
  font-size: 20px;
}

/* ---------- pied de page ---------- */

.site-footer {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  align-items: baseline;
  padding-bottom: 14px;
}

.footer-top .name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-rule {
  height: 1px;
  background: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 14px;
}

.footer-bottom nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* colonne de texte de la page À propos, tables empilées à droite */
.about-text { grid-row: 1 / span 3; }

@media (max-width: 900px) {
  .about-text { grid-row: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero h1 { font-size: 38px; grid-column: 1 / 13; }
  .hero .lede,
  .col-text,
  .col-wide,
  .specs,
  .side,
  .side--offset { grid-column: 1 / 13; }
  .specs { margin-top: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.75; }
  .sheet { margin: 16px; padding: 20px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  main section { margin-top: 52px; }
  .rule { margin-top: 52px; }
  .rule + section { margin-top: 28px; }
  .dark { margin-left: -20px; margin-right: -20px; padding: 36px 20px; }
  .site-footer { padding: 0 20px; margin-bottom: 32px; }
  .footer-top,
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
