:root {
  color-scheme: light;
  --papier: #faf7f0;
  --blanc: #ffffff;
  --encre: #101210;
  --encre-douce: #666861;
  --sauge: #8fb36a;
  --sauge-profond: #5e7c43;
  --sauge-pale: #edf1e8;
  --dore: #f0b429;
  --ligne: rgba(16, 18, 16, 0.11);
  --largeur: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--papier);
  color: var(--encre);
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip {
  position: fixed;
  z-index: 1000;
  top: -80px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--blanc);
}
.skip:focus { top: 16px; }

.navigation {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  height: 84px;
  padding: 0 max(24px, calc((100vw - var(--largeur)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--ligne);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: blur(18px) saturate(130%);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--encre);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.logo img { width: 38px; height: 38px; object-fit: contain; }
.navigation nav { display: flex; align-items: center; gap: 30px; }
.navigation nav a,
footer nav a {
  color: var(--encre-douce);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}
.navigation nav a:hover,
footer nav a:hover { color: var(--encre); }
.navigation-action {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 14px;
  background: var(--encre);
  color: var(--blanc);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
a:focus-visible { outline: 3px solid rgba(143, 179, 106, 0.65); outline-offset: 4px; }

.hero {
  width: min(var(--largeur), calc(100% - 48px));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}
.hero-texte { position: relative; z-index: 2; }
.surtitre {
  margin: 0 0 19px;
  color: var(--sauge-profond);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero h1,
.phrase-cle h2,
.chapitre h2,
.fonctionnement h2,
.telecharger h2 {
  margin: 0;
  line-height: 0.99;
  letter-spacing: -0.057em;
}
.hero h1 { font-size: clamp(58px, 6.8vw, 94px); }
.hero h1 em { color: var(--sauge-profond); font-style: normal; }
.hero-intro {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--encre-douce);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.58;
}
.hero-note {
  margin: 22px 0 0;
  color: #85877f;
  font-size: 12px;
  font-weight: 600;
}
.store-row { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 11px; }
.store-link {
  min-width: 172px;
  min-height: 57px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--encre);
  border-radius: 15px;
  background: var(--encre);
  color: var(--blanc);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
a.store-link:hover { transform: translateY(-2px); background: #252824; }
.store-link svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.store-link .play-icon { width: 25px; }
.store-link > span { display: flex; flex-direction: column; }
.store-link small { font-size: 9px; line-height: 1.15; opacity: 0.72; }
.store-link strong { font-size: 16px; line-height: 1.25; letter-spacing: -0.02em; }
.store-link-disabled { cursor: default; opacity: 0.74; }

.hero-photo {
  position: relative;
  height: min(710px, calc(100svh - 150px));
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  border-radius: 42px;
  background: #40362e;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 9, 0.8));
}
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 51% center; }
.hero-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 33px;
  left: 34px;
  display: flex;
  flex-direction: column;
  color: var(--blanc);
}
.photo-label {
  width: max-content;
  margin-bottom: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.92);
  color: var(--encre);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-photo figcaption strong { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.04em; }
.hero-photo figcaption small { margin-top: 6px; color: rgba(255, 255, 255, 0.78); font-size: 13px; }

.phrase-cle {
  min-height: 460px;
  padding: 90px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--encre);
  color: var(--blanc);
}
.phrase-cle p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.58); font-size: 16px; }
.phrase-cle h2 { font-size: clamp(52px, 7vw, 96px); }

