/**
 * Styles CSS principaux - Application thérapeutique client
 * Fichier: public/assets/css/main.css
 * Description: Container mobile-first + responsive + effets glass
 */

/* 🔍 Mobile-first container - max 428px */
.mobile-container {
    max-width: 428px !important;
    margin: 0 auto;
    width: 100%;
}

/* 🔍 Base glass effect - simple et performant */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 🔍 Animations essentielles */
@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes scale-in {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 🔍 Classes animation */
.animate-slide-up { animation: slide-up 0.3s ease-out; }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-scale-in { animation: scale-in 0.2s ease-out; }

/* 🔍 Variables CSS couleurs thérapeutiques */
:root {
    --primary: #e97a29;
    --primary-dark: #c66c23;
    --primary-light: #f1f8ff;
    --glass: rgba(255, 255, 255, 0.25);
}

/* 🔍 Classes utilitaires couleurs */
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.from-primary { --tw-gradient-from: var(--primary); }
.to-primary-dark { --tw-gradient-to: var(--primary-dark); }

/* 🔍 Effets hover performants */
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }

/* 🔍 Transitions fluides */
.transition-all { transition: all 0.3s ease; }

/* 🔍 Responsive mobile */
@media (max-width: 428px) {
    .mobile-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 🔍 Desktop - garde aspect mobile */
@media (min-width: 429px) {
    .mobile-container {
        max-width: 428px;
    }
}

/* 🔍 Cache navigation mobile sur desktop */
@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
}

/* 🔍 Fallback navigateurs non supportés */
@supports not (backdrop-filter: blur(10px)) {
    .glass {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* 🔍 Amélioration accessibilité */
@media (prefers-reduced-motion: reduce) {
    .animate-slide-up,
    .animate-pulse-soft,
    .animate-float,
    .animate-scale-in {
        animation: none;
    }
}

/* 🔍 Focus visible amélioré */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}