/* ========================================
   TO DO LIST EN LIGNE
   Design: Clean & Modern Task Lists
   ======================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-subtle: #f1f5f9;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-primary: #7c3aed;
    --color-primary-hover: #6d28d9;
    --color-primary-light: #ede9fe;
    --color-primary-soft: #f5f3ff;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #d97706;
    --color-warning-light: #fef3c7;
    --color-danger: #dc2626;
    --color-danger-light: #fee2e2;
    --color-prio-3: #ef4444;
    --color-prio-2: #f59e0b;
    --color-prio-1: #3b82f6;

    --font-main: 'DM Sans', system-ui, -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --transition: 150ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg-alt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.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;
}

a { color: var(--color-primary); }

/* ========================================
   SITE NAV
   ======================================== */
.site-nav {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}

.site-brand svg { flex-shrink: 0; }

.site-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-links::-webkit-scrollbar { display: none; }

.site-links a {
    display: block;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 999px;
    white-space: nowrap;
    transition: all var(--transition);
}

.site-links a:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.site-links a[aria-current="page"] {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 32px 0 24px;
    text-align: center;
}

.header.header-standalone {
    padding: 40px 0 28px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary-light) 100%);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 6px;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

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

.header h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.header h1 .highlight {
    color: var(--color-primary);
    font-weight: 600;
}

.header .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 760px;
    margin: 0 auto;
}

.header .subtitle strong {
    color: var(--color-text);
    font-weight: 600;
}

.header-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 18px;
    list-style: none;
}

.header-badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.header-badges svg { color: var(--color-success); }

/* ========================================
   MAIN
   ======================================== */
.main {
    padding: 24px 0 32px;
    min-height: 50vh;
}

/* ========================================
   TOOLBAR & BUTTONS
   ======================================== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
    text-decoration: none;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text);
}

.btn:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   DROPDOWN
   ======================================== */
.dropdown { position: relative; }

.dropdown-arrow { transition: transform var(--transition); }
.dropdown.active .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all var(--transition);
    z-index: 200;
}

.dropdown-menu-left {
    right: auto;
    left: 0;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: background var(--transition);
}

.dropdown-item:hover { background: var(--color-bg-subtle); }
.dropdown-item svg { flex-shrink: 0; color: var(--color-text-muted); }
.dropdown-emoji { width: 20px; text-align: center; }

.dropdown-sep {
    height: 1px;
    margin: 6px 4px;
    background: var(--color-border);
}


/* ========================================
   SAVE INDICATOR & TOAST
   ======================================== */
.save-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-success);
    opacity: 0;
    transition: opacity 300ms ease;
    margin-top: -6px;
}

.save-indicator.visible { opacity: 1; }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--color-text);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 300ms ease;
    z-index: 3000;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }


/* ========================================
   MODAL & FORMS
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 1500;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition);
}

.modal.active .modal-content { transform: translateY(0); }
.modal-small { max-width: 480px; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.modal-close:hover { background: var(--color-bg-subtle); color: var(--color-text); }

.modal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-right: 40px;
}

.modal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 20px 0 10px;
}

.modal-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    resize: vertical;
    min-height: 140px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.share-info {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.share-link-group { display: flex; gap: 10px; }

.share-link-group input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--color-text);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

/* ========================================
   MONDAY CTA
   ======================================== */
.monday-topbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 44px 10px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.monday-topbar:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.monday-topbar-logo { flex-shrink: 0; height: 20px; width: auto; display: block; }
.monday-topbar-text { flex: 1; min-width: 0; font-size: 0.9rem; color: var(--color-text-muted); }

.monday-topbar-cta {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.monday-topbar:hover .monday-topbar-cta { color: var(--color-primary-hover); }

.monday-topbar-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.monday-topbar-close:hover { background: var(--color-bg-subtle); color: var(--color-text); }

.monday-banner-section { padding: 8px 0 32px; }

.monday-banner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 24px 26px;
    border-radius: 18px;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background:
        radial-gradient(130% 210% at 0% 0%, rgba(99, 102, 241, 0.4), transparent 56%),
        radial-gradient(105% 190% at 100% 0%, rgba(14, 165, 233, 0.25), transparent 58%),
        linear-gradient(132deg, #1e1b4b 0%, #0f172a 54%, #13213a 100%);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.26);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.monday-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.52);
    box-shadow: 0 22px 52px rgba(2, 6, 23, 0.33);
}

.monday-logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.monday-logo { width: 176px; max-width: 100%; height: auto; display: block; }

.monday-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.monday-banner-copy h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 8px;
}

