/* ========================================
   VARIABLES DE COULEURS
   ======================================== */
:root {
    --primary-orange: #F66B0E;
    --primary-orange-hover: #E55A00;
    --primary-orange-light: #FF7A1F;
    --text-dark: #212121;
    --text-secondary: #757575;
    --text-light: #9E9E9E;
    --bg-white: #FFFFFF;
    --bg-cream: #FFF8F1;
    --bg-gray: #FAFAFA;
    --border-color: #E0E0E0;
    --border-light: #F0F0F0;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.12);
}



.mobile-only {
    display: none !important;
}






/* IMPORTANT: La barre mobile ne s'affiche QUE sur mobile */
.mobile-bottom-nav {
    display: none !important; /* Forcé à none sur desktop */
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* UNIQUEMENT sur mobile, la barre s'affiche */
    .mobile-bottom-nav {
        display: flex !important;
    }
}

/* ========================================
   FOOTER PRINCIPAL (DESKTOP UNIQUEMENT)
   Arrière-plan BLANC
   ======================================== */
.tedplas-footer {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    font-size: 16px;
}

.social-link:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

/* Liens du footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 6px;
}

.footer-links i {
    font-size: 10px;
    color: var(--text-light);
}

/* Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary-orange);
    font-size: 16px;
    min-width: 18px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-light);
    font-size: 13px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-label {
    color: var(--text-light);
    font-size: 13px;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4CAF50;
    font-size: 14px;
}

.payment-icons span {
    color: var(--text-secondary);
}

/* ========================================
   BARRE DE NAVIGATION MOBILE - FINE & PRO
   UNIQUEMENT visible sur mobile < 768px
   Arrière-plan BLANC
   ======================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -1px 0 var(--border-light), 0 -4px 16px var(--shadow-light);
    z-index: 1000;
    padding: 0;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Amélioration pour iPhone avec notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bottom-nav {
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item.active {
    color: var(--primary-orange);
}

.mobile-nav-item:active {
    transform: scale(0.96);
}

/* Indicateur actif (point en haut) */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(246, 107, 14, 0.5);
}

.nav-icon {
    position: relative;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-item.active .nav-icon i {
    transform: scale(1.05);
}

/* Bouton Vendre (central) - Design minimaliste */
.mobile-nav-item.sell-item {
    position: relative;
}

.sell-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: white;
    border-radius: 16px;
    width: 52px;
    height: 36px;
    font-size: 20px;
    box-shadow: 0 2px 12px rgba(246, 107, 14, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-nav-item.sell-item:active .sell-icon {
    transform: scale(0.94);
    box-shadow: 0 1px 8px rgba(246, 107, 14, 0.3);
}

.mobile-nav-item.sell-item .nav-label {
    color: var(--primary-orange);
    font-weight: 600;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: inherit;
}

.mobile-nav-item.active .nav-label {
    font-weight: 600;
}

/* Badge de notifications - Minimaliste */
.nav-badge {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(8px);
    background: #FF3B30;
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 4px;
    border: 1.5px solid white;
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.3);
}

.notification-badge {
    background: var(--primary-orange);
    box-shadow: 0 2px 4px rgba(246, 107, 14, 0.3);
}

/* Badge pour le bouton vendre */
.mobile-nav-item.sell-item .nav-badge {
    top: 6px;
    right: 50%;
    transform: translateX(18px);
}

/* ========================================
   ANIMATIONS SUBTILES
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Effet de feedback au tap */
.mobile-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-orange);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s;
    pointer-events: none;
}

.mobile-nav-item:active::after {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========================================
   RESPONSIVE - TABLETTE
   ======================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tedplas-footer {
        padding: 40px 0 20px;
        margin-bottom: 56px; /* Hauteur de la barre */
        margin-top: 40px; /* Réduire l'espace en haut sur mobile */
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    body {
        padding-bottom: 56px; /* Hauteur de la barre */
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .mobile-bottom-nav {
        height: 52px;
    }
    
    .nav-icon {
        font-size: 18px;
        width: 22px;
        height: 22px;
    }
    
    .nav-label {
        font-size: 9px;
    }
    
    .sell-icon {
        width: 48px;
        height: 32px;
        font-size: 18px;
    }
    
    .nav-badge {
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }
}

/* ========================================
   ÉTATS DE CHARGEMENT
   ======================================== */
.loading-badge {
    background: var(--border-color) !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-item,
    .nav-icon,
    .sell-icon,
    .mobile-bottom-nav {
        transition: none;
    }
    
    .mobile-nav-item::after {
        transition: none;
    }
}

/* Focus pour accessibilité */
.mobile-nav-item:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: -2px;
}

.mobile-nav-item:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   OPTIMISATION PERFORMANCES
   ======================================== */
.mobile-bottom-nav {
    contain: layout style paint;
    will-change: transform;
}

.mobile-nav-item,
.nav-badge,
.sell-icon {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Empêcher le bounce sur iOS */
body {
    overscroll-behavior-y: contain;
}

/* ========================================
   CORRECTION SPÉCIALE POUR DESKTOP
   S'assurer que la barre mobile ne dérange JAMAIS sur PC
   ======================================== */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
    
    .tedplas-footer {
        margin-bottom: 0 !important;
    }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .mobile-bottom-nav,
    .tedplas-footer {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}