/* ============================================================
   TOURAK DIGITAL — Outils gratuits (/outils/)
   Design system : indigo #6366f1 / violet #8b5cf6 / rose #ec4899
   Light par défaut (fond #f8f9fc), dark via [data-theme="dark"]
   Mobile-first, namespace .tl-
   ============================================================ */

/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
    --tl-indigo: #6366f1;
    --tl-violet: #8b5cf6;
    --tl-rose: #ec4899;
    --tl-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --tl-grad-soft: linear-gradient(135deg, rgba(99,102,241,.10) 0%, rgba(139,92,246,.08) 50%, rgba(236,72,153,.08) 100%);

    --tl-bg: #f8f9fc;
    --tl-surface: #ffffff;
    --tl-surface-2: #f0f1f5;
    --tl-surface-3: #e8eaf2;
    --tl-text: #1a1a2e;
    --tl-text-2: #4a4a5a;
    --tl-muted: #6b7280;
    --tl-border: rgba(26, 26, 46, 0.10);
    --tl-border-soft: rgba(26, 26, 46, 0.06);

    --tl-ok: #16a34a;
    --tl-ok-bg: rgba(22, 163, 74, 0.10);
    --tl-warn: #d97706;
    --tl-warn-bg: rgba(217, 119, 6, 0.10);
    --tl-bad: #dc2626;
    --tl-bad-bg: rgba(220, 38, 38, 0.08);

    --tl-code-bg: #12122b;
    --tl-code-text: #e2e8f0;
    --tl-code-border: rgba(139, 92, 246, 0.35);

    --tl-serp-bg: #ffffff;
    --tl-serp-border: #dadce0;
    --tl-serp-title: #1a0dab;
    --tl-serp-url: #006621;
    --tl-serp-text: #4d5156;

    --tl-shadow: 0 1px 3px rgba(15, 15, 35, 0.06), 0 4px 14px rgba(15, 15, 35, 0.05);
    --tl-shadow-lift: 0 12px 28px rgba(99, 102, 241, 0.16), 0 4px 10px rgba(15, 15, 35, 0.08);
    --tl-ring: 0 0 0 3px rgba(99, 102, 241, 0.18);

    --tl-radius: 16px;
    --tl-radius-sm: 10px;
    --tl-radius-xs: 8px;

    --tl-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tl-font-display: 'Space Grotesk', 'Inter', sans-serif;
    --tl-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
    --tl-bg: #0a0a1a;
    --tl-surface: #12122b;
    --tl-surface-2: #191938;
    --tl-surface-3: #222248;
    --tl-text: #f4f4f8;
    --tl-text-2: #b6b6c6;
    --tl-muted: #8b8b9e;
    --tl-border: rgba(255, 255, 255, 0.12);
    --tl-border-soft: rgba(255, 255, 255, 0.07);

    --tl-ok: #4ade80;
    --tl-ok-bg: rgba(74, 222, 128, 0.12);
    --tl-warn: #fbbf24;
    --tl-warn-bg: rgba(251, 191, 36, 0.12);
    --tl-bad: #f87171;
    --tl-bad-bg: rgba(248, 113, 113, 0.12);

    --tl-code-bg: #0d0d22;
    --tl-code-text: #dbe4f0;

    --tl-grad-soft: linear-gradient(135deg, rgba(99,102,241,.18) 0%, rgba(139,92,246,.14) 50%, rgba(236,72,153,.14) 100%);
    --tl-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
    --tl-shadow-lift: 0 14px 32px rgba(99, 102, 241, 0.25), 0 4px 12px rgba(0, 0, 0, 0.45);
    --tl-ring: 0 0 0 3px rgba(139, 92, 246, 0.30);
}

/* ------------------------------------------------------------
   2. Layout de base
   ------------------------------------------------------------ */
.tl-container {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 20px;
    min-width: 0;
}

.tl-section,
.tl-page {
    font-family: var(--tl-font);
    color: var(--tl-text);
    padding-block: clamp(40px, 7vw, 72px);
    overflow-x: clip;
}

.tl-section-alt {
    background:
        var(--tl-grad-soft),
        var(--tl-bg);
}

.tl-page .tl-container > * + * {
    margin-top: clamp(36px, 6vw, 56px);
}

