/* =====================================================
   NEXORA - Thème personnalisé
   Identité visuelle moderne avec palette vert/orange/blanc
   ===================================================== */

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS personnalisées */
:root {
    /* Couleurs principales */
    --nexora-primary: #22c55e;      /* Vert principal */
    --nexora-primary-dark: #16a34a;  /* Vert foncé */
    --nexora-primary-light: #4ade80; /* Vert clair */
    
    --nexora-secondary: #f97316;     /* Orange principal */
    --nexora-secondary-dark: #ea580c; /* Orange foncé */
    --nexora-secondary-light: #fb923c; /* Orange clair */
    
    --nexora-accent: #facc15;       /* Jaune accent */
    --nexora-accent-dark: #eab308;   /* Jaune foncé */
    
    --nexora-white: #ffffff;
    --nexora-light: #f8fafc;
    --nexora-gray: #64748b;
    --nexora-dark: #1e293b;
    
    /* Typographie */
    --nexora-font-primary: 'Poppins', sans-serif;
    --nexora-font-secondary: 'Roboto', sans-serif;
    --nexora-font-accent: 'Montserrat', sans-serif;
    
    /* Espacements */
    --nexora-radius: 12px;
    --nexora-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nexora-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Application globale des polices */
body {
    font-family: var(--nexora-font-primary);
    color: var(--nexora-dark);
    line-height: 1.6;
}

/* Header amélioré */
.header {
    background: linear-gradient(135deg, var(--nexora-white) 0%, var(--nexora-light) 100%);
    box-shadow: var(--nexora-shadow);
    border-bottom: 3px solid var(--nexora-primary);
}

.header-top {
    background: var(--nexora-primary);
    color: var(--nexora-white);
}

.header-top a {
    color: var(--nexora-white);
    transition: color 0.3s ease;
}

.header-top a:hover {
    color: var(--nexora-accent);
}

/* Icônes du header top en blanc */
.header-top i {
    color: var(--nexora-white) !important;
}

.header-top .dropdown-toggle i {
    color: var(--nexora-white) !important;
}

.header-top .header-top-social a i {
    color: var(--nexora-white) !important;
    transition: color 0.3s ease;
}

.header-top .header-top-social a:hover i {
    color: var(--nexora-accent) !important;
}

/* Logo amélioré */
.header-middle-logo img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.header-middle-logo:hover img {
    transform: scale(1.05);
}

/* Navigation simplifiée */
.navbar-nav {
    margin-right: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--nexora-dark);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    position: relative;
}

.nav-link:hover {
    color: var(--nexora-primary);
}

.nav-link.active {
    color: var(--nexora-primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--nexora-primary);
}

/* Boutons d'action améliorés */
.theme-btn {
    background: linear-gradient(135deg, var(--nexora-primary) 0%, var(--nexora-primary-dark) 100%);
    border: none;
    color: var(--nexora-white);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--nexora-radius);
    transition: all 0.3s ease;
    box-shadow: var(--nexora-shadow);
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--nexora-shadow-lg);
    color: var(--nexora-white);
}

.theme-btn-outline {
    background: transparent;
    border: 2px solid var(--nexora-primary);
    color: var(--nexora-primary);
}

.theme-btn-outline:hover {
    background: var(--nexora-primary);
    color: var(--nexora-white);
}

