:root {
  --black: #141414;
  --paper: #faf8f3;
  --cobalt: #2a3f86;
  --rule: #e6e1d6;
  --ink: #161616;
  --white: #ffffff;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --measure: min(1120px, calc(100% - 2rem));
  --inset: max(1rem, calc((100% - 1120px) / 2));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sans);
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  color: var(--ink);
}

button {
  cursor: pointer;
}

a {
  color: var(--cobalt);
}

::selection {
  background: var(--cobalt);
  color: var(--white);
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--black);
  border: 1px solid var(--black);
  padding: 0.55rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: var(--measure);
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--cobalt);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 4.25rem;
  padding: 0.85rem var(--inset);
  background: var(--white);
  border-bottom: 4px solid var(--black);
}

.wordmark {
  margin-right: auto;
  color: var(--black);
  font-family: var(--serif);
  font-weight: 600;
  font-synthesis: weight;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--cobalt);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.js .nav-toggle {
  display: inline-flex;
}

.site-nav {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  order: 3;
  border-top: 1px solid var(--rule);
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.site-nav a:hover {
  color: var(--cobalt);
}

.chips {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.chips-row {
  display: flex;
  overflow-x: auto;
  padding-inline: var(--inset);
  scroll-snap-type: x proximity;
}

.chips button {
  flex: 0 0 auto;
  padding: 0.9rem 1.05rem;
  background: var(--white);
  color: var(--black);
  border: 0;
  border-right: 1px solid var(--rule);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: start;
}

@media (max-width: 700px) {
  .chips button {
    padding: 0.85rem 0.7rem;
    font-size: 0.9rem;
  }

  .chips::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1.6rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--white));
    pointer-events: none;
  }
}

.chips button:hover {
  color: var(--cobalt);
  box-shadow: inset 0 -2px 0 var(--cobalt);
}

.hero {
  padding-top: 0.5rem;
}

.hero-grid {
  padding: 1.75rem 0 1.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  text-wrap: balance;
}

.sommaire {
  margin-top: 1.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.sommaire-label {
  margin-bottom: 0.35rem;
  color: var(--cobalt);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sommaire a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.42rem 0;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  border-top: 1px solid var(--rule);
}

.sommaire ol a span {
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 1.6rem;
}

.sommaire ul {
  margin-top: 0.35rem;
}

.sommaire a:hover {
  color: var(--cobalt);
}

.hero-band {
  margin: 0;
}

.hero-band img {
  width: 100%;
  height: clamp(7.5rem, 16vw, 13.5rem);
  object-fit: cover;
  object-position: 68% 42%;
}

.hero-band figcaption {
  width: var(--measure);
  margin: 0.55rem auto 0;
  padding-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
}

.ouverture {
  padding: 2.5rem 0 0.5rem;
}

.lede {
  max-width: 22em;
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.28;
  color: var(--black);
  text-wrap: pretty;
}

.ouverture p:last-child {
  max-width: 40rem;
  padding-left: 1rem;
  border-left: 2px solid var(--cobalt);
}

.bloc {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
  padding-top: 1.15rem;
  border-top: 4px solid var(--black);
}

.section-head h2,
.dialog-barre h2,
.resume h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-synthesis: weight;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--black);
  text-wrap: pretty;
}

.chapeau,
.cadre-texte p,
.colonnes p,
.temps p,
.developpement,
.dialog-corps p,
.footer-note {
  color: var(--ink);
}

.chapeau {
  max-width: 38rem;
  margin-top: 0.85rem;
}

.entree {
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}

.entree:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.indice {
  margin: 0;
  color: var(--cobalt);
  font-family: var(--serif);
  font-weight: 600;
  font-synthesis: weight;
  font-size: 1.85rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.entree h3,
.colonnes h3,
.temps h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-weight: 600;
  font-synthesis: weight;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: var(--black);
}

.definition {
  max-width: 40rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--black);
}

.developpement {
  max-width: 40rem;
  margin-top: 0.75rem;
}

.confusion {
  max-width: 40rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-size: 0.98rem;
}

.confusion span {
  color: var(--cobalt);
  font-weight: 600;
}

.confusion span::after {
  content: " — ";
  color: var(--ink);
  font-weight: 400;
}

.entree figure,
.bande,
.planche,
.diptyque figure {
  margin-top: 1.15rem;
}

.entree figure img,
.bande img,
.diptyque img {
  width: 100%;
  height: clamp(11rem, 28vw, 18rem);
  object-fit: cover;
}

figcaption {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}

.borne {
  margin-top: 1.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--black);
  max-width: 36rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--black);
}