/* ------------------------------------------------------------
   3. Hero
   ------------------------------------------------------------ */
.tl-hero {
    position: relative;
    font-family: var(--tl-font);
    color: var(--tl-text);
    text-align: center;
    padding-block: clamp(44px, 8vw, 84px) clamp(28px, 5vw, 48px);
}

section.tl-hero {
    background:
        radial-gradient(52rem 26rem at 50% -8rem, rgba(99, 102, 241, 0.14), transparent 70%),
        radial-gradient(30rem 18rem at 85% 0, rgba(236, 72, 153, 0.10), transparent 70%);
}

header.tl-hero {
    padding-block: clamp(20px, 4vw, 36px) 0;
}

.tl-hero-tool {
    padding-bottom: clamp(16px, 3vw, 28px);
}

.tl-h1,
.tl-title {
    font-family: var(--tl-font-display);
    font-size: clamp(1.75rem, 4.6vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.55em auto 0.4em;
    max-width: 22ch;
    overflow-wrap: break-word;
}

.tl-grad {
    background: var(--tl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tl-lead {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.65;
    color: var(--tl-text-2);
    max-width: 62ch;
    margin: 0 auto;
}

.tl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tl-indigo);
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 0 6px;
}

.tl-hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

/* ------------------------------------------------------------
   4. Typo, badges, icônes
   ------------------------------------------------------------ */
.tl-h2 {
    font-family: var(--tl-font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--tl-text);
    margin: 0 0 0.7em;
}

.tl-h3 {
    font-family: var(--tl-font-display);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--tl-text);
    margin: 1.6em 0 0.6em;
}

.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tl-text-2);
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: 999px;
    padding: 6px 13px;
    box-shadow: var(--tl-shadow);
}

.tl-badge .tl-icon,
.tl-badge svg {
    color: var(--tl-indigo);
    flex: none;
}

.tl-badge-free {
    color: var(--tl-ok);
    background: var(--tl-ok-bg);
    border-color: transparent;
    box-shadow: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.tl-icon {
    width: 22px;
    height: 22px;
    flex: none;
    vertical-align: -0.28em;
}

.tl-icon-sm {
    width: 15px;
    height: 15px;
    vertical-align: -0.15em;
}

.tl-req { color: var(--tl-rose); font-weight: 700; }

.tl-opt {
    font-weight: 400;
    font-size: 0.8em;
    color: var(--tl-muted);
}

/* ------------------------------------------------------------
   5. Fil d'Ariane (2 variantes de markup)
   ------------------------------------------------------------ */
.tl-breadcrumb {
    font-size: 0.82rem;
    color: var(--tl-muted);
    margin-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tl-breadcrumb::-webkit-scrollbar { display: none; }

.tl-breadcrumb ol {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.tl-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    color: var(--tl-border);
}

.tl-breadcrumb a {
    color: var(--tl-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tl-breadcrumb a:hover { color: var(--tl-indigo); }

.tl-breadcrumb [aria-current="page"] { color: var(--tl-text-2); font-weight: 500; }

.tl-breadcrumb-sep { margin-inline: 7px; color: var(--tl-border); }

/* ------------------------------------------------------------
   6. Boutons
   ------------------------------------------------------------ */
.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--tl-font);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
}

.tl-btn:focus-visible {
    outline: 2px solid var(--tl-indigo);
    outline-offset: 3px;
}

.tl-btn-primary {
    color: #fff;
    background: var(--tl-grad);
    background-size: 160% 160%;
    background-position: 0 0;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
}

.tl-btn-primary:hover {
    transform: translateY(-2px);
    background-position: 100% 100%;
    box-shadow: 0 10px 26px rgba(139, 92, 246, 0.38);
}

.tl-btn-primary:active { transform: translateY(0); }

.tl-btn-ghost,
.tl-btn-secondaire {
    color: var(--tl-indigo);
    background: var(--tl-surface);
    border-color: rgba(99, 102, 241, 0.35);
}

.tl-btn-ghost:hover,
.tl-btn-secondaire:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--tl-indigo);
    transform: translateY(-1px);
}

.tl-btn[disabled],
.tl-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.tl-btn.is-loading .tl-icon { animation: tl-spin 0.9s linear infinite; }

@keyframes tl-spin { to { transform: rotate(360deg); } }

