/* ==========================================================================
   Rasenty — Manuel du bon commerçant
   Design system partagé. Modifiez ce fichier pour changer l'apparence de
   TOUT le manuel d'un seul coup.
   Marque : bleu #0071bd, or #f1ae46, encre #23262a, fond #f0f2f5.
   ========================================================================== */

:root {
    --blue: #0071bd;
    --blue-deep: #005fa3;
    --blue-dark: #004d8a;
    --blue-050: #0071bd0d;
    --blue-100: #0071bd1a;
    --gold: #f1ae46;
    --gold-050: #f1ae4614;
    --gold-100: #f1ae4630;
    --ink: #23262a;
    --muted: #23262a99;
    --faint: #23262a60;
    --line: #23262a12;
    --line-soft: #23262a0a;
    --bg: #f0f2f5;
    --surface: #ffffff;
    --surface-2: #f8f9fb;
    --green: #1a9d5a;
    --green-bg: #1a9d5a12;
    --red: #dc3545;
    --red-bg: #dc354510;
    --amber: #d98a00;
    --amber-bg: #f1ae4618;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px #23262a0c;
    --shadow: 0 8px 28px #23262a14;
    --shadow-lg: 0 20px 60px #23262a1f;

    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --serif: "Georgia", "Times New Roman", serif;

    --sidebar-w: 300px;
    --topbar-h: 60px;
    --content-max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─────────────────────────────  TOP BAR  ───────────────────────────── */
.tut-topbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h);
    z-index: 50;
    display: flex; align-items: center; gap: 14px;
    padding: 0 18px;
    background: linear-gradient(135deg, #0071bd 0%, #0068b0 40%, #004d8a 100%);
    box-shadow: 0 2px 14px #004d8a40;
}
.tut-topbar::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #f1ae46bb 50%, transparent);
}
.tut-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .01em; }
.tut-brand__logo {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.1));
    border: 1.5px solid rgba(255,255,255,.4);
    display: grid; place-items: center; font-size: 1.1rem;
}
.tut-brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.tut-brand__txt small { font-weight: 500; font-size: .64rem; color: rgba(255,255,255,.75); letter-spacing: .06em; text-transform: uppercase; }
.tut-topbar__spacer { flex: 1; }
.tut-progress-wrap { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .72rem; font-weight: 600; }
.tut-progress-track { width: 130px; height: 7px; border-radius: 6px; background: rgba(255,255,255,.22); overflow: hidden; }
.tut-progress-bar { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #f1ae46, #ffd483); transition: width .4s ease; }
.tut-burger { display: none; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.3); color: #fff; width: 38px; height: 38px; border-radius: 9px; cursor: pointer; font-size: 1.2rem; }

/* ─────────────────────────────  LAYOUT  ───────────────────────────── */
.tut-shell { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }

.tut-sidebar {
    position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--sidebar-w);
    background: var(--surface); border-right: 1px solid var(--line);
    overflow-y: auto; padding: 18px 12px 40px; z-index: 40;
    scrollbar-width: thin;
}
.tut-sidebar__title { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 8px 12px; }
.tut-nav { display: flex; flex-direction: column; gap: 3px; }
.tut-nav__item {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--ink); font-size: .86rem; font-weight: 600; cursor: pointer;
    transition: background .16s ease, color .16s ease; text-decoration: none;
}
.tut-nav__item:hover { background: var(--blue-050); text-decoration: none; }
.tut-nav__item.is-active { background: var(--blue-100); color: var(--blue-deep); }
.tut-nav__num {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: grid; place-items: center; font-size: .74rem; font-weight: 800;
    background: var(--surface-2); color: var(--faint); border: 1px solid var(--line);
}
.tut-nav__item.is-active .tut-nav__num { background: var(--blue); color: #fff; border-color: var(--blue); }
.tut-nav__item.is-done .tut-nav__num { background: var(--green); color: #fff; border-color: var(--green); }
.tut-nav__label { flex: 1; min-width: 0; line-height: 1.25; }

.tut-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.tut-content { max-width: var(--content-max); margin: 0 auto; padding: 40px 32px 90px; }

/* ─────────────────────────────  CHAPTER HEADER  ───────────────────────────── */
.tut-chapter-head { margin-bottom: 34px; }
.tut-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); background: var(--blue-050); padding: 5px 12px; border-radius: 30px; }
.tut-h1 { font-size: 2.15rem; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 10px; line-height: 1.15; }
.tut-lede { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 62ch; }

