@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;800&display=swap');

:root {
    --bg-gradient: linear-gradient(120deg, #fdfbf7 0%, #e0c3fc 100%);
    --pastel-pink: #ff99ac;
    --pastel-blue: #a5b4fc;
    --pastel-green: #86efac;
    --pastel-yellow: #fcd34d;
    --glass: rgba(255, 255, 255, 0.75);
    --primary: var(--pastel-blue); /* Dynamique */
    --text-dark: #475569;
}

body {
    font-family: 'Outfit', sans-serif; background: var(--bg-gradient);
    margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    color: var(--text-dark); overflow: hidden;
}

/* --- ANIMATIONS STYLÉES --- */
@keyframes bounceIn { 0% { transform: scale(0.8); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.glass-panel {
    background: var(--glass); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255,255,255,0.8); border-radius: 35px;
    box-shadow: 0 15px 40px rgba(100, 100, 250, 0.1);
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- BOUTONS QUI REBONDISSENT --- */
button {
    cursor: pointer; border: none; font-family: inherit; font-weight: 700; outline: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
button:hover { transform: translateY(-3px) scale(1.02); }
button:active { transform: scale(0.95); }

.btn-main {
    background: var(--primary); color: white; padding: 14px 25px;
    border-radius: 20px; box-shadow: 0 8px 20px -5px var(--primary);
    font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-ghost {
    background: rgba(255,255,255,0.5); color: #64748b; padding: 14px; width: 100%;
    border-radius: 18px; text-align: left; display: flex; align-items: center; gap: 12px;
    font-size: 1.05rem;
}
.btn-ghost:hover { background: white; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.btn-ghost.active { background: white; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--primary); }

/* --- INPUTS --- */
input, textarea {
    width: 100%; padding: 18px; border-radius: 20px; border: 2px solid transparent;
    background: rgba(255,255,255,0.6); font-family: inherit; margin-bottom: 15px;
    box-sizing: border-box; font-size: 1rem; transition: 0.3s;
}
input:focus, textarea:focus { background: white; border-color: var(--primary); box-shadow: 0 5px 20px rgba(0,0,0,0.05); }

/* --- LAYOUT --- */
.container { width: 95%; max-width: 1300px; height: 92vh; display: grid; grid-template-columns: 320px 1fr; overflow: hidden; }
.sidebar { padding: 40px; display: flex; flex-direction: column; background: rgba(255,255,255,0.3); gap: 10px; }
.content { padding: 40px; overflow-y: auto; position: relative; }

/* --- COMPONENTS --- */
.card-item {
    background: white; padding: 20px; border-radius: 24px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
    transition: 0.3s; animation: slideUp 0.4s ease; border: 2px solid transparent;
}
.card-item:hover { transform: translateY(-3px) scale(1.01); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.switch-label {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    background: white; padding: 10px 20px; border-radius: 20px;
    font-size: 0.9rem; width: fit-content; margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pdf-item {
    background: white; padding: 20px; border-radius: 20px;
    display: flex; align-items: center; gap: 15px; margin-bottom: 10px;
    animation: slideUp 0.3s ease;
}
.pdf-icon {
    width: 50px; height: 50px; background: #ffe4e6; color: #e11d48;
    border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* --- SEARCH USER --- */
.user-search-box {
    position: sticky; top: 0; background: white; z-index: 10; padding: 10px;
    border-radius: 15px; margin-bottom: 15px; border-bottom: 2px solid #eee;
}
.user-select-item {
    display: flex; align-items: center; padding: 12px; border-radius: 12px;
    cursor: pointer; transition: 0.2s; border-bottom: 1px solid #f0f0f0;
}
.user-select-item:hover { background: #f8fafc; }
.avatar-big {
    width: 45px; height: 45px; border-radius: 50%; display: flex; 
    align-items: center; justify-content: center; font-weight: bold; 
    color: white; margin-right: 15px; font-size: 1.2rem;
}

.hidden { display: none !important; }