.tl-btn.is-copied {
    color: var(--tl-ok);
    border-color: var(--tl-ok);
    background: var(--tl-ok-bg);
}

/* ------------------------------------------------------------
   7. Grille du hub + cartes outils (hover lift)
   ------------------------------------------------------------ */
.tl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.tl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    padding: 26px 24px;
    box-shadow: var(--tl-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-width: 0;
}

.tl-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: var(--tl-radius) var(--tl-radius) 0 0;
    background: var(--tl-grad);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tl-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tl-shadow-lift);
    border-color: rgba(99, 102, 241, 0.45);
}

.tl-card:hover::before { opacity: 1; }

.tl-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--tl-indigo);
    background: var(--tl-grad-soft);
    border: 1px solid rgba(99, 102, 241, 0.22);
}

.tl-card-title {
    font-family: var(--tl-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.tl-card-title a {
    color: var(--tl-text);
    text-decoration: none;
}

/* toute la carte cliquable */
.tl-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--tl-radius);
}

.tl-card-title a:focus-visible::after {
    outline: 2px solid var(--tl-indigo);
    outline-offset: 2px;
}

.tl-card-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--tl-text-2);
    margin: 0;
    flex: 1;
}

.tl-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 0;
}

.tl-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tl-indigo);
    transition: gap 0.2s ease;
}

.tl-card:hover .tl-card-link { gap: 10px; }

.tl-card-accent {
    background:
        var(--tl-grad-soft),
        var(--tl-surface);
    border-color: rgba(139, 92, 246, 0.28);
}

/* ------------------------------------------------------------
   8. Split (texte + aside)
   ------------------------------------------------------------ */
.tl-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.tl-split-main p {
    color: var(--tl-text-2);
    line-height: 1.7;
    margin: 0 0 1em;
}

.tl-split-main .tl-btn { margin-top: 8px; }

.tl-split-aside {
    display: grid;
    gap: 18px;
    align-content: start;
}

/* ------------------------------------------------------------
   9. Bloc outil + formulaires
   ------------------------------------------------------------ */
.tl-tool {
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    box-shadow: var(--tl-shadow);
    padding: clamp(20px, 4vw, 34px);
    min-width: 0;
}

.tl-form { display: grid; gap: 18px; }

.tl-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.tl-tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.tl-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.tl-field-full { grid-column: 1 / -1; }

.tl-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tl-text);
}

.tl-input,
.tl-select,
.tl-textarea {
    font-family: var(--tl-font);
    font-size: 0.95rem;
    color: var(--tl-text);
    background: var(--tl-bg);
    border: 1.5px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 12px 14px;
    width: 100%;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
}

.tl-input::placeholder,
.tl-textarea::placeholder { color: var(--tl-muted); opacity: 0.8; }

.tl-input:hover,
.tl-select:hover,
.tl-textarea:hover { border-color: rgba(99, 102, 241, 0.4); }

.tl-input:focus,
.tl-select:focus,
.tl-textarea:focus,
.tl-input:focus-visible,
.tl-select:focus-visible,
.tl-textarea:focus-visible {
    outline: none;
    border-color: var(--tl-indigo);
    background: var(--tl-surface);
    box-shadow: var(--tl-ring);
}

.tl-input.is-invalid,
.tl-textarea.is-invalid,
.tl-select.is-invalid {
    border-color: var(--tl-bad);
    box-shadow: 0 0 0 3px var(--tl-bad-bg);
}

.tl-select {
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
    cursor: pointer;
}

.tl-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.55;
}

.tl-textarea-code {
    font-family: var(--tl-mono);
    font-size: 0.83rem;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
}

.tl-hint {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--tl-muted);
    margin: 0;
}

.tl-form-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tl-bad);
    background: var(--tl-bad-bg);
    border: 1px solid var(--tl-bad);
    border-radius: var(--tl-radius-sm);
    padding: 12px 14px;
    margin: 0;
}

.tl-form-error .tl-icon { margin-top: 1px; }

.tl-form-error[hidden] { display: none; }

.tl-success {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--tl-ok);
    background: var(--tl-ok-bg);
    border-radius: var(--tl-radius-sm);
    padding: 14px 16px;
}

