/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mode sombre forcé pour index.html */
html {
    color-scheme: dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

button {
    font-family: inherit;
}

/* Styles pour les liens et boutons */
a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   FORMULAIRES - Lisibilité garantie tous modes
   ============================================ */
input,
textarea,
select,
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    color: #E8E5DF;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #8C8881;
    opacity: 0.7;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 143, 0, 0.08);
    border-color: #E8650A;
    box-shadow: 0 0 0 3px rgba(255, 143, 0, 0.15);
}

/* Empêcher les auto-fill sombres du navigateur */
    -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
    -webkit-text-fill-color: #F8FAFC !important;
    transition: background-color 5000s ease-in-out 0s;
}

label,
.form-label {
    font-weight: 600;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* ============================================
   BOTTOM NAVIGATION - Classic 4-buttons
   ============================================ */
.bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #E8E5DF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 0;
    cursor: pointer;
}

.nav-icon i {
    font-size: 20px;
}

.nav-icon.active {
    background: rgba(255, 143, 0, 0.2);
    border-color: #E8650A;
    color: #E8650A;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.nav-icon.red-btn,
a.nav-icon[href^="tel:"] {
    background: #E8650A !important;
    border-color: #E67E00 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 143, 0, 0.4);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E8650A;
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #111111;
}
