/* WE-LCOME — Styles
   Palette : cyan du logo WE-LCOME, pose sur le navy/teal/orange de la suite WE
   (memes valeurs que We-Contrats, We-App et We-Club). */
:root {
    /* ─── Identite WE-LCOME ─── */
    --cyan: #12CFD6;          /* cyan du logo */
    --cyan-vif: #2BE3E9;      /* sur fond sombre */
    --cyan-fonce: #068C95;    /* texte sur fond clair */
    --cyan-clair: #E6FAFB;

    /* ─── Suite WE ─── */
    --navy: #002830;
    --navy-800: #043945;
    --teal: #0098A0;
    --teal-fonce: #006D7A;
    --we-orange: #E8874E;
    --we-orange-fonce: #d9713a;
    --we-orange-clair: #fdf0e7;

    /* ─── Alias historiques, re-teintes : toute l'application passe par eux ─── */
    --vert-fonce: #002830;    /* fonds sombres, titres */
    --vert-moyen: #0098A0;    /* actions principales */
    --vert-clair: #E6F7F8;    /* fonds doux */
    --or: #068C95;            /* accent lisible sur fond clair */
    --or-clair: #E6FAFB;

    --gris-bg: #F5F7FA;
    --gris-texte: #2D3A4A;
    --gris-leger: #e3e9ef;
    --gris-doux: #6B7A8A;
    --blanc: #ffffff;
    --rouge: #d64545;
    --orange: #E8874E;
    --bleu: #0098A0;
    --vert-ok: #1e9e6a;
    --violet: #6c5ce7;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,40,48,0.08);
    --shadow-lg: 0 10px 25px -3px rgba(0,40,48,0.10);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gris-bg);
    color: var(--gris-texte);
    min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 250px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--teal-fonce) 100%);
    color: var(--blanc);
    padding: 20px 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,40,48,0.15);
}

.sidebar-logo {
    text-align: center;
    padding: 6px 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.sidebar-logo img {
    max-width: 168px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

.sidebar-logo h1 {
    color: var(--cyan-vif);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sidebar-logo small {
    color: rgba(255,255,255,0.6);
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

/* Intitule de famille : c'est lui qui structure le menu */
.sidebar-nav .nav-groupe {
    padding: 16px 24px 6px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.09);
    color: var(--cyan-vif);
    border-left-color: var(--cyan-vif);
}

.sidebar-nav a .icon { font-size: 17px; width: 24px; text-align: center; }

.sidebar-user {
    flex-shrink: 0;
    padding: 12px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.sidebar-user strong { color: var(--cyan-vif); display: block; font-size: 13px; }

/* ─── Main ─── */
.main {
    margin-left: 250px;
    padding: 24px 32px;
    min-height: 100vh;
}

.page { display: none; }
.page.active { display: block; }

/* ─── Header ─── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 22px;
    color: var(--vert-fonce);
}

/* ─── Cards ─── */
.card {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vert-fonce);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--vert-clair);
}

/* ─── Stats Grid ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--vert-fonce);
}

.stat-card .stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-card.gold .stat-value { color: var(--or); }
.stat-card.green .stat-value { color: var(--vert-moyen); }
.stat-card.blue .stat-value { color: var(--bleu); }
.stat-card.red .stat-value { color: var(--rouge); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary { background: var(--vert-moyen); color: var(--blanc); }
.btn-primary:hover { background: var(--vert-fonce); }
.btn-gold { background: var(--or); color: var(--vert-fonce); }
.btn-gold:hover { background: #b89545; }
.btn-danger { background: var(--rouge); color: var(--blanc); }
.btn-danger:hover { background: #c0392b; }
.btn-outline {
    background: transparent;
    color: var(--vert-moyen);
    border: 1.5px solid var(--vert-moyen);
}
.btn-outline:hover { background: var(--vert-clair); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; min-width: 36px; justify-content: center; }

/* ─── Voice ─── */
.voice-zone {
    background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-moyen) 100%);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    color: var(--blanc);
    margin-bottom: 24px;
}

.voice-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--or);
    background: rgba(197, 165, 90, 0.15);
    color: var(--or);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.voice-btn:hover { background: rgba(197, 165, 90, 0.3); transform: scale(1.05); }

.voice-btn.recording {
    animation: pulse 1.2s infinite;
    background: rgba(231, 76, 60, 0.3);
    border-color: var(--rouge);
    color: var(--rouge);
}