.monday-banner-copy p {
    max-width: 70ch;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #dbe4f0;
}

.monday-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.monday-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.monday-banner-cta svg { width: 16px; height: 16px; }

.monday-cta-note {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.92);
}

.monday-banner:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 0 6px rgba(129, 140, 248, 0.6);
}

.share-monday {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.share-monday a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.share-monday a:hover { text-decoration: underline; }

.monday-prompt {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2500;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 20px 20px 18px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.monday-prompt.visible { opacity: 1; transform: translateY(0); }

.monday-prompt-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.monday-prompt-close:hover { background: var(--color-bg-subtle); color: var(--color-text); }

.monday-prompt-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.monday-prompt-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; padding-right: 20px; }
.monday-prompt-text { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 14px; }

.monday-prompt-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
    transition: box-shadow var(--transition), transform var(--transition);
}

.monday-prompt-cta:hover { transform: translateY(-1px); }
.monday-prompt-note { display: block; margin-top: 10px; font-size: 0.72rem; color: var(--color-text-light); }

/* ========================================
   SEO CONTENT
   ======================================== */
.seo-content {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 64px 0;
}

.seo-section { margin-bottom: 56px; }
.seo-section:last-child { margin-bottom: 0; }

.seo-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.seo-section h3.seo-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 28px 0 12px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    max-width: 840px;
}

.section-intro strong { color: var(--color-text); }
.section-intro a { font-weight: 500; }

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.seo-card {
    padding: 24px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition);
}

.seo-card:hover { box-shadow: var(--shadow-md); }
.seo-icon { font-size: 2rem; margin-bottom: 12px; }

.seo-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.seo-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.seo-card p strong { color: var(--color-text); font-weight: 500; }

.seo-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    align-items: center;
}

.seo-card-actions .btn { padding: 8px 14px; font-size: 0.85rem; }

.seo-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.seo-card-link:hover { text-decoration: underline; }

.seo-list {
    max-width: 840px;
    margin: 0 0 20px 20px;
    color: var(--color-text-muted);
}

.seo-list li { margin-bottom: 8px; }
.seo-list strong { color: var(--color-text); }

.check-list {
    list-style: none;
    max-width: 840px;
    margin: 0 0 20px;
    padding: 0;
    color: var(--color-text-muted);
}

.check-list li {
    position: relative;
    padding: 6px 0 6px 32px;
    line-height: 1.6;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 12px;
}

.check-list strong { color: var(--color-text); }

.howto-steps {
    list-style: none;
    counter-reset: howto;
    margin: 0 0 8px;
    padding: 0;
    max-width: 840px;
}

.howto-steps li {
    counter-increment: howto;
    position: relative;
    padding: 10px 0 10px 46px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.howto-steps li strong { color: var(--color-text); }

.howto-steps li::before {
    content: counter(howto);
    position: absolute;
    left: 0;
    top: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-scroll { overflow-x: auto; margin: 0 0 12px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--color-bg);
}

.data-table caption {
    caption-side: bottom;
    padding: 10px 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: left;
}

.data-table th,
.data-table td {
    border: 1px solid var(--color-border);
    padding: 11px 14px;
    vertical-align: top;
    text-align: left;
}

.data-table thead th {
    background: var(--color-bg-subtle);
    font-weight: 600;
    white-space: nowrap;
}

.data-table td { color: var(--color-text-muted); }
.data-table td strong { color: var(--color-text); }
.data-table .num { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }

.formula {
    display: block;
    max-width: 840px;
    margin: 0 0 16px;
    padding: 14px 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    color: #312e81;
    background: var(--color-primary-soft);
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    overflow-x: auto;
    white-space: nowrap;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--color-bg-subtle);
    padding: 1px 6px;
    border-radius: 4px;
}

.callout {
    max-width: 840px;
    padding: 16px 18px;
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    background: var(--color-primary-soft);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

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

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background var(--transition);
}

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

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: transform var(--transition);
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--color-bg); }

.faq-item p {
    padding: 0 24px 18px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Checklist par période */
.period-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 900px;
    margin: 0 0 20px;
}

.period {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    padding: 16px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.period-when {
    align-self: start;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
}

.period-when small {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.period ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.period li {
    position: relative;
    padding-left: 24px;
}

.period li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-border-strong);
    border-radius: 4px;
}

.period li strong { color: var(--color-text); }

.period-j { border-color: #fecaca; background: #fff7f7; }
.period-j .period-when { color: var(--color-j); }
.period-after { background: var(--color-bg-alt); }

@media (max-width: 640px) {
    .period { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
    .period-when { flex-direction: row; align-items: baseline; gap: 8px; }
}

/* 404 */
.notfound {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary-light) 100%);
}

