/* Pindavorse — feuille de style commune */

:root {
  --bg: #101a24;
  --bg-alt: #16232f;
  --bg-contrast: #e9edf0;
  --text: #e3e9ee;
  --muted: #8b9aa6;
  --text-contrast: #101a24;
  --muted-contrast: #4c5a66;
  --accent: #3fb3ae;
  --accent-2: #d8a15a;
  --rule: rgba(227, 233, 238, 0.16);
  --rule-contrast: rgba(16, 26, 36, 0.18);
  --rhythm: 72px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.9;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 179, 174, 0.5);
}

a:hover { border-bottom-color: var(--accent); }

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

/* ---------- Grille de linéature ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.margin-col {
  grid-column: 1 / 4;
  border-right: 1px solid var(--rule);
  padding-right: 20px;
  text-align: right;
  color: var(--muted);
}

.col-main { grid-column: 4 / 10; }
.col-wide { grid-column: 4 / 12; }

.band {
  padding: var(--rhythm) 0;
  background: var(--bg);
}

.band--alt { background: var(--bg-alt); }

.band--contrast {
  background: var(--bg-contrast);
  color: var(--text-contrast);
}

.band--contrast .margin-col {
  border-right-color: var(--rule-contrast);
  color: var(--muted-contrast);
}

.band--contrast .rule { background: var(--rule-contrast); }
.band--contrast .lead { color: var(--muted-contrast); }
.band--contrast .caption { color: var(--muted-contrast); }
.band--contrast a { color: #157f7b; border-bottom-color: rgba(21, 127, 123, 0.5); }
.band--contrast .initial { color: var(--text-contrast); }
.band--contrast li::marker { color: #157f7b; }

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

h1 {
  font-size: 40px;
  margin-bottom: calc(var(--rhythm) / 2);
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

h3 {
  font-size: 21px;
  margin: 40px 0 12px;
}

p { margin: 0 0 32px; }
p:last-child { margin-bottom: 0; }

.lead { color: var(--muted); }

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

.num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  display: block;
}

.initial {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 0.9;
  color: var(--text);
  display: block;
}

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0 0 32px;
}

.rule--thin { margin: 24px 0; }

/* ---------- En-tête et navigation ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--text);
  border-bottom: 0;
}

.brand:focus-visible { outline-offset: 4px; }

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

.site-nav li + li::before {
  content: "/";
  color: var(--accent-2);
  padding: 0 12px;
}

.site-nav a {
  border-bottom: 0;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

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

.hero {
  padding: calc(var(--rhythm) * 1.2) 0 var(--rhythm);
}

.hero h1 { position: relative; }

.hero h1 .initial {
  position: absolute;
  left: -124px;
  top: -8px;
  width: 104px;
  text-align: right;
  color: var(--accent-2);
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
  display: block;
}

.ruled {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}

.ruled p { margin-bottom: 24px; }

/* ---------- Listes ---------- */

ul.checklist,
ol.steps {
  padding-left: 22px;
  margin: 0 0 32px;
}

ul.checklist li,
ol.steps li { margin-bottom: 14px; }

ul.checklist li::marker { color: var(--accent); }
ol.steps li::marker { color: var(--accent-2); font-family: var(--serif); }

.defs { margin: 0 0 32px; }
.defs dt {
  font-family: var(--serif);
  font-size: 19px;
  margin-top: 24px;
  color: var(--text);
}
.band--contrast .defs dt { color: var(--text-contrast); }
.defs dd { margin: 6px 0 0; }

.table-plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  margin-bottom: 32px;
}
.table-plain th,
.table-plain td {
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule-contrast);
  vertical-align: top;
}
.table-plain th { font-family: var(--serif); font-weight: 400; }

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

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: var(--rhythm) 0;
}

.footer-inner {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
}

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

.footer-nav li + li::before {
  content: "·";
  color: var(--accent-2);
  padding: 0 12px;
}

.footer-nav a { border-bottom: 0; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }

.footer-contact { font-size: 15px; color: var(--muted); }
.footer-contact p { margin: 0 0 6px; }

/* ---------- Adaptatif ---------- */

@media (max-width: 900px) {
  :root { --rhythm: 44px; }

  body { font-size: 17px; line-height: 1.85; }

  .grid { grid-template-columns: 1fr; column-gap: 0; }

  .margin-col,
  .col-main,
  .col-wide { grid-column: 1 / -1; }

  .margin-col {
    border-right: 0;
    border-left: 1px solid var(--rule);
    padding-right: 0;
    padding-left: 16px;
    text-align: left;
    margin-bottom: 20px;
  }

  .hero h1 .initial {
    position: static;
    display: inline;
    width: auto;
    font-size: 1em;
    color: inherit;
  }

  .initial { font-size: 52px; }

  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }

  .site-header .wrap { padding-top: 20px; padding-bottom: 20px; }

  .footer-inner { border-left: 0; padding-left: 0; flex-direction: column; }
}

@media (max-width: 420px) {
  .site-nav ul { font-size: 14px; }
  .site-nav li + li::before { padding: 0 8px; }
}
