@font-face {
  font-family: "IBM Plex Serif";
  src: url("../bief-lettres/IBMPlexSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("../bief-lettres/IBMPlexSerif-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("../bief-lettres/IBMPlexSerif-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../bief-lettres/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../bief-lettres/IBMPlexSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../bief-lettres/IBMPlexSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --mousse: #3f5a4a;
  --ardoise: #2b3340;
  --brume: #e4e8e6;
  --fer: #8a6a4b;
  --ecume: #c9d4cf;
  --ecume-claire: #f3f6f4;
  --lait: #f7f8f6;
  --mesure: 3.6rem;
  --fil: 1px;
}

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

html,
body {
  margin: 0;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", Georgia, sans-serif;
  color: var(--ardoise);
  background: var(--brume);
  line-height: 1.55;
  min-height: 100%;
}

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

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

a:hover {
  color: var(--ardoise);
}

h1,
h2,
h3,
.marque {
  font-family: "IBM Plex Serif", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--lait);
  padding: 0.4rem 0.7rem;
}

.fil-eau {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 1.1rem;
  background: var(--ecume-claire);
  border-bottom: var(--fil) solid var(--mousse);
}

.fil-eau__trait {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--mousse), var(--fer), var(--mousse));
  transform: translateY(-50%);
}

.fil-eau__marque {
  position: absolute;
  left: max(1rem, var(--mesure));
  top: 50%;
  transform: translateY(-50%);
  background: var(--lait);
  border: 1px solid var(--mousse);
  color: var(--mousse);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 0.45rem;
  white-space: nowrap;
}

.barre {
  position: sticky;
  top: 1.1rem;
  z-index: 39;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem 0.65rem max(1rem, var(--mesure));
  background: color-mix(in srgb, var(--brume) 88%, white);
  border-bottom: var(--fil) solid color-mix(in srgb, var(--mousse) 35%, var(--ecume));
}

.marque {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ardoise);
  min-width: 9rem;
}

.marque strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.marque small {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mousse);
}

.stations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.stations a {
  text-decoration: none;
  color: var(--ardoise);
  font-size: 0.82rem;
  border-bottom: 1px solid transparent;
}

.stations a[aria-current="page"],
.stations a:hover {
  border-bottom-color: var(--fer);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ecume);
  color: var(--ardoise);
  text-decoration: none;
  border: 1px solid var(--fer);
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.cta:hover {
  background: #dbe4df;
  color: var(--ardoise);
}

.cta--fer {
  background: #e8d8c4;
  border-color: var(--fer);
  color: var(--ardoise);
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.4rem;
  border: 1px solid var(--ardoise);
  background: var(--lait);
  padding: 0.4rem;
}

.burger span {
  display: block;
  height: 2px;
  margin: 0.32rem 0;
  background: var(--ardoise);
}

.limni {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--mesure);
  z-index: 30;
  pointer-events: none;
  border-right: var(--fil) dashed color-mix(in srgb, var(--mousse) 45%, transparent);
}

.limni ol {
  list-style: none;
  margin: 5.4rem 0 0;
  padding: 0;
  height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.limni li {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mousse);
  padding-left: 0.35rem;
  border-top: 1px solid var(--mousse);
}

.chantier {
  margin-left: var(--mesure);
}

.nivea {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  border-bottom: 2px solid var(--mousse);
  min-height: 22rem;
  background: var(--lait);
}

.nivea--brume {
  background: var(--brume);
}

.nivea--ecume {
  background: var(--ecume);
}

.nivea--mousse {
  background: var(--mousse);
  color: var(--lait);
}

.nivea--mousse a {
  color: #e8d8c4;
}

.nivea--aval {
  grid-template-columns: 4.2rem minmax(0, 1.05fr) minmax(0, 1fr);
}

.nivea--aval .nivea__chair {
  order: 3;
}

.nivea--pleine {
  grid-template-columns: 4.2rem minmax(0, 1fr);
}

.nivea--pleine .nivea__cliche {
  grid-column: 2;
  min-height: 16rem;
}

.nivea__cote {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "IBM Plex Serif", serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fer);
  padding: 1rem 0.4rem;
  border-right: var(--fil) solid color-mix(in srgb, var(--fer) 50%, var(--ecume));
}

.nivea--mousse .nivea__cote {
  color: var(--ecume);
  border-right-color: color-mix(in srgb, var(--lait) 30%, var(--mousse));
}

.nivea__chair {
  padding: 1.6rem 1.4rem 2rem;
  max-width: 40rem;
}

.nivea__ruban {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fer);
}

.nivea--mousse .nivea__ruban {
  color: #e8d8c4;
}

.nivea h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 0.8rem;
}

.nivea h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 0 0 0.7rem;
}