.notfound-code {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.notfound h1 { font-size: 1.6rem; margin-bottom: 12px; }

.notfound-text {
    max-width: 480px;
    margin: 0 auto 24px;
    color: var(--color-text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 36px 0 32px;
    text-align: center;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    list-style: none;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-nav a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--color-primary); }

.footer-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.footer-credit { font-size: 0.9rem; color: var(--color-text); font-weight: 500; }
.footer-credit a { color: var(--color-primary); text-decoration: none; }
.footer-credit a:hover { color: var(--color-primary-hover); text-decoration: underline; }

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-links a { color: var(--color-text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); }
.footer-separator { color: var(--color-border-strong); }


/* ========================================
   TO DO LIST — LAYOUT
   ======================================== */
.td-app {
    --td-surface: var(--color-bg);
    --td-surface-alt: var(--color-bg-alt);
    --td-text: var(--color-text);
    --td-muted: var(--color-text-muted);
    --td-border: var(--color-border);
    --td-accent: var(--color-primary);
    --td-accent-soft: var(--color-primary-soft);
    --td-accent-light: var(--color-primary-light);
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    color: var(--td-text);
}

.td-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
    background: var(--td-surface);
    border: 1px solid var(--td-border);
    border-radius: var(--radius-lg);
}

.td-sidebar-title {
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--td-muted);
}

.td-lists {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.td-list-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: var(--td-text);
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition);
}

.td-list-btn:hover { background: var(--td-surface-alt); }
.td-list-btn.is-active { background: var(--td-accent-soft); font-weight: 600; }
.td-list-btn:focus-visible { outline: 2px solid var(--td-accent); outline-offset: 1px; }

.td-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c, var(--td-accent));
}

.td-list-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.td-list-count {
    flex-shrink: 0;
    min-width: 22px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--td-muted);
    background: var(--td-surface-alt);
    border-radius: 999px;
}

.td-list-btn.is-active .td-list-count { color: var(--td-accent); background: var(--td-surface); }

.td-new-list {
    justify-content: flex-start;
    width: 100%;
    color: var(--td-accent);
    font-weight: 600;
}

.td-new-list:hover { background: var(--td-accent-soft); color: var(--td-accent); }

.td-themes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    padding: 12px 8px 0;
    border-top: 1px solid var(--td-border);
}

.td-theme-row { display: flex; gap: 6px; }

.td-theme-btn {
    flex: 1;
    padding: 6px 4px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--td-muted);
    background: var(--td-surface-alt);
    border: 1px solid var(--td-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.td-theme-btn:hover { color: var(--td-text); }
.td-theme-btn[aria-pressed="true"] { color: var(--td-accent); border-color: var(--td-accent); background: var(--td-accent-soft); }

.td-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.td-toolbar { background: var(--td-surface); border-color: var(--td-border); }
.td-toolbar .dropdown-menu { min-width: 270px; }
.td-toolbar .dropdown-item { white-space: nowrap; }

/* ========================================
   TO DO LIST — CARD
   ======================================== */
.td-card {
    padding: 22px 24px 18px;
    background: var(--td-surface);
    border: 1px solid var(--td-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.td-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.td-head .td-dot { width: 14px; height: 14px; }

.td-title {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
    margin-left: -8px;
    font-family: var(--font-main);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--td-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.td-title:hover { border-color: var(--td-border); }
.td-title:focus { outline: none; border-color: var(--td-accent); box-shadow: 0 0 0 3px var(--td-accent-light); }

.td-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--td-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.td-icon-btn:hover { color: var(--td-text); background: var(--td-surface-alt); }
.td-icon-btn:focus-visible { outline: 2px solid var(--td-accent); outline-offset: 1px; }

.td-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 10px;
}

.td-swatch {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 1px var(--color-border);
    background: var(--c);
    cursor: pointer;
}

.td-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--c); }

.td-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.td-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--td-surface-alt);
    border: 1px solid var(--td-border);
    border-radius: 999px;
    overflow: hidden;
}

.td-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--c, var(--td-accent));
    border-radius: 999px;
    transition: width 300ms ease;
}

.td-progress-text {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--td-muted);
    font-variant-numeric: tabular-nums;
}