.chapitre {
  width: min(var(--largeur), calc(100% - 48px));
  min-height: 790px;
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(54px, 8vw, 112px);
}
.chapitre + .chapitre { border-top: 1px solid var(--ligne); }
.chapitre-image {
  position: relative;
  height: 610px;
  overflow: hidden;
  border-radius: 38px;
  background: #d8d4cc;
}
.chapitre-image > img { width: 100%; height: 100%; object-fit: cover; }
.chapitre-moment .chapitre-image > img { object-position: center center; }
.chapitre-texte h2 { max-width: 650px; font-size: clamp(42px, 4.8vw, 66px); }
.chapitre-texte > p:not(.surtitre) {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--encre-douce);
  font-size: 17px;
  line-height: 1.67;
}
.details-courts { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 8px; }
.details-courts span {
  padding: 8px 12px;
  border: 1px solid rgba(94, 124, 67, 0.22);
  border-radius: 999px;
  color: var(--sauge-profond);
  font-size: 11px;
  font-weight: 750;
}
blockquote {
  max-width: 520px;
  margin: 34px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--sauge);
  color: var(--sauge-profond);
  font-size: 16px;
  font-weight: 650;
}

.chapitre-etincelle {
  width: 100%;
  min-height: 860px;
  padding-right: max(24px, calc((100vw - var(--largeur)) / 2));
  padding-left: max(24px, calc((100vw - var(--largeur)) / 2));
  background: var(--encre);
  color: var(--blanc);
}
.chapitre-etincelle .surtitre { color: var(--dore); }
.chapitre-etincelle .chapitre-texte > p:not(.surtitre) { color: rgba(255, 255, 255, 0.66); }
.chapitre-etincelle blockquote { border-color: var(--dore); color: rgba(255, 255, 255, 0.9); }
.image-etincelle > img { object-position: center; }
.image-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 18px 19px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  border-radius: 18px;
  background: rgba(16, 18, 16, 0.84);
  color: var(--blanc);
  backdrop-filter: blur(12px);
}
.image-note span { grid-column: 1 / -1; color: var(--dore); font-size: 9px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.image-note strong { font-size: 17px; }
.image-note small { align-self: center; color: rgba(255, 255, 255, 0.64); font-size: 11px; }

.image-carnet > img { object-position: center 44%; }
.couverture-carnet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 245px;
  height: 370px;
  padding: 35px 28px 26px 42px;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%) rotate(-3deg);
  border-radius: 4px 18px 18px 4px;
  background: rgba(29, 40, 28, 0.9);
  color: var(--blanc);
  box-shadow: 18px 26px 55px rgba(16, 18, 16, 0.28);
  backdrop-filter: blur(9px);
}
.couverture-carnet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 23px; border-right: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.16); }
.couverture-carnet small { font-size: 9px; font-weight: 800; letter-spacing: 0.17em; }
.couverture-carnet strong { margin-top: 75px; font-size: 27px; line-height: 1.08; }
.couverture-carnet span { margin-top: auto; color: rgba(255, 255, 255, 0.68); font-size: 11px; }

