/* LhipLife - feuille de style principale
   Mobile-first (base 360px), puis 480 / 768 / 1024.
   Toutes les règles sont portées par des classes (jamais par des sélecteurs
   d'éléments nus) afin de rester prioritaires sur le préflight de Tailwind CDN. */

:root {
  --green: #56a030;
  --green-d: #3f7d20;
  --green-dd: #2f6218;
  --ink: #2b2b2b;
  --ink-2: #1b1b1b;
  --muted: #595959;
  --row: #efefef;
  --row-h: #e4e8de;
  --line: #dcdcdc;
  --soft: #f5f7f2;
  --paper: #ffffff;
  --head: "Fjalla One", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --r: 6px;
  --pad: 20px;
}

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

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

[x-cloak] { display: none !important; }

.page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink-2); color: #fff; padding: 12px 18px;
  font-family: var(--head); font-size: 17px; border-radius: var(--r);
  text-decoration: none; transition: top .15s ease;
}
.skip:focus { top: 12px; outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Bandeau + masthead ---------- */
.strip { background: var(--ink-2); color: #fff; }
.strip__in {
  max-width: 1040px; margin: 0 auto; padding: 9px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--head); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.strip__label { display: inline-flex; align-items: center; gap: 8px; }
.strip__label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.strip__date { color: #d6d6d6; letter-spacing: .08em; }

.mast { text-align: center; padding: 26px var(--pad) 6px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink-2); padding: 4px 6px;
}
.brand__ic { width: 50px; height: 44px; flex: none; }
.brand__bar { width: 2px; align-self: stretch; background: var(--ink-2); }
.brand__txt {
  display: flex; flex-direction: column; text-align: left;
  font-family: var(--head); font-size: 38px; line-height: .98; letter-spacing: .01em;
}
.brand__a { color: var(--green); }
.brand__b { color: var(--ink-2); }
.tagline {
  margin: 10px auto 0; font-family: var(--head); font-size: 13px; letter-spacing: .07em;
  color: var(--ink-2); max-width: 22em; line-height: 1.35;
}
.tagline em { font-style: normal; color: var(--green-d); }

.nav { margin-top: 14px; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px;
  background: #fff; color: var(--ink-2); border: 2px solid var(--ink-2); border-radius: var(--r);
  font-family: var(--head); font-size: 17px; letter-spacing: .04em; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav__btn:hover { background: var(--ink-2); color: #fff; }
.nav__btn:focus-visible, .nav__link:focus-visible, .row:focus-visible, .btn:focus-visible,
.faq__q:focus-visible, .brand:focus-visible, .foot_links a:focus-visible, .back:focus-visible {
  outline: 3px solid var(--green-d); outline-offset: 3px;
}
.nav__ic, .nav__ic::before, .nav__ic::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease;
}
.nav__ic { position: relative; }
.nav__ic::before, .nav__ic::after { content: ""; position: absolute; left: 0; }
.nav__ic::before { top: -6px; }
.nav__ic::after { top: 6px; }

.nav__list {
  display: none; list-style: none; margin: 12px auto 0; padding: 0; max-width: 420px;
  text-align: left;
}
.nav.is-open .nav__list { display: block; }
.nav__link {
  display: flex; align-items: center; min-height: 48px; padding: 8px 6px;
  border-top: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
  font-family: var(--head); font-size: 20px; letter-spacing: .02em;
  transition: color .15s ease, padding .15s ease;
}
.nav__link:hover { color: var(--green-d); padding-left: 12px; }

.nav--static .nav__list { display: flex; justify-content: center; margin-top: 6px; }
.nav--static .nav__link { border-top: 0; }

/* ---------- Conteneurs ---------- */
.col { width: 100%; max-width: 700px; margin: 0 auto; padding: 0 var(--pad); }
.wide { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 8px; text-align: center; }
.hero__title {
  margin: 0; font-family: var(--head); font-weight: 400; color: var(--ink);
  font-size: clamp(28px, 6.4vw, 44px); line-height: 1.16; letter-spacing: .012em;
  text-wrap: balance;
}
.rule { display: block; width: 90px; height: 3px; margin: 20px auto 18px; background: var(--green); border: 0; }
.hero__dek {
  margin: 0 auto 10px; max-width: 22em; font-family: var(--head); font-weight: 400;
  font-size: clamp(20px, 4.4vw, 28px); line-height: 1.3; color: var(--ink);
}
.byline { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hero__img {
  margin: 0; border-radius: var(--r); overflow: hidden; background: var(--row);
  aspect-ratio: 16 / 10;
}
.hero__img img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 50% 36%; }

.rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.row {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 12px;
  background: var(--row); border-radius: var(--r); color: var(--ink); text-decoration: none;
  font-family: var(--head); font-size: 19px; line-height: 1.25;
  transition: background .15s ease, transform .15s ease;
}
.row:hover { background: var(--row-h); transform: translateX(2px); }
.row__box, .chk {
  position: relative; flex: none; width: 30px; height: 30px; background: #fff;
  border: 1px solid #cfcfcf; border-radius: 5px;
}
.row__box::after, .chk::after {
  content: ""; position: absolute; left: 10px; top: 4px; width: 8px; height: 15px;
  border: solid var(--green-d); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.row__box::after { opacity: 0; transition: opacity .15s ease; }
.row:hover .row__box::after { opacity: .55; }
.row__txt { flex: 1; min-width: 0; }

.progress {
  margin: 22px 0 0; font-family: var(--head); font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}

/* ---------- Boutons ---------- */
.cta { margin: 24px 0 0; text-align: center; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 14px 24px; background: var(--green-d); color: #fff;
  border-radius: var(--r); text-decoration: none; text-align: center;
  font-family: var(--head); font-size: 20px; line-height: 1.2; letter-spacing: .02em;
  box-shadow: 0 3px 0 var(--green-dd);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--green-dd); transform: translateY(-1px); box-shadow: 0 4px 0 #234a12; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-dd); }
.btn__arrow { flex: none; font-family: Arial, sans-serif; transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--green-dd); box-shadow: 0 3px 0 rgba(0, 0, 0, .28); }
.btn--light:hover { background: #f1f7ec; color: var(--green-dd); box-shadow: 0 4px 0 rgba(0, 0, 0, .32); }
.btn--light:focus-visible { outline-color: #fff; }

/* ---------- Sections Q&R ---------- */
.qa { padding: 44px 0; }
.qa--soft { background: var(--soft); }
.qa--first { padding-top: 40px; }
.qa__no {
  display: flex; align-items: center; gap: 12px; margin: 0 0 10px;
  font-family: var(--head); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-d);
}
.qa__bar { display: block; width: 84px; height: 4px; background: #dfe3da; border-radius: 4px; overflow: hidden; }
.qa__bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.qa__q {
  margin: 0 0 18px; font-family: var(--head); font-weight: 400; color: var(--ink);
  font-size: clamp(26px, 5.6vw, 36px); line-height: 1.18; letter-spacing: .01em;
  text-wrap: balance;
}
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; color: var(--ink-2); }
.lead { font-size: 1.08em; }
.sub {
  margin: 1.6em 0 .6em; font-family: var(--head); font-weight: 400; font-size: 22px;
  line-height: 1.25; color: var(--ink);
}

/* ---------- Chiffres ---------- */
.stats { background: var(--soft); padding: 34px 0; }
.stats__in { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: 940px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.stat { text-align: center; padding: 0 4px; }
.stat__n { display: block; font-family: var(--head); font-size: clamp(40px, 10vw, 54px); line-height: 1; color: var(--green-d); }
.stat__l { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }

/* ---------- Média ---------- */
.split { display: grid; gap: 24px; align-items: start; }
.vid {
  width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 21 / 40;
  border-radius: var(--r); overflow: hidden; background: #d9dcd5;
}
.vid video { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.cap { margin: 10px 0 0; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--muted); }
.fig { margin: 30px 0 0; }
.fig__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--row); }
.fig__img img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; counter-increment: step; padding: 0 0 22px 58px; min-height: 44px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--green-d); color: #fff; font-family: var(--head); font-size: 20px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: #cfe0c4;
}
.steps b { display: block; font-family: var(--head); font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--ink); margin-bottom: 2px; }
.steps span { display: block; }