.tut-objectives {
    margin-top: 24px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.tut-objectives h4 { margin: 0 0 10px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.tut-objectives ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tut-objectives li { display: flex; gap: 10px; font-size: .93rem; }
.tut-objectives li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ─────────────────────────────  HEADINGS / TEXT  ───────────────────────────── */
.tut-content h2 {
    font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; margin: 46px 0 14px;
    padding-bottom: 10px; border-bottom: 2px solid var(--line); scroll-margin-top: 80px;
}
.tut-content h2 .tut-sec-ico { color: var(--blue); margin-right: 8px; }
.tut-content h3 { font-size: 1.16rem; font-weight: 700; margin: 30px 0 8px; }
.tut-content p { margin: 12px 0; }
.tut-content ul, .tut-content ol { margin: 12px 0; padding-left: 22px; }
.tut-content li { margin: 6px 0; }
.tut-content strong { font-weight: 700; }

/* UI vocabulary chips inline */
.ui { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--blue-050); border: 1px solid var(--blue-100); color: var(--blue-deep); font-weight: 600; font-size: .88em; white-space: nowrap; }
.term { font-style: italic; font-weight: 600; color: var(--ink); }
.path { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .84em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--blue-dark); white-space: nowrap; }

/* ─────────────────────────────  CALLOUTS  ───────────────────────────── */
.callout { position: relative; margin: 20px 0; padding: 16px 18px 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.callout__title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
.callout__icon { font-size: 1.2rem; line-height: 1; }
.callout p:first-of-type { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--radius) 0 0 var(--radius); }