/* fieldsets & cases à cocher */
.tl-fieldset {
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 18px 16px 16px;
    margin: 0 0 20px;
    min-width: 0;
}

.tl-legend {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-indigo);
    padding-inline: 8px;
}

.tl-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tl-choices-col { flex-direction: column; }

.tl-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--tl-text-2);
    background: var(--tl-bg);
    border: 1.5px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 11px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tl-choice:hover { border-color: rgba(99, 102, 241, 0.45); }

.tl-choice:has(input:checked) {
    border-color: var(--tl-indigo);
    background: rgba(99, 102, 241, 0.07);
    color: var(--tl-text);
}

.tl-choice:has(input:focus-visible) { box-shadow: var(--tl-ring); }

.tl-choice input {
    accent-color: var(--tl-indigo);
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex: none;
    cursor: pointer;
}

.tl-choice code {
    font-family: var(--tl-mono);
    font-size: 0.82em;
    background: var(--tl-surface-2);
    border-radius: 5px;
    padding: 1px 5px;
}

/* honeypot : totalement invisible mais présent dans le DOM */
.tl-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* onglets (analyseur) */
.tl-tabs {
    display: flex;
    gap: 6px;
    background: var(--tl-surface-2);
    border-radius: 999px;
    padding: 5px;
    width: fit-content;
    max-width: 100%;
}

.tl-tab {
    font-family: var(--tl-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tl-text-2);
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tl-tab:focus-visible {
    outline: 2px solid var(--tl-indigo);
    outline-offset: 2px;
}

.tl-tab.is-active {
    color: #fff;
    background: var(--tl-grad);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

.tl-panel { min-width: 0; }

.tl-panel[hidden] { display: none; }

/* ------------------------------------------------------------
   10. Zone résultat + code monospace + bouton copier
   ------------------------------------------------------------ */
.tl-results,
.tl-sortie {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px dashed var(--tl-border);
    min-width: 0;
    animation: tl-appear 0.35s ease both;
}

.tl-results[hidden],
.tl-sortie[hidden] { display: none; }

@keyframes tl-appear {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.tl-code-wrap {
    position: relative;
    margin: 14px 0;
    min-width: 0;
}

.tl-code {
    font-family: var(--tl-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--tl-code-text);
    background: var(--tl-code-bg);
    border: 1px solid var(--tl-code-border);
    border-radius: var(--tl-radius-sm);
    padding: 20px 18px;
    margin: 0;
    overflow-x: auto;
    tab-size: 2;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--tl-violet) transparent;
}

.tl-code code {
    font-family: inherit;
    white-space: pre;
    display: block;
    min-width: max-content;
}

.tl-code-wrap > .tl-btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 7px 14px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: #cfd3f8;
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.tl-code-wrap > .tl-btn-copy:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--tl-violet);
    color: #fff;
}

.tl-code-wrap > .tl-btn-copy.is-copied {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.tl-code-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.tl-code-actions .tl-btn { padding: 10px 18px; font-size: 0.88rem; }

/* liste de validation (schema) */
.tl-validation {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 0 0 8px;
    padding: 0;
    font-size: 0.87rem;
}

.tl-validation li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 7px 12px;
    border-radius: var(--tl-radius-xs);
    color: var(--tl-ok);
    background: var(--tl-ok-bg);
}

.tl-validation li.is-warn {
    color: var(--tl-warn);
    background: var(--tl-warn-bg);
}

.tl-validation li::before {
    content: "✓";
    font-weight: 700;
    flex: none;
}

.tl-validation li.is-warn::before { content: "!"; }

/* ------------------------------------------------------------
   11. Propositions meta + aperçu Google
   ------------------------------------------------------------ */
.tl-prop {
    background: var(--tl-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius);
    padding: 20px 18px;
    margin-top: 18px;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.tl-prop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tl-prop-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-family: var(--tl-font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: var(--tl-grad);
    flex: none;
}

.tl-prop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-prop-actions .tl-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
}

.tl-counter {
    font-size: 0.78rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--tl-muted);
    align-self: flex-end;
    transition: color 0.2s ease;
}

.tl-counter.is-ok   { color: var(--tl-ok); }
.tl-counter.is-warn { color: var(--tl-warn); }
.tl-counter.is-bad  { color: var(--tl-bad); }