/* ---------- Tableau des trois formats ---------- */
.ways-wrap { margin-top: 34px; }
.ways-title { margin: 0 0 14px; font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1.25; color: var(--ink); }
.ways { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.ways thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.ways tr { display: block; margin-bottom: 12px; background: var(--soft); border-radius: var(--r); overflow: hidden; }
.ways td { display: block; padding: 10px 16px; }
.ways td::before {
  content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--head);
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d);
}
.ways td.ways__name { padding-top: 14px; font-family: var(--head); font-size: 21px; color: var(--ink); background: #e9eee3; }
.ways td.ways__name::before { display: none; }
.qa--soft .ways tr { background: #fff; }
.qa--soft .ways td.ways__name { background: #e9eee3; }

/* ---------- Liste à cases (esprit quiz) ---------- */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 12px;
  background: var(--row); border-radius: var(--r); font-family: var(--head); font-size: 19px; line-height: 1.3; color: var(--ink);
}
.qa--soft .checks li { background: #fff; box-shadow: 0 0 0 1px #e3e6df; }

/* ---------- Rémunération : liste clé / valeur ---------- */
.kv { margin: 26px 0 0; padding: 0; border-top: 2px solid var(--ink-2); }
.kv div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { margin: 0 0 2px; font-family: var(--head); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d); }
.kv dd { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }

/* ---------- Listes simples ---------- */
.plain { list-style: none; margin: 18px 0 0; padding: 0; }
.plain li { position: relative; padding: 0 0 14px 28px; }
.plain li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 3px; background: var(--green);
}
.pull {
  margin: 30px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--green);
  font-family: var(--head); font-size: clamp(21px, 4.6vw, 26px); line-height: 1.3; color: var(--ink);
}

