        :root {
            --cream:      #F2EAD8;
            --cream-dark: #EBE0C8;
            --orange:     #B84B0C;
            --orange-lt:  #C95A18;
            --text:       #1A1208;
            --text-muted: #7A6E62;
            --text-light: #A89D92;
            --border:     rgba(26,18,8,0.1);
            --border-md:  rgba(26,18,8,0.16);
            --white:      #FFFFFF;
            --card-bg:    #FAF6F0;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { font-size: 16px; }

        body {
            font-family: 'Jost', sans-serif;
            background: var(--cream);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-image: radial-gradient(circle, rgba(26,18,8,0.09) 1px, transparent 1px);
            background-size: 28px 28px;
            padding-bottom: 60px;
        }

        a { text-decoration: none; color: inherit; }

        /* ── APP NAVBAR ── */
        .app-nav {
            position: sticky; top: 0; z-index: 100;
            background: var(--white);
            border-bottom: 1px solid var(--border);
            display: flex; align-items: center;
            padding: 0 28px; height: 54px;
        }
        .app-logo {
            font-family: 'Jost', sans-serif;
            font-weight: 600; font-size: 0.95rem;
            color: var(--text);
            text-decoration: none;
            display: flex; align-items: center; gap: 5px;
            flex-shrink: 0;
        }
        .logo-star { color: var(--orange); }

        .app-nav__tabs {
            display: flex; align-items: center;
            flex: 1; justify-content: center; gap: 0;
        }
        .nav-tab {
            display: inline-flex; align-items: center;
            height: 54px; padding: 0 18px;
            font-size: 0.84rem; font-weight: 500;
            color: var(--text-muted);
            text-decoration: none;
            border-bottom: 2px solid transparent;
            transition: color 0.2s, border-color 0.2s;
        }
        .nav-tab:hover { color: var(--text); }
        .nav-tab.active {
            color: var(--orange);
            border-bottom-color: var(--orange);
            font-weight: 600;
        }

        .app-nav__right {
            display: flex; align-items: center; gap: 10px; flex-shrink: 0;
        }
        .nav-clock {
            width: 30px; height: 30px;
            display: flex; align-items: center; justify-content: center;
            color: var(--text-muted); font-size: 1rem; cursor: pointer;
        }
        .nav-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
        .user-avatar {
            width: 30px; height: 30px; border-radius: 50%;
            background: var(--orange); color: white;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.65rem; font-weight: 700; letter-spacing: 0.03em;
        }
        .user-plan {
            font-size: 0.63rem; font-weight: 700;
            letter-spacing: 0.07em; text-transform: uppercase;
            color: var(--text-muted);
            background: var(--cream-dark);
            border: 1px solid var(--border-md);
            border-radius: 4px; padding: 3px 7px;
        }
        .user-arrow { font-size: 0.65rem; color: var(--text-light); }

        /* ── MAIN ── */
        .main {
            max-width: 760px;
            margin: 0 auto;
            padding: 28px 20px 0;
            flex: 1 0 auto;
        }

        /* ── TITRE PAGE ── */
        .page-title {
            font-family: 'Playfair Display', Georgia, serif;
            font-size: 2rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--text);
            margin-bottom: 18px;
        }

        /* ── FILTRES PILLS ── */
        .filter-bar {
            display: flex; gap: 8px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        .filter-pill {
            padding: 6px 18px;
            border-radius: 20px;
            border: 1.5px solid var(--border-md);
            background: transparent;
            font-family: 'Jost', sans-serif;
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.15s;
        }
        .filter-pill:hover:not(.active) {
            border-color: var(--orange);
            color: var(--orange);
        }
        .filter-pill.active {
            background: var(--orange);
            border-color: var(--orange);
            color: white;
            font-weight: 600;
        }

        /* ── LISTE DES CARTES ── */
        .cards-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        /* ── CARTE DE PUBLICATION ── */
        .pub-card {
            background: var(--white);
            border: 1px solid var(--border-md);
            border-radius: 12px;
            padding: 12px 14px;
            display: flex;
            gap: 12px;
            transition: box-shadow 0.2s;
        }
        .pub-card:hover {
            box-shadow: 0 3px 16px rgba(26,18,8,0.07);
        }

        /* Miniature */
        .pc-thumb {
            width: 76px;
            height: 100px;
            border-radius: 8px;
            flex-shrink: 0;
            overflow: hidden;
            position: relative;
        }

        /* Styles de miniatures */
        .thumb-dark {
            background: #1a1208;
            background-image:
                radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px),
                linear-gradient(135deg, #1a1208 0%, #2e2010 50%, #1a1208 100%);
            background-size: 12px 12px, 100% 100%;
            width: 100%; height: 100%;
            position: relative;
        }
        .thumb-dark::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 70% 50% at 40% 60%, rgba(180,90,20,0.25) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 70% 40%, rgba(140,70,15,0.18) 0%, transparent 70%);
        }
        .thumb-warm {
            width: 100%; height: 100%;
            background: linear-gradient(135deg, #C85A18 0%, #A03808 60%, #7a2806 100%);
            position: relative;
        }
        .thumb-warm::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 60% 40% at 50% 40%, rgba(255,220,150,0.25) 0%, transparent 60%);
        }
        .thumb-red {
            width: 100%; height: 100%;
            background: linear-gradient(135deg, #C03010 0%, #901808 60%, #6a1008 100%);
            position: relative;
        }
        .thumb-red::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
            background-size: 10px 10px;
        }
        /* Marque FLYING PUB dans la miniature */
        .thumb-brand {
            position: absolute;
            bottom: 6px; left: 6px;
            font-size: 0.3rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.45);
            z-index: 1;
        }

        /* Contenu de la carte */
        .pc-content {
            flex: 1;
            min-width: 0;
        }

        .pc-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
        }

        .pc-info { flex: 1; min-width: 0; }

        .pc-subject-label {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-light);
            margin-bottom: 2px;
        }
        .pc-title {
            font-size: 0.86rem;
            font-weight: 600;
            color: var(--orange);
            margin-bottom: 3px;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .pc-title:hover { color: var(--orange-lt); }

        .pc-meta {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-bottom: 6px;
        }
        .pc-meta-sep { color: var(--text-light); }

        /* Ligne type + réseaux */
        .pc-type-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
            flex-wrap: wrap;
        }
        .pc-type-badge {
            font-size: 0.6rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 4px;
            border: 1px solid var(--border-md);
            color: var(--text-muted);
            background: var(--card-bg);
        }
        .pc-net {
            width: 20px; height: 20px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.55rem; font-weight: 700;
            color: white; flex-shrink: 0;
            letter-spacing: 0;
        }
        .pc-net.fb { background: #1877F2; }
        .pc-net.ig {
            background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
            font-style: italic; font-size: 0.5rem;
        }

        /* Tags info */
        .pc-tags {
            display: flex; gap: 5px; flex-wrap: wrap;
        }
        .pc-tag {
            font-size: 0.62rem;
            font-weight: 500;
            color: var(--text-muted);
            border: 1px solid var(--border-md);
            border-radius: 4px;
            padding: 2px 8px;
            background: var(--card-bg);
        }
        .pc-tag.cta {
            color: var(--orange);
            border-color: rgba(184,75,12,0.25);
            background: rgba(184,75,12,0.06);
        }
        .pc-tag.urgent {
            color: var(--orange);
            border-color: rgba(184,75,12,0.3);
            background: rgba(184,75,12,0.09);
            font-weight: 700;
        }

        /* Zone statut + corbeille */
        .pc-status-area {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .pc-status {
            font-size: 0.68rem;
            font-weight: 600;
            padding: 3px 10px;
            border-radius: 5px;
            white-space: nowrap;
            display: flex; align-items: center; gap: 4px;
        }
        .pc-status.publie {
            background: rgba(34,197,94,0.12);
            color: #16a34a;
            border: 1px solid rgba(34,197,94,0.25);
        }
        .pc-status.brouillon {
            background: var(--cream-dark);
            color: var(--text-muted);
            border: 1px solid var(--border-md);
        }
        .pc-status.programme {
            background: rgba(184,75,12,0.09);
            color: var(--orange);
            border: 1px solid rgba(184,75,12,0.2);
        }
        .pc-status.ready {
            background: rgba(59,130,246,0.1);
            color: #2563eb;
            border: 1px solid rgba(59,130,246,0.25);
        }
        .pc-trash {
            font-size: 0.88rem;
            color: var(--text-light);
            cursor: pointer;
            transition: color 0.2s;
            padding: 2px;
            line-height: 1;
        }
        .pc-trash:hover { color: #C0392B; }

        /* Bouton Republier */
        .pc-actions { margin-top: 8px; }
        .btn-republier {
            font-family: 'Jost', sans-serif;
            font-size: 0.72rem;
            font-weight: 600;
            padding: 4px 14px;
            border-radius: 20px;
            border: 1.5px solid var(--orange);
            color: var(--orange);
            background: transparent;
            cursor: pointer;
            transition: background 0.15s, color 0.15s;
        }
        .btn-republier:hover {
            background: var(--orange);
            color: white;
        }

        /* État masqué lors du filtrage */
        .pub-card[hidden] { display: none; }

        /* ── ÉTAT VIDE ── */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            display: none;
        }
        .empty-state.visible { display: block; }
        .empty-icon {
            font-size: 1.5rem;
            color: var(--orange);
            opacity: 0.5;
            margin-bottom: 16px;
        }
        .empty-text {
            font-size: 0.88rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        .btn-create {
            display: inline-flex; align-items: center; gap: 6px;
            background: var(--orange); color: white;
            border: none; border-radius: 8px;
            padding: 10px 20px;
            font-family: 'Jost', sans-serif;
            font-size: 0.86rem; font-weight: 600;
            cursor: pointer; text-decoration: none;
            transition: background 0.2s;
        }
        .btn-create:hover { background: var(--orange-lt); }

        /* ── VUE DÉTAIL ── */
        .btn-back {
            display: inline-flex; align-items: center; gap: 6px;
            background: transparent;
            border: 1.5px solid var(--border-md);
            border-radius: 8px;
            padding: 7px 16px;
            font-family: 'Jost', sans-serif;
            font-size: 0.82rem; font-weight: 500;
            color: var(--text-muted);
            cursor: pointer;
            margin-bottom: 22px;
            transition: border-color 0.15s, color 0.15s;
        }
        .btn-back:hover { border-color: var(--orange); color: var(--orange); }

        .detail-layout {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 24px;
            align-items: start;
        }
        @media (max-width: 620px) {
            .detail-layout { grid-template-columns: 1fr; }
        }

        .detail-visual {
            width: 100%;
            aspect-ratio: auto;
            max-height: 560px;
            border-radius: 12px;
            overflow: hidden;
            background: var(--card-bg);
            border: 1px solid var(--border-md);
            flex-shrink: 0;
        }
        .detail-visual svg {
            width: 100% !important;
            height: 100% !important;
            display: block;
        }
        .detail-visual-placeholder {
            width: 100%; height: 100%;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.72rem; font-weight: 600;
            letter-spacing: 0.1em; text-transform: uppercase;
            color: rgba(255,255,255,0.4);
        }

        .detail-subject {
            font-family: 'Playfair Display', Georgia, serif;
            font-size: 1.2rem; font-weight: 600;
            color: var(--text);
            line-height: 1.35;
            margin-bottom: 12px;
        }

        .detail-badges {
            display: flex; flex-wrap: wrap; gap: 6px;
            margin-bottom: 16px;
        }
        .detail-badge {
            font-size: 0.7rem; font-weight: 500;
            padding: 3px 10px;
            border-radius: 5px;
            border: 1px solid var(--border-md);
            background: var(--card-bg);
            color: var(--text-muted);
        }
        .detail-badge.status-publie {
            background: rgba(34,197,94,0.1); color: #16a34a;
            border-color: rgba(34,197,94,0.25);
        }
        .detail-badge.status-programme {
            background: rgba(184,75,12,0.09); color: var(--orange);
            border-color: rgba(184,75,12,0.2);
        }
        .detail-badge.status-echoue {
            background: rgba(220,38,38,0.08); color: #dc2626;
            border-color: rgba(220,38,38,0.2);
        }
        .detail-badge.status-ready {
            background: rgba(59,130,246,0.1); color: #2563eb;
            border-color: rgba(59,130,246,0.25);
        }
        .detail-net {
            display: inline-flex; align-items: center;
            padding: 3px 10px; border-radius: 5px;
            font-size: 0.68rem; font-weight: 700;
            color: white; border: none;
        }
        .detail-net.fb { background: #1877F2; }
        .detail-net.ig {
            background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
        }

        .detail-section-label {
            font-size: 0.68rem; font-weight: 700;
            letter-spacing: 0.08em; text-transform: uppercase;
            color: var(--text-light);
            margin: 14px 0 7px;
        }
        .detail-text-box {
            background: var(--card-bg);
            border: 1px solid var(--border-md);
            border-radius: 8px;
            padding: 12px 14px;
            font-size: 0.85rem; line-height: 1.65;
            color: var(--text);
            white-space: pre-wrap;
            max-height: 200px;
            overflow-y: auto;
        }
        .detail-chips-row {
            display: flex; flex-wrap: wrap; gap: 5px;
        }
        .detail-chip {
            font-size: 0.68rem; font-weight: 500;
            padding: 3px 9px;
            border-radius: 4px;
            border: 1px solid var(--border-md);
            background: var(--card-bg);
            color: var(--text-muted);
        }
        .detail-chip.empty { color: var(--text-muted); border-style: dashed; }
        .detail-created {
            font-size: 0.68rem; color: var(--text-muted); font-weight: 500;
            margin-top: 12px;
        }
        .detail-actions {
            margin-top: 16px; display: flex; gap: 8px;
        }

        /* Cartes cliquables */
        .pub-card { cursor: pointer; }

        /* ══════════════════════════════════════════════
           RESPONSIVE — TABLETTE (≤ 768px)
           Réduction des espacements horizontaux de la nav et des
           onglets uniquement. Ils restent sur une seule ligne.
           Aucun autre élément de la page n'est modifié.
        ══════════════════════════════════════════════ */
        @media (max-width: 768px) {
            .app-nav {
                padding: 0 16px;
            }
            .nav-tab {
                padding: 0 10px;
                font-size: 0.76rem;
            }
        }

        /* ══════════════════════════════════════════════
           RESPONSIVE — SMARTPHONE (≤ 480px)
           La nav passe sur deux lignes : logo + menu utilisateur
           (horloge/thème + compte) en haut, les 4 onglets en
           dessous, avec repli naturel en 2×2 si nécessaire.
           Aucun défilement horizontal, aucun élément masqué,
           aucun menu hamburger — uniquement flex-wrap/order/
           flex-basis sur la structure HTML existante.
        ══════════════════════════════════════════════ */
        @media (max-width: 480px) {
            .app-nav {
                flex-wrap: wrap;
                height: auto;
                padding: 10px 16px;
                row-gap: 8px;
            }
            .app-logo {
                order: 1;
            }
            .app-nav__right {
                order: 2;
                margin-left: auto;
            }
            .app-nav__tabs {
                order: 3;
                flex-basis: 100%;
                flex-wrap: wrap;
                gap: 4px;
            }
            .nav-tab {
                height: auto;
                padding: 8px 12px;
                font-size: 0.74rem;
            }
        }
