/* ==========================================================================
   Les Sourciers — pages de capture webinaire
   Design system extrait de lessourciers.com (vert menthe #92D6BB, Poppins, blanc)
   Portable : custom (Astro/CF) ou reversable en blocs Learnybox.
   ========================================================================== */

:root {
  --green: #92D6BB;
  --green-soft: #c7ebde;
  --green-tint: #eef8f3;
  --green-dark: #5fb89a;
  --green-darker: #3f9579;
  --ink: #2f3b36;
  --body-text: #61706a;
  --muted: #8b9690;
  --bg: #ffffff;
  --bg-alt: #f4f8f6;
  --line: #e6ece9;
  --shadow-sm: 0 4px 16px rgba(63, 149, 121, .10);
  --shadow-md: 0 12px 36px rgba(63, 149, 121, .16);
  --shadow-cta: 0 8px 24px rgba(146, 214, 187, .55);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.18rem; font-weight: 600; }

.section-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-darker);
  margin-bottom: 14px;
}

.lead { font-size: 1.18rem; color: var(--body-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  background: var(--green);
  color: #fff;
  padding: 1.05rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { background: var(--green-darker); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(146, 214, 187, .6); }
.btn .arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--sm { padding: .7rem 1.3rem; font-size: .95rem; }
.btn--ghost { background: #fff; color: var(--green-darker); box-shadow: inset 0 0 0 2px var(--green); }
.btn--ghost:hover { background: var(--green-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.site-header .logo img { height: 38px; width: auto; }
.site-header .logo span { font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-date { font-size: .92rem; color: var(--muted); font-weight: 500; }
@media (max-width: 720px){ .header-date { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1100px 480px at 80% -10%, #e8f6f0, transparent 60%),
              radial-gradient(640px 420px at -5% 115%, #fdf2db, transparent 62%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green); color: var(--ink);
  padding: 7px 15px; border-radius: 999px;
  font-size: .84rem; font-weight: 600; margin-bottom: 20px;
  border: none; box-shadow: 0 4px 12px rgba(146, 214, 187, .45);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 59, 54, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(47, 59, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 59, 54, 0); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } }
.hero h1 { margin-bottom: 20px; }
.hero .sub { font-size: 1.2rem; color: var(--body-text); margin-bottom: 24px; max-width: 38ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta .reassure { font-size: .9rem; color: var(--muted); }

.stat-flag {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 26px; padding: 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-flag b { font-size: 1.5rem; color: var(--green-darker); font-weight: 700; }
.stat-flag span { font-size: .95rem; color: var(--body-text); }

/* hero media */
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--green-soft), var(--green-tint));
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .blob {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--green); opacity: .18; filter: blur(8px);
  bottom: -40px; left: -40px; z-index: -1;
}

@media (max-width: 880px){
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-media .frame { aspect-ratio: 16/12; }
  .hero .sub { max-width: none; }
}

/* ---------- Proof bar ---------- */
.proofbar { background: var(--ink); color: #fff; }
.proofbar .container { display: flex; justify-content: center; gap: clamp(20px, 6vw, 80px); flex-wrap: wrap; padding: 22px 24px; text-align: center; }
.proofbar .item b { display: block; font-size: 1.5rem; color: var(--green); font-weight: 700; line-height: 1.2; }
.proofbar .item span { font-size: .92rem; color: #cdd6d2; }

/* ---------- Generic section ---------- */
section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.block.alt { background: var(--bg-alt); }
.center { text-align: center; }
.center .lead { max-width: 60ch; margin: 16px auto 0; }
.section-head { max-width: 60ch; margin: 0 auto 44px; text-align: center; }

/* ---------- Video ---------- */
.video-wrap {
  position: relative; max-width: 760px; margin: 0 auto;
  aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(150deg, #2f3b36, #3f9579);
  display: flex; align-items: center; justify-content: center;
}
.video-wrap .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-wrap .play { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; text-align: center; }
.video-wrap .play .circle {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.video-wrap .play .circle svg { fill: var(--green-darker); margin-left: 4px; }
.video-wrap .play small { background: rgba(0,0,0,.35); padding: 6px 14px; border-radius: 999px; font-size: .85rem; }

/* ---------- Feature list (ce que vous allez découvrir) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--green-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.4rem;
}
.card p { margin-top: 6px; font-size: .98rem; }

/* ---------- For who (checklist) ---------- */
.checklist { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; }
.checklist li { list-style: none; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.checklist .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; margin-top: 2px; }

/* ---------- Host (Marion) ---------- */
.host { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.host .portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; background: linear-gradient(150deg, var(--green-soft), var(--green-tint)); }
.host .portrait img { width: 100%; height: 100%; object-fit: cover; }
.host p + p { margin-top: 16px; }
@media (max-width: 800px){ .host { grid-template-columns: 1fr; } .host .portrait { max-width: 320px; margin: 0 auto; } }

/* ---------- Inscription CTA block ---------- */
.signup { background: var(--green-tint); }
.signup .card-cta {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 52px);
  box-shadow: var(--shadow-md); border: 1px solid var(--green-soft);
}
.signup .when { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 1.15rem; margin-bottom: 8px; }
.signup .places { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }
.signup .btn { font-size: 1.15rem; padding: 1.15rem 2.4rem; }
.reassure-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; font-size: .9rem; color: var(--body-text); }
.reassure-row span { display: inline-flex; align-items: center; gap: 7px; }
.reassure-row .tick { color: var(--green-darker); font-weight: 700; }
.rgpd { font-size: .8rem; color: var(--muted); margin-top: 20px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.rgpd a { color: var(--green-darker); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-darker); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c4bf; padding: 40px 0; text-align: center; font-size: .9rem; }
.site-footer img { height: 34px; margin: 0 auto 16px; opacity: .9; filter: brightness(0) invert(1); }
.site-footer a { color: #d6ded9; text-decoration: none; }
.site-footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.site-footer .links a:hover { color: #fff; }

/* draft banner */
.draft-banner { background: #fff7e6; color: #8a6d3b; text-align: center; font-size: .82rem; padding: 8px 16px; border-bottom: 1px solid #f0e2c0; }
.draft-banner code { background: #f3e6c4; padding: 1px 6px; border-radius: 4px; }

/* ---------- Modal inscription (popup + iframe Learnybox) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 40, 36, .55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 460px; max-height: 92vh; overflow: hidden;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
}
.modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  background: none; border: none; font-size: 1.9rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.modal-head { padding: 22px 24px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin-bottom: 2px; }
.modal-head small { color: var(--muted); }
.modal-body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 360px; }
.modal-body iframe { width: 100%; flex: 1; min-height: 440px; border: 0; }
.modal-ph { padding: 48px 28px; text-align: center; }
.modal-ph .emoji { font-size: 2.4rem; margin-bottom: 12px; }
.modal-ph .muted { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.modal-fallback { padding: 12px 24px; text-align: center; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); }
.modal-fallback a { color: var(--green-darker); font-weight: 600; }

/* ---------- Touches botaniques (couleur + fleurs) ---------- */
section.block { position: relative; overflow: hidden; }
section.block > .container, .signup > .container { position: relative; z-index: 1; }
.signup .card-cta { position: relative; z-index: 1; }

/* fonds moins plats */
section.block:not(.alt):not(.signup) { background: linear-gradient(180deg, #ffffff 0%, #fafdfb 100%); }
.block.alt { background: linear-gradient(180deg, #ecf7f1 0%, #f4f8f6 55%, #eef8f3 100%); }
.signup { position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 50% 120%, #e3f4ec, var(--green-tint)); }

/* feuillages en filigrane */
.hero::after {
  content: ""; position: absolute; left: -36px; bottom: -40px;
  width: 240px; height: 270px; z-index: 0; pointer-events: none;
  background: url('deco-sprig.svg') no-repeat center / contain;
  opacity: .13; transform: rotate(-158deg);
}
.block.alt::before {
  content: ""; position: absolute; top: -36px; right: -36px;
  width: 250px; height: 280px; z-index: 0; pointer-events: none;
  background: url('deco-sprig.svg') no-repeat center / contain;
  opacity: .13; transform: rotate(20deg);
}
.block.alt::after {
  content: ""; position: absolute; bottom: -48px; left: -48px;
  width: 200px; height: 225px; z-index: 0; pointer-events: none;
  background: url('deco-sprig.svg') no-repeat center / contain;
  opacity: .09; transform: rotate(168deg);
}

/* fleurs autour du bloc d'inscription */
.signup::before {
  content: ""; position: absolute; top: 18px; left: 6%;
  width: 150px; height: 195px; z-index: 0; pointer-events: none;
  background: url('deco-flower.svg') no-repeat center / contain;
  opacity: .45; transform: rotate(-8deg);
}
.signup::after {
  content: ""; position: absolute; bottom: 16px; right: 7%;
  width: 150px; height: 165px; z-index: 0; pointer-events: none;
  background: url('deco-sprig.svg') no-repeat center / contain;
  opacity: .16; transform: rotate(44deg);
}

/* deuxième branche fleurie — section « pour qui » */
.block--bloom::after {
  content: ""; position: absolute; bottom: -28px; right: -26px;
  width: 165px; height: 215px; z-index: 0; pointer-events: none;
  background: url('deco-flower.svg') no-repeat center / contain;
  opacity: .4; transform: rotate(14deg);
}

/* allègement mobile */
@media (max-width: 760px) {
  .hero::after, .block.alt::after, .signup::after, .block--bloom::after { display: none; }
  .block.alt::before { width: 150px; height: 168px; opacity: .08; }
  .signup::before { width: 100px; height: 130px; top: 10px; left: 3%; opacity: .4; }
}