/* ---------- FAQ (accordéon) ---------- */
.faq { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.vid-fig { margin: 0; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  min-height: 60px; padding: 14px 0; background: transparent; border: 0; text-align: left; cursor: pointer;
  font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--ink-2);
  transition: color .15s ease;
}
.faq__q:hover { color: var(--green-d); }
.faq__ic {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e9ebe6;
  transition: background .15s ease;
}
.faq__q:hover .faq__ic { background: #dbe6d2; }
.faq__ic::before, .faq__ic::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: var(--ink-2); border-radius: 2px; transition: transform .2s ease;
}
.faq__ic::after { transform: rotate(90deg); }
.faq__item.is-open .faq__ic::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 20px; font-size: 17px; line-height: 1.65; }
.faq__a p { margin: 0; }

/* ---------- Bandeau final ---------- */
.endcta { background: var(--green-d); color: #fff; padding: 52px 0 56px; text-align: center; }
.endcta__t {
  margin: 0 0 12px; font-family: var(--head); font-weight: 400; color: #fff;
  font-size: clamp(28px, 6vw, 40px); line-height: 1.16; text-wrap: balance;
}
.endcta__p { margin: 0 auto 6px; max-width: 30em; font-size: 18px; line-height: 1.6; color: #f2f8ee; }
.endcta .cta { margin-top: 26px; }

/* ---------- Pied de page ---------- */
.base { margin-top: 0; padding: 40px var(--pad) 52px; font-family: var(--serif); font-size: 13px; line-height: 1.65; color: var(--muted); }
.base__in { max-width: 980px; margin: 0 auto; display: grid; gap: 22px; }
.owner { margin: 0; }
.owner p { margin: 0; }
.owner strong { color: var(--ink-2); font-weight: 700; }
.foot_links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot_links a {
  display: inline-block; padding: 12px 0; color: #3a3a3a; text-decoration: underline;
  text-decoration-color: #b9b9b9; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease;
}
.foot_links a:hover { color: var(--green-dd); text-decoration-color: var(--green-d); }
.credit_line { margin: 0; max-width: 46em; }

.page-end { height: 40px; }

/* ---------- Pages légales ---------- */
.doc { padding: 34px 0 20px; }
.back {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px; color: var(--green-d);
  font-family: var(--head); font-size: 17px; letter-spacing: .03em; text-decoration: none;
}
.back:hover { color: var(--green-dd); text-decoration: underline; }
.doc__title {
  margin: 0; font-family: var(--head); font-weight: 400; color: var(--ink);
  font-size: clamp(30px, 7vw, 42px); line-height: 1.16; letter-spacing: .01em;
}
.doc .rule { margin: 18px 0 22px; width: 90px; }
.doc__h {
  margin: 2em 0 .5em; font-family: var(--head); font-weight: 400; font-size: clamp(22px, 4.6vw, 26px);
  line-height: 1.22; color: var(--ink);
}
.doc__meta { font-size: 14px; color: var(--muted); }
.doc__link { color: var(--green-d); text-decoration: underline; text-underline-offset: 3px; transition: color .15s ease; }
.doc__link:hover { color: var(--green-dd); }
.doc__link:focus-visible { outline: 3px solid var(--green-d); outline-offset: 3px; border-radius: 2px; }
.doc__list { margin: 0 0 1.15em; padding: 0 0 0 1.3em; list-style: disc; }
.doc__list li { margin-bottom: .5em; padding-left: .2em; }
.doc__list li::marker { color: var(--green-d); }
.doc__addr { margin: 0 0 1.15em; padding: 14px 0 14px 18px; border-left: 4px solid var(--green); font-style: normal; line-height: 1.6; }

/* ---------- 480 ---------- */
@media (min-width: 480px) {
  :root { --pad: 24px; }
  .brand__ic { width: 62px; height: 54px; }
  .brand__txt { font-size: 48px; }
  .tagline { font-size: 15px; }
  .btn { display: inline-flex; width: auto; min-width: 340px; }
  .stat__l { font-size: 15px; }
}

/* ---------- 768 ---------- */
@media (min-width: 768px) {
  :root { --pad: 32px; }
  .page { font-size: 19px; }
  .strip__in { font-size: 13px; }
  .mast { padding-top: 40px; }
  .brand { gap: 16px; }
  .brand__ic { width: 78px; height: 68px; }
  .brand__txt { font-size: 60px; }
  .tagline { font-size: 17px; margin-top: 12px; max-width: none; }

  .nav { margin-top: 30px; }
  .nav__btn { display: none; }
  .nav__list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; max-width: 1040px; margin: 0 auto;
  }
  .nav__link { border-top: 0; min-height: 48px; padding: 6px 2px; font-size: 18px; }
  .nav__link:hover { padding-left: 2px; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--green); }

  .hero { padding-top: 54px; }
  .rule { margin: 26px auto 22px; }
  .byline { font-size: 15px; margin-bottom: 26px; }
  .hero__img { aspect-ratio: 2.1 / 1; }
  .row { font-size: 20px; }
  .progress { margin-top: 30px; }

  .qa { padding: 64px 0; }
  .qa--first { padding-top: 56px; }
  .stats { padding: 48px 0; }
  .stats__in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .stat { padding: 4px 14px; border-left: 1px solid #d9ddd2; }
  .stat:first-child { border-left: 0; }

  .split { grid-template-columns: 290px minmax(0, 1fr); gap: 48px; }
  .vid-fig { position: sticky; top: 24px; }
  .vid { margin: 0; max-width: 290px; }
  .fig { margin-top: 38px; }
  .fig__img { aspect-ratio: 2 / 1; }
  .steps li { padding-bottom: 26px; }
  .steps b { font-size: 23px; }

  .ways-wrap { margin-top: 44px; }
  .ways thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .ways { font-size: 16.5px; border-radius: var(--r); overflow: hidden; }
  .ways thead tr { display: table-row; background: var(--ink-2); margin: 0; }
  .ways th {
    padding: 12px 16px; text-align: left; font-family: var(--head); font-weight: 400; font-size: 14px;
    letter-spacing: .14em; text-transform: uppercase; color: #fff;
  }
  .ways tbody tr { display: table-row; margin: 0; background: #fff; border-radius: 0; }
  .ways tbody tr:nth-child(even) { background: var(--soft); }
  .qa--soft .ways tbody tr:nth-child(even) { background: #fbfcf9; }
  .ways td { display: table-cell; padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
  .ways td::before { display: none; }
  .ways td.ways__name, .qa--soft .ways td.ways__name { padding-top: 16px; background: transparent; font-size: 21px; white-space: nowrap; }

  .checks li { font-size: 20px; }
  .kv div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 16px 0; }
  .kv dt { margin: 0; }
  .faq__q { font-size: 19px; }
  .faq__a { font-size: 18px; }
  .endcta { padding: 72px 0 76px; }
  .endcta__p { font-size: 20px; }

  .base { padding: 56px var(--pad) 64px; }
  .base__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 56px; align-items: start; }
  .foot_links ul { flex-direction: column; flex-wrap: nowrap; }
  .foot_links a { padding: 8px 0; }
  .credit_line { grid-column: 1 / -1; }
  .doc { padding-top: 50px; }
}

/* ---------- 1024 ---------- */
@media (min-width: 1024px) {
  .nav__list { gap: 4px 40px; }
  .nav__link { font-size: 20px; }
  .brand__txt { font-size: 64px; }
  .qa__q { margin-bottom: 22px; }
  .split { grid-template-columns: 300px minmax(0, 1fr); }
  .vid { max-width: 300px; }
  .foot_links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