.td-add {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    margin-bottom: 12px;
    background: var(--td-surface-alt);
    border: 1px solid var(--td-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.td-add:focus-within { border-color: var(--td-accent); box-shadow: 0 0 0 3px var(--td-accent-light); background: var(--td-surface); }
.td-add > svg { flex-shrink: 0; color: var(--td-accent); }

.td-add-input {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--td-text);
    background: transparent;
    border: none;
}

.td-add-input:focus { outline: none; }
.td-add-input::placeholder { color: var(--color-text-light); }
.td-add .btn { padding: 9px 16px; }

.td-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.td-filters {
    display: inline-flex;
    padding: 3px;
    background: var(--td-surface-alt);
    border: 1px solid var(--td-border);
    border-radius: var(--radius-md);
}

.td-filter {
    padding: 6px 12px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--td-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
}

.td-filter span { margin-left: 4px; font-size: 0.75rem; opacity: 0.75; }
.td-filter[aria-pressed="true"] { color: var(--td-text); background: var(--td-surface); box-shadow: var(--shadow-sm); }

.td-controls-right { display: flex; align-items: center; gap: 6px; }

.td-sort {
    padding: 7px 28px 7px 10px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--td-text);
    background: var(--td-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 9px center;
    border: 1px solid var(--td-border);
    border-radius: var(--radius-md);
    appearance: none;
    cursor: pointer;
}

.td-clear { font-size: 0.85rem; padding: 7px 10px; }

/* ========================================
   TO DO LIST — ITEMS
   ======================================== */
.td-items { list-style: none; }

.td-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px 28px minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--td-border);
    background: var(--td-surface);
    transition: background var(--transition);
}

.td-item:last-child { border-bottom: none; }
.td-item:hover { background: var(--td-surface-alt); }

.td-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: transparent;
}

.td-item.prio-3::before { background: var(--color-prio-3); }
.td-item.prio-2::before { background: var(--color-prio-2); }
.td-item.prio-1::before { background: var(--color-prio-1); }

.td-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 32px;
    padding: 0;
    color: var(--color-text-light);
    background: transparent;
    border: none;
    cursor: grab;
    touch-action: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.td-item:hover .td-handle,
.td-handle:focus-visible { opacity: 1; }
.td-handle:focus-visible { outline: 2px solid var(--td-accent); border-radius: 4px; }
.td-items.is-sorted .td-handle { visibility: hidden; }

.td-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 4px;
    padding: 0;
    color: transparent;
    background: var(--td-surface);
    border: 2px solid var(--color-border-strong);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.td-check:hover { border-color: var(--c, var(--td-accent)); color: var(--c, var(--td-accent)); }
.td-check:focus-visible { outline: 2px solid var(--td-accent); outline-offset: 2px; }
.td-item.prio-3 .td-check { border-color: var(--color-prio-3); }
.td-item.prio-2 .td-check { border-color: var(--color-prio-2); }
.td-item.prio-1 .td-check { border-color: var(--color-prio-1); }

.td-item.is-done .td-check {
    color: #fff;
    background: var(--c, var(--td-accent));
    border-color: var(--c, var(--td-accent));
}

.td-item.is-done .td-check.pop { animation: td-pop 260ms ease; }

@keyframes td-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.td-body { min-width: 0; }

.td-text {
    display: block;
    width: 100%;
    padding: 5px 6px;
    font-family: var(--font-main);
    font-size: 0.98rem;
    color: var(--td-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    resize: none;
    overflow: hidden;
    line-height: 1.45;
}

.td-text:focus { outline: none; background: var(--td-surface); border-color: var(--td-accent); }
.td-item.is-done .td-text { color: var(--color-text-light); text-decoration: line-through; }

.td-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 6px;
}

.td-meta:empty { display: none; }

.td-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--td-muted);
    background: var(--td-surface-alt);
    border: 1px solid var(--td-border);
    border-radius: 999px;
    cursor: pointer;
}

