/* =========================================================
   Réduire Taille JPG — Design System v2 (Phase 2)
   Modern, lightweight, mobile-first CSS. No framework.
   ========================================================= */

:root {
    /* Brand */
    --brand:            #4f46e5;
    --brand-dark:       #4338ca;
    --brand-light:      #eef2ff;
    --brand-lighter:    #f5f3ff;
    --accent:           #06b6d4;

    /* Semantic */
    --success:          #059669;
    --success-bg:       #ecfdf5;
    --success-border:   #a7f3d0;
    --danger:           #dc2626;
    --danger-bg:        #fef2f2;
    --danger-border:    #fecaca;
    --info:             #2563eb;
    --info-bg:          #eff6ff;
    --info-border:      #bfdbfe;
    --warn:             #d97706;
    --warn-bg:          #fffbeb;
    --warn-border:      #fde68a;

    /* Neutrals */
    --text:             #0f172a;
    --text-soft:        #334155;
    --muted:            #64748b;
    --border:           #e2e8f0;
    --border-strong:    #cbd5e1;
    --bg:               #ffffff;
    --panel:            #f8fafc;
    --panel-2:          #f1f5f9;

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 24px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
    --shadow-lg: 0 10px 30px rgba(15,23,42,.08), 0 4px 8px rgba(15,23,42,.04);
    --ring:      0 0 0 4px rgba(79,70,229,.18);

    /* Layout */
    --container: 1120px;
    --nav-h: 68px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Inter", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--r-sm);
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    margin: 40px 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--brand);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    z-index: 100;
    font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; text-decoration: none; }

/* ---------- Header / Navigation ---------- */

.site-header-wrap {
    background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}
.brand-name { font-size: 1.05rem; line-height: 1.1; }
.brand-sub  { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; margin-top: 2px; }

/* Desktop nav */
.site-nav {
    list-style: none;
    display: none;
    align-items: center;
    gap: 2px;
    padding: 0;
    margin: 0;
}
.site-nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.site-nav a:hover  { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.site-nav a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }
.site-nav .cta a {
    background: var(--brand);
    color: #fff;
    padding: 9px 14px;
    margin-left: 6px;
}
.site-nav .cta a:hover { background: var(--brand-dark); color: #fff; }

/* Mobile toggle */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
}
.nav-toggle:hover { background: var(--panel); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,.45);
    z-index: 40;
}
.nav-drawer.open { display: block; }
.nav-drawer-panel {
    background: #fff;
    padding: 12px 16px 24px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
}
.nav-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-drawer a {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    min-height: 44px;
}
.nav-drawer a:hover  { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.nav-drawer a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; }

@media (min-width: 900px) {
    .site-nav   { display: flex; }
    .nav-toggle { display: none; }
    .nav-drawer { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
    padding: 32px 0 12px;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(79,70,229,.15);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }

.hero h1 {
    font-size: clamp(1.7rem, 4.2vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 12px 0 8px;
    font-weight: 800;
    color: var(--text);
}
.hero .lead {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 60ch;
    margin: 0 0 12px;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}
.badge svg { width: 14px; height: 14px; color: var(--success); }

/* ---------- Cards / Panels ---------- */

.tool-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin: 20px 0;
}
@media (min-width: 640px) { .tool-card { padding: 28px; } }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.card-muted {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 18px;
}

/* ---------- Form controls ---------- */

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.form-row label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.form-row .hint,
.hint {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-input, select, input[type="number"], input[type="text"], input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: #fff;
    min-height: 46px;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, select:focus, input[type="number"]:focus, input[type="text"]:focus, input[type="email"]:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: var(--ring);
}

select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--brand) var(--val, 50%), var(--panel-2) var(--val, 50%));
    border-radius: 999px;
    outline: none;
    padding: 0;
    margin: 12px 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .1s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.08); }
input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
input[type="range"]:focus { box-shadow: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }

.range-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-weight: 600;
    color: var(--text);
}
.range-value {
    font-variant-numeric: tabular-nums;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 0;
}
.checkbox-row input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--brand);
    cursor: pointer;
}
.checkbox-row label { font-weight: 500; cursor: pointer; margin: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    min-height: 46px;
    line-height: 1.2;
    transition: transform .05s, background .15s, box-shadow .15s, color .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }

.btn-primary  { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover  { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-success  { background: var(--success); color: #fff; box-shadow: var(--shadow-sm); }
.btn-success:hover  { background: #047857; color: #fff; box-shadow: var(--shadow-md); }

.btn-outline  { background: #fff; color: var(--brand-dark); border-color: var(--border-strong); }
.btn-outline:hover  { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); }

.btn-lg { padding: 14px 26px; font-size: 1.05rem; min-height: 52px; border-radius: 14px; }

.btn-block { width: 100%; }

.btn svg { width: 18px; height: 18px; }

/* ---------- Segmented control (radio group) ---------- */

.segments {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (min-width: 640px) {
    .segments { grid-template-columns: repeat(3, 1fr); }
    .segments.segments-2 { grid-template-columns: repeat(2, 1fr); }
    .segments.segments-6 { grid-template-columns: repeat(6, 1fr); }
}

.segments label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    background: #fff;
    cursor: pointer;
    min-height: 46px;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    color: var(--text-soft);
    transition: all .15s;
    -webkit-user-select: none;
    user-select: none;
}
.segments label:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-lighter); }
.segments input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.segments label:has(input[type="radio"]:checked) {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.segments input[type="radio"]:focus-visible + span { text-decoration: underline; }

/* ---------- Upload zone (custom French drag & drop) ---------- */

.upload-zone {
    position: relative;
    display: block;
    width: 100%;
    border: 2px dashed var(--border-strong);
    background: var(--panel);
    border-radius: var(--r-xl);
    padding: 28px 20px;
    text-align: center;
    transition: all .18s ease;
    cursor: pointer;
}
.upload-zone:hover { border-color: var(--brand); background: var(--brand-lighter); }
.upload-zone.is-dragover {
    border-color: var(--brand);
    background: var(--brand-light);
    box-shadow: var(--ring);
}
.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.upload-zone .upload-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.upload-zone .upload-icon svg { width: 28px; height: 28px; }
.upload-zone .upload-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 0 4px;
}
.upload-zone .upload-cta {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: underline;
}
.upload-zone .upload-hint {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 6px;
}
.upload-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    background: var(--success-bg);
}
.upload-zone.has-file .upload-icon { color: var(--success); }
.upload-zone .selected-file {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: left;
    font-size: 0.92rem;
    color: var(--text);
    word-break: break-all;
}
.upload-zone.has-file .selected-file { display: block; }
.upload-zone .selected-file .filename { font-weight: 600; }
.upload-zone .selected-file .filemeta { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
}
.upload-clear {
    display: none;
    background: none;
    border: none;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 6px 8px;
}
.upload-zone.has-file .upload-clear { display: inline-block; }

/* ---------- Results ---------- */

.result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}
@media (min-width: 720px) {
    .result-grid { grid-template-columns: 1fr 1fr; }
}
.result-card {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    background: #fff;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.result-card.is-featured {
    border-color: var(--success);
    box-shadow: 0 0 0 2px rgba(5,150,105,.08), var(--shadow-md);
}
.result-card h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    font-size: 0.78rem;
}
.result-card .result-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
}
.result-card .result-meta .sep { color: var(--border-strong); }
.result-card img {
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto;
    border-radius: var(--r-md);
    object-fit: contain;
    background: var(--panel);
}
.result-metric {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 10px;
    margin: 16px 0 4px;
}
.result-metric > div {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 6px;
    background: var(--panel);
    border-radius: var(--r-md);
}
.result-metric .num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.result-metric .num.pos { color: var(--success); }
.result-metric .lbl {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.download-row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ---------- Alerts ---------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin: 12px 0;
    border: 1px solid;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.alert-error   { background: var(--danger-bg);  color: #991b1b; border-color: var(--danger-border); }
.alert-success { background: var(--success-bg); color: #065f46; border-color: var(--success-border); }
.alert-info    { background: var(--info-bg);    color: #1e40af; border-color: var(--info-border); }
.alert-warn    { background: var(--warn-bg);    color: #92400e; border-color: var(--warn-border); }
.alert svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Content typography ---------- */

.content h2 {
    margin-top: 36px;
    margin-bottom: 12px;
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--text);
}
.content h3 {
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
.content p, .content li {
    font-size: 1rem;
    color: var(--text-soft);
}
.content ol, .content ul {
    padding-left: 22px;
}
.content li { margin-bottom: 6px; }
.content strong { color: var(--text); }

/* Callout box */
.callout {
    border-left: 4px solid var(--brand);
    background: var(--brand-lighter);
    padding: 14px 16px;
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.callout-warn { border-color: var(--warn); background: var(--warn-bg); }

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.feature {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.feature .feature-icon {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature .feature-icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 4px; font-size: 1rem; }
.feature p  { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Steps */
.steps {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    counter-reset: step;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
    counter-increment: step;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    position: relative;
}
.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.steps li h3 { margin: 4px 0; font-size: 1rem; }
.steps li p  { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Tool cards linking to other tools */
.tool-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
}
@media (min-width: 720px) { .tool-links { grid-template-columns: repeat(3, 1fr); } }
.tool-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    color: var(--text);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tool-link:hover {
    text-decoration: none;
    color: var(--text);
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.tool-link .tl-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tool-link .tl-icon svg { width: 20px; height: 20px; }
.tool-link h3 { margin: 0; font-size: 1.05rem; }
.tool-link p  { margin: 0; color: var(--muted); font-size: 0.92rem; }
.tool-link .tl-arrow { color: var(--brand); font-weight: 700; margin-top: auto; }

/* FAQ accordion */
.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}
.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 4px 4px;
    transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--brand); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body {
    padding: 0 16px 14px;
    color: var(--text-soft);
}
.faq .faq-body p { margin: 0 0 8px; }
.faq .faq-body p:last-child { margin: 0; }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 14px 0 4px;
    font-size: 0.88rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.breadcrumbs .sep { color: var(--border-strong); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* Footer */
.site-footer {
    padding: 32px 0 40px;
    margin-top: 56px;
    border-top: 1px solid var(--border);
    background: var(--panel);
    color: var(--muted);
}
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 22px;
}
@media (min-width: 720px) {
    .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 {
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    font-weight: 700;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.site-footer ul a {
    display: inline-block;
    padding: 4px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
}
.site-footer ul a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-brand { max-width: 42ch; }
.footer-brand p { font-size: 0.92rem; margin: 6px 0 0; color: var(--muted); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}

/* Ad slot */
.ad-slot {
    min-height: 100px;
    margin: 28px auto;
    text-align: center;
    overflow: hidden;
    display: block;
    max-width: 100%;
    background: transparent;
}
.ad-label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-align: center;
}

/* Contact card */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: linear-gradient(180deg, #fff 0%, var(--brand-lighter) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}
.contact-card .contact-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    margin-bottom: 14px;
}
.contact-card .contact-icon svg { width: 30px; height: 30px; }
.contact-card .email-display {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 6px 0 14px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid var(--border);
    display: inline-block;
    word-break: break-all;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 10px; } .mt-3 { margin-top: 14px; } .mt-4 { margin-top: 20px; } .mt-5 { margin-top: 28px; }
.mb-2 { margin-bottom: 10px; } .mb-3 { margin-bottom: 14px; } .mb-4 { margin-bottom: 20px; }
.small { font-size: 0.88rem; color: var(--muted); }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Prevent horizontal overflow of long strings */
table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-wrap: break-word; }

/* Print */
@media print {
    .site-header-wrap, .site-footer, .ad-slot, .upload-zone, .btn { display: none !important; }
}