/* Section des boutons d'action simplifiés */
.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-sell,
.btn-buy,
.btn-premium {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Bouton Vendre (Orange) */
.btn-sell {
    background: var(--nexora-secondary);
    color: var(--nexora-white);
}

.btn-sell:hover {
    background: var(--nexora-secondary-dark);
    color: var(--nexora-white);
    transform: translateY(-1px);
}

/* Bouton Acheter (Vert) */
.btn-buy {
    background: var(--nexora-primary);
    color: var(--nexora-white);
}

.btn-buy:hover {
    background: var(--nexora-primary-dark);
    color: var(--nexora-white);
    transform: translateY(-1px);
}

/* Bouton Premium (Jaune) */
.btn-premium {
    background: var(--nexora-accent);
    color: var(--nexora-dark);
}

.btn-premium:hover {
    background: var(--nexora-accent-dark);
    color: var(--nexora-dark);
    transform: translateY(-1px);
}

/* Responsive pour les boutons d'action */
@media (max-width: 992px) {
    .nav-actions {
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .btn-sell,
    .btn-buy,
    .btn-premium {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-sell,
    .btn-buy,
    .btn-premium {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Hero slider amélioré */
.hero-slider-area {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8) 0%, rgba(249, 115, 22, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--nexora-white);
    text-align: center;
    padding: 100px 0;
}

.hero-title {
    font-family: var(--nexora-font-accent);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations améliorées */
.pulse-animation {
    animation: pulse-slow 2s infinite;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Cards améliorées */
.product-card,
.category-card {
    background: var(--nexora-white);
    border-radius: var(--nexora-radius);
    box-shadow: var(--nexora-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.product-card:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--nexora-shadow-lg);
    border-color: var(--nexora-primary);
}

/* Footer amélioré */
.footer {
    background: linear-gradient(135deg, var(--nexora-dark) 0%, #0f172a 100%);
    color: var(--nexora-white);
    padding: 3rem 0 0;
}

.footer-main {
    padding-bottom: 2rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget-title h3 {
    color: var(--nexora-primary);
    font-family: var(--nexora-font-accent);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-widget-content {
    color: rgba(255, 255, 255, 0.9);
}

.footer-widget-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-widget-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-content ul li {
    margin-bottom: 0.75rem;
}

.footer-widget-content ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    display: inline-block;
    position: relative;
}

.footer-widget-content ul li a:hover {
    color: var(--nexora-primary);
    transform: translateX(5px);
}

.footer-widget-content ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--nexora-primary);
}

.footer-widget-content ul li a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-widget-social {
    margin-top: 1.5rem;
}

.footer-widget-social span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.footer-widget-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-widget-social a:hover {
    color: var(--nexora-white);
    background: var(--nexora-primary);
    transform: translateY(-2px);
}

/* Newsletter form */
.footer-widget-form {
    display: flex;
    margin-top: 1rem;
}

.footer-widget-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px 0 0 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--nexora-white);
    font-size: 0.9rem;
}

.footer-widget-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-widget-form input:focus {
    outline: none;
    border-color: var(--nexora-primary);
    background: rgba(255, 255, 255, 0.15);
}

.footer-widget-form button {
    padding: 0.75rem 1rem;
    background: var(--nexora-primary);
    border: none;
    border-radius: 0 6px 6px 0;
    color: var(--nexora-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-widget-form button:hover {
    background: var(--nexora-primary-dark);
    transform: scale(1.05);
}

/* Footer bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-payment {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-bottom-payment img {
    height: 25px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-bottom-payment img:hover {
    opacity: 1;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-widget-form {
        flex-direction: column;
    }
    
    .footer-widget-form input {
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }
    
    .footer-widget-form button {
        border-radius: 6px;
    }
}

/* Bouton Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--nexora-primary);
    color: var(--nexora-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--nexora-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--nexora-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive pour le bouton back to top */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .hero-btn {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-btn,
    .btn-vendre,
    .btn-acheter,
    .btn-premium {
        width: 100%;
        max-width: 300px;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Styles pour le nouveau slider */
.hero-features,
.hero-services,
.hero-benefits {
    margin: 2rem 0;
}

.feature-item,
.service-item,
.benefit-item {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.feature-item:hover,
.service-item:hover,
.benefit-item:hover {
    transform: translateX(10px);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--nexora-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--nexora-font-accent);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--nexora-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h4 {
    color: var(--nexora-white);
    font-weight: 600;
    margin: 0;
}

.hero-pricing {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--nexora-radius);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-highlight {
    color: var(--nexora-white);
}

.price-badge {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--nexora-font-accent);
    color: var(--nexora-accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.price-period {
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 0.5rem;
}

.price-features {
    text-align: left;
}

.feature-highlight {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.feature-highlight i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.feature-highlight span {
    font-weight: 500;
}

/* Amélioration des boutons dans le slider */
.hero-btn .btn-acheter,
.hero-btn .btn-vendre,
.hero-btn .btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--nexora-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--nexora-shadow);
}

.hero-btn .btn-acheter:hover,
.hero-btn .btn-vendre:hover,
.hero-btn .btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--nexora-shadow-lg);
}

/* Responsive pour le slider */
@media (max-width: 992px) {
    .hero-stats,
    .service-cards,
    .hero-pricing {
        margin-top: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center !important;
    }
    
    .hero-btn {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn .btn-acheter,
    .hero-btn .btn-vendre,
    .hero-btn .btn-premium {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    .hero-features .row,
    .hero-services .row {
        text-align: left;
    }
}

/* Classes utilitaires */
.text-nexora-primary { color: var(--nexora-primary) !important; }
.text-nexora-secondary { color: var(--nexora-secondary) !important; }
.text-nexora-accent { color: var(--nexora-accent) !important; }

.bg-nexora-primary { background-color: var(--nexora-primary) !important; }
.bg-nexora-secondary { background-color: var(--nexora-secondary) !important; }
.bg-nexora-accent { background-color: var(--nexora-accent) !important; }

.border-nexora-primary { border-color: var(--nexora-primary) !important; }
.border-nexora-secondary { border-color: var(--nexora-secondary) !important; }
.border-nexora-accent { border-color: var(--nexora-accent) !important; }
