/* ===== Tutos E-commerce — design sobre & pro ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f3;
  --bg-card: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --brand: #5e8e3e;        /* vert Shopify foncé */
  --brand-strong: #4a7031;
  --brand-soft: #eef4e8;
  --yt: #ff0000;
  --yt-dark: #cc0000;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,25,23,.06), 0 8px 24px rgba(28,25,23,.06);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 1rem; flex: none;
}
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 7px 12px; border-radius: 8px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.header-cta { margin-left: auto; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(94,142,62,.28); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-yt { background: var(--yt); color: #fff; box-shadow: 0 4px 14px rgba(255,0,0,.25); }
.btn-yt:hover { background: var(--yt-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 12px; }

/* ===== Hero ===== */
.hero { padding: 72px 0 48px; background:
  radial-gradient(900px 380px at 85% -10%, var(--brand-soft), transparent 60%),
  radial-gradient(700px 300px at -10% 0%, #fdf2f2, transparent 55%),
  var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-strong);
  border: 1px solid #dce8d0; border-radius: 999px;
  padding: 6px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 1.13rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.35rem; display: block; }
.hero-stats .stat span { color: var(--muted); font-size: .88rem; }

/* Lecteur vidéo « lite » */
.video-lite { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; cursor: pointer; display: block; }
.video-lite img.thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .96; transition: opacity .2s ease, transform .3s ease; }
.video-lite:hover img.thumb { opacity: .85; transform: scale(1.015); }
.video-lite .play {
  position: absolute; inset: 0; margin: auto;
  width: 72px; height: 50px; border-radius: 14px;
  background: var(--yt); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(255,0,0,.45);
  transition: transform .15s ease;
}
.video-lite:hover .play { transform: scale(1.08); }
.video-lite .play::after {
  content: ""; display: block; margin-left: 4px;
  border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lite .duration {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,0,0,.82); color: #fff; font-size: .78rem; font-weight: 600;
  padding: 2px 8px; border-radius: 6px;
}
.hero-video-caption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.hero-video-caption b { color: var(--ink); }

/* ===== Sections ===== */
.section { padding: 52px 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 40em; }

/* ===== Grille de vidéos ===== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video-card .video-lite { border-radius: 0; box-shadow: none; }
.video-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.35; }
.video-card h3 a { color: var(--ink); }
.video-card h3 a:hover { color: var(--brand-strong); text-decoration: none; }
.video-card .meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-soft); color: var(--brand-strong);
  border-radius: 999px; padding: 3px 10px; font-size: .76rem; font-weight: 600;
}
.chip.gray { background: #f0efed; color: var(--muted); }

/* ===== Thèmes ===== */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .theme-grid { grid-template-columns: 1fr; } }
.theme-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .15s ease, box-shadow .2s ease;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.theme-card .icon { font-size: 1.9rem; margin-bottom: 12px; }
.theme-card h3 { margin-bottom: 8px; }
.theme-card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.theme-card .count { font-size: .85rem; font-weight: 600; color: var(--brand-strong); }

/* ===== Pourquoi ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.why-item .icon { font-size: 1.6rem; }
.why-item h3 { margin: 10px 0 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ===== À propos ===== */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-grid p { color: var(--muted); }

/* ===== CTA final ===== */
.cta-band {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff; border-radius: 20px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #eaf2e2; margin: 0; max-width: 36em; }
.cta-band .btn-yt { background: #fff; color: var(--yt-dark); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.cta-band .btn-yt:hover { background: #f5f5f5; color: var(--yt-dark); }

/* ===== Page vidéo ===== */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 22px 0 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-strong); }
.video-page-head { max-width: 860px; }
.video-page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.video-page-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.video-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
@media (max-width: 950px) { .video-page-layout { grid-template-columns: 1fr; } }
.video-main .video-lite { margin-bottom: 26px; }
.video-desc { font-size: 1.02rem; }
.video-desc h2 { font-size: 1.3rem; margin-top: 28px; }
.video-desc ul { padding-left: 20px; }
.video-desc li { margin-bottom: 8px; }
.video-desc li::marker { color: var(--brand); }
.video-cta {
  margin: 30px 0; padding: 22px 24px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid #dce8d0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}
.video-cta p { margin: 0; font-weight: 600; }
.video-aside .aside-box {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; background: #fff;
}
.video-aside h3 { font-size: 1rem; margin-bottom: 10px; }
.related { display: flex; flex-direction: column; gap: 12px; }
.related a { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.related a:hover { text-decoration: none; color: var(--brand-strong); }
.related img { width: 120px; border-radius: 8px; flex: none; aspect-ratio: 16/9; object-fit: cover; }
.related .t { font-size: .88rem; font-weight: 600; line-height: 1.3; }

/* ===== Filtres (page vidéos) ===== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer;
  font-family: var(--font-body);
}
.filters button:hover { background: var(--bg-soft); color: var(--ink); }
.filters button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.video-card.hidden { display: none; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 44px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); font-size: .92rem; }
.site-footer a:hover { color: var(--brand-strong); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== Divers ===== */
.page-hero { padding: 42px 0 26px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 260px at 90% -20%, var(--brand-soft), transparent 60%), #fff; }
.page-hero h1 { max-width: 20em; }
.page-hero p { color: var(--muted); max-width: 44em; font-size: 1.05rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 34px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand); }
.notice {
  background: #fffbeb; border: 1px solid #fde68a; color: #854d0e;
  padding: 14px 18px; border-radius: 12px; font-size: .92rem; margin: 18px 0;
}

/* ===== Filtres groupés (format + thème) ===== */
.filters .group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-right: 18px; }
.filters .group-label { font-size: .82rem; font-weight: 600; color: var(--muted); margin-right: 2px; }
.chip.short { background: #f3e8ff; color: #7c3aed; }
.chip.long { background: #e0f2fe; color: #0369a1; }

/* ===== Roadmap ===== */
.roadmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 800px) { .roadmap-grid { grid-template-columns: 1fr; } }
.roadmap-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; align-items: flex-start;
}
.roadmap-card.proposed { border-style: dashed; background: var(--bg-soft); }
.roadmap-vote { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.vote-btn {
  width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font-size: 1.3rem; cursor: pointer; transition: all .15s ease;
}
.vote-btn:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand); transform: translateY(-2px); }
.vote-btn.voted { background: var(--brand); border-color: var(--brand); cursor: default; }
.vote-count { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.roadmap-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.roadmap-body p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; }
.roadmap-body .meta { display: flex; gap: 8px; }