/* Aperçu SERP Google : réaliste, toujours sur fond blanc */
.tl-serp {
    background: var(--tl-serp-bg);
    border: 1px solid var(--tl-serp-border);
    border-radius: 12px;
    padding: 16px 18px;
    font-family: arial, helvetica, sans-serif;
    min-width: 0;
    overflow: hidden;
}

.tl-serp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tl-serp-favicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f3f4;
    border: 1px solid #ecedef;
    color: #5f6368;
    font-size: 0.75rem;
    font-weight: 700;
    flex: none;
}

.tl-serp-site {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.tl-serp-name {
    font-size: 0.85rem;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-serp-url {
    font-size: 0.78rem;
    color: var(--tl-serp-url);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-serp-title {
    display: block;
    font-size: 1.22rem;
    line-height: 1.3;
    color: var(--tl-serp-title);
    margin: 2px 0 4px;
    overflow-wrap: break-word;
}

.tl-serp-desc {
    font-size: 0.875rem;
    line-height: 1.58;
    color: var(--tl-serp-text);
    margin: 0;
    overflow-wrap: break-word;
}

/* lignes question/réponse du schéma FAQ */
.tl-qa-row {
    position: relative;
    display: grid;
    gap: 14px;
    background: var(--tl-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 16px 14px;
    margin-bottom: 14px;
}

.tl-qa-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--tl-border);
    background: var(--tl-surface);
    color: var(--tl-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tl-qa-remove:hover {
    color: var(--tl-bad);
    border-color: var(--tl-bad);
    background: var(--tl-bad-bg);
}

.tl-qa-remove:focus-visible {
    outline: 2px solid var(--tl-indigo);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   12. Score circulaire (analyseur SEO)
   ------------------------------------------------------------ */
.tl-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 26px;
}

.tl-gauge {
    --tl-score: 100;
    --tl-gauge-color: var(--tl-indigo);
    position: relative;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, var(--tl-surface) 78%, transparent 79% 100%),
        conic-gradient(var(--tl-gauge-color) calc(var(--tl-score) * 1%), var(--tl-surface-2) 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: var(--tl-shadow);
}

.tl-gauge-value {
    font-family: var(--tl-font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--tl-text);
    font-variant-numeric: tabular-nums;
}

.tl-gauge-max {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tl-muted);
    margin-top: 2px;
}

.tl-score.is-low .tl-gauge  { --tl-gauge-color: var(--tl-bad); }
.tl-score.is-mid .tl-gauge  { --tl-gauge-color: var(--tl-warn); }
.tl-score.is-good .tl-gauge { --tl-gauge-color: var(--tl-ok); }

.tl-score-body p {
    color: var(--tl-text-2);
    line-height: 1.6;
    margin: 0;
    max-width: 46ch;
}

/* détail des vérifications */
.tl-checks {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
}

.tl-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: start;
    background: var(--tl-bg);
    border: 1px solid var(--tl-border-soft);
    border-left: 4px solid var(--tl-muted);
    border-radius: var(--tl-radius-xs);
    padding: 12px 14px;
    font-size: 0.9rem;
}

.tl-check[data-etat="ok"]   { border-left-color: var(--tl-ok); }
.tl-check[data-etat="warn"] { border-left-color: var(--tl-warn); }
.tl-check[data-etat="bad"]  { border-left-color: var(--tl-bad); }

.tl-check-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    grid-row: span 2;
    color: var(--tl-muted);
    background: var(--tl-surface-2);
}

.tl-check[data-etat="ok"] .tl-check-badge   { color: var(--tl-ok);   background: var(--tl-ok-bg); }
.tl-check[data-etat="warn"] .tl-check-badge { color: var(--tl-warn); background: var(--tl-warn-bg); }
.tl-check[data-etat="bad"] .tl-check-badge  { color: var(--tl-bad);  background: var(--tl-bad-bg); }

.tl-check-label { font-weight: 600; color: var(--tl-text); }

.tl-check-detail {
    grid-column: 2;
    color: var(--tl-text-2);
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* recommandations priorisées */
.tl-recos {
    list-style: none;
    counter-reset: tl-reco;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.tl-reco {
    position: relative;
    background: var(--tl-bg);
    border: 1px solid var(--tl-border-soft);
    border-radius: var(--tl-radius-xs);
    padding: 12px 14px 12px 46px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--tl-text-2);
}

.tl-reco::before {
    counter-increment: tl-reco;
    content: counter(tl-reco);
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--tl-muted);
}

.tl-reco[data-priorite="haute"]::before   { background: var(--tl-bad); }
.tl-reco[data-priorite="moyenne"]::before { background: var(--tl-warn); }
.tl-reco[data-priorite="faible"]::before  { background: var(--tl-indigo); }

.tl-reco-prio {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 2px 9px;
    margin-right: 8px;
    color: var(--tl-indigo);
    background: rgba(99, 102, 241, 0.12);
}

.tl-reco[data-priorite="haute"] .tl-reco-prio   { color: var(--tl-bad);  background: var(--tl-bad-bg); }
.tl-reco[data-priorite="moyenne"] .tl-reco-prio { color: var(--tl-warn); background: var(--tl-warn-bg); }

/* ------------------------------------------------------------
   13. Stats live (compteur de mots)
   ------------------------------------------------------------ */
.tl-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.tl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    background: var(--tl-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 15px 8px;
    transition: border-color 0.2s ease;
}

.tl-stat:hover { border-color: rgba(99, 102, 241, 0.4); }

.tl-stat-valeur {
    font-family: var(--tl-font-display);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
    color: var(--tl-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    background: var(--tl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tl-stat-nom {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tl-muted);
}

/* alertes */
.tl-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--tl-radius-sm);
    padding: 13px 15px;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 18px;
}

.tl-alert p { margin: 0; }

.tl-alert svg { flex: none; margin-top: 2px; }

.tl-alert-warn {
    color: var(--tl-warn);
    background: var(--tl-warn-bg);
    border: 1px solid var(--tl-warn);
}

.tl-alert[hidden] { display: none; }

/* top mots + barres de densité */
.tl-topwords { margin-top: 26px; }

.tl-empty {
    color: var(--tl-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    background: var(--tl-bg);
    border: 1px dashed var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 18px 16px;
    text-align: center;
}

.tl-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--tl-radius-sm);
}

