:root {
  --slate: #243034;
  --fog: #eef1f0;
  --teal: #1f6f6a;
  --teal-deep: #185852;
  --paper: #f7f8f6;
  --ink: #1a2220;
  --white: #ffffff;
  --serif: "Lora", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
}

*,
*::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: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.bord-index,
figcaption,
table caption {
  font-family: var(--serif);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.15rem 0 0.35rem;
}

p {
  margin-bottom: 0.8rem;
}

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

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

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--teal);
  color: var(--white);
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus,
.skip:focus-visible {
  transform: none;
  outline-color: var(--paper);
}

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(40rem, calc(100% - 2.5rem));
}

.lede {
  font-size: 1.12rem;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  background: var(--fog);
  color: var(--slate);
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--slate);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  text-decoration: none;
  line-height: 1;
}

.mark {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  background: linear-gradient(to right, var(--teal) 0 42%, var(--paper) 42% 58%, var(--teal) 58% 100%);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  text-decoration: underline;
  color: var(--ink);
}

.nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
}

.nav a.nav-cta,
.nav a.nav-cta:hover {
  color: var(--white);
  text-decoration: none;
  background: var(--teal);
}

.nav a.nav-cta:hover {
  background: var(--teal-deep);
}

.hero {
  padding: 3.5rem 0 3rem;
}

.bords {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.bord {
  border-top: 4px solid var(--teal);
  padding-top: 1rem;
  min-width: 0;
}

.bord-index {
  margin: 0;
  color: var(--teal);
  font-weight: 600;
  font-size: 1.05rem;
}

.bord h2 {
  font-size: 1.55rem;
  margin-bottom: 0.2rem;
}

.bord p {
  margin-bottom: 0;
}

.photo-band {
  margin: 0;
}

.photo-band img {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(14rem, 46vw, 32rem);
  object-fit: cover;
}

.photo-band figcaption,
.figure figcaption {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0.7rem auto 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.decalages {
  background: var(--fog);
  padding: 3.5rem 0;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 1.25rem;
}

table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  background: var(--paper);
  color: var(--ink);
}

caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.8rem 0.2rem 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid var(--slate);
  width: 25%;
}

thead th {
  background: var(--slate);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.98rem;
}

tbody th {
  font-family: var(--serif);
  font-weight: 600;
  background: var(--paper);
  color: var(--ink);
}

.papiers {
  padding: 3.5rem 0 1rem;
}

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

.figure {
  margin: 2rem 0 0.4rem;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-wide img {
  width: 100%;
  height: clamp(16rem, 48vw, 30rem);
  object-fit: cover;
}

.figure-inset,
.figure-end,
.figure-portrait {
  width: min(72rem, calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
}

.figure-inset {
  max-width: 46rem;
  margin-left: max(1.25rem, calc((100% - 72rem) / 2));
}

.figure-end {
  max-width: 40rem;
  margin-right: max(1.25rem, calc((100% - 72rem) / 2));
  margin-left: auto;
}

.figure-portrait {
  max-width: 22rem;
}

.figure-inset figcaption,
.figure-end figcaption,
.figure-portrait figcaption {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.note {
  background: var(--fog);
  color: var(--slate);
  padding: 2.4rem 0;
  margin-top: 2.5rem;
}

.note h2 {
  font-size: 1.7rem;
}

.note p {
  max-width: 40rem;
  margin-bottom: 0;
  font-size: 1.12rem;
}

.questions {
  padding: 3.5rem 0;
}

.faq details {
  border-top: 1px solid var(--slate);
  padding: 0.85rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--slate);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

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

.faq summary::before {
  content: "+";
  color: var(--teal);
  font-weight: 700;
  flex: 0 0 auto;
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0.35rem 1.4rem;
}

.ecrire {
  background: var(--fog);
  padding: 3.5rem 0 4rem;
}

form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--slate);
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 1rem;
}

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

.hint {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.check-field {
  gap: 0.7rem;
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 600;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--teal);
}

.btn-teal,
.btn-fog {
  display: inline-block;
  border-radius: 0;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

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

.btn-teal:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--white);
}

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

.btn-fog:hover {
  background: var(--paper);
  color: var(--slate);
}

.ecrire .btn-teal,
.cookie .btn-teal,
.cookie .btn-fog,
.check-field .btn-fog {
  justify-self: start;
}

.resume-bloc {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 4px solid var(--teal);
}

.resume-bloc h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

#resume {
  white-space: pre-wrap;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--slate);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

#copie-etat {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  font-weight: 600;
}

.site-footer {
  background: var(--slate);
  color: var(--paper);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
}

.site-footer button {
  background: none;
  border: none;
  padding: 0;
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.site-footer button:hover {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--paper);
}

.skip:focus-visible {
  outline: 2px solid var(--paper);
  box-shadow: 0 0 0 5px var(--slate);
}

body:has(#cookie:not([hidden])) {
  padding-bottom: 8.5rem;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--fog);
  color: var(--slate);
  border-top: 4px solid var(--teal);
  padding: 1rem 1.25rem;
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  margin: 0;
  max-width: 40rem;
  color: var(--slate);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

dialog {
  border: none;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(38rem, calc(100% - 1.5rem));
  max-height: calc(100% - 2rem);
}

dialog::backdrop {
  background: rgba(26, 34, 32, 0.62);
}

.dialog-card {
  padding: 1.25rem 1.3rem 1.5rem;
}

.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.dialog-bar h2 {
  margin: 0;
  font-size: 1.6rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .bords {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .figure-inset,
  .figure-end {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    width: min(72rem, calc(100% - 2.5rem));
  }

  body:has(#cookie:not([hidden])) {
    padding-bottom: 22rem;
  }

  .cookie {
    align-items: stretch;
  }

  .cookie-actions,
  .cookie-actions button {
    width: 100%;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 1rem;
  }

  .wrap,
  .wrap-narrow,
  .photo-band figcaption,
  .figure figcaption,
  .figure-inset,
  .figure-end,
  .figure-portrait {
    width: calc(100% - 1.4rem);
  }

  .site-header,
  .cookie {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  h1 {
    font-size: 1.85rem;
  }
}

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