/* ===================================================================
   Yeti Construction — thème (par-dessus Bootstrap 5.3)
   Palette chantier : noir + jaune sécurité + gris.
   Layout : sidebar gauche fixe + contenu décalé.
   =================================================================== */
:root {
    --yeti-black:        #1A1A1A;
    --yeti-black-2:      #2c2c2c;
    --yeti-yellow:       #F2B705;
    --yeti-yellow-dark:  #D99E04;
    --yeti-white:        #FFFFFF;
    --yeti-gray:         #6C757D;
    --yeti-gray-light:   #F4F5F7;
    --yeti-sidebar-w:    260px;
}

body.yeti-body {
    background-color: var(--yeti-gray-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.text-yeti-yellow { color: var(--yeti-yellow) !important; }

/* ----- Sidebar gauche fixe ----- */
.yeti-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: var(--yeti-sidebar-w);
    background: linear-gradient(160deg, var(--yeti-black) 0%, var(--yeti-black-2) 100%);
    color: #fff;
    padding: 20px 16px;
    overflow-y: auto;
    z-index: 1000;
}
.yeti-sidebar-logo {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}
.yeti-sidebar-logo .yeti-logo-mark { font-size: 2.2rem; color: var(--yeti-yellow); line-height: 1; }
.yeti-sidebar-logo .yeti-logo-text { font-weight: 800; letter-spacing: .5px; margin-top: 6px; }
.yeti-sidebar-logo small { opacity: .7; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }

.yeti-nav .nav-link {
    color: rgba(255,255,255,.82);
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: background .2s, color .2s;
}
.yeti-nav .nav-link i { width: 22px; margin-right: 10px; font-size: 1.05rem; }
.yeti-nav .nav-link:hover { background: rgba(242,183,5,.15); color: #fff; }
.yeti-nav .nav-link.active {
    background: var(--yeti-yellow);
    color: var(--yeti-black);
    font-weight: 600;
}
.yeti-nav-section {
    opacity: .55;
    padding: 0 14px;
    margin: 16px 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.yeti-nav-sep { border-color: rgba(255,255,255,.15); margin: 14px 0; }
.yeti-nav .yeti-back-link {
    background: rgba(242,183,5,.12);
    border: 1px solid rgba(242,183,5,.4);
    color: var(--yeti-yellow);
    font-weight: 600;
}
.yeti-nav .yeti-back-link:hover { background: rgba(242,183,5,.22); color: #fff; }

/* ----- Contenu principal ----- */
.yeti-main {
    margin-left: var(--yeti-sidebar-w);
    padding: 20px 25px;
    min-height: 100vh;
}

/* ----- Top bar ----- */
.yeti-topbar {
    background: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    border-top: 3px solid var(--yeti-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.yeti-page-title { font-size: 1.4rem; font-weight: 700; color: var(--yeti-black); margin: 0; }
.yeti-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--yeti-black) 0%, var(--yeti-yellow-dark) 100%);
    color: #fff; font-weight: bold;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ----- Boutons ----- */
.btn-yeti {
    background-color: var(--yeti-yellow);
    border-color: var(--yeti-yellow);
    color: var(--yeti-black);
    font-weight: 600;
}
.btn-yeti:hover, .btn-yeti:focus {
    background-color: var(--yeti-yellow-dark);
    border-color: var(--yeti-yellow-dark);
    color: var(--yeti-black);
}

/* ----- Cartes statistiques ----- */
.yeti-stat-card {
    border: none;
    border-left: 4px solid var(--yeti-yellow);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .12s ease, box-shadow .12s ease;
}
.yeti-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.yeti-stat-icon { font-size: 1.6rem; color: var(--yeti-yellow-dark); margin-bottom: .4rem; }
.yeti-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--yeti-black); line-height: 1; }
.yeti-stat-label { color: var(--yeti-gray); font-size: .85rem; margin-top: .25rem; }

/* ----- Footer ----- */
.yeti-footer { color: var(--yeti-gray); border-top: 1px solid #e3e5e8; }

/* ----- Kanban (pipeline projets) ----- */
.yeti-kanban {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: flex-start;
}
.yeti-kanban-col {
    flex: 0 0 280px;
    background: #eceef1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}
.yeti-kanban-head {
    padding: 10px 14px;
    font-weight: 700;
    color: var(--yeti-black);
    border-bottom: 3px solid var(--yeti-yellow);
    text-transform: capitalize;
}
.yeti-kanban-body {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 80px;
}
.yeti-kanban-body.over { background: rgba(242,183,5,.12); border-radius: 8px; }
.yeti-kanban-card {
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid var(--yeti-yellow);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 10px 12px;
    margin-bottom: 10px;
    cursor: grab;
}
.yeti-kanban-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.yeti-kanban-card.dragging { opacity: .5; }
/* Colonnes d'assignation d'équipe (manuelles) — distinctes du pipeline gris. */
.yeti-kanban-team { background: #fdf6de; }
.yeti-kanban-team .yeti-kanban-head {
    background: var(--yeti-black);
    color: var(--yeti-yellow);
    border-bottom-color: var(--yeti-black);
    border-radius: 10px 10px 0 0;
}

/* ----- Palette d'employés + pastilles d'assignation (kanban) ----- */
.yeti-emp-palette { background: #f4f4f4; border: 1px solid #e0e0e0; border-radius: 10px; padding: 10px 12px; }
.yeti-emp-palette-list { display: flex; flex-wrap: wrap; gap: 6px; }
.yeti-emp-chip {
    display: inline-flex; align-items: center; gap: 3px;
    background: var(--yeti-black); color: var(--yeti-yellow);
    font-size: 16px; font-weight: 700; line-height: 1;
    padding: 6px 9px; border-radius: 8px; white-space: nowrap; user-select: none;
}
.yeti-emp-src { cursor: grab; }
.yeti-emp-src:hover { box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.yeti-emp-chip.dragging { opacity: .5; }
.yeti-emp-x {
    border: 0; background: transparent; color: var(--yeti-yellow); opacity: .65;
    font-size: 19px; line-height: 1; padding: 0 1px; margin-left: 2px; cursor: pointer;
}
.yeti-emp-x:hover { opacity: 1; color: #fff; }
/* Zone des pastilles assignées sur une carte projet — cadre agrandi. */
.yeti-emp-zone {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-top: 8px; padding-top: 6px; min-height: 26px;
    border-top: 1px dashed #d5d5d5;
}
.yeti-emp-drop.emp-over { outline: 2px dashed var(--yeti-yellow); outline-offset: 2px; background: rgba(242,183,5,.08); }
/* Pastille assignée sur un projet → « pâle » dans la palette (employé occupé). */
.yeti-emp-src.assignee { opacity: .38; }
.yeti-emp-src.assignee:hover { opacity: .7; }
/* Les pastilles SUR les cartes sont déplaçables (drag carte→carte). */
.yeti-emp-zone .yeti-emp-chip { cursor: grab; }
/* Badges Status / Priorité + gear ⚙️ + panneau de réglages inline sur la carte. */
.yeti-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.yeti-card-meta .badge { font-size: 10px; font-weight: 600; }
.yeti-card-gear { line-height: 1; }
.yeti-card-gear:hover { color: var(--yeti-black) !important; }

/* Jauge de budget sur les cartes projet (Pt7) : engagé / prévu, code couleur vert≤75 / jaune≤100 / rouge>100 */
.yeti-budget { margin: 6px 0 2px; }
.yeti-budget .small { font-size: 10.5px; }
.yeti-budget-bar { height: 6px; border-radius: 4px; background: #e9ecef; }
.yeti-budget-bar .progress-bar { border-radius: 4px; transition: width .3s ease; }

/* Timeline de cédulage (Pt6) : crews × jours ouvrés, blocs projets glissables */
.yeti-tl { font-size: 12px; }
.yeti-tl-head .yeti-tl-day { text-align: center; padding: 4px 0; border-bottom: 2px solid #333; background: #1a1a1a; color: #fff; }
.yeti-tl-day.today { background: var(--yeti-yellow, #F2B705); color: #000; }
.yeti-tl-dow { font-size: 9px; opacity: .8; text-transform: uppercase; }
.yeti-tl-dnum { font-weight: 700; line-height: 1; }
.yeti-tl-mon { font-size: 8px; opacity: .6; }
.yeti-tl-crew-h { background: #1a1a1a; border-bottom: 2px solid #333; }
.yeti-tl-row { border-bottom: 1px solid #eee; min-height: 40px; }
.yeti-tl-crew { display: flex; align-items: center; padding: 0 8px; border-right: 2px solid #333; background: #fafafa; }
.yeti-tl-track { min-height: 40px; }
.yeti-tl-cell { border-right: 1px solid #f0f0f0; }
.yeti-tl-cell.over { background: rgba(242,183,5,.25); }
.yeti-tl-bloc { position: absolute; top: 5px; height: 30px; border-radius: 5px; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; cursor: grab; box-shadow: 0 1px 3px rgba(0,0,0,.3); overflow: hidden; }
.yeti-tl-bloc-txt { font-weight: 600; font-size: 11px; white-space: nowrap; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.yeti-tl-bloc-x { background: rgba(0,0,0,.25); border: 0; color: #fff; border-radius: 50%; width: 16px; height: 16px; line-height: 14px; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.yeti-tl-bloc-x:hover { background: rgba(0,0,0,.5); }
.yeti-card-settings {
    margin-top: 6px; padding: 8px; border: 1px dashed #d0d0d0; border-radius: 8px; background: #fafafa;
}

/* ----- Pages d'authentification (login/reset) ----- */
.yeti-auth-body {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2c2c2c 100%);
    padding: 1rem;
}
.yeti-auth-card {
    background: #fff; border-radius: 12px; padding: 2.5rem;
    width: 100%; max-width: 400px;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.yeti-auth-card .yeti-logo-mark { color: var(--yeti-yellow); }
.yeti-logo-lg { font-size: 3rem; }

/* ----- Bouton menu mobile + overlay ----- */
.yeti-mobile-btn {
    display: none;
    position: fixed; top: 16px; left: 16px; z-index: 1100;
    background: var(--yeti-black); color: #fff; border: none;
    padding: 9px 12px; border-radius: 8px; font-size: 1.1rem;
}
.yeti-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 999;
}

@media (max-width: 992px) {
    .yeti-mobile-btn { display: block; }
    .yeti-sidebar { transform: translateX(-100%); transition: transform .3s; }
    .yeti-sidebar.show { transform: translateX(0); }
    .yeti-sidebar-overlay.show { display: block; }
    .yeti-main { margin-left: 0; }
    .yeti-topbar { padding-left: 64px; }
}

/* Rich text — tailles de caractères (rt-fs-*) — miroir de yeti_rt_fs_css() (source unique) */
.rt-fs-sm{font-size:.82em;}.rt-fs-lg{font-size:1.25em;}.rt-fs-xl{font-size:1.5em;}.rt-fs-8{font-size:8px;}.rt-fs-9{font-size:9px;}.rt-fs-10{font-size:10px;}.rt-fs-11{font-size:11px;}.rt-fs-12{font-size:12px;}.rt-fs-14{font-size:14px;}.rt-fs-16{font-size:16px;}.rt-fs-18{font-size:18px;}.rt-fs-20{font-size:20px;}.rt-fs-24{font-size:24px;}.rt-fs-28{font-size:28px;}.rt-fs-32{font-size:32px;}.rt-fs-36{font-size:36px;}.rt-fs-48{font-size:48px;}.rt-fs-72{font-size:72px;}
