@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --encre: #1e2832;
  --accent: #d6ea3a;
  --champ: #86b86a;
  --papier: #ffffff;
  --mesure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--encre);
  background: var(--champ);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
}
.passer {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-140%);
  background: #fff;
  padding: 8px 12px;
  z-index: 80;
}
.passer:focus { transform: none; }

.feuille {
  background: var(--papier);
  margin: 16px;
  border-radius: 28px;
  min-height: calc(100vh - 32px);
  position: relative;
}
.cadre { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.barre {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  position: relative;
}
.marque {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-right: auto;
}
.marque small {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
}
.nav a[aria-current="page"] { background: #f3f6ea; }
.menu {
  display: none;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--encre);
  background: #fff;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
}

.pilule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 6px 6px 18px;
  background: var(--accent);
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}
.pilule .fleche {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--encre);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.pilule.sombre {
  background: var(--encre);
  color: #fff;
}
.pilule.sombre .fleche { background: var(--accent); color: var(--encre); }

.premier {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
  padding: 28px 0 80px;
}
.premier h1 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.trait {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12' preserveAspectRatio='none'><path d='M2 8 C 40 2, 70 11, 110 6 S 160 10, 178 4' fill='none' stroke='%23d6ea3a' stroke-width='6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.22em;
}
.chapo {
  max-width: var(--mesure);
  margin: 0 0 28px;
  font-size: 18px;
}
.portrait { position: relative; min-height: 460px; }
.tache {
  position: absolute;
  width: 300px;
  height: 340px;
  right: 6%;
  top: 36px;
  background: var(--accent);
  border-radius: 58% 42% 63% 37% / 40% 62% 38% 60%;
}
.portrait img {
  position: relative;
  width: min(400px, 86%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 24px 0 0 4%;
  border: 10px solid #fff;
}

.bande {
  padding: 80px 0;
}
.bande h2 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 28px;
  max-width: 16ch;
}
.etapes { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.etapes li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid #e4e7df;
  align-items: baseline;
}
.etapes b {
  font-family: "Nunito", sans-serif;
  font-size: 28px;
  font-weight: 800;
}
.etapes p { margin: 0; max-width: var(--mesure); }

.decale {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 120px;
}
.decale figure { margin: 0; }
.decale img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 28px 80px 28px 28px;
}
.legende { font-size: 14px; margin: 10px 0 0; max-width: 46ch; }
.note { font-size: 18px; max-width: var(--mesure); }

.page { padding: 48px 0 120px; }
.page h1 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 20px;
  max-width: 16ch;
}
.page p { max-width: var(--mesure); }
.suite {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr);
  gap: 36px;
  align-items: start;
  margin-top: 48px;
}
.suite img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 24px;
}
.suite + .suite { margin-top: 80px; }
.suite.inverse { grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.2fr); }
.suite.inverse figure { order: 2; }
.heure { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }

form.rejoindre { margin-top: 28px; }
form.rejoindre button { margin-top: 8px; }

footer {
  border-top: 1px solid #e4e7df;
  padding: 28px 0 36px;
  font-size: 14px;
}
.pied {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pied a { display: inline-block; min-height: 44px; line-height: 44px; margin-right: 16px; }

.cookies {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(30, 40, 50, 0.16);
  display: none;
  z-index: 50;
}
.cookies.ouvert { display: block; }
.cookies p { margin: 0 0 10px; font-size: 14px; }
.cookies button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--encre);
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  margin-right: 8px;
}
.cookies button[data-choix="oui"] { background: var(--accent); }

.barre-bas { display: none; }

@media (max-width: 860px) {
  .feuille { margin: 0; border-radius: 0; min-height: 100vh; }
  .cadre { padding: 0 16px; }
  .menu { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid #e4e7df;
    z-index: 20;
  }
  .nav.ouvert { display: flex; }
  .nav a { width: 100%; }
  .barre .pilule { display: none; }
  .premier {
    grid-template-columns: 1fr;
    padding: 8px 0 48px;
  }
  .portrait { order: -1; min-height: 0; }
  .tache { width: 180px; height: 200px; right: 12%; top: 10px; }
  .portrait img { width: min(280px, 78vw); margin: 8px auto 0; display: block; }
  .premier h1 { font-size: 36px; }
  .bande, .page { padding: 48px 0; }
  .bande h2, .page h1 { font-size: 32px; }
  .decale, .suite, .suite.inverse {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 48px;
  }
  .suite.inverse figure { order: 0; }
  .etapes li { grid-template-columns: 48px 1fr; }
  .pilule.large { width: 100%; justify-content: space-between; }
  body { padding-bottom: 88px; }
  .barre-bas {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 45;
  }
  .barre-bas .pilule { width: 100%; justify-content: space-between; }
  .cookies { bottom: 84px; }
}
