/* ===== LE CERCLE — design épuré type iOS : blanc, system font, cartes douces ===== */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --accent: #0a7d50;
  --accent-dark: #086742;
  --rouge: #d23f31;
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1020px;
  --card: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", sans-serif;
}

/* ===== MODE SOMBRE ===== */
html.dark {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --accent: #32d18a;
  --accent-dark: #28b576;
  --rouge: #ff6961;
  --card: #2c2c2e;
}
html.dark .nav { background: rgba(0,0,0,.72); border-bottom-color: rgba(255,255,255,.1); }
html.dark .nav-cta { color: #003822 !important; }
html.dark .btn-primary { color: #003822; }
html.dark .btn-ghost:hover { background: #2c2c2e; }
html.dark .coupon-match { border-bottom-color: rgba(255,255,255,.08); }
html.dark .coupon-foot { background: rgba(255,255,255,.06); }
html.dark .coupon-analysis { background: var(--card); }
html.dark .contact-form input, html.dark .contact-form select { border-color: rgba(255,255,255,.16); }
html.dark .contact-form input:focus, html.dark .contact-form select:focus { background: var(--bg-2); }
html.dark .sim-row input[type="number"] { border-color: rgba(255,255,255,.16); }
html.dark .footer { border-top-color: rgba(255,255,255,.08); }
html.dark .cercle-card { border: 1px solid rgba(255,255,255,.14); }
html.dark .cercle-card .btn-primary { background: #fff; color: #1d1d1f; }
html.dark .honest-item span { color: var(--rouge); }
html.dark .honest-item:last-child span { color: var(--accent); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: normal; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem; letter-spacing: .08em;
  text-decoration: none;
}
.nav-logo { width: 26px; height: 26px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .9rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 7px 16px; border-radius: 980px; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ===== HERO ===== */
.hero {
  max-width: 860px; margin: 0 auto;
  padding: 110px 24px 80px; text-align: center;
}
.hero-kicker {
  font-size: .95rem; font-weight: 600; color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.03em;
}
.hero h1 em { color: var(--accent); }
.hero-sub {
  max-width: 600px; margin: 26px auto 0;
  font-size: 1.16rem; line-height: 1.55; color: var(--ink-2);
  font-weight: 400;
}
.hero-sub em { font-weight: 600; color: var(--ink); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-stats {
  display: flex; gap: 56px; justify-content: center; flex-wrap: wrap;
  margin-top: 84px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink);
}
.stat-label { font-size: .85rem; color: var(--ink-2); max-width: 170px; margin: 0 auto; }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 980px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: none; cursor: pointer; font-family: var(--font);
  transition: background .2s, transform .15s, opacity .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--bg-2); color: var(--ink); }
.btn-ghost:hover { background: #ebebef; }
.btn-wide { width: 100%; text-align: center; }

/* ===== SECTIONS ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section-kicker {
  font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  margin-bottom: 16px;
}
.section-sub { max-width: 620px; color: var(--ink-2); font-size: 1.12rem; line-height: 1.55; margin-bottom: 40px; }

/* ===== HISTOIRE ===== */
.section-story { max-width: 720px; }
.story-body p { margin-bottom: 22px; font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); }
.story-body p strong, .story-body p em { color: var(--ink); font-weight: 600; }
.story-body blockquote {
  margin: 36px 0; padding: 32px 34px;
  background: var(--bg-2); border-radius: var(--radius-lg);
  font-size: 1.22rem; line-height: 1.55; font-weight: 500; color: var(--ink);
}
.story-body blockquote strong { color: var(--accent); font-weight: 700; }
.story-honest {
  padding: 26px 30px; background: var(--bg-2);
  border-radius: var(--radius);
}

/* ===== METHODE ===== */
.method-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 44px;
}
.method-card {
  background: var(--bg-2); border-radius: var(--radius);
  padding: 34px 28px;
}
.method-num { font-size: .88rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.method-card h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; margin: 12px 0 8px; }
.method-card p { color: var(--ink-2); font-size: .98rem; }

/* ===== PREUVES ===== */
.proof-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-top: 16px;
}
.proof {
  background: var(--bg-2); border-radius: var(--radius); overflow: hidden;
}
.proof img { aspect-ratio: 9/16; object-fit: cover; object-position: top; width: 100%; }
.proof figcaption { padding: 16px 18px 20px; font-size: .88rem; color: var(--ink-2); }
.proof figcaption strong { color: var(--ink); display: block; margin-bottom: 3px; }
.proof-special { outline: 2px solid var(--accent); outline-offset: -2px; }
.proofs-note { margin-top: 26px; font-size: .92rem; color: var(--ink-2); }

/* ===== COMMUNAUTE ===== */
.section-community { background: var(--bg-2); max-width: none; }
.section-community > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.community-cols {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: center; margin-top: 36px;
}
.community-col h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: 18px; }
.check-list { list-style: none; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
  color: var(--ink-2); font-size: 1rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.check-list li strong { color: var(--ink); }
.community-col .btn { margin-top: 14px; }
.community-quote blockquote {
  font-size: 1.55rem; line-height: 1.45; font-weight: 600;
  letter-spacing: -.02em; color: var(--ink);
}

/* ===== LA FAILLE (offre) ===== */
.section-cercle { text-align: center; }
.section-cercle .section-sub { margin-left: auto; margin-right: auto; }
.cercle-card {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: #1d1d1f; color: #f5f5f7;
  border-radius: var(--radius-lg); padding: 46px 42px;
}
.cercle-price { text-align: center; margin-bottom: 32px; }
.cercle-amount { font-size: 2.7rem; font-weight: 700; letter-spacing: -.03em; color: #fff; display: block; }
.cercle-amount small { font-size: 1.2rem; font-weight: 600; color: rgba(245,245,247,.6); }
.cercle-period { font-size: .92rem; color: rgba(245,245,247,.55); }
.cercle-list li { color: rgba(245,245,247,.72); }
.cercle-list li strong { color: #fff; }
.cercle-list li::before { color: #30d158; }
.cercle-card .btn-primary { margin-top: 24px; background: #fff; color: #1d1d1f; }
.cercle-card .btn-primary:hover { background: #e8e8ed; }
.cercle-note { margin-top: 18px; font-size: .85rem; color: rgba(245,245,247,.5); text-align: center; }

/* ===== HONNETETE ===== */
.section-honest { max-width: 800px; text-align: center; }
.honest-grid { display: grid; gap: 12px; margin-top: 36px; text-align: left; }
.honest-item {
  display: flex; gap: 14px; align-items: baseline;
  background: var(--bg-2); border-radius: var(--radius);
  padding: 20px 24px; color: var(--ink-2); font-size: 1rem;
}
.honest-item span { font-weight: 700; color: var(--rouge); }
.honest-item:last-child span { color: var(--accent); }

/* ===== CONTACT ===== */
.section-contact { max-width: 540px; text-align: center; }
.contact-form { display: grid; gap: 12px; margin-top: 32px; text-align: left; }
.contact-form input, .contact-form select {
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: var(--bg-2); font-family: var(--font); font-size: 1rem; color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.contact-form input:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(10,125,80,.12);
}
.form-ok { color: var(--accent); font-weight: 600; text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2); color: var(--ink-2);
  padding: 52px 24px; text-align: center;
  border-top: 1px solid rgba(0,0,0,.06);
}
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: 20px;
}
.footer-brand .nav-logo { color: var(--accent); }
.footer-legal { max-width: 620px; margin: 0 auto 16px; font-size: .8rem; line-height: 1.7; }
.footer-copy { font-size: .78rem; color: #86868b; }

/* ===== COMMUNAUTE PAGE (coupons) ===== */
.feed-header { max-width: 720px; margin: 0 auto; padding: 72px 24px 20px; text-align: center; }
.feed { max-width: 660px; margin: 0 auto; padding: 16px 24px 90px; display: grid; gap: 16px; }
.coupon {
  background: var(--bg-2); border-radius: var(--radius);
  overflow: hidden;
}
.coupon-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 16px 22px 12px;
  font-size: .86rem; color: var(--ink-2);
}
.badge { padding: 4px 13px; border-radius: 980px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge-win { background: rgba(10,125,80,.12); color: var(--accent); }
.badge-lose { background: rgba(210,63,49,.1); color: var(--rouge); }
.badge-live { background: rgba(255,159,10,.15); color: #c93400; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.coupon-body { padding: 6px 22px 16px; }
.coupon-match {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: .96rem; font-weight: 500;
}
.coupon-match:last-of-type { border-bottom: none; }
.coupon-match .pick { color: var(--ink-2); font-size: .83rem; font-weight: 400; display: block; margin-top: 1px; }
.coupon-match .odd { font-weight: 700; color: var(--accent); white-space: nowrap; }
.coupon-analysis {
  margin-top: 12px; padding: 14px 16px; background: var(--card);
  border-radius: 14px; font-size: .9rem; color: var(--ink-2);
}
.coupon-analysis strong { color: var(--ink); }
.coupon-foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 13px 22px; background: rgba(0,0,0,.04);
  font-size: .9rem; font-weight: 600;
}

/* ===== TIMELINE ===== */
.timeline { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 761px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.tl-item { background: var(--bg-2); border-radius: var(--radius); padding: 30px 24px; }
.tl-year { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.tl-item h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin: 10px 0 6px; }
.tl-item p { color: var(--ink-2); font-size: .92rem; }

/* ===== SIMULATEUR ===== */
.sim-card {
  background: var(--bg-2); border-radius: var(--radius-lg);
  padding: 38px 34px; max-width: 640px;
}
.sim-row { margin-bottom: 22px; }
.sim-row label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.sim-row input[type="number"] {
  width: 100%; padding: 15px 18px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12); background: var(--card);
  font-family: var(--font); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.sim-row input[type="number"]:focus { outline: none; border-color: var(--accent); }
.sim-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.sim-stake { font-size: .98rem; color: var(--ink-2); margin-bottom: 4px; }
.sim-stake strong { color: var(--ink); }
.sim-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-top: 20px;
}
.sim-scen {
  background: var(--card); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.sim-scen-label { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.sim-scen-val { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.sim-good .sim-scen-val { color: var(--accent); }
.sim-mid .sim-scen-val { color: var(--ink); }
.sim-bad .sim-scen-val { color: var(--rouge); }
.sim-note { margin-top: 22px; font-size: .85rem; color: var(--ink-2); line-height: 1.6; }

/* ===== FILTRES FEED ===== */
.filter-bar {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  max-width: 660px; margin: 0 auto; padding: 10px 24px 0;
}
.filter-btn {
  padding: 9px 20px; border-radius: 980px; border: none;
  background: var(--bg-2); color: var(--ink);
  font-family: var(--font); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .2s, color .2s;
}
.filter-btn.active { background: var(--ink); color: var(--bg); }
.conf { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--bg-2); cursor: pointer; font-size: .95rem; line-height: 1;
  display: grid; place-items: center;
}
.theme-toggle:hover { filter: brightness(.95); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 72px; }
  .hero-stats { gap: 32px; margin-top: 64px; }
  .section { padding: 72px 24px; }
  .community-cols { grid-template-columns: 1fr; gap: 36px; }
  .cercle-card { padding: 36px 26px; }
}