.voice-btn-inline {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--or);
    background: rgba(197, 165, 90, 0.15);
    color: var(--or);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.voice-btn-inline:hover { background: rgba(197, 165, 90, 0.3); }
.voice-btn-inline.recording {
    animation: pulse 1.2s infinite;
    background: rgba(231, 76, 60, 0.3);
    border-color: var(--rouge);
    color: var(--rouge);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.4); }
    50% { box-shadow: 0 0 0 20px rgba(231,76,60,0); }
}

.voice-transcript {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    min-height: 50px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.voice-transcript:empty::before {
    content: "Cliquez sur le micro et parlez... Ex: 'J'ai rencontré le club de Toulouse, j'ai vu le président Jean Dupont, ils sont très intéressés par 3 apprentis en coaching'";
    opacity: 0.4;
    font-style: italic;
}

/* ─── Forms ─── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gris-leger);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vert-moyen);
    box-shadow: 0 0 0 3px rgba(45,90,63,0.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

/* ─── Table ─── */
.table-container { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

table.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 2px solid var(--gris-leger);
    white-space: nowrap;
}

table.data-table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

table.data-table tr:hover td { background: #fafbfc; }

/* ─── Badges ─── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-froid { background: #e8f4fd; color: #2980b9; }
.badge-tiede { background: #fef9e7; color: #f39c12; }
.badge-chaud { background: #fdedec; color: #e74c3c; }
.badge-signe { background: var(--vert-clair); color: var(--vert-moyen); }
.badge-inconnu { background: #f0f0f0; color: #888; }

.badge-nouveau { background: #e8f4fd; color: #2980b9; }
.badge-contacte { background: #fef9e7; color: #f39c12; }
.badge-en_discussion { background: #fde8e8; color: #e74c3c; }
.badge-relance { background: #fdf6e3; color: #b8860b; }
.badge-perdu { background: #f0f0f0; color: #888; }

/* ─── Modal ─── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    overflow-y: auto;
}

.modal-overlay.show { display: flex; }

.modal {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    margin-bottom: 40px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 { font-size: 18px; color: var(--vert-fonce); }

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    padding: 4px;
}

.modal-close:hover { color: var(--rouge); }

/* ─── Tabs ─── */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gris-leger);
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--vert-fonce);
    border-bottom-color: var(--or);
}

