/* ===================================================================
   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; }

/* ----- 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; }
}