.td-chip.is-today { color: #b45309; background: #fef3c7; border-color: #fde68a; }
.td-chip.is-late { color: var(--color-danger); background: var(--color-danger-light); border-color: #fecaca; }
.td-chip.is-prio-3 { color: #b91c1c; }
.td-chip.is-prio-2 { color: #b45309; }
.td-chip.is-prio-1 { color: #1d4ed8; }
.td-item.is-done .td-chip { opacity: 0.6; }

.td-note {
    display: block;
    width: calc(100% - 12px);
    margin: 4px 6px 2px;
    padding: 8px 10px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    color: var(--td-text);
    background: var(--td-surface-alt);
    border: 1px solid var(--td-border);
    border-radius: var(--radius-sm);
    resize: vertical;
    min-height: 60px;
}

.td-note:focus { outline: none; border-color: var(--td-accent); }

.td-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-top: 2px;
}

.td-actions .td-icon-btn { width: 30px; height: 30px; opacity: 0; }
.td-item:hover .td-actions .td-icon-btn,
.td-actions .td-icon-btn:focus-visible,
.td-actions .td-icon-btn.is-set { opacity: 1; }

.td-prio-btn.is-set[data-prio="3"] { color: var(--color-prio-3); }
.td-prio-btn.is-set[data-prio="2"] { color: var(--color-prio-2); }
.td-prio-btn.is-set[data-prio="1"] { color: var(--color-prio-1); }
.td-note-btn.is-set { color: var(--td-accent); }
.td-del:hover { color: var(--color-danger); background: var(--color-danger-light); }

.td-due-wrap { position: relative; display: inline-flex; }
.td-due-chip { line-height: 1.5; }
.td-due-chip svg { flex-shrink: 0; }

.btn-link {
    padding: 0;
    font: inherit;
    color: var(--td-accent);
    background: none;
    border: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.td-share-text { width: 100%; justify-content: center; margin-top: 10px; }

@media (hover: none) {
    .td-handle,
    .td-actions .td-icon-btn { opacity: 1; }
    .td-actions .td-icon-btn:not(.is-set) { color: var(--color-text-light); }
}

.td-due-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.td-item.is-dragging {
    z-index: 5;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border-bottom-color: transparent;
}

.td-empty {
    padding: 34px 16px 26px;
    text-align: center;
    color: var(--td-muted);
}

.td-empty-icon { font-size: 2rem; margin-bottom: 6px; }
.td-empty strong { display: block; color: var(--td-text); margin-bottom: 4px; }

.td-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.td-print { display: none; }

.td-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2800;
}

/* ========================================
   TO DO LIST — THEMES
   ======================================== */
.td-app[data-theme="pastel"] {
    --td-surface: #fffaf5;
    --td-surface-alt: #fbefe6;
    --td-text: #5b4636;
    --td-muted: #9a8374;
    --td-border: #f0dfd2;
    --td-accent: #d4879c;
    --td-accent-soft: #fbe9ee;
    --td-accent-light: #f6d5de;
}

.td-app[data-theme="pastel"] .td-title { font-style: italic; font-weight: 600; letter-spacing: 0; }
.td-app[data-theme="pastel"] .td-card { box-shadow: 0 10px 30px rgba(212, 135, 156, 0.12); }
.td-app[data-theme="pastel"] .btn-primary { background: var(--td-accent); }
.td-app[data-theme="pastel"] .btn-primary:hover { background: #c0718a; }
.td-app[data-theme="pastel"] { --color-prio-3: #f09a9a; --color-prio-2: #f3c27e; --color-prio-1: #9dbdf0; }
.td-app[data-theme="pastel"] .td-dot,
.td-app[data-theme="pastel"] .td-swatch { background: color-mix(in srgb, var(--c) 55%, #fff); }
.td-app[data-theme="pastel"] .td-progress-bar span { background: color-mix(in srgb, var(--c) 50%, #fff); }
.td-app[data-theme="pastel"] .td-item.is-done .td-check {
    background: color-mix(in srgb, var(--c) 50%, #fff);
    border-color: color-mix(in srgb, var(--c) 50%, #fff);
}

.td-app[data-theme="sombre"] {
    --td-surface: #1e1b2e;
    --td-surface-alt: #2a2640;
    --td-text: #ece9f7;
    --td-muted: #a39fbd;
    --td-border: #37324f;
    --td-accent: #a78bfa;
    --td-accent-soft: #2f2750;
    --td-accent-light: #4c3f86;
}

.td-app[data-theme="sombre"] .td-card,
.td-app[data-theme="sombre"] .td-sidebar,
.td-app[data-theme="sombre"] .td-toolbar { box-shadow: none; }
.td-app[data-theme="sombre"] .btn-secondary { color: var(--td-text); background: var(--td-surface-alt); border-color: var(--td-border); }
.td-app[data-theme="sombre"] .btn-ghost { color: var(--td-muted); }
.td-app[data-theme="sombre"] .btn-ghost:hover { color: var(--td-text); background: var(--td-surface-alt); }
.td-app[data-theme="sombre"] .btn-primary { background: #7c3aed; }
.td-app[data-theme="sombre"] .td-chip.is-today { color: #fcd34d; background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }
.td-app[data-theme="sombre"] .td-chip.is-late { color: #fca5a5; background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); }
.td-app[data-theme="sombre"] .td-chip.is-prio-3 { color: #fca5a5; }
.td-app[data-theme="sombre"] .td-chip.is-prio-2 { color: #fcd34d; }
.td-app[data-theme="sombre"] .td-chip.is-prio-1 { color: #93c5fd; }
.td-app[data-theme="sombre"] .td-sort,
.td-app[data-theme="sombre"] .td-due-input { color-scheme: dark; }
.td-app[data-theme="sombre"] .dropdown-menu { background: var(--td-surface); border-color: var(--td-border); }
.td-app[data-theme="sombre"] .dropdown-item { color: var(--td-text); }
.td-app[data-theme="sombre"] .dropdown-item:hover { background: var(--td-surface-alt); }
.td-app[data-theme="sombre"] .dropdown-sep { background: var(--td-border); }

/* ========================================
   TO DO LIST À IMPRIMER
   ======================================== */
.pt-tool {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.pt-controls {
    position: sticky;
    top: 16px;
    padding: 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pt-label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.pt-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 18px;
}

.pt-styles { grid-template-columns: repeat(3, 1fr); }
.pt-options:not(.pt-styles) .pt-option:last-child:nth-child(odd) { grid-column: span 2; }

.pt-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.pt-styles .pt-option { justify-content: center; padding: 8px 4px; }
.pt-option:hover { border-color: var(--color-primary); }
.pt-option:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.pt-option[aria-pressed="true"] { font-weight: 600; color: var(--color-primary-hover); background: var(--color-primary-light); border-color: var(--color-primary); }

.pt-input {
    width: 100%;
    padding: 9px 12px;
    margin-bottom: 18px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.pt-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.pt-print, .pt-online { width: 100%; justify-content: center; }
.pt-online { margin-top: 8px; }
.pt-hint { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.5; color: var(--color-text-light); }

.pt-preview {
    padding: 28px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.pt-frame {
    container-type: inline-size;
    max-width: 620px;
    margin: 0 auto;
}

.pt-sheet {
    display: flex;
    flex-direction: column;
    width: 100cqw;
    height: 141.4cqw;
    padding: 7cqw 7cqw 4.5cqw;
    overflow: hidden;
    font-family: var(--font-main);
    font-size: 1.9cqw;
    line-height: 1.3;
    color: #1f2937;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.pt-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3cqw;
    padding-bottom: 2cqw;
    margin-bottom: 3cqw;
    border-bottom: 0.35cqw solid #111827;
}

.pt-title {
    margin: 0;
    font-size: 4.6cqw;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: inherit;
    overflow-wrap: anywhere;
}

.pt-meta {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 1cqw;
    margin: 0;
    font-size: 1.7cqw;
    color: #6b7280;
}

.pt-meta span { display: inline-block; width: 22cqw; height: 2.4cqw; border-bottom: 0.2cqw solid #9ca3af; }
.pt-body { flex: 1; min-height: 0; }
.pt-foot { margin-top: 2cqw; font-size: 1.3cqw; text-align: center; color: #9ca3af; }

.pt-sec { margin-bottom: 2.6cqw; break-inside: avoid; }

.pt-sec-title {
    margin: 0 0 0.6cqw;
    font-size: 1.9cqw;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111827;
}

.pt-rows { list-style: none; margin: 0; padding: 0; }
.pt-row { display: flex; align-items: flex-end; gap: 1.6cqw; height: 4.3cqw; }

.pt-box {
    flex-shrink: 0;
    width: 2.4cqw;
    height: 2.4cqw;
    margin-bottom: 0.6cqw;
    border: 0.25cqw solid #374151;
    border-radius: 0.5cqw;
}

.pt-line {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.5cqw;
    font-size: 1.8cqw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 0.15cqw solid #d1d5db;
}

.pt-lines span { display: block; height: 4.3cqw; border-bottom: 0.15cqw solid #d1d5db; }
.pt-prio .pt-row { height: 5cqw; }
.pt-prio .pt-box { border-width: 0.35cqw; }
.pt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2cqw 4cqw; }
.pt-grid .pt-sec { margin: 0; }
.pt-grid .pt-row { height: 3.9cqw; }
.pt-columns { columns: 2; column-gap: 4cqw; }
.pt-liste .pt-row { height: 4.55cqw; }

.pt-chart { width: 100%; border-collapse: collapse; font-size: 1.7cqw; }

.pt-chart th,
.pt-chart td {
    height: 3.9cqw;
    padding: 0;
    text-align: center;
    border-bottom: 0.15cqw solid #e5e7eb;
}

.pt-chart thead th { font-size: 1.6cqw; font-weight: 700; color: #6b7280; }
.pt-chart .pt-chart-task { width: 44%; padding-left: 0.5cqw; text-align: left; }
.pt-chart td .pt-box { display: inline-block; width: 2.2cqw; height: 2.2cqw; margin: 0; vertical-align: middle; }

.pt-chart-group th {
    padding-top: 1.6cqw;
    font-size: 1.8cqw;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
    color: #111827;
}

.pt-menage .pt-chart th, .pt-menage .pt-chart td { height: 4.4cqw; font-size: 1.8cqw; }
.pt-chart-kid th, .pt-chart-kid td { height: 6.6cqw; font-size: 2.3cqw; }
.pt-chart-kid .pt-chart-group th { height: 8cqw; font-size: 2.6cqw; }
.pt-chart-kid td .pt-box { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; }

/* Style aesthetic */
.pt-sheet.is-aesthetic { color: #5b4636; background: #fffaf5; }
.is-aesthetic .pt-head { flex-direction: column; align-items: center; gap: 1.2cqw; padding-bottom: 1.6cqw; margin-bottom: 2.4cqw; text-align: center; border-bottom: 0.2cqw dashed #d9a7b6; }
.is-aesthetic .pt-title { font-family: Georgia, 'Times New Roman', serif; font-size: 5.6cqw; font-style: italic; font-weight: 400; color: #8a5a6b; }
.is-aesthetic .pt-meta { color: #b08f80; }
.is-aesthetic .pt-meta span { border-color: #d9a7b6; }

.is-aesthetic .pt-sec-title,
.is-aesthetic .pt-chart-group th {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.3cqw;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #b07a8c;
}

.is-aesthetic .pt-box { border-color: #d9a7b6; border-radius: 50%; }

.is-aesthetic .pt-line,
.is-aesthetic .pt-lines span,
.is-aesthetic .pt-chart th,
.is-aesthetic .pt-chart td { border-color: #f0dfd2; }

.is-aesthetic .pt-grid .pt-sec { padding: 1cqw 2.2cqw 0.8cqw; background: #fbefe6; border-radius: 2.2cqw; }
.is-aesthetic .pt-grid .pt-line { border-color: #f0d6c8; }
.is-aesthetic .pt-chart thead th { color: #b08f80; }
.is-aesthetic .pt-foot { color: #cfae9f; }

/* Style coloré */
.is-couleur .pt-head {
    margin: -7cqw -7cqw 3cqw;
    padding: 6cqw 7cqw 3cqw;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-bottom: 0;
}

.is-couleur .pt-meta { color: rgba(255, 255, 255, 0.85); }
.is-couleur .pt-meta span { border-color: rgba(255, 255, 255, 0.7); }
.is-couleur .pt-sec-title,
.is-couleur .pt-chart-group th { color: var(--sc, #7c3aed); }
.is-couleur .pt-box { border-color: var(--sc, #7c3aed); }

.is-couleur .pt-grid .pt-sec {
    padding: 1cqw 2cqw 0.8cqw;
    background: color-mix(in srgb, var(--sc) 7%, #fff);
    border-top: 0.7cqw solid var(--sc);
    border-radius: 1cqw;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .pt-tool { grid-template-columns: 1fr; gap: 16px; }
    .pt-controls { position: static; }
    .pt-preview { padding: 14px; }

    .td-app { grid-template-columns: 1fr; gap: 12px; }

    .td-sidebar {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .td-sidebar::-webkit-scrollbar { display: none; }
    .td-sidebar-title, .td-themes { display: none; }
    .td-lists { flex-direction: row; gap: 6px; }
    .td-list-btn { width: auto; white-space: nowrap; padding: 7px 10px; border: 1px solid var(--td-border); }
    .td-list-name { max-width: 160px; }
    .td-new-list { width: auto; flex-shrink: 0; padding: 7px 12px; }
}

@media (max-width: 760px) {
    .container { padding: 0 16px; }

    .site-nav .container { min-height: 50px; }
    .site-brand span { display: none; }

    .header.header-standalone { padding: 28px 0 22px; }
    .header .subtitle { font-size: 1rem; }

    .toolbar { padding: 10px; position: relative; }
    .toolbar .dropdown { position: static; }
    .toolbar .dropdown-menu { left: 10px; right: 10px; min-width: 0; }
    .toolbar-left .dropdown, .toolbar-right .btn, .toolbar-right .dropdown { flex: 1 1 0; }
    .toolbar .dropdown .btn { width: 100%; }

    .td-toolbar { flex-wrap: nowrap; gap: 6px; padding: 6px; }
    .td-toolbar .toolbar-left { display: flex; flex: 1 1 0; min-width: 0; }
    .td-toolbar .toolbar-right { flex: 3 1 0; flex-wrap: nowrap; gap: 6px; min-width: 0; }
    .td-toolbar .btn {
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        padding: 8px 2px 7px;
        font-size: 0.74rem;
        line-height: 1.1;
    }
    .td-toolbar .btn .dropdown-arrow { display: none; }

    .td-card { padding: 16px 14px 12px; }
    .td-title { font-size: 1.2rem; }
    .td-add-input { font-size: 16px; }
    .td-add .btn-text { display: none; }
    .td-add .btn { padding: 9px 12px; }
    .td-controls { flex-direction: column; align-items: stretch; }
    .td-filters { display: flex; }
    .td-filter { flex: 1; padding: 7px 6px; }
    .td-controls-right { justify-content: space-between; }

    .td-item { grid-template-columns: 18px 28px minmax(0, 1fr) auto; row-gap: 0; padding: 8px 2px 4px; }
    .td-body { display: contents; }
    .td-handle { grid-column: 1; grid-row: 1; opacity: 1; }
    .td-check { grid-column: 2; grid-row: 1; }
    .td-text { grid-column: 3 / -1; grid-row: 1; font-size: 16px; }
    .td-meta { grid-column: 3; grid-row: 2; align-self: center; }
    .td-meta:empty { display: block; }
    .td-chip.is-prio-1, .td-chip.is-prio-2, .td-chip.is-prio-3 { display: none; }
    .td-note { grid-column: 3 / -1; grid-row: 3; width: auto; margin-bottom: 6px; }
    .td-actions { grid-column: 4; grid-row: 2; justify-content: flex-end; padding-top: 0; }
    .td-actions .td-icon-btn { opacity: 1; width: 32px; height: 30px; }
    .td-actions .td-icon-btn:not(.is-set) { color: var(--color-text-light); }

    .monday-banner-section { padding: 4px 0 22px; }
    .monday-banner { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .monday-logo-shell { justify-self: start; padding: 10px 12px; }
    .monday-logo { width: 148px; }
    .monday-banner-actions { width: 100%; align-items: stretch; }
    .monday-banner-cta { width: 100%; justify-content: center; }
    .monday-cta-note { text-align: center; }

    .monday-topbar { flex-wrap: wrap; gap: 6px 10px; padding: 10px 40px 10px 12px; }
    .monday-topbar-text { flex-basis: 100%; order: 3; font-size: 0.85rem; }

    .monday-prompt { right: 12px; left: 12px; bottom: 12px; width: auto; }

    .seo-content { padding: 40px 0; }
    .seo-section { margin-bottom: 44px; }
    .seo-section h2 { font-size: 1.3rem; }
    .section-intro { font-size: 1rem; }

    .modal-content { padding: 22px 18px; }
    .share-link-group { flex-direction: column; }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    @page { size: A4 portrait; margin: 14mm; }

    body { background: #fff; }

    body > *:not(.main),
    .main .monday-topbar,
    .td-sidebar,
    .td-toolbar,
    .td-card,
    .save-indicator,
    .td-foot { display: none !important; }

    .main { padding: 0; }
    .container { max-width: none; padding: 0; }
    .td-app { display: block; }

    .td-print { display: block; color: #000; font-size: 12pt; }
    .td-print h2 { font-size: 20pt; margin-bottom: 2pt; }
    .td-print-date { font-size: 10pt; color: #555; margin-bottom: 14pt; }
    .td-print ul { list-style: none; }

    .td-print li {
        display: flex;
        gap: 10pt;
        padding: 7pt 0;
        border-bottom: 0.5pt solid #bbb;
        break-inside: avoid;
    }

    .td-print-box {
        flex-shrink: 0;
        width: 12pt;
        height: 12pt;
        margin-top: 2pt;
        border: 1.2pt solid #333;
        border-radius: 2pt;
        font-size: 10pt;
        line-height: 10pt;
        text-align: center;
    }

    .td-print-text { flex: 1; }
    .td-print .is-done .td-print-text { text-decoration: line-through; color: #777; }
    .td-print-meta { font-size: 9pt; color: #555; white-space: nowrap; }
    .td-print-note { display: block; font-size: 9.5pt; color: #555; margin-top: 2pt; }
    .td-print-blank .td-print-text { height: 12pt; }
    .td-print-foot { margin-top: 12pt; font-size: 8pt; color: #888; }

    .pt-controls { display: none !important; }
    .pt-tool { display: block; }
    .pt-preview { padding: 0; background: none; border: 0; border-radius: 0; }
    .pt-frame { width: 210mm; max-width: none; margin: 0; }
    .pt-sheet { height: 141.1cqw; box-shadow: none; }
}
