/*
 * UNSA Territoriaux 21 · socle de design 2026 (étape 1 de la refonte, 08/10/2026).
 * Activation (étape 3) : toute page qui affiche la barre d'en-tête .ut21-topbar, ou dont le
 * <body> porte la classe « ui26 », sauf les pages publiques refaites avec public-2026.css.
 * Chargé par ut21RenderHeaderNav() avec un numéro de version (style.css est en cache 1 semaine).
 * Charte : bleu UNSA #009ee0 dominant, texte blanc sur fond bleu, jamais d'orange,
 * bordures neutres uniquement (#e2e8f0), Sora pour les titres, Inter pour le texte,
 * cibles tactiles de 44 px, champs en 16 px, aucun défilement horizontal.
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap");

:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) {
    /* Couleurs */
    --ui-blue: #009ee0;
    --ui-blue-600: #0287c2;
    --ui-blue-700: #036d9e;
    --ui-blue-50: #f0f9ff;
    --ui-blue-100: #e0f2fe;
    --ui-navy: #004289;
    --ui-ink: #0f172a;
    --ui-ink-2: #1e293b;
    --ui-text: #334155;
    --ui-muted: #64748b;
    --ui-faint: #94a3b8;
    --ui-line: #e2e8f0;
    --ui-line-strong: #cbd5e1;
    --ui-bg: #f6f8fb;
    --ui-surface: #ffffff;
    --ui-subtle: #f8fafc;
    --ui-success-bg: #ecfdf5; --ui-success: #047857;
    --ui-warn-bg: #fffbeb;    --ui-warn: #92400e;
    --ui-danger-bg: #fef2f2;  --ui-danger: #b91c1c;
    /* Formes */
    --ui-r-sm: 8px;
    --ui-r: 12px;
    --ui-r-lg: 16px;
    --ui-shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --ui-shadow-sm: 0 4px 12px rgba(15, 23, 42, .06);
    --ui-shadow-md: 0 12px 32px rgba(15, 23, 42, .08);
    --ui-focus: 0 0 0 3px #fff, 0 0 0 5px #1e293b;
    --ui-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ui-font-title: "Sora", "Inter", -apple-system, sans-serif;
    /* Anciennes variables réalignées sur la charte (plus d'orange) */
    --ut21-blue: #009ee0;
    --ut21-blue-deep: #036d9e;
    --ut21-orange: #009ee0;
    --ut21-ink: #0f172a;
    --ut21-muted: #64748b;
    --ut21-border: #e2e8f0;
    --ut21-surface: #f8fafc;
    --ut21-radius: 16px;
    --ut21-shadow: 0 1px 2px rgba(15, 23, 42, .04);

    background: var(--ui-bg);
    color: var(--ui-text);
    font-family: var(--ui-font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
:root:not(:has(link[href*="public-2026"])):has(body.ui26, .ut21-topbar) { background: #f6f8fb; overflow-x: hidden; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) h1, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) h2, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) h3, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) h4 {
    font-family: var(--ui-font-title);
    color: var(--ui-ink);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 800; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) a { color: var(--ui-blue-700); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) :focus-visible { outline: none; box-shadow: var(--ui-focus); border-radius: var(--ui-r-sm); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-main { padding-top: 8px; padding-bottom: 48px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-shell { width: min(1200px, calc(100vw - 32px)); }

/* ===== En-tête ===== */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-topbar { padding: 12px 0; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav {
    padding: 10px 12px 10px 14px;
    gap: 12px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-r-lg);
    box-shadow: var(--ui-shadow-xs);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand { gap: 12px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand-copy strong { font-family: var(--ui-font-title); font-size: 16px; font-weight: 700; color: var(--ui-ink); letter-spacing: -0.01em; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand-copy span { font-size: 13px; color: var(--ui-muted); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav-actions { gap: 6px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link-admin {
    width: 44px; height: 44px;
    border-radius: var(--ui-r);
    background: transparent;
    border: 1px solid transparent;
    color: var(--ui-text);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link svg { width: 20px; height: 20px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link:hover,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link-admin:hover { background: var(--ui-subtle); border-color: var(--ui-line); transform: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link[data-tooltip]::after { font-size: 12px; font-weight: 600; border-radius: var(--ui-r-sm); background: var(--ui-ink); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav-cta {
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--ui-r);
    background: var(--ui-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav-cta:hover { background: var(--ui-blue-600); transform: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav-cta svg { width: 18px; height: 18px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-role-pill {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid var(--ui-line);
    background: var(--ui-subtle);
    color: var(--ui-ink-2);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-role-pill-superadmin { background: var(--ui-blue-50); color: var(--ui-blue-700); }

/* Badge de rôle (styles en ligne d'origine : surcharge nécessaire) */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-user-badge { background: var(--ui-subtle) !important; border: 1px solid var(--ui-line) !important; box-shadow: none !important; padding: 4px 12px 4px 4px !important; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-user-badge-avatar { background: var(--ui-blue) !important; color: #fff !important; border: 0 !important; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-user-badge-label { color: var(--ui-ink) !important; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-user-badge-email { color: var(--ui-muted) !important; }

/* Onglets d'espace (Mon compte, etc.) */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-portal-tabs { gap: 4px; padding: 4px; margin: 4px 0 20px; background: #eef2f6; border-radius: var(--ui-r); display: inline-flex; max-width: 100%; overflow-x: auto; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-portal-tabs a {
    min-height: 40px; padding: 0 14px;
    border: 0; border-radius: 9px;
    background: transparent; color: var(--ui-text);
    font-size: 14px; font-weight: 600; white-space: nowrap;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-portal-tabs a:hover { background: rgba(255, 255, 255, .7); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-portal-tabs a[aria-current=page] { background: #fff; color: var(--ui-ink); box-shadow: var(--ui-shadow-xs); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-portal-tabs a:focus-visible { outline: none; box-shadow: var(--ui-focus); }

/* ===== Composants génériques (réutilisables par toutes les pages migrées) ===== */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ui-card,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-card,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-dashboard-panel {
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-r-lg);
    box-shadow: var(--ui-shadow-xs);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ui-eyebrow {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ui-muted);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-secondary,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-ghost,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-danger,
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-btn {
    min-height: 44px;
    padding: 0 16px;
    gap: 8px;
    border-radius: var(--ui-r);
    font-family: var(--ui-font);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transform: none;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-btn { background: var(--ui-blue); color: #fff; border: 1px solid var(--ui-blue); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn:hover, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-btn:hover { background: var(--ui-blue-600); border-color: var(--ui-blue-600); transform: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-secondary, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-ghost, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-btn.secondary {
    background: #fff; color: var(--ui-ink-2); border: 1px solid var(--ui-line);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-secondary:hover, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-ghost:hover, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-btn.secondary:hover { background: var(--ui-subtle); transform: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn-danger { background: var(--ui-danger-bg); color: var(--ui-danger); border: 1px solid var(--ui-line); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-btn[disabled], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-btn[disabled] { opacity: .45; cursor: default; }

:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input[type=text], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input[type=search], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input[type=email], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input[type=tel],
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input[type=number], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input[type=date], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input[type=password], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) select, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) textarea {
    font-family: var(--ui-font);
    font-size: 16px;
    color: var(--ui-ink);
    background: #fff;
    border: 1px solid var(--ui-line-strong);
    border-radius: var(--ui-r);
    min-height: 44px;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) input:focus, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) select:focus, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) textarea:focus {
    outline: none;
    border-color: var(--ui-line-strong);
    box-shadow: var(--ui-focus);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) ::placeholder { color: var(--ui-faint); }

/* ===== Lanceur d'applications (mon-espace.php) ===== */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero {
    background: var(--ui-surface);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-r-lg);
    box-shadow: var(--ui-shadow-xs);
    padding: 22px 24px;
    margin-bottom: 18px;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero::before, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero::after { display: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero h1 { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.75rem); margin: 10px 0 6px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero p { color: var(--ui-muted); font-size: 14px; max-width: 70ch; margin: 0; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-pill { border: 1px solid var(--ui-line); font-weight: 700; background: var(--ui-blue-50) !important; color: var(--ui-blue-700) !important; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero-stats { gap: 8px; margin-top: 14px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero-stat {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--ui-subtle);
    border: 1px solid var(--ui-line);
    color: var(--ui-ink-2);
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) a.me-hero-stat:hover { background: var(--ui-blue-50); color: var(--ui-blue-700); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-edit-toggle {
    min-height: 40px; border-radius: var(--ui-r); border: 1px solid var(--ui-line); background: #fff; color: var(--ui-ink-2);
    font-size: 13px; font-weight: 600; box-shadow: none;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-search-input {
    min-height: 48px; font-size: 16px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r);
    box-shadow: var(--ui-shadow-xs);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-search-input:focus { border-color: var(--ui-line-strong); box-shadow: var(--ui-focus); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-search-wrap { margin-bottom: 22px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-section { margin-bottom: 26px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-section-head { margin-bottom: 10px; gap: 10px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-section-head h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ui-muted); font-family: var(--ui-font); margin: 0; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-section-dot { width: 8px; height: 8px; box-shadow: none; background: var(--ui-blue) !important; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-section-sub { font-size: 12px; color: var(--ui-faint); background: none; border: 0; padding: 0; }
/* Cartes compactes : icône + titre + description, plus de gros bouton pleine largeur */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "icon title" "icon desc";
    column-gap: 14px;
    row-gap: 2px;
    align-items: start;
    padding: 14px 16px;
    min-height: 0;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-r-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-xs);
    transform: none;
    position: relative;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card:hover { box-shadow: var(--ui-shadow-sm); border-color: var(--ui-line); transform: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card::before, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card::after { display: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-top { position: absolute; top: 8px; right: 8px; margin: 0; padding: 0; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-tag { display: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-tools { opacity: 0; transition: opacity .15s; gap: 2px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card:hover .me-card-tools, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card:focus-within .me-card-tools { opacity: 1; }
@media (hover: none) { :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-tools { display: none; } }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-tool { width: 30px; height: 30px; border-radius: var(--ui-r-sm); border: 1px solid var(--ui-line); background: #fff; color: var(--ui-muted); box-shadow: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-bigicon {
    grid-area: icon;
    width: 44px; height: 44px; margin: 0;
    border-radius: var(--ui-r);
    background: var(--ui-blue-50) !important;
    color: var(--ui-blue-700) !important;
    box-shadow: none !important;
    display: flex; align-items: center; justify-content: center;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-bigicon i, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-bigicon svg { width: 22px !important; height: 22px !important; color: var(--ui-blue-700) !important; stroke: currentColor; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-title { grid-area: title; font-size: 15px; font-weight: 700; margin: 2px 0 0; padding-right: 72px; color: var(--ui-ink); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-desc {
    grid-area: desc; font-size: 13px; color: var(--ui-muted); margin: 0; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-cta { display: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-super .me-card-bigicon { background: var(--ui-blue) !important; color: #fff !important; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-super .me-card-bigicon svg, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-card-super .me-card-bigicon i { color: #fff !important; }

/* ===== Back-office : tableau de bord (gestion/index.php) ===== */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-todo { background: var(--ui-blue-50); border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); padding: 16px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-todo-list a { border: 1px solid var(--ui-line); border-radius: var(--ui-r); box-shadow: var(--ui-shadow-xs); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-todo-list a:hover { box-shadow: var(--ui-shadow-sm); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-section h2, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-todo h2 { font-family: var(--ui-font); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ui-muted); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-grid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card { padding: 14px 16px; border-radius: var(--ui-r-lg); gap: 4px; box-shadow: var(--ui-shadow-xs); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card:hover { transform: none; box-shadow: var(--ui-shadow-sm); border-color: var(--ui-line); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card-row { gap: 14px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card-icon { width: 44px; height: 44px; border-radius: var(--ui-r); background: var(--ui-blue-50); color: var(--ui-blue-700); box-shadow: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card-icon svg { width: 22px; height: 22px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card-title { font-family: var(--ui-font-title); font-size: 15px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card-desc { padding-left: 58px; margin-top: -6px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-card-badge { background: var(--ui-blue); color: #fff; border-radius: 999px; }

/* ===== Listes électorales : recherche et explorateur ===== */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-intro { color: var(--ui-muted); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-stat { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-r); box-shadow: var(--ui-shadow-xs); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-stat strong { font-family: var(--ui-font-title); font-variant-numeric: tabular-nums; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-panel { border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); box-shadow: var(--ui-shadow-xs); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-form input:focus, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-field input:focus, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-field select:focus { outline: none; border-color: var(--ui-line-strong); box-shadow: var(--ui-focus); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .le-row { border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-switch { background: #eef2f6; border-radius: var(--ui-r); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-tab { border-radius: 9px; color: var(--ui-text); font-weight: 600; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-tab.is-on { background: #fff; color: var(--ui-ink); box-shadow: var(--ui-shadow-xs); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-explorer { border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); box-shadow: var(--ui-shadow-xs); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-pill { border: 1px solid var(--ui-line); color: var(--ui-ink-2); font-weight: 600; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-pill:hover { background: var(--ui-subtle); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-pill.is-on { background: var(--ui-blue); border-color: var(--ui-blue); color: #fff; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-kpi { background: var(--ui-subtle); border: 1px solid var(--ui-line); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-kpi strong { font-family: var(--ui-font-title); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-kpi.main { background: var(--ui-blue); border-color: var(--ui-blue); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-table-wrap { border: 1px solid var(--ui-line); border-radius: var(--ui-r); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-table th { background: var(--ui-subtle); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-table td { border-bottom: 1px solid #f1f5f9; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .lx-link { color: var(--ui-blue-700); }

/* ===== Composants communs à toutes les pages (étape 3, 08/10/2026) ===== */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-section { margin: 0 0 36px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-hero { gap: 18px; margin: 12px 0 28px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-eyebrow {
    padding: 4px 10px; margin-bottom: 10px; gap: 6px;
    border-radius: 999px; background: var(--ui-blue-50); color: var(--ui-blue-700);
    font-family: var(--ui-font); font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-section-title { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.4rem); line-height: 1.15; margin: 8px 0 12px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-section-lead { font-size: 16px; line-height: 1.6; color: var(--ui-muted); max-width: 70ch; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-dashboard-panel { border-radius: var(--ui-r-lg); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-dashboard-panel h2, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-shell h1, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-auth-shell h1 { font-size: 20px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-stat { padding: 16px 18px; border-radius: var(--ui-r-lg); box-shadow: var(--ui-shadow-xs); border: 1px solid var(--ui-line); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-stat strong { font-family: var(--ui-font-title); font-variant-numeric: tabular-nums; white-space: nowrap; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-empty { border: 1px dashed var(--ui-line-strong); border-radius: var(--ui-r); background: var(--ui-subtle); color: var(--ui-muted); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-status-badge { padding: 4px 10px; font-size: 12px; font-weight: 700; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-space-card, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-card {
    border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); box-shadow: var(--ui-shadow-xs); transform: none;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-space-card:hover, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-card:hover { box-shadow: var(--ui-shadow-sm); transform: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-tab, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-space-tab {
    min-height: 44px; border-radius: var(--ui-r); border: 1px solid var(--ui-line); background: #fff;
    color: var(--ui-text); font-weight: 600; transform: none;
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-tab:hover, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-space-tab:hover { background: var(--ui-subtle); transform: none; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-tab.active, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-tab[aria-current=page], :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-space-tab.active {
    background: var(--ui-blue); border-color: var(--ui-blue); color: #fff;
}
/* Formulaires */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-input, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-select, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-textarea {
    border: 1px solid var(--ui-line-strong); border-radius: var(--ui-r); background: #fff;
    padding: 10px 14px; min-height: 44px; font-size: 16px; color: var(--ui-ink);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-textarea { min-height: 110px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-input:focus, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-select:focus, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-textarea:focus {
    outline: none; border-color: var(--ui-line-strong); box-shadow: var(--ui-focus);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-group label, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-field label, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-form-label {
    font-size: 13px; font-weight: 600; color: var(--ui-ink-2);
}
/* Alertes : fond pâle + pastille, bordure neutre (plus d'aplats rouges ni de bordures colorées) */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert {
    padding: 14px 16px 14px 54px; border-radius: var(--ui-r); border: 1px solid var(--ui-line) !important;
    box-shadow: none; font-size: 14px; line-height: 1.5;
    background: var(--ui-blue-50); color: var(--ui-blue-700);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert::before { left: 14px; width: 28px; height: 28px; font-size: 14px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert::after { display: none !important; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-success { background: var(--ui-success-bg); color: var(--ui-success); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-success::before { background: var(--ui-success); color: #fff; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-danger, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-error { background: var(--ui-danger-bg); color: var(--ui-danger); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-danger::before, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-error::before { background: var(--ui-danger); color: #fff; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-warning { background: var(--ui-warn-bg); color: var(--ui-warn); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-warning::before { background: #b45309; color: #fff; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-info { background: var(--ui-blue-50); color: var(--ui-blue-700); }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert-info::before { background: var(--ui-blue); color: #fff; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-alert a { color: inherit; font-weight: 600; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-note { border: 1px solid var(--ui-line); border-radius: var(--ui-r); background: var(--ui-warn-bg); color: var(--ui-warn); }
/* Tableaux de données nommés */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) :is(.ut21-table, .cq-table, .rel-table, .ut21-hmi-table, .ut21-impl-table, .ut21-conquete-table, .ut21-candidates-table) { border-collapse: collapse; font-size: 14px; }
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) :is(.ut21-table, .cq-table, .rel-table, .ut21-hmi-table, .ut21-impl-table, .ut21-conquete-table, .ut21-candidates-table) th {
    background: var(--ui-subtle); color: var(--ui-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ui-line);
}
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) :is(.ut21-table, .cq-table, .rel-table, .ut21-hmi-table, .ut21-impl-table, .ut21-conquete-table, .ut21-candidates-table) td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
/* Pied de page éventuel */
:root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-footer { color: var(--ui-muted); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-shell { width: calc(100vw - 20px); }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-hero { padding: 16px; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-grid, :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .gd-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav { flex-wrap: wrap !important; row-gap: 8px; padding: 10px; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand { flex: 1 1 100% !important; min-width: 0; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand-copy span { display: block; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav-actions { width: 100%; justify-content: space-between !important; gap: 4px !important; padding-top: 8px; border-top: 1px solid var(--ui-line); }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link { width: 44px !important; height: 44px !important; border-radius: var(--ui-r) !important; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-icon-link svg { width: 20px !important; height: 20px !important; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .me-pill { background: var(--ui-blue-50) !important; color: var(--ui-blue-700) !important; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-user-badge-text { display: none !important; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-user-badge { padding: 4px !important; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand-logo { width: 40px; height: 40px; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-brand-copy strong { font-size: 15px; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav-cta span { display: none; }
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) .ut21-nav-cta { width: 44px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    :root:not(:has(link[href*="public-2026"])) body:is(.ui26, :has(.ut21-topbar)) * { transition: none !important; animation: none !important; }
}
