/* ==========================================================================
   1. VARIABLES & BASES
   ========================================================================== */
:root {
    --wisher-purple: #6a4197; 
    --wisher-purple-dark: #5e3a85;
    --wisher-light-bg: #f8f9fa;
    --wisher-main-bg: #e9ecef; 
    --sidebar-width: 110px;
    --navbar-height: 75px;
}

body { 
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--wisher-main-bg);
    color: #333;
    /* Empêche le rebond du scroll sur iOS qui peut décaler la barre */
    overscroll-behavior-y: none;
}

/* ==========================================================================
   2. STRUCTURE RESPONSIVE (Sidebar/Bottom Bar)
   ========================================================================== */

/* --- MODE MOBILE (Navigation Basse) --- */
.sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: var(--wisher-purple);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.sidebar-logo {
    display: none; /* Caché sur mobile */
}

.sidebar-item { 
    color: white !important; 
    text-decoration: none; 
    text-align: center; 
    font-size: 0.75rem;
    opacity: 0.85;
    flex: 1;
    padding: 10px 0;
    transition: opacity 0.2s;
}

.sidebar-item:active {
    opacity: 1;
    background-color: rgba(255,255,255,0.1);
}

.sidebar-item i { 
	display: block; 
    margin: 0 auto 5px auto;
    font-size: 1.5rem;
    color: white !important; /* Force le blanc pour les icônes Bootstrap */
}

/* Containers de contenu */
.main-content, .view-list-container {
    margin-left: 0; 
    padding: 30px 15px calc(var(--navbar-height) + 30px) 15px !important;
    min-height: 100vh;
}

/* --- MODE DESKTOP (Écrans > 768px) --- */
@media (min-width: 768px) {
    .sidebar {
        width: var(--sidebar-width);
        height: 100vh;
        top: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 0;
    }

    .sidebar-logo {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .sidebar-logo img {
        width: 80px; /* Logo plus grand comme demandé */
        height: auto;
        max-width: 90%;
    }

    .sidebar-item {
        margin-bottom: 25px;
        flex: none;
        width: 100%;
        font-size: 0.85rem;
    }

    .main-content, .view-list-container {
        margin-left: var(--sidebar-width) !important;
        padding: 40px 60px !important;
    }
}

/* ==========================================================================
   3. COMPOSANTS (Cartes & Boutons)
   ========================================================================== */
.card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff;
    transition: transform 0.2s;
}

.btn-wisher {
    background-color: var(--wisher-purple) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
}

/* --- LE BOUTON FLOTTANT [+] --- */
.btn-add-float {
    position: fixed;
    bottom: calc(var(--navbar-height) + 20px);
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--wisher-purple);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none !important; /* Force la suppression de la bordure */
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    outline: none !important;
}

/* Suppression des cercles de focus (noir/blanc) au clic */
.btn-add-float:focus, 
.btn-add-float:active,
.btn-add-float:hover {
    outline: none !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    color: white !important;
}

.btn-add-float:hover {
    transform: scale(1.1);
    background-color: var(--wisher-purple-dark);
}

@media (min-width: 768px) {
    .btn-add-float {
        bottom: 30px;
        right: 30px;
    }
}

/* Correction texte */
.card-body {
    word-wrap: break-word;
}

/* Style spécifique pour les icônes Bootstrap */
.bi {
    vertical-align: middle;
}