:root {
  --primary: #d66a3a;
  --primary-dark: #a24725;
  --secondary: #2f4a3c;
  --ink: #18221c;
  --muted: #62665a;
  --paper: #f3efe3;
  --surface: #fffdf5;
  --line: #cfc7b4;
  --blue: #1f6ff2;
  --shadow: 0 18px 40px rgba(24, 34, 28, .11);
  --sans: "Trebuchet MS", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(214, 106, 58, .08), transparent 28rem),
    linear-gradient(90deg, rgba(47, 74, 60, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 74, 60, .03) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
  font-family: var(--serif);
  line-height: 1.65;
}

a { color: inherit; text-decoration-color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: .5rem; z-index: 10;
  background: var(--secondary); color: #fff; padding: .5rem .75rem;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 2px solid rgba(47, 74, 60, .25);
  background: rgba(255, 253, 245, .86);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-inner, .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: .7rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: none;
  line-height: .95;
  color: #071735;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 4px;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem .95rem;
  font-family: var(--sans);
  font-weight: 700;
}
.nav a {
  text-decoration: none;
  padding: .45rem .15rem;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"], .nav a:hover { border-color: var(--primary); color: var(--ink); }

.page-main { padding: 1.2rem 0 3rem; }
.note-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  padding: .55rem 0;
  font-family: var(--sans);
  color: var(--secondary);
  font-weight: 700;
}
.note-row span { color: var(--primary-dark); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(320px, 1.18fr);
  gap: 2rem;
  align-items: center;
  padding: 2.3rem 0 2rem;
}
.eyebrow, .kicker {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3 {
  font-family: var(--sans);
  line-height: 1.07;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(2.35rem, 7vw, 5.6rem);
  margin: .25rem 0 .8rem;
}
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .45rem; }
.lead { font-size: clamp(1.08rem, 2vw, 1.35rem); color: #30382f; margin: 0 0 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px;
  border: 2px solid var(--secondary);
  background: var(--secondary);
  color: #fff;
  padding: .55rem .8rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: none;
}
.btn.alt { background: transparent; color: var(--secondary); }
.btn:hover { background: var(--primary); border-color: var(--primary); color: #111; }

.hero-visual {
  position: relative;
  border: 2px solid var(--secondary);
  box-shadow: var(--shadow);
  transform: rotate(.4deg);
  background: var(--surface);
}
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.caption {
  font-size: .86rem;
  color: var(--muted);
  padding: .45rem .65rem;
  border-top: 1px solid var(--line);
}
.sticker {
  position: absolute;
  right: -1rem;
  top: 1rem;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--primary);
  color: #111;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 900;
  border: 2px solid #111;
}

.section {
  padding: 1.6rem 0;
  border-top: 2px solid rgba(47, 74, 60, .26);
}
.section-head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: end;
  margin-bottom: 1rem;
}
.section-head p { margin: .2rem 0 0; color: var(--muted); max-width: 58ch; }

.front-grid {
  display: grid;
  grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
  gap: 1.4rem;
}
.timeline {
  border-right: 1px solid var(--line);
  padding-right: 1.1rem;
}
.timeline ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: .8rem;
}
.time {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--primary-dark);
}
.timeline p { margin: 0; }

.article-strip {
  display: grid;
  gap: 1rem;
}
.article-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.article-card h3 a, .index-entry h3 a { text-decoration-thickness: 2px; }
.meta {
  display: flex; flex-wrap: wrap; gap: .45rem .8rem;
  color: var(--muted);
  font-size: .88rem;
  font-family: var(--sans);
}
.tag {
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.rubric-grid, .guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.field-card, .newsletter, .empty-state, .contact-panel {
  background: rgba(255, 253, 245, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.field-card {
  min-height: 100%;
  position: relative;
}
.number {
  font-family: var(--sans);
  color: var(--primary-dark);
  font-weight: 900;
}
.field-card p, .index-entry p { color: #394238; margin: .25rem 0 .7rem; }

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--secondary);
  color: #fff;
}
.newsletter p { margin: .2rem 0 0; color: rgba(255,255,255,.82); }
.newsletter form, .contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
label { font-family: var(--sans); font-weight: 800; }
input, textarea, select {
  min-height: 42px;
  border: 2px solid rgba(47, 74, 60, .45);
  border-radius: 4px;
  background: #fff;
  padding: .55rem .65rem;
  font: inherit;
}
textarea { width: 100%; min-height: 140px; }
.newsletter input { min-width: min(280px, 100%); }
button {
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: #111;
  padding: .55rem .8rem;
  min-height: 42px;
  font-family: var(--sans);
  font-weight: 900;
  cursor: pointer;
}

.breadcrumb {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--muted);
  margin: 1rem 0;
}
.breadcrumb a { color: var(--secondary); }
.rubriques-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 1.4rem;
  align-items: start;
  margin: 1rem 0 1.8rem;
}
.rubriques-intro p {
  max-width: 74ch;
  margin: 0 0 1rem;
}
.rubriques-visual {
  margin: 0;
  transform: rotate(-.35deg);
}
.rubriques-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.linked-articles {
  margin: .45rem 0 0;
  padding-left: 1.1rem;
}
.linked-articles li { margin: .2rem 0; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}
.article-body {
  background: rgba(255, 253, 245, .6);
  border-left: 4px solid var(--primary);
  padding: 0 0 0 1.2rem;
}
.article-body p { margin: 0 0 1.05rem; }
.article-body h2 { margin-top: 1.7rem; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.article-figure {
  margin: 1rem 0 1.2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.side-note {
  position: sticky;
  top: 86px;
  border-left: 2px solid var(--secondary);
  padding-left: 1rem;
  color: var(--muted);
}
.useful-list, .comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  background: var(--surface);
}
.comparison th, .comparison td {
  border: 1px solid var(--line);
  padding: .65rem;
  text-align: left;
  vertical-align: top;
}
.comparison th { font-family: var(--sans); background: rgba(47, 74, 60, .08); }
.faq details {
  border-top: 1px solid var(--line);
  padding: .75rem 0;
}
.faq summary { cursor: pointer; font-family: var(--sans); font-weight: 800; }

.index-list {
  display: grid;
  gap: 1rem;
}
.index-entry {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.index-entry .number {
  border: 2px solid var(--primary);
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 999px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.site-footer {
  background: #09172a;
  color: #fff;
  padding: 1.6rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}
.footer-grid a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; justify-content: flex-end; }
.small { font-size: .88rem; color: var(--muted); }
.site-footer .small { color: rgba(255,255,255,.72); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .header-inner, .hero, .front-grid, .article-layout, .newsletter, .footer-grid, .two-col, .rubriques-intro {
    grid-template-columns: 1fr;
  }
  .nav { justify-content: flex-start; }
  .timeline { border-right: 0; padding-right: 0; }
  .rubric-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .side-note { position: static; border-left: 0; border-top: 2px solid var(--secondary); padding: 1rem 0 0; }
}
@media (max-width: 620px) {
  .article-card, .index-entry { grid-template-columns: 1fr; }
  .rubric-grid, .guide-grid { grid-template-columns: 1fr; }
  .sticker { right: .5rem; top: .5rem; width: 60px; height: 60px; }
  .header-inner { width: min(100% - 20px, 1180px); }
  .wrap { width: min(100% - 22px, 1180px); }
  h1 { font-size: clamp(2.2rem, 14vw, 3.8rem); }
}