.tl-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.tl-table[hidden] { display: none; }

.tl-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tl-muted);
    padding: 10px 12px;
    border-bottom: 2px solid var(--tl-border);
    white-space: nowrap;
}

.tl-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--tl-border-soft);
    color: var(--tl-text-2);
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.tl-table tbody tr:hover { background: rgba(99, 102, 241, 0.05); }

.tl-table .tl-mot {
    font-weight: 600;
    color: var(--tl-text);
    overflow-wrap: anywhere;
}

.tl-table tr.is-over td { color: var(--tl-warn); }
.tl-table tr.is-over .tl-mot { color: var(--tl-warn); }

.tl-bar {
    width: 100%;
    min-width: 120px;
    height: 8px;
    border-radius: 999px;
    background: var(--tl-surface-2);
    overflow: hidden;
}

.tl-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--tl-grad);
    transition: width 0.4s ease;
}

.tl-bar-fill.is-over {
    background: linear-gradient(90deg, var(--tl-warn), var(--tl-bad));
}

/* ------------------------------------------------------------
   14. Résultats ROI
   ------------------------------------------------------------ */
.tl-resultats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.tl-res {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--tl-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 15px 16px;
    min-width: 0;
}

.tl-res-nom {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tl-muted);
}

.tl-res-valeur {
    font-family: var(--tl-font-display);
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    font-weight: 700;
    color: var(--tl-text);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.tl-res-large { grid-column: 1 / -1; }

.tl-res.is-positive {
    border-color: var(--tl-ok);
    background: var(--tl-ok-bg);
}

.tl-res.is-positive .tl-res-valeur { color: var(--tl-ok); }

.tl-res.is-negative {
    border-color: var(--tl-bad);
    background: var(--tl-bad-bg);
}

.tl-res.is-negative .tl-res-valeur { color: var(--tl-bad); }

.tl-interp {
    margin-top: 18px;
    border-radius: var(--tl-radius-sm);
    padding: 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--tl-text-2);
}

.tl-interp:not(:empty) {
    padding: 16px 18px;
    border: 1px solid var(--tl-border);
    background: var(--tl-bg);
}

.tl-interp strong { color: var(--tl-text); }

