/* ================================================
   CENABAT SARL - Styles Professionnels
   Palette: Bleu foncé (#1a365d) + Orange (#f59e0b)
   ================================================ */

/* === Variables CSS === */
:root {
    --primary-blue: #1a365d;
    --primary-dark: #0f2744;
    --accent-orange: #f59e0b;
    --accent-light: #fbbf24;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
}

/* === Navigation === */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%) !important;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem !important;
    letter-spacing: 0.5px;
}

.navbar-brand img.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, #2563eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* === Section Titles === */
.section-title {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-light));
    border-radius: 2px;
    margin-top: 1rem;
}

/* === About Section === */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h4 {
    color: var(--primary-blue);
    font-size: 2rem;
}

/* === Category Filters === */
.category-filters {
    padding: 0.5rem;
}

.category-filters .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-filters .btn.active,
.category-filters .btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* === Product Cards === */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image i {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.5;
}

.product-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-quantity label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.btn-add-devis {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-devis:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-add-devis.added {
    background: #10b981;
}

/* === Partner Cards === */
.partner-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Contact Form === */
.contact-form {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.form-label {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-check-input:checked {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.form-check-label {
    cursor: pointer;
    transition: var(--transition);
}

.form-check-label:hover {
    border-color: var(--accent-orange) !important;
}

.form-check-input:checked + .form-check-label {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-orange) !important;
}

/* === Floating Cart Button === */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-light) 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-blue);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--white);
}

/* === Modal Styles === */
.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

/* === Cart Items === */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-right: 1rem;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.cart-item-quantity {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* === Responsive Design === */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-icon {
        font-size: 8rem;
        margin-top: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .floating-cart-btn {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
        bottom: 20px;
        right: 20px;
    }
    
    .cart-badge {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .category-filters .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-image i {
        font-size: 3rem;
    }
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: 60px 0;
}

/* === Service Cards === */
.service-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* === Category Cards === */
.category-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange);
}

.category-card i {
    color: var(--primary-blue);
}

.category-card:hover i {
    color: var(--accent-orange);
}

/* === Devis Items === */
.devis-item {
    background: var(--gray-100);
    transition: var(--transition);
}

.devis-item:hover {
    background: var(--gray-200);
}

.devis-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* === Utility Classes === */
.bg-primary-custom {
    background-color: var(--primary-blue);
}

.text-primary-custom {
    color: var(--primary-blue);
}

.bg-accent-custom {
    background-color: var(--accent-orange);
}

.text-accent-custom {
    color: var(--accent-orange);
}