.callout--story { background: linear-gradient(135deg, #fffdf7, #fff8ec); border-color: var(--gold-100); }
.callout--story::before { background: var(--gold); }
.callout--story .callout__title { color: #a9761a; }

.callout--info::before { background: var(--blue); }
.callout--info .callout__title { color: var(--blue-deep); }

.callout--tip { background: var(--green-bg); }
.callout--tip::before { background: var(--green); }
.callout--tip .callout__title { color: var(--green); }

.callout--warn { background: var(--amber-bg); }
.callout--warn::before { background: var(--amber); }
.callout--warn .callout__title { color: var(--amber); }

.callout--danger { background: var(--red-bg); }
.callout--danger::before { background: var(--red); }
.callout--danger .callout__title { color: var(--red); }

/* ─────────────────────────────  STEPS  ───────────────────────────── */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0; display: grid; gap: 2px; }
.steps > li { position: relative; counter-increment: step; padding: 12px 8px 12px 52px; border-bottom: 1px solid var(--line-soft); }
.steps > li:last-child { border-bottom: 0; }
.steps > li::before {
    content: counter(step); position: absolute; left: 8px; top: 10px;
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 3px 8px #0071bd40;
}

/* ─────────────────────────────  VOCAB TABLE  ───────────────────────────── */
.vocab { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.vocab-wrap { overflow-x: auto; }
.vocab th { text-align: left; background: var(--surface-2); color: var(--faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 11px 14px; border-bottom: 2px solid var(--line); }
.vocab td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface); vertical-align: top; }
.vocab tr:last-child td { border-bottom: 0; }
.vocab td:first-child { font-weight: 700; color: var(--blue-dark); white-space: nowrap; }

/* comparison / info cards grid */
.grid { display: grid; gap: 14px; margin: 18px 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.mini-card h4 { margin: 0 0 6px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.mini-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.mini-card__ico { font-size: 1.3rem; }

/* formula / highlight block */
.formula { margin: 18px 0; padding: 18px 20px; text-align: center; background: linear-gradient(135deg, var(--blue-050), var(--gold-050)); border: 1px dashed var(--blue-100); border-radius: var(--radius); font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); }
.formula small { display: block; margin-top: 6px; font-weight: 500; font-size: .82rem; color: var(--muted); }

/* ─────────────────────────────  EXERCISES  ───────────────────────────── */
.exo-intro { margin: 50px 0 22px; padding: 22px 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #0071bd 0%, #004d8a 100%); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.exo-intro::after { content: ''; position: absolute; top: -40px; right: -30px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, #f1ae4633, transparent 70%); }
.exo-intro h2 { border: 0; margin: 0 0 6px; color: #fff; font-size: 1.55rem; }
.exo-intro p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; }
.exo-intro .legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.exo-intro .legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 20px; }

.exo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 16px 0; overflow: hidden; transition: box-shadow .2s ease; }
.exo:hover { box-shadow: var(--shadow); }
.exo__head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.exo__check { flex-shrink: 0; margin-top: 2px; }
.exo__check input { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; }
.exo__body { flex: 1; min-width: 0; }
.exo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 7px; }
.exo__no { font-weight: 800; color: var(--blue-deep); font-size: .82rem; letter-spacing: .04em; }
.tag { font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.tag--rappel { background: var(--blue-050); color: var(--blue-deep); }
.tag--pratique { background: var(--gold-050); color: #a9761a; }
.tag--scenario { background: #7b2ff714; color: #6d28d9; }
.tag--diff { background: var(--surface-2); color: var(--faint); border: 1px solid var(--line); }
.exo__q { font-size: .97rem; margin: 0; }
.exo__q strong { color: var(--ink); }
.exo__reveal { margin: 0 18px 16px 54px; }
.exo__btn { background: var(--surface-2); border: 1px solid var(--line); color: var(--blue-deep); font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s ease; }
.exo__btn:hover { background: var(--blue-050); }
.exo__answer { margin-top: 12px; padding: 14px 16px; background: var(--green-bg); border: 1px solid #1a9d5a30; border-left: 4px solid var(--green); border-radius: var(--radius-sm); font-size: .92rem; display: none; }
.exo__answer.is-open { display: block; animation: ansIn .25s ease; }
.exo__answer h5 { margin: 0 0 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green); font-weight: 800; }
.exo__answer p:first-of-type { margin-top: 0; }
.exo__answer p:last-child { margin-bottom: 0; }
@keyframes ansIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ─────────────────────────────  PREV / NEXT  ───────────────────────────── */
.tut-pager { display: flex; gap: 14px; margin-top: 60px; }
.tut-pager a { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.tut-pager a:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.tut-pager small { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; }
.tut-pager b { font-size: .98rem; color: var(--ink); }
.tut-pager .next { text-align: right; }
.tut-pager .disabled { visibility: hidden; }

/* ─────────────────────────────  LANDING (index)  ───────────────────────────── */
.hero { max-width: 1080px; margin: 0 auto; padding: 60px 32px 20px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a9761a; background: var(--gold-050); border: 1px solid var(--gold-100); padding: 6px 14px; border-radius: 30px; }
.hero h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 20px 0 14px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero__lede { font-size: 1.22rem; color: var(--muted); max-width: 60ch; margin: 0 0 26px; }
.hero__cta { display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(135deg, #0071bd, #005fa3); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: 12px; box-shadow: 0 6px 20px #0071bd44; transition: transform .18s ease, box-shadow .18s ease; }
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px #0071bd55; text-decoration: none; }

.persona-card { max-width: 1080px; margin: 30px auto; padding: 26px 30px; background: linear-gradient(135deg, #fffdf7, #fff6e8); border: 1px solid var(--gold-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.persona-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: #a9761a; display: flex; align-items: center; gap: 10px; }
.persona-card p { margin: 8px 0; color: var(--ink); font-size: 1rem; }

.chapters-wrap { max-width: 1080px; margin: 40px auto 90px; padding: 0 32px; }
.chapters-wrap > h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 20px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ch-card { display: flex; gap: 15px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative; overflow: hidden; }
.ch-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--gold)); opacity: 0; transition: opacity .2s ease; }
.ch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); text-decoration: none; }
.ch-card:hover::before { opacity: 1; }
.ch-card__num { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; background: linear-gradient(135deg, var(--blue-050), var(--gold-050)); color: var(--blue-deep); border: 1px solid var(--blue-100); }
.ch-card__body { min-width: 0; }
.ch-card__title { font-size: 1.04rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.ch-card__desc { font-size: .86rem; color: var(--muted); margin: 0; }

.tut-footer { text-align: center; padding: 30px; color: var(--faint); font-size: .82rem; border-top: 1px solid var(--line); background: var(--surface); }

/* ─────────────────────────────  RESPONSIVE  ───────────────────────────── */
.tut-backdrop { display: none; }
@media (max-width: 980px) {
    .tut-burger { display: grid; place-items: center; }
    .tut-sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
    .tut-sidebar.is-open { transform: translateX(0); }
    .tut-main { margin-left: 0; }
    .tut-backdrop.is-open { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; background: #23262a55; z-index: 39; }
    .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 620px) {
    .tut-content { padding: 26px 18px 70px; }
    .tut-h1 { font-size: 1.7rem; }
    .exo__reveal { margin-left: 18px; }
    .tut-pager { flex-direction: column; }
    .tut-progress-track { width: 80px; }
}

/* print-friendly */
@media print {
    .tut-topbar, .tut-sidebar, .tut-pager, .exo__btn, .tut-burger, .tut-search, .tut-search-btn { display: none !important; }
    .tut-main { margin: 0; }
    .exo__answer, .faq-item__a { display: block !important; }
    body { background: #fff; }
}

/* ═══════════════════════════  SEARCH BUTTON (topbar)  ═══════════════════════════ */
.tut-search-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px; border-radius: 10px;
    background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.3);
    color: #fff; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
    transition: background .16s ease; -webkit-tap-highlight-color: transparent;
}
.tut-search-btn:hover { background: rgba(255,255,255,.24); }
.tut-search-btn__ico { font-size: .95rem; }

/* ═══════════════════════════  SEARCH OVERLAY  ═══════════════════════════ */
.tut-search {
    position: fixed; inset: 0; z-index: 90; display: none;
    background: #10223aa8; backdrop-filter: blur(3px);
    padding: 76px 16px 16px;
}
.tut-search.is-open { display: block; animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tut-search__panel {
    max-width: 640px; margin: 0 auto; background: var(--surface);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
    animation: popIn .2s cubic-bezier(.34,1.56,.64,1);
    max-height: calc(100dvh - 96px); display: flex; flex-direction: column;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.tut-search__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tut-search__ico { font-size: 1.1rem; flex-shrink: 0; }
.tut-search__input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.02rem; color: var(--ink); background: transparent; }
.tut-search__close { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--faint); font-size: .9rem; cursor: pointer; }
.tut-search__close:hover { background: var(--blue-050); color: var(--blue-deep); }
.tut-search__results { overflow-y: auto; padding: 8px; }
.tut-search__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--ink); }
.tut-search__item:hover { background: var(--blue-050); text-decoration: none; }
.tut-search__item-ico { font-size: 1.3rem; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--blue-050), var(--gold-050)); }
.tut-search__item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tut-search__item-title { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.tut-search__item-desc { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-search__item-tag { flex-shrink: 0; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 20px; }
.tut-search__item-tag--chapter { background: var(--blue-050); color: var(--blue-deep); }
.tut-search__item-tag--faq { background: var(--gold-050); color: #a9761a; }
.tut-search__empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .92rem; }
.tut-search__hint { padding: 14px 18px; color: var(--faint); font-size: .8rem; border-top: 1px solid var(--line-soft); }

/* ═══════════════════════════  FAQ PAGE  ═══════════════════════════ */
.faq-search-cta {
    display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; padding: 14px 18px;
    background: linear-gradient(135deg, var(--blue-050), var(--gold-050));
    border: 1px dashed var(--blue-100); border-radius: var(--radius); font-size: .92rem; color: var(--ink);
}
.faq-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 18px; background: none; border: 0; cursor: pointer; text-align: left;
    font: inherit; font-size: .98rem; font-weight: 700; color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
.faq-item__q:hover { background: var(--blue-050); }
.faq-item__chev { flex-shrink: 0; font-size: 1.3rem; color: var(--blue); transition: transform .22s ease; }
.faq-item.is-open .faq-item__chev { transform: rotate(180deg); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner { overflow: hidden; }
.faq-item.is-open .faq-item__a-inner { padding: 0 18px 16px; }
.faq-item__a p { margin: 0 0 10px; color: var(--ink); font-size: .93rem; font-weight: 400; }
.faq-item__link { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--blue-deep); }

/* ═══════════════════════════  MOBILE-FIRST POLISH  ═══════════════════════════ */
* { -webkit-tap-highlight-color: transparent; }
.tut-topbar { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
.tut-sidebar { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }

@media (max-width: 980px) {
    .tut-search-btn__lbl { display: none; }
    .tut-search-btn { width: 38px; justify-content: center; padding: 0; }
}
@media (max-width: 620px) {
    :root { --topbar-h: 56px; }
    body { font-size: 15.5px; }
    .tut-progress-wrap { display: none; }
    .tut-search { padding: 70px 10px 10px; }
    .tut-search__panel { max-height: calc(100dvh - 84px); }
    .tut-nav__item { padding: 12px 12px; }         /* bigger tap targets */
    .exo__head { padding: 15px 15px; }
    .exo__check input { width: 24px; height: 24px; }
    .exo__btn { min-height: 42px; padding: 9px 16px; }
    .faq-item__q { font-size: .94rem; }
    .hero { padding: 42px 20px 12px; }
    .hero__cta { width: 100%; justify-content: center; }
    .ch-grid { grid-template-columns: 1fr; }
    .mini-card, .callout { border-radius: var(--radius); }
}
@media (max-width: 400px) {
    .tut-brand__txt small { display: none; }
}

/* ═══════════════════════════  LANDING — actions + verticals  ═══════════════════════════ */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta--ghost {
    background: var(--surface); color: var(--blue-deep);
    border: 1.5px solid var(--blue-100); box-shadow: var(--shadow-sm);
}
.hero__cta--ghost:hover { background: var(--blue-050); box-shadow: var(--shadow); }

.verticals {
    max-width: 1080px; margin: 26px auto 0; padding: 22px 26px;
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 5px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.verticals__ico { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.verticals__title { margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; }
.verticals__txt { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.verticals__txt:first-of-type { margin-top: 0; }
.verticals__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vpill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 13px; border-radius: 30px; font-size: .82rem; font-weight: 700;
    color: var(--blue-dark); background: linear-gradient(135deg, var(--blue-050), var(--gold-050));
    border: 1px solid var(--blue-100);
}

/* ═══════════════  OFF-CANVAS DRAWER (landing menu — burger works everywhere)  ═══════════════ */
.tut-sidebar--drawer { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); z-index: 45; }
.tut-sidebar--drawer.is-open { transform: translateX(0); }
body.tut-drawer-open { overflow: hidden; }
@media (max-width: 620px) {
    .verticals { flex-direction: column; gap: 10px; padding: 18px; margin-top: 18px; }
}