.propose-box {
  margin-top: 44px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.propose-box h2 { margin-bottom: 6px; }
.propose-box p { color: var(--muted); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.propose-box label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.propose-box input, .propose-box select, .propose-box textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--ink);
}
.propose-box textarea { min-height: 96px; resize: vertical; }
.propose-box input:focus, .propose-box select:focus, .propose-box textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
#propose-msg { display: none; margin-top: 12px; background: var(--brand-soft); border: 1px solid #dce8d0; color: var(--brand-strong); padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .92rem; }

/* ===== Newsletter ===== */
.newsletter-box {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px; box-shadow: var(--shadow);
}
.newsletter-box iframe { width: 100%; border: 0; min-height: 220px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 18px; }
.newsletter-form input {
  flex: 1; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--font-body);
}
.newsletter-form input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }
.newsletter-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ===== Guides ===== */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 800px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .15s ease, box-shadow .2s ease; color: inherit;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.guide-card h3 { margin-bottom: 8px; }
.guide-card p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.guide-article { max-width: 780px; }
.guide-article h2 { margin-top: 36px; }
.guide-article ul, .guide-article ol { padding-left: 22px; }
.guide-article li { margin-bottom: 8px; }
.guide-article li::marker { color: var(--brand); }
.guide-article .video-inline {
  display: block; margin: 22px 0; padding: 16px 18px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid #dce8d0; font-weight: 600; color: var(--brand-strong);
}

/* ===== Quiz ===== */
.quiz-box {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; box-shadow: var(--shadow);
}
.quiz-progress { height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.quiz-progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand), #7cb352); border-radius: 999px; transition: width .3s ease; }
.quiz-step { color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 10px; }
.quiz-q { font-size: 1.35rem; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt {
  text-align: left; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 1rem; font-family: var(--font-body); cursor: pointer; transition: all .12s ease;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); transform: translateX(3px); }
.quiz-opt.good { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.quiz-opt.bad { border-color: #dc2626; background: #fef2f2; }
.quiz-opt:disabled { cursor: default; opacity: .85; }
.quiz-feedback { margin-top: 14px; }
.quiz-feedback .ok { color: var(--brand-strong); font-weight: 700; margin: 0 0 6px; }
.quiz-feedback .ko { color: #dc2626; font-weight: 700; margin: 0 0 6px; }
.quiz-explain { background: var(--bg-soft); border-left: 4px solid var(--brand); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: .93rem; }
.quiz-video { font-weight: 600; }
.quiz-next { margin-top: 8px; }
.quiz-result { text-align: center; }
.quiz-score { font-family: var(--font-display); font-size: 4.4rem; font-weight: 700; color: var(--brand-strong); line-height: 1; }
.quiz-score span { font-size: 2rem; color: var(--muted); }
.quiz-level { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 10px 0; }
.quiz-review { text-align: left; max-width: 560px; margin: 0 auto 18px; }
.quiz-share { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.quiz-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ===== Quiz index / cards / badges ===== */
.quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .quiz-grid { grid-template-columns: 1fr; } }
.quiz-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  color: inherit; transition: transform .15s ease, box-shadow .2s ease; display: block;
}
.quiz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.quiz-card-level { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.quiz-card h3 { margin-bottom: 8px; }
.quiz-card p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.quiz-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge.locked { background: #f0efed; color: var(--muted); }
.badge.won { background: var(--brand-soft); color: var(--brand-strong); border: 1px solid #dce8d0; }
.badge.big { font-size: 1.1rem; padding: 10px 20px; }

/* ===== Quiz : bouton suivant toujours visible + compact ===== */
.quiz-next {
  position: sticky; bottom: 12px; float: right; margin-top: 10px;
  box-shadow: 0 6px 18px rgba(94,142,62,.35);
}
.quiz-feedback::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
  .quiz-box { padding: 20px 16px; }
  .quiz-q { font-size: 1.2rem; }
  .quiz-opt { padding: 11px 13px; font-size: .95rem; }
  .quiz-next { position: static; float: none; width: 100%; margin-top: 14px; }
}