.tl-interp.is-good {
    border-color: var(--tl-ok);
    background: var(--tl-ok-bg);
}

.tl-interp.is-warn {
    border-color: var(--tl-warn);
    background: var(--tl-warn-bg);
}

.tl-interp.is-bad {
    border-color: var(--tl-bad);
    background: var(--tl-bad-bg);
}

/* ------------------------------------------------------------
   15. Mentions légales : sortie document
   ------------------------------------------------------------ */
.tl-sortie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.tl-ml-resultat {
    background: var(--tl-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: clamp(18px, 4vw, 30px);
    line-height: 1.7;
    font-size: 0.93rem;
    color: var(--tl-text-2);
    overflow-wrap: break-word;
}

.tl-ml-resultat h2 {
    font-family: var(--tl-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--tl-text);
    margin: 1.6em 0 0.5em;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.25);
}

.tl-ml-resultat h2:first-child { margin-top: 0; }

.tl-ml-resultat p { margin: 0 0 0.9em; }

/* ------------------------------------------------------------
   16. Idées de contenu
   ------------------------------------------------------------ */
.tl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tl-idees {
    list-style: none;
    counter-reset: tl-idee;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.tl-idee {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    align-items: start;
    background: var(--tl-bg);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 14px 14px 14px 48px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tl-idee:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--tl-shadow);
}

.tl-idee::before {
    counter-increment: tl-idee;
    content: counter(tl-idee);
    position: absolute;
    left: 12px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-family: var(--tl-font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--tl-grad);
}

.tl-idee-cat {
    grid-column: 1;
    justify-self: start;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tl-violet);
    background: rgba(139, 92, 246, 0.12);
    border-radius: 999px;
    padding: 3px 10px;
}

.tl-idee-cat.is-plateforme {
    color: var(--tl-rose);
    background: rgba(236, 72, 153, 0.12);
}

.tl-idee-texte {
    grid-column: 1;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--tl-text-2);
}

.tl-idee-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tl-border);
    background: var(--tl-surface);
    color: var(--tl-muted);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tl-idee-copy:hover {
    color: var(--tl-indigo);
    border-color: var(--tl-indigo);
    transform: scale(1.08);
}

.tl-idee-copy:focus-visible {
    outline: 2px solid var(--tl-indigo);
    outline-offset: 2px;
}

.tl-idee-copy.is-copied {
    color: var(--tl-ok);
    border-color: var(--tl-ok);
    background: var(--tl-ok-bg);
}

/* ------------------------------------------------------------
   17. Éditorial, prose, contenu
   ------------------------------------------------------------ */
.tl-editorial {
    background:
        radial-gradient(40rem 20rem at 10% 0, rgba(139, 92, 246, 0.06), transparent 70%);
}

.tl-prose,
.tl-content {
    max-width: 760px;
    margin-inline: auto;
}

.tl-prose p,
.tl-content p {
    color: var(--tl-text-2);
    line-height: 1.75;
    margin: 0 0 1.1em;
    overflow-wrap: break-word;
}

.tl-prose a,
.tl-content a,
.tl-split-main a:not(.tl-btn) {
    color: var(--tl-indigo);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.tl-prose a:hover,
.tl-content a:hover { color: var(--tl-violet); text-decoration-color: currentColor; }

.tl-prose code,
.tl-content code {
    font-family: var(--tl-mono);
    font-size: 0.85em;
    color: var(--tl-violet);
    background: rgba(139, 92, 246, 0.10);
    border-radius: 5px;
    padding: 1px 6px;
    overflow-wrap: anywhere;
}

.tl-prose strong,
.tl-content strong { color: var(--tl-text); }

/* ------------------------------------------------------------
   18. FAQ (2 variantes de markup)
   ------------------------------------------------------------ */
.tl-faq {
    max-width: 760px;
    margin-inline: auto;
}

.tl-faq-item {
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tl-faq-item:hover { border-color: rgba(99, 102, 241, 0.4); }

.tl-faq-item[open] {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--tl-shadow);
}

.tl-faq-item summary,
.tl-faq-item .tl-faq-q {
    position: relative;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--tl-text);
    padding: 16px 48px 16px 18px;
    transition: color 0.2s ease;
}

.tl-faq-item summary::-webkit-details-marker { display: none; }

