/* nazzareno.fr — éditorial sobre, papier chaud, encre, un accent vert bouteille */

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-400.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/spectral-500.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/spectral-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibmplexmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibmplexmono-500.woff2") format("woff2");
}

:root {
  --paper: #f6f3ec;
  --ink: #201d18;
  --ink-soft: #6b6457;
  --accent: #2c5c42;
  --rule: #ddd6c8;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191713;
    --ink: #e9e4d8;
    --ink-soft: #9a9284;
    --accent: #7fb695;
    --rule: #35312a;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.wrap {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* ---- header ---- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(10px)) {
  header {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: blur(10px) saturate(1.15);
  }
}
header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
header a {
  color: var(--ink);
  text-decoration: none;
}
header a:hover {
  color: var(--accent);
}
header .brand {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header .nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}
header .lang {
  color: var(--ink-soft);
  white-space: nowrap;
}
header .lang a {
  color: var(--accent);
  /* souligné : la langue active ne doit pas se distinguer que par la couleur */
  text-decoration: underline;
  text-underline-offset: 3px;
}
header .contact {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
header .contact:hover,
header .contact:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
@media (max-width: 26rem) {
  header .wrap {
    gap: 0.6rem;
    font-size: 0.75rem;
  }
  header .nav {
    gap: 0.65rem;
  }
}

/* les ancres ne doivent pas passer sous le ruban */
[id] {
  scroll-margin-top: 4.5rem;
}

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

.hero {
  padding: 5.5rem 0 4.5rem;
}
.hero .kicker {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hero .lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.hero .links {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: 0.875rem;
}

/* entrée en douceur, désactivée si l'utilisateur préfère */
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero > *:nth-child(2) { animation-delay: 0.08s; }
  .hero > *:nth-child(3) { animation-delay: 0.16s; }
  .hero > *:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.6rem); }
    to { opacity: 1; transform: none; }
  }
}

/* ---- sections ---- */

section {
  border-top: 1px solid var(--rule);
  padding: 3.25rem 0;
}
.label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.label b {
  font-weight: 500;
  color: var(--accent);
  margin-right: 0.75rem;
}
section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
section p + p {
  margin-top: 1rem;
}
.muted {
  color: var(--ink-soft);
}
.meta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
}

/* listes d'offres et de projets */

.items {
  list-style: none;
  margin-top: 0.5rem;
}
.items li {
  border-top: 1px solid var(--rule);
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem;
}
.items li:first-child {
  border-top: none;
  padding-top: 0.5rem;
}
.items h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}
.items h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.items h3 a:hover,
.items h3 a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.items .more {
  font-family: var(--mono);
  font-size: 0.78125rem;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}
.items p {
  color: var(--ink-soft);
  font-size: 1rem;
}
@media (max-width: 40rem) {
  .items li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* étapes d'un engagement : ici la numérotation porte un ordre réel */

.subhead {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 2.25rem;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 1.25rem;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent);
  line-height: 1.75;
}
.steps strong {
  font-weight: 600;
}
.steps p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-top: 0.15rem;
}

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

.contact .big {
  display: inline-block;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  font-weight: 500;
  margin: 0.75rem 0 1.5rem;
}

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--rule);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.4rem;
  padding-bottom: 2.2rem;
  font-family: var(--mono);
  font-size: 0.78125rem;
  color: var(--ink-soft);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
footer a {
  color: var(--ink-soft);
}
footer a:hover {
  color: var(--accent);
}

/* ---- articles projet ---- */

.article main {
  padding: 3.25rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.article .kicker {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.article h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.article .standfirst {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 38rem;
}
.article .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
}
.article .facts span {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  color: var(--ink-soft);
}
.article h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1.6rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
}
.article p,
.article ul {
  max-width: 38rem;
}
.article ul {
  margin-left: 1.15rem;
}
.article li + li {
  margin-top: 0.4rem;
}
.article .aside {
  border-left: 2px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1.1rem;
  color: var(--ink-soft);
}

/* planche image sur fond sombre, pour les rendus graphiques */
figure.plate {
  margin: 0.75rem 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: #0c1018;
}
figure.plate img {
  display: block;
  width: 100%;
  height: auto;
}
figure.plate figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #8a93a4;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid #1c2432;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: space-between;
}
figure.plate figcaption a {
  color: #9fc7ae;
}

.backlink {
  font-family: var(--mono);
  font-size: 0.8125rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
  margin-top: 1rem;
}

/* ---- pages légales ---- */

.legal main {
  padding: 3.5rem 0 4rem;
}
.legal h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.legal .updated {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
}
.legal p + p {
  margin-top: 0.75rem;
}
.legal ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
}
.legal li + li {
  margin-top: 0.35rem;
}
