.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Animations et état des éléments actifs */
.nav-item-active {
    color: #842424 !important;
    transform: translateY(-2px);
}

.nav-item-active .icon-container {
    background-color: #fcf4f4;
    border-radius: 12px;
}
/* Arrière-plan global plus immersif et moderne */
/* Arrière-plan global immersif et sophistiqué */
body {
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(132, 36, 36, 0.04) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.05) 0px, transparent 60%);
    background-attachment: fixed;
}

/* Application globale de la police élégante sur toute l'application */
/* 1. Application globale forcée sur tout le corps */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    letter-spacing: -0.011em;
}

/* 2. Forçage absolu sur tous les éléments de texte et de formulaire */
input, select, button, textarea, label, span, h1, h2, h3, h4, h5, h6, p {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.Wealth-logo{
    mix-blend-mode: multiply;
}

/* Cartes de comptes du Dashboard ultra-modernes */
#dash-accounts-preview > div {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Effet au survol : lévitation et liseré bordeaux élégant */
#dash-accounts-preview > div:hover {
    transform: translateY(-4px);
    border-color: rgba(132, 36, 36, 0.25);
    box-shadow: 0 16px 30px -10px rgba(132, 36, 36, 0.12);
}

/* Ajout d'une petite touche visuelle sur l'icône du compte */
#dash-accounts-preview .account-icon-container {
    background-color: #fcf4f4;
    color: #842424;
    border-radius: 0rem;
    padding: -1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style moderne pour tous les selects de l'application */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f9fafb; /* fond gris très clair (bg-gray-50) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3cpolyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem; /* Espace pour laisser place à la flèche */
}

.custom-select:focus {
    background-color: #ffffff;
    border-color: #842424; /* Votre couleur bordeaux principale */
    box-shadow: 0 0 0 2px rgba(132, 36, 36, 0.1);
}

/* Arrondis harmonieux et ombres douces pour les blocs du dashboard */
#screen-dashboard .bg-white,
#dash-recent-transactions {
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.03);
}

/* Ajustements pour les petites cartes du dashboard */
#screen-dashboard .grid-cols-3 > div {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#screen-dashboard .grid-cols-3 > div:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   MOTEUR D'ANIMATION 60 FPS (Propriétés composites uniquement)
   ========================================================================== */

/* 1. Animation des Écrans (Navigation) */
.screen-enter {
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

/* 2. Animation des Modales (Fond assombri + Panneau) */
.modal-backdrop-enter {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity;
}

.modal-panel-enter {
    animation: scaleUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

/* 3. Animation en cascade (Stagger) pour les listes (Transactions, Comptes) */
.stagger-item {
    opacity: 0;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

/* Génération des délais en cascade pour un effet "Waouh" à l'apparition */
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.10s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.20s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(n+6) { animation-delay: 0.30s; } /* Plafond pour ne pas faire trop attendre */

/* 4. Micro-interactions sur les éléments cliquables */
.tap-effect {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.tap-effect:active {
    transform: scale(0.96);
}


/* ==========================================================================
   KEYFRAMES (Définitions des trajectoires)
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpFade {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleUpFade {
    from { 
        opacity: 0; 
        transform: translateY(15px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* ==========================================================================
   ANIMATION SLIDE 1 : CERCLES CREUX BORDEAUX FLOTTANTS
   ========================================================================== */

.bg-animation-wealth {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    /* Un fond très léger pour contraster avec les cercles */
    background: radial-gradient(circle at 50% 50%, rgba(132, 36, 36, 0.03) 0%, transparent 80%);
}

/* Style de base pour les cercles creux */
.hollow-circle {
    position: absolute;
    border-radius: 50%;
    /* Bordure de la couleur bordeaux demandée, légèrement transparente pour la subtilité */
    border: 2px solid rgba(132, 36, 36, 0.25); 
    background: transparent;
}

/* Positionnement et configuration de chaque cercle */
.hc-1 {
    width: 120px; height: 120px;
    top: 15%; left: 10%;
    animation: floatRandom1 18s ease-in-out infinite alternate;
}

.hc-2 {
    width: 200px; height: 200px;
    top: 60%; right: -5%;
    border-width: 3px;
    opacity: 0.6;
    animation: floatRandom2 25s ease-in-out infinite alternate-reverse;
}

.hc-3 {
    width: 60px; height: 60px;
    bottom: 20%; left: 20%;
    animation: floatRandom3 15s ease-in-sout infinite alternate;
}

.hc-4 {
    width: 150px; height: 150px;
    top: -5%; right: 25%;
    border-width: 1px;
    animation: floatRandom1 22s ease-in-out infinite alternate-reverse;
}

/* Trajectoires simulant le mouvement aléatoire */
@keyframes floatRandom1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(40px, 50px) scale(1.05); }
    66%  { transform: translate(-30px, 20px) scale(0.95); }
    100% { transform: translate(20px, -40px) scale(1); }
}

@keyframes floatRandom2 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    33%  { transform: translate(-50px, -60px) rotate(45deg); }
    66%  { transform: translate(30px, -30px) rotate(90deg); }
    100% { transform: translate(-20px, 50px) rotate(135deg); }
}

@keyframes floatRandom3 {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(60px, -20px); }
    100% { transform: translate(-20px, -60px); }
}

/* ==========================================================================
   ANIMATIONS D'ARRIÈRE-PLAN : GRILLES DISCRETES (Slides 2, 3, 4)
   ========================================================================== */

.bg-animation-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
    animation: pulseGrid 8s ease-in-out infinite alternate;
}

@keyframes pulseGrid {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.9; transform: scale(1.02); }
}