@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #f8f4ec;
  --paper: #fffdf8;
  --white: #fff;
  --ink: #2c2c2c;
  --muted: #756d61;
  --border: #ece5d8;
  --green: #4f7c5c;
  --green-dark: #3a5c44;
  --green-soft: #eef4ef;
  --orange: #d98c3b;
  --orange-soft: #fbf1e4;
  --gold: #d98c3b;
  --gold-soft: #fbf1e4;
  --shadow: 0 18px 50px rgba(28, 48, 32, .12);
  --font: Nunito, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, .94);
  border-bottom: 1px solid rgba(236, 229, 216, .92);
  box-shadow: 0 10px 34px rgba(28, 48, 32, .08);
  backdrop-filter: blur(18px);
}
.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--green);
  font-weight: 950;
  object-fit: cover;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: -5px;
}
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-links > a,
.nav-item > a {
  color: #565041;
  font-size: .9rem;
  font-weight: 750;
}
.nav-links a:hover,
.nav-item:hover > a { color: var(--green-dark); }
.nav-item { position: relative; }
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 270px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 750;
  font-size: .9rem;
}
.dropdown a:hover { background: var(--green-soft); color: var(--green-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: .2s ease;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 12px 19px;
  box-shadow: 0 10px 22px rgba(79, 124, 92, .22);
}
.btn-primary:hover { background: #426f4f; transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  padding: 12px 19px;
  border: 1px solid rgba(28, 48, 32, .1);
}
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(28, 48, 32, .1); }

.hero,
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), #223c29);
  color: #fff;
}
.hero { padding: 96px 0; }
.hero-home { padding: 108px 0 78px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.45rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .72);
  max-width: 720px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.micro { margin-top: 16px; color: rgba(255, 255, 255, .48); font-size: .86rem; }
.hero-panel {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}
.steps-mini { display: grid; gap: 12px; }
.step-mini {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.step-mini span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 950;
}
.step-mini strong { display: block; }
.step-mini small { display: block; color: var(--muted); font-size: .9rem; }

.section { padding: 78px 0; }
.section-alt { background: var(--paper); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}
.section h2,
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
  margin: 0 0 12px;
}
.section p { color: var(--muted); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: -34px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.trust-item { background: #fff; padding: 20px; font-weight: 800; color: #514b43; }
.trust-item::before { content: "✓"; color: var(--green); font-weight: 950; margin-right: 8px; }
.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 40px;
  align-items: center;
}
.problem-card,
.showcase-card,
.card,
.price,
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(28, 48, 32, .07);
}
.problem-card strong {
  display: block;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  color: var(--green);
  letter-spacing: -.06em;
  margin-bottom: 10px;
}
.steps { display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.num {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 950;
}

.feature-table-wrap,
.table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 12px 34px rgba(28, 48, 32, .07);
}
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th,
td { padding: 15px 17px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: #fbf7ef; color: var(--green-dark); }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--green-dark); font-weight: 950; }
.no { color: #b6aa98; }

.showcase-grid,
.resource-grid,
.value-grid,
.price-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.value-grid { grid-template-columns: repeat(4, 1fr); }
.showcase-card h3,
.card h2,
.card h3,
.price h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.price.popular {
  border-color: rgba(79, 124, 92, .48);
  background: linear-gradient(180deg, var(--green-soft), #fff);
}
.amount strong { font-size: 2.8rem; letter-spacing: -.06em; }
.amount span { color: var(--muted); font-weight: 750; }
.check-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.check-list li { color: #514b43; }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 950; margin-right: 8px; }

.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  font: inherit;
  font-weight: 900;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .22s ease; }
.faq-a p { margin-bottom: 0; }
.faq-item.open .faq-a { max-height: 220px; }

.cta { padding: 76px 0; background: var(--green-dark); color: #fff; text-align: center; }
.cta p { color: rgba(255, 255, 255, .65); max-width: 640px; margin: 0 auto 24px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}
.article-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 12px 34px rgba(28, 48, 32, .06);
}
.article-content h2 { font-size: 1.85rem; margin-top: 36px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin-top: 26px; }
.article-aside { position: sticky; top: 92px; display: grid; gap: 16px; }
.toc a {
  display: block;
  padding: 8px 0;
  color: var(--green-dark);
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}
.box,
.formula {
  background: var(--green-soft);
  border: 1px solid rgba(79, 124, 92, .24);
  border-radius: 8px;
  padding: 18px;
  color: var(--green-dark);
}
.formula { font-weight: 900; text-align: center; }

.footer { background: #0e1711; color: rgba(255, 255, 255, .42); padding: 28px 0; }
.foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a:hover { color: #fff; }
.page-hero { padding: 72px 0; }
.page-hero .lead { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-content, .article-aside { min-width: 0; }
  .article-aside { position: static; }
  .trust-grid,
  .showcase-grid,
  .resource-grid,
  .value-grid,
  .price-grid,
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; }
  .nav-links { gap: 12px; }
  .dropdown { right: auto; left: 0; }
}

@media (max-width: 640px) {
  .site-nav { align-items: flex-start; padding: 12px 0; }
  .brand small { display: none; }
  .nav-links { justify-content: flex-end; }
  .nav-links > a:not(.btn-primary),
  .nav-item > a { font-size: .82rem; }
  .dropdown { position: static; width: 100%; display: none; margin-top: 8px; }
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown { display: block; }
  .hero,
  .hero-home,
  .page-hero { padding: 58px 0; }
  .trust-grid,
  .showcase-grid,
  .resource-grid,
  .value-grid,
  .price-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .article-content { padding: 22px; }
  table { min-width: 620px; }
}

/* Bouton d'action de l'en-tête : texte blanc (la règle .nav-links > a l'assombrissait). */
.nav-links > a.btn-primary { color: #fff; }

/* En-tête mobile : marque sur une ligne, seul le bouton d'action reste visible. */
@media (max-width: 640px) {
  .site-nav { align-items: center; min-height: 60px; padding: 8px 0; gap: 10px; }
  .brand { white-space: nowrap; font-size: .95rem; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-links > a:not(.btn-primary),
  .nav-links > .nav-item { display: none; }
  .nav-links > a.btn-primary { padding: 9px 14px; font-size: .85rem; }
}

/* Vidéos YouTube : miniature locale, lecteur chargé au clic */
.yt-video { margin: 28px 0 8px; }
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #1C3020; cursor: pointer; box-shadow: var(--shadow); }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.yt-facade:hover img, .yt-facade:focus-visible img { transform: scale(1.02); }
.yt-facade:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 14px; background: rgba(28, 48, 32, .88); transition: background .2s ease; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-facade:hover .yt-play { background: var(--orange); }
.yt-duree { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .8rem; font-weight: 700; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-video figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.yt-video figcaption strong { display: block; color: var(--ink); }
.yt-video figcaption a, .yt-liens a, .yt-note a { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.yt-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 28px; }
.yt-carte { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--paper); }
.yt-carte h3 { margin: 6px 0 0; font-size: 1.1rem; line-height: 1.35; }
.yt-carte p { margin: 0; color: var(--muted); font-size: .93rem; }
.yt-carte .yt-liens { margin-top: auto; font-size: .88rem; }
.yt-note { margin: 24px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 520px) { .yt-grille { grid-template-columns: 1fr; } }
.yt-transcription { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.yt-transcription summary { padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--green-dark); }
.yt-transcription p { margin: 0 14px 12px; font-size: .92rem; color: var(--ink); }
.yt-carte .yt-transcription p { font-size: .88rem; }