.nivea__cliche {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  border-left: var(--fil) solid color-mix(in srgb, var(--mousse) 25%, var(--ecume));
}

.nivea__cliche img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.lede {
  font-size: 1.08rem;
}

.plan-hydro {
  margin: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--mousse) 12%, transparent) 12px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--mousse) 10%, transparent) 12px
    ),
    var(--ecume-claire);
  border-bottom: 2px solid var(--mousse);
  padding: 1.2rem max(1rem, var(--mesure)) 1.6rem;
}

.plan-hydro figcaption {
  font-size: 0.78rem;
  color: var(--mousse);
  margin-top: 0.6rem;
}

.plan-hydro svg {
  width: 100%;
  height: auto;
  display: block;
}

.plan-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.plan-legende a {
  text-decoration: none;
  border-bottom: 1px solid var(--fer);
}

.profil-long {
  margin: 0;
  padding: 1.4rem max(1rem, var(--mesure)) 1.8rem;
  background: var(--lait);
  border-bottom: 2px solid var(--mousse);
}

.profil-long h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}

.profil-long svg {
  width: 100%;
  height: auto;
}

.journal-cote {
  display: block;
  border-top: 2px solid var(--mousse);
  background: var(--lait);
}

.journal-cote + .journal-cote {
  border-top-style: dashed;
}

.journal-cote a {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(12rem, 22rem);
  text-decoration: none;
  color: inherit;
  min-height: 11rem;
}

.journal-cote time {
  padding: 1.1rem 0.8rem;
  font-family: "IBM Plex Serif", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--mousse);
  border-right: var(--fil) dashed var(--fer);
}

.journal-cote div {
  padding: 1.1rem 1.2rem;
}

.journal-cote h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.journal-cote img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 11rem;
}

.faq-rail details {
  border-bottom: 1px solid var(--mousse);
  background: var(--lait);
}

.faq-rail summary {
  cursor: pointer;
  padding: 1rem 1.2rem 1rem max(1.2rem, var(--mesure));
  font-family: "IBM Plex Serif", serif;
  font-size: 1.15rem;
  list-style: none;
}

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

.faq-rail details[open] summary {
  background: var(--ecume);
}

.faq-rail details p {
  margin: 0;
  padding: 0 1.2rem 1.2rem max(1.2rem, var(--mesure));
  max-width: 46rem;
}

.feuille {
  padding: 1.6rem 1.2rem 2.4rem max(1.2rem, calc(var(--mesure) + 0.4rem));
  max-width: 46rem;
}

.feuille h1 {
  font-size: 2.2rem;
}

form {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
}

label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.86rem;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ardoise);
  background: var(--lait);
  border: 1px solid var(--ardoise);
  padding: 0.55rem 0.65rem;
}

textarea {
  min-height: 8rem;
}

.form-ok,
.form-err {
  display: none;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--mousse);
  background: var(--ecume);
}

.form-err {
  border-color: var(--fer);
  background: #e8d8c4;
}

.pied {
  margin-left: var(--mesure);
  background: var(--ardoise);
  color: var(--brume);
  padding: 1.6rem 1.2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.pied a {
  color: var(--ecume);
}

.pied h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pied li + li {
  margin-top: 0.3rem;
}

.cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 22rem;
  background: var(--lait);
  border: 1px solid var(--ardoise);
  padding: 0.9rem;
  display: none;
}

.cookie.is-on {
  display: block;
}

.cookie p {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
}

.cookie__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie button {
  font: inherit;
  cursor: pointer;
  background: var(--ecume);
  color: var(--ardoise);
  border: 1px solid var(--fer);
  padding: 0.4rem 0.7rem;
}

.mention-demo {
  font-size: 0.78rem;
  opacity: 0.8;
}

@media (max-width: 880px) {
  :root {
    --mesure: 0px;
  }

  .limni {
    display: none;
  }

  .barre {
    padding-left: 1rem;
  }

  .stations {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--lait);
    border-bottom: 2px solid var(--mousse);
    padding: 0.8rem 1rem 1.1rem;
    flex-direction: column;
    gap: 0.7rem;
  }

  .stations.is-open {
    display: flex;
  }

  .cta--desk {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .nivea,
  .nivea--aval,
  .nivea--pleine {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .nivea--aval .nivea__chair {
    order: 0;
  }

  .nivea__cliche,
  .nivea--pleine .nivea__cliche {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: var(--fil) solid var(--mousse);
  }

  .nivea__cliche img {
    min-height: 14rem;
  }

  .journal-cote a {
    grid-template-columns: 5.2rem minmax(0, 1fr);
  }

  .journal-cote img {
    grid-column: 1 / -1;
  }

  .pied {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .fil-eau__marque {
    left: 1rem;
  }
}
