:root {
    --yara-blue: #002b5e;
    --yara-light-blue: #0072ce;
    --btn-color-blue: #0a6598;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f4f7f6;
    --error-red: #d32f2f;
    --color-green-heavy: #057c6c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}
/* Bouton réutilisable partout sur le site */
.btn-primary {
    padding: 0.7rem;
    background-color: var(--yara-blue);
    color: white;
    border: none;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: var(--yara-light-blue);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Input générique réutilisable */
.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--yara-light-blue);
    box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.1);
}

.dashboard-layout {
    min-height: 100vh;
    background-color: var(--bg-light);
}

/* --- Barre de navigation --- */
.topbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 0.60rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.topbar-logo {
    height: 55px;
    margin-right: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    width: 350px;
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--yara-light-blue);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.1);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: 0.5rem;
    color: var(--text-dark);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-icon {
    color: var(--text-gray);
    transition: color 0.2s ease;
}

.topbar-icon:hover {
    color: var(--yara-blue);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e1e5eb;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background-color: var(--yara-light-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
/* ==========================================================================
   PARAMÈTRES (MENU LATÉRAL)
   ========================================================================== */
.offcanvas-yara {
    border-left: none;
    width: 350px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
    overflow: hidden;
}

/* Le filigrane en arrière-plan */
.yara-watermark {
    position: absolute;
    bottom: -12px;
    right: -40px;
    width: 365px;
    height: 320px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-10deg);
}

/* La liste du menu */
.settings-menu {
    display: flex;
    flex-direction: column;
}

/* Chaque ligne (item) */
.settings-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    text-decoration: none;
    color: #495057;
    background-color: transparent;
    border-bottom: 1px solid rgba(233, 236, 239, 0.5); /* Bordure semi-transparente */
    transition: all 0.3s ease;
}

/* Effet de glissement au survol */
.settings-item:hover {
    background-color: rgba(248, 249, 250, 0.9);
    padding-left: 32px;
    color: var(--yara-blue);
}

/* Le carré contenant l'icône */
.settings-icon-wrapper {
    background-color: #e9ecef;
    color: #6c757d;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Effet rebond de l'icône au survol de la ligne */
.settings-item:hover .settings-icon-wrapper {
    background-color: #e3f2fd;
    color: var(--yara-blue);
    transform: scale(1.15);
}

/* Les textes (Titre + Description) */
.settings-text {
    display: flex;
    flex-direction: column;
}

.settings-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.settings-desc {
    font-size: 0.75rem;
    color: #868e96;
    margin-top: 2px;
}

.role-counter {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    cursor: help;
    transition: all 0.2s ease;
}

.role-counter:hover {
    background-color: #e9ecef;
    color: var(--yara-blue);
    border-color: #ced4da;
}