.colonnes {
  display: grid;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.colonnes article {
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid var(--rule);
}

.colonnes article:first-child {
  border-top: 0;
}

.planche {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-top: 1.75rem;
}

.planche img {
  width: 100%;
  height: auto;
}

.planche figcaption {
  margin-top: 0;
}

.planche figcaption p + p {
  margin-top: 0.45rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.cadre-texte {
  display: grid;
  gap: 0.9rem;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.diptyque {
  display: grid;
  border-top: 1px solid var(--rule);
}

.diptyque figure {
  margin-top: 0;
  padding-top: 0;
}

.diptyque figure + figure {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.temps-liste {
  margin-top: 0.5rem;
}

.temps {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}

.temps:last-child {
  border-bottom: 1px solid var(--rule);
}

.temps .indice {
  font-size: 1.35rem;
  padding-top: 0.15rem;
}

.temps h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.temps p {
  margin-top: 0.35rem;
  max-width: 40rem;
}

.faq {
  border-bottom: 1px solid var(--rule);
}

details {
  border-top: 1px solid var(--rule);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--black);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--cobalt);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  max-width: 40rem;
  margin: 0 0 1.15rem;
}

.bloc-ecrire {
  padding-bottom: 4rem;
}

.feuille {
  background: var(--paper);
  border: 1px solid var(--black);
  padding: 1.15rem;
}

.fields {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.field label,
.case {
  color: var(--black);
}

.field > label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.72rem 0.75rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--black);
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

select {
  appearance: none;
  padding-right: 2.2rem;
  background-color: var(--white);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cobalt) 50%),
    linear-gradient(135deg, var(--cobalt) 50%, transparent 50%);
  background-position:
    calc(100% - 1.1rem) 55%,
    calc(100% - 0.72rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.case {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.case input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--cobalt);
}

[aria-invalid="true"] {
  border-color: var(--cobalt);
  box-shadow: inset 3px 0 0 var(--cobalt);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0;
}

.btn-paper {
  background: var(--paper);
  color: var(--black);
  border: 1px solid var(--black);
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--white);
  border: 1px solid var(--cobalt);
}

.btn-paper:hover,
.btn-cobalt:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.resume {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.resume p {
  margin-top: 0.45rem;
}

.resume pre {
  margin: 0.9rem 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--black);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--white);
  color: var(--ink);
  border-top: 4px solid var(--black);
  padding: 1.75rem 0 2rem;
}

.marque {
  font-family: var(--serif);
  font-weight: 600;
  font-synthesis: weight;
  font-size: 1.45rem;
  color: var(--black);
  letter-spacing: -0.02em;
}

.footer-note {
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 1.1rem;
}

.footer-nav a,
.footer-nav button,
.lien {
  padding: 0;
  background: none;
  border: 0;
  color: var(--black);
  font: 500 0.95rem/1.4 var(--sans);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-nav a:hover,
.footer-nav button:hover,
.lien:hover {
  color: var(--cobalt);
}

.colophon {
  margin-top: 1.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 500;
}

.cookie {
  position: fixed;
  z-index: 50;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem var(--inset) 1.1rem;
  background: var(--white);
  color: var(--ink);
  border-top: 4px solid var(--black);
}

.cookie p {
  max-width: 40rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  align-items: center;
}

dialog {
  width: min(40rem, calc(100% - 1.25rem));
  max-height: min(40rem, calc(100dvh - 1.5rem));
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-top: 4px solid var(--black);
}

dialog::backdrop {
  background: rgba(20, 20, 20, 0.48);
}

.dialog-feuille {
  padding: 1.1rem 1.15rem 1.35rem;
}

.dialog-barre {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.dialog-barre h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.dialog-corps p + p {
  margin-top: 0.8rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.skip:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.btn-cobalt:focus-visible {
  outline-color: var(--black);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(42, 63, 134, 0.22);
}

#payer,
#garder,
#financer,
#couvrir,
#transmettre,
#mecanismes,
#lectures,
#cadre,
#decider,
#questions,
#ecrire,
#contenu {
  scroll-margin-top: 5.25rem;
}

@media (min-width: 701px) {
  .site-header {
    flex-wrap: nowrap;
  }

  .js .nav-toggle,
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    order: 0;
    gap: 1.35rem;
    border-top: 0;
  }

  .site-nav a {
    padding: 0.2rem 0;
    border-bottom: 0;
  }

  .site-nav a:hover {
    box-shadow: inset 0 -1px 0 var(--cobalt);
  }

  .cookie {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 720px) {
  .entree {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: start;
  }

  .fields {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
  }

  .full {
    grid-column: 1 / -1;
  }

  .diptyque {
    grid-template-columns: 1fr 1fr;
  }

  .diptyque figure + figure {
    padding-top: 0;
    padding-left: 1.25rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .diptyque figure:first-child {
    padding-right: 1.25rem;
  }

  .planche {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: 1.5rem 2rem;
  }
}

@media (min-width: 860px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    gap: 2.5rem;
    align-items: start;
    padding: 2.6rem 0 1.8rem;
  }

  .sommaire {
    margin-top: 0.35rem;
    padding: 0.15rem 0 0 1.2rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .colonnes {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .colonnes article {
    padding: 1.35rem 1.2rem 1.6rem;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .colonnes article:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 360px) {
  :root {
    --measure: min(1120px, calc(100% - 1.25rem));
    --inset: 0.75rem;
  }

  .wordmark,
  .marque {
    font-size: 1.15rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  .feuille,
  .dialog-feuille {
    padding: 0.9rem;
  }

  .dialog-barre {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .nav-toggle,
  .chips,
  .cookie,
  dialog {
    display: none !important;
  }

  .site-nav,
  .js .site-nav {
    display: flex !important;
    flex-direction: row;
    gap: 1rem;
    border: 0;
  }

  .site-header,
  .site-footer {
    position: static;
  }

  .hero-band img,
  .entree figure img,
  .bande img,
  .diptyque img {
    height: 8rem;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