.fonctionnement {
  padding: 125px max(24px, calc((100vw - var(--largeur)) / 2)) 140px;
  background: var(--sauge-pale);
}
.fonctionnement-entete { max-width: 800px; }
.fonctionnement h2 { font-size: clamp(46px, 5.5vw, 76px); }
.fonctionnement ol {
  margin: 74px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.fonctionnement li { min-height: 230px; padding: 28px 34px 10px 0; }
.fonctionnement li + li { padding-left: 34px; border-left: 1px solid rgba(94, 124, 67, 0.22); }
.fonctionnement li > span { color: var(--sauge-profond); font-size: 11px; font-weight: 850; letter-spacing: 0.12em; }
.fonctionnement h3 { margin: 65px 0 0; font-size: 22px; letter-spacing: -0.025em; }
.fonctionnement li p { max-width: 310px; margin: 12px 0 0; color: var(--encre-douce); font-size: 14px; line-height: 1.6; }

.telecharger {
  position: relative;
  min-height: 780px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--blanc);
}
.telecharger > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.telecharger-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 9, 0.45), rgba(10, 11, 9, 0.84)); }
.telecharger-contenu { position: relative; z-index: 2; width: min(850px, calc(100% - 40px)); display: flex; flex-direction: column; align-items: center; }
.telecharger-logo { width: 82px; height: 82px; margin-bottom: 24px; object-fit: contain; }
.telecharger .surtitre { color: #b5ce9e; }
.telecharger h2 { font-size: clamp(54px, 7vw, 92px); }
.telecharger-contenu > p:not(.surtitre) { margin: 24px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 17px; }
.store-row-clair { justify-content: center; }
.store-row-clair .store-link { border-color: rgba(255,255,255,.25); background: rgba(250,247,240,.95); color: var(--encre); }
.store-row-clair .store-link-disabled { opacity: 0.9; }

footer {
  width: min(var(--largeur), calc(100% - 48px));
  min-height: 160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
footer p { margin: 0; color: var(--encre-douce); font-size: 12px; }
footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; }
footer nav a { font-size: 11px; }

@media (max-width: 1000px) {
  .navigation { grid-template-columns: 1fr auto; }
  .navigation nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 76px; }
  .hero-texte { max-width: 760px; }
  .hero-photo { height: 700px; }
  .chapitre { grid-template-columns: 1fr; }
  .chapitre-moment .chapitre-texte,
  .chapitre-carnet .chapitre-texte { order: -1; }
  .chapitre-image { height: 680px; }
  footer { grid-template-columns: 1fr; padding: 46px 0; text-align: center; }
  footer .logo { justify-self: center; }
  footer nav { justify-content: center; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .navigation { height: 72px; padding: 0 16px; }
  .logo { font-size: 22px; }
  .logo img { width: 34px; height: 34px; }
  .navigation-action { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .hero { width: calc(100% - 32px); min-height: auto; padding: 52px 0 64px; gap: 45px; }
  .hero h1 { font-size: clamp(47px, 14vw, 64px); }
  .hero-intro { font-size: 16px; }
  .store-row { width: 100%; }
  .store-link { min-width: 0; flex: 1 1 160px; }
  .hero-photo { height: 560px; min-height: 0; border-radius: 29px; }
  .hero-photo > img { object-position: 51% center; }
  .hero-photo figcaption { right: 22px; bottom: 23px; left: 22px; }
  .phrase-cle { min-height: 350px; padding: 70px 18px; }
  .phrase-cle h2 { font-size: 50px; }
  .chapitre,
  .chapitre-etincelle { width: 100%; min-height: auto; padding: 84px 16px; gap: 42px; }
  .chapitre:not(.chapitre-etincelle) { width: calc(100% - 32px); padding-right: 0; padding-left: 0; }
  .chapitre-texte h2 { font-size: 40px; }
  .chapitre-texte > p:not(.surtitre) { font-size: 16px; }
  .chapitre-image { height: 520px; border-radius: 28px; }
  .chapitre-moment .chapitre-image { height: 390px; }
  .image-etincelle { height: 500px; }
  .image-etincelle > img { object-position: 48% center; }
  .image-note { right: 14px; bottom: 14px; left: 14px; }
  .image-note { grid-template-columns: 1fr; }
  .image-note small { margin-top: 2px; }
  .couverture-carnet { width: 210px; height: 330px; }
  .fonctionnement { padding: 84px 20px 95px; }
  .fonctionnement h2 { font-size: 42px; }
  .fonctionnement ol { margin-top: 48px; grid-template-columns: 1fr; }
  .fonctionnement li { min-height: auto; padding: 26px 0; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; }
  .fonctionnement li + li { padding-left: 0; border-top: 1px solid rgba(94, 124, 67, 0.22); border-left: 0; }
  .fonctionnement li > span { grid-row: 1 / 3; padding-top: 5px; }
  .fonctionnement h3 { margin: 0; }
  .fonctionnement li p { margin-top: 7px; }
  .telecharger { min-height: 700px; }
  .telecharger h2 { font-size: 50px; }
  .telecharger-contenu > p:not(.surtitre) { font-size: 15px; }
  footer { width: calc(100% - 32px); }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 47px; }
  .store-link { flex-basis: 100%; }
  .hero-photo { height: 500px; }
  .chapitre-texte h2 { font-size: 37px; }
  .telecharger h2 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