/* ─── Pipeline ─── */
.pipeline {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pipeline-col {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 200px;
}

.pipeline-col-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipeline-col-header .count {
    background: rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.pipeline-col[data-statut="nouveau"] .pipeline-col-header { background: #e8f4fd; color: #2980b9; }
.pipeline-col[data-statut="contacte"] .pipeline-col-header { background: #fef9e7; color: #f39c12; }
.pipeline-col[data-statut="en_discussion"] .pipeline-col-header { background: #fde8e8; color: #e74c3c; }
.pipeline-col[data-statut="relance"] .pipeline-col-header { background: #fdf6e3; color: #b8860b; }
.pipeline-col[data-statut="signe"] .pipeline-col-header { background: var(--vert-clair); color: var(--vert-moyen); }
.pipeline-col[data-statut="perdu"] .pipeline-col-header { background: #f0f0f0; color: #888; }

.pipeline-card {
    padding: 10px 14px;
    margin: 8px;
    background: #fafbfc;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all 0.2s;
}

.pipeline-card:hover {
    border-color: var(--or);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pipeline-card .club-name { font-weight: 600; font-size: 13px; }
.pipeline-card .club-ville { font-size: 11px; color: #888; margin-top: 2px; }

/* ─── Relance list ─── */
.relance-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.relance-date {
    background: var(--or-clair);
    color: var(--or);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.relance-date.overdue { background: #fde8e8; color: var(--rouge); }

.relance-info { flex: 1; }
.relance-info .club-name { font-weight: 600; font-size: 14px; }
.relance-info .etape { font-size: 13px; color: #666; margin-top: 2px; }

/* ─── Chart container ─── */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.chart-bar-label {
    width: 100px;
    font-size: 12px;
    text-transform: capitalize;
    text-align: right;
}

.chart-bar-track {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    min-width: 30px;
}

/* ─── Toast ─── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: var(--vert-fonce);
    color: var(--blanc);
    padding: 14px 24px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-size: 14px;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.error { background: var(--rouge); }
.toast.success { background: var(--vert-moyen); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── Responsive Tablet ─── */
@media (max-width: 900px) {
    .sidebar { width: 60px; padding: 10px 0; }
    .sidebar-logo h1 { font-size: 14px; }
    .sidebar-logo small, .sidebar-nav a span:not(.icon), .sidebar-user { display: none; }
    .sidebar-nav a { padding: 12px 18px; justify-content: center; }
    .main { margin-left: 60px; padding: 16px; }
    .pipeline {
        display: flex !important; overflow-x: auto !important;
        gap: 8px !important; -webkit-overflow-scrolling: touch;
    }
    .pipeline-col { min-width: 160px !important; flex-shrink: 0; }
    .chart-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr 1fr !important; }
    .stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .modal { max-width: 95vw !important; max-height: 95vh !important; }
}

/* ─── Responsive Mobile ─── */
@media (max-width: 600px) {
    .sidebar {
        position: fixed; bottom: 0; left: 0; right: 0; top: auto;
        width: 100% !important; height: 56px; z-index: 100;
        display: flex; flex-direction: row; padding: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-right: none;
    }
    .sidebar-logo, .sidebar-user { display: none !important; }
    .sidebar-nav {
        display: flex; flex-direction: row; width: 100%;
        overflow-x: auto; gap: 0;
    }
    .sidebar-nav a {
        flex: 1; min-width: 0; padding: 8px 4px; font-size: 10px;
        flex-direction: column; gap: 2px; text-align: center;
        justify-content: center; align-items: center;
    }
    .sidebar-nav a .icon { font-size: 18px; }
    .sidebar-nav a span:not(.icon) { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
    .main {
        margin-left: 0 !important; padding: 12px 10px 70px 10px !important;
    }
    .page-header { flex-direction: column; gap: 8px; align-items: flex-start !important; }
    .page-header h2 { font-size: 18px; }
    .pipeline {
        display: flex !important; overflow-x: auto !important; scroll-snap-type: x mandatory;
        gap: 8px !important; font-size: 12px; padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .pipeline-col {
        min-width: 140px !important; flex-shrink: 0; scroll-snap-align: start;
    }
    .form-grid { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .stat-card { padding: 12px 8px; }
    .stat-card .stat-value { font-size: 22px; }
    .modal-overlay { padding: 0 !important; }
    .modal {
        max-width: 100vw !important; max-height: 100vh !important;
        width: 100vw !important; height: 100vh !important;
        border-radius: 0 !important; margin: 0 !important;
    }
    .card { padding: 12px; }
    .card-title { font-size: 14px; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 6px 8px; }
    #club-tabs { gap: 2px !important; }
    #club-tabs button { font-size: 11px !important; padding: 4px 6px !important; }
    #settings-tabs { gap: 2px !important; }
    #settings-tabs button { font-size: 11px !important; padding: 4px 6px !important; }
    .chart-grid { grid-template-columns: 1fr; }
    .table-container { font-size: 12px; }
    .btn { font-size: 12px; padding: 6px 10px; }
    .btn-sm { font-size: 10px; padding: 4px 6px; }
}

/* ─── Detail panel (club) ─── */
.detail-section { margin-bottom: 24px; }
.detail-section h4 {
    font-size: 14px;
    color: var(--vert-moyen);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card, .visite-card, .jeune-card {
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.contact-card .contact-name,
.jeune-card .jeune-name {
    font-weight: 600;
    font-size: 14px;
}

.contact-card .contact-role,
.jeune-card .jeune-theme {
    font-size: 12px;
    color: var(--or);
}

.contact-card .contact-info,
.jeune-card .jeune-info {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   WE-LCOME — modules d'accompagnement
   Ressources, veille, lettres d'information, parcours du stagiaire.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Le menu replie garde ses icones : les intitules de famille disparaissent */
@media (max-width: 900px) {
    .sidebar-nav .nav-groupe { display: none; }
    .sidebar-logo img { max-width: 40px; }
}
@media (max-width: 600px) {
    .sidebar-nav .nav-groupe { display: none !important; }
}

/* ─── Bandeau d'intention en tete de page ─── */
.page-intro {
    background: linear-gradient(115deg, var(--navy), var(--teal-fonce) 62%, var(--teal));
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--cyan);
}
.page-intro h3 { font-size: 16px; margin-bottom: 6px; font-weight: 700; }
.page-intro p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 900px; }

/* ─── Barre de filtres ─── */
.filtres-bar {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-bottom: 16px;
}
.filtres-bar select,
.filtres-bar input[type="search"],
.filtres-bar input[type="text"] {
    padding: 8px 12px; border: 1.5px solid var(--gris-leger);
    border-radius: var(--radius-sm); font-size: 13px; background: #fff;
    color: var(--gris-texte);
}
.filtres-bar select:focus,
.filtres-bar input:focus { outline: none; border-color: var(--teal); }

/* ─── Grille de fiches (ressources, veille, lettres) ─── */
.fiches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.fiche {
    background: var(--blanc);
    border: 1px solid var(--gris-leger);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.fiche:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.fiche.epingle { border-left-color: var(--we-orange); background: linear-gradient(180deg, var(--we-orange-clair), #fff 40%); }
.fiche.importance-important { border-left-color: var(--we-orange); }
.fiche.importance-urgent { border-left-color: var(--rouge); }
.fiche-titre { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.fiche-meta { font-size: 11.5px; color: var(--gris-doux); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fiche-texte { font-size: 13px; line-height: 1.6; color: var(--gris-texte); }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* ─── Pastilles ─── */
.pastille {
    display: inline-block; padding: 2px 9px; border-radius: 20px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.2px;
    background: var(--cyan-clair); color: var(--cyan-fonce);
}
.pastille.neutre { background: #eef2f6; color: var(--gris-doux); }
.pastille.orange { background: var(--we-orange-clair); color: var(--we-orange-fonce); }
.pastille.rouge { background: #fdecec; color: var(--rouge); }
.pastille.verte { background: #e4f5ee; color: var(--vert-ok); }
.pastille.violette { background: #efecfd; color: var(--violet); }

/* ─── Parcours d'accompagnement : la frise des etapes ─── */
.parcours-phase {
    margin-bottom: 18px;
}
.parcours-phase-titre {
    font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--teal-fonce); margin-bottom: 8px;
    padding-bottom: 5px; border-bottom: 2px solid var(--cyan-clair);
}
.parcours-etape {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--gris-leger); background: #fff;
    margin-bottom: 6px;
}
.parcours-etape.est-fait { background: #f4fbf8; border-color: #cfeade; }
.parcours-etape.est-bloque { background: #fdf4f4; border-color: #f3d5d5; }
.parcours-etape.est-retard { border-left: 4px solid var(--rouge); }
.parcours-etape.est-sans-objet { opacity: 0.5; }
.parcours-coche {
    width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
    border-radius: 50%; border: 2px solid var(--gris-leger);
    background: #fff; cursor: pointer; font-size: 12px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: all 0.15s;
}
.parcours-coche:hover { border-color: var(--teal); }
.parcours-etape.est-fait .parcours-coche { background: var(--vert-ok); border-color: var(--vert-ok); }
.parcours-etape.est-bloque .parcours-coche { background: var(--rouge); border-color: var(--rouge); }
.parcours-corps { flex: 1; min-width: 0; }
.parcours-libelle { font-size: 13.5px; font-weight: 600; color: var(--gris-texte); }
.parcours-detail { font-size: 11.5px; color: var(--gris-doux); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 10px; }
.parcours-etape select {
    padding: 4px 8px; font-size: 11.5px; border: 1px solid var(--gris-leger);
    border-radius: 6px; background: #fff; color: var(--gris-texte);
}

/* ─── Jauge d'avancement ─── */
.jauge {
    height: 8px; background: #eef2f6; border-radius: 20px; overflow: hidden;
    min-width: 90px;
}
.jauge span {
    display: block; height: 100%; border-radius: 20px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}
.jauge.est-complet span { background: var(--vert-ok); }

/* ─── Choix de publics (cases a cocher en pastilles) ─── */
.publics-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.publics-choix label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border: 1.5px solid var(--gris-leger); border-radius: 20px;
    font-size: 12.5px; cursor: pointer; background: #fff; color: var(--gris-doux);
    transition: all 0.15s;
}
.publics-choix label:hover { border-color: var(--teal); }
.publics-choix label.coche {
    background: var(--cyan-clair); border-color: var(--teal); color: var(--teal-fonce); font-weight: 600;
}
.publics-choix input { accent-color: var(--teal); }

/* ─── Etat vide ─── */
.etat-vide {
    text-align: center; padding: 40px 20px; color: var(--gris-doux);
    font-size: 13.5px; line-height: 1.7;
}
.etat-vide .icone { font-size: 34px; display: block; margin-bottom: 10px; opacity: 0.5; }

/* ─── Bouton accent suite WE ─── */
.btn-accent { background: var(--we-orange); color: #fff; }
.btn-accent:hover { background: var(--we-orange-fonce); }