.tl-faq-item summary:hover { color: var(--tl-indigo); }

.tl-faq-item summary:focus-visible {
    outline: 2px solid var(--tl-indigo);
    outline-offset: -2px;
    border-radius: var(--tl-radius-sm);
}

.tl-faq-item summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--tl-indigo);
    border-bottom: 2px solid var(--tl-indigo);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
}

.tl-faq-item[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.tl-faq-body,
.tl-faq-a {
    padding: 0 18px 18px;
}

.tl-faq-body p,
.tl-faq-a p {
    margin: 0;
    color: var(--tl-text-2);
    line-height: 1.7;
    font-size: 0.93rem;
}

/* ------------------------------------------------------------
   19. CTA ebook + crosslinks
   ------------------------------------------------------------ */
.tl-ebook-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    background:
        var(--tl-grad-soft),
        var(--tl-surface);
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: var(--tl-radius);
    padding: clamp(22px, 4vw, 36px);
    max-width: 860px;
    margin-inline: auto;
    box-shadow: var(--tl-shadow);
}

.tl-ebook-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    color: #fff;
    background: var(--tl-grad);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
    flex: none;
}

.tl-ebook-cta-eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tl-rose);
    margin: 0 0 4px;
}

.tl-ebook-cta-title {
    font-family: var(--tl-font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 700;
    color: var(--tl-text);
    margin: 0 0 8px;
}

.tl-ebook-cta-body p {
    color: var(--tl-text-2);
    line-height: 1.65;
    margin: 0 0 16px;
}

.tl-crosslinks { max-width: 860px; margin-inline: auto; }

.tl-crosslinks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tl-crosslink {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-sm);
    padding: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-width: 0;
}

.tl-crosslink:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--tl-shadow-lift);
}

.tl-crosslink:focus-visible {
    outline: 2px solid var(--tl-indigo);
    outline-offset: 3px;
}

.tl-crosslink svg { color: var(--tl-indigo); flex: none; margin-top: 2px; }

.tl-crosslink span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.tl-crosslink strong { color: var(--tl-text); font-size: 0.95rem; }

.tl-crosslink em {
    font-style: normal;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--tl-muted);
}

.tl-crosslink-ebook {
    background:
        var(--tl-grad-soft),
        var(--tl-surface);
    border-color: rgba(236, 72, 153, 0.30);
}

.tl-crosslink-ebook svg { color: var(--tl-rose); }

/* ------------------------------------------------------------
   20. Responsive (mobile-first, sans débordement)
   ------------------------------------------------------------ */
@media (min-width: 560px) {
    .tl-form-row { grid-template-columns: 1fr 1fr; }
    .tl-stats { grid-template-columns: repeat(3, 1fr); }
    .tl-resultats { grid-template-columns: repeat(3, 1fr); }
    .tl-sortie-actions .tl-btn,
    .tl-actions .tl-btn { width: auto; }
}

@media (min-width: 720px) {
    .tl-grid { grid-template-columns: repeat(2, 1fr); }
    .tl-tool-grid { grid-template-columns: repeat(2, 1fr); }
    .tl-crosslinks-grid { grid-template-columns: repeat(2, 1fr); }
    .tl-score { flex-direction: row; text-align: left; }
    .tl-ebook-cta { grid-template-columns: auto 1fr; align-items: start; }
    .tl-stats { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 980px) {
    .tl-grid { grid-template-columns: repeat(3, 1fr); }
    .tl-tool-grid { grid-template-columns: repeat(3, 1fr); }
    .tl-split { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

@media (max-width: 559px) {
    .tl-btn { width: 100%; }
    .tl-prop-actions .tl-btn,
    .tl-code-wrap > .tl-btn-copy,
    .tl-qa-remove,
    .tl-idee-copy { width: auto; }
    .tl-code-actions .tl-btn { width: 100%; }
}

/* ------------------------------------------------------------
   21. Accessibilité & confort
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .tl-card,
    .tl-card:hover,
    .tl-crosslink:hover,
    .tl-idee:hover,
    .tl-btn-primary:hover,
    .tl-results,
    .tl-sortie {
        transform: none;
        animation: none;
        transition: none;
    }
}

@media print {
    .tl-btn,
    .tl-sortie-actions,
    .tl-code-actions { display: none !important; }
}
