@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --encre: #12294a;
  --encre-douce: #4a5d74;
  --papier: #eff2f4;
  --calque: #fafbfc;
  --trait: #b4c0cb;
  --cote: #c4381a;
  --gouttiere: clamp(16px, 4vw, 48px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

.feuille {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* En-tête */
.entete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 28px;
}

.marque {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.entete-tel {
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

/* Ouverture */
.ouverture {
  padding-block: clamp(32px, 7vw, 88px) clamp(48px, 7vw, 88px);
}

h1 {
  max-width: 13.5em;
  font-size: clamp(2.5rem, 7.1vw, 5.75rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.chapo {
  max-width: 34em;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.bouton {
  display: inline-block;
  padding: 15px 24px;
  background: var(--encre);
  color: var(--calque);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.bouton:hover {
  background: var(--cote);
  color: var(--calque);
}

.lien-mail {
  font-weight: 500;
}

/* La cote : de votre appel à votre maquette */
.cote {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  margin-top: clamp(48px, 7vw, 88px);
}

.cote-borne {
  width: 1px;
  height: 48px;
  background: var(--encre);
}

.cote-ligne {
  position: relative;
  height: 48px;
  overflow: hidden;
}

.cote-ligne::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 2px;
  background: var(--cote);
  transform-origin: left center;
  animation: tracer 0.9s cubic-bezier(0.3, 0, 0.1, 1) 0.2s both;
}

.fleche {
  position: absolute;
  top: 18px;
  width: 14px;
  height: 14px;
  fill: var(--cote);
}

.fleche-debut {
  left: 0;
}

.fleche-fin {
  right: 0;
  animation: apparaitre 0.2s linear 1s both;
}

.cote-valeur {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 clamp(12px, 2vw, 24px);
  background: var(--papier);
  font-size: 2rem;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  animation: apparaitre 0.3s linear 0.8s both;
}

.cote-legende {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  color: var(--encre-douce);
  font-size: 1rem;
}

.cote-legende span:first-child {
  white-space: nowrap;
}

.cote-legende span:last-child {
  text-align: right;
}

@keyframes tracer {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes apparaitre {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Sections */
.bloc {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 48px;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--encre);
}

h2 {
  max-width: 11em;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.nomenclature div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4px 32px;
  padding-block: 16px;
  border-bottom: 1px solid var(--trait);
}

.nomenclature div:first-child {
  padding-top: 0;
}

.nomenclature dt {
  font-weight: 500;
}

.nomenclature dd {
  color: var(--encre-douce);
}

.etapes {
  list-style: none;
  counter-reset: etape;
}

.etapes li {
  position: relative;
  counter-increment: etape;
  padding: 0 0 28px 56px;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.etapes li:last-child {
  padding-bottom: 0;
}

.etapes h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

.etapes p {
  max-width: 34em;
  color: var(--encre-douce);
}

.engagements {
  list-style: none;
}

.engagements li {
  max-width: 36em;
  padding-bottom: 12px;
}

.reference {
  max-width: 36em;
  margin-top: 16px;
  color: var(--encre-douce);
}

/* Cartouche */
.cartouche-zone {
  display: flex;
  justify-content: flex-end;
  padding-block: 16px clamp(32px, 5vw, 56px);
}

.cartouche {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(680px, 100%);
  border: 2px solid var(--encre);
  background: var(--calque);
}

.case {
  min-width: 0;
  padding: 10px 14px 12px;
  border-right: 1px solid var(--encre);
  border-bottom: 1px solid var(--encre);
}

.case span {
  display: block;
  color: var(--encre-douce);
  font-size: 0.8125rem;
}

.case strong,
.case a {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 500;
}

.case-3 {
  grid-column: span 3;
}

.case-2 {
  grid-column: span 2;
}

.case-6 {
  grid-column: span 6;
}

.case-fin {
  border-right: 0;
}

.case-bas {
  border-bottom: 0;
}

.liens-legaux {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 1rem;
}

/* Pages légales */
.page-legale {
  padding-block: clamp(32px, 6vw, 72px);
}

.page-legale h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.page-legale h2 {
  max-width: none;
  margin-top: 40px;
  font-size: 1.375rem;
}

.page-legale p,
.page-legale ul {
  max-width: 38em;
  margin-top: 12px;
}

.page-legale ul {
  padding-left: 1.2em;
}

.pied-simple {
  padding-block: 24px 40px;
  border-top: 1px solid var(--encre);
}

@media (max-width: 760px) {
  .bloc {
    grid-template-columns: minmax(0, 1fr);
  }

  .nomenclature div {
    grid-template-columns: minmax(0, 1fr);
  }

  .cote-valeur {
    font-size: 1.625rem;
  }

  .cartouche-zone {
    display: block;
  }

  .case-m6 {
    grid-column: span 6;
  }

  .case-m6 {
    border-right: 0;
  }
}

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

  .cote-ligne::before,
  .cote-valeur,
  .fleche-fin {
    animation: none;
  }

  .bouton {
    transition: none;
  }
}
