/* Palette des couleurs Africa Business Connexion */
:root {
    --primary-blue: #0072ce;
    --primary-orange: #f7941e;
    --primary-black: #000000;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --shadow-light: rgba(0, 114, 206, 0.1);
    --shadow-medium: rgba(0, 114, 206, 0.15);
}

/* Override Bootstrap primary colors */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

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

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #005ba3;
    border-color: #005ba3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 114, 206, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

/* ========================================
   GLOBAL STYLES (Mobile first)
   ======================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-black);
}

body.home-page {
    padding-top: 104px;
}

/* ========================================
   HERO SECTION (Mobile first)
   ======================================== */
.hero-section {
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23f8f9fa"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>')
        no-repeat bottom;
    background-size: 100% 100px;
    z-index: 1;
}

.hero-content {
    padding-top: 2.5rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   TYPOGRAPHY (Mobile first)
   ======================================== */
.display-4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.lead {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 3rem;
}

/* ========================================
   FORM ELEMENTS (Mobile first)
   ======================================== */
.form-control-lg {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 114, 206, 0.25);
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-radius: 12px 0 0 12px;
    background-color: var(--white);
    color: var(--medium-gray);
    padding: 18px 15px;
}

.btn-primary.btn-lg {
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 1.1rem;
}

/* ========================================
   STATISTICS SECTION (Mobile first)
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #005ba3 100%);
    padding: 1.25rem 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><circle cx="100" cy="50" r="20"/><circle cx="300" cy="30" r="15"/><circle cx="500" cy="70" r="25"/><circle cx="700" cy="40" r="18"/><circle cx="900" cy="60" r="22"/></svg>')
        repeat;
    opacity: 0.1;
}

.stat-item {
    text-align: center;
    padding: 0.75rem 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-item:not(:last-child) {
    margin-bottom: 0.25rem;
}

.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-orange);
    display: block;
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-item small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========================================
   CATEGORY SECTION (Mobile first)
   ======================================== */
.category-section {
    padding: 2.5rem 0;
    background-color: var(--white);
}

.category-section h2,
.featured-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    position: relative;
}

.category-section h2::after,
.featured-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.category-card {
    transition: all 0.4s ease;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
    border-color: var(--primary-orange);
}

.category-card .card-body {
    padding: 1.25rem 1rem;
}

.category-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    transition: all 0.4s ease;
    position: relative;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon::before {
    opacity: 1;
    transform: scale(1.1);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.card-text {
    color: var(--medium-gray);
    font-size: 0.8rem;
    font-weight: 500;
}
/* ========================================
   FEATURED COMPANIES SECTION (Mobile first)
   ======================================== */
.featured-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f8ff 100%);
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-right: 1rem;
    flex-shrink: 0;
}

.company-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.company-location {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.company-description {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
    border: none;
    font-weight: 600;
    /* padding: 15px 35px; */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 148, 30, 0.3);
}

/* ========================================
   FOOTER (Mobile first)
   ======================================== */
.footer {
    padding: 3rem 0 1rem;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
   ======================================== */

/* Tablettes et écrans moyens (>= 576px) */
@media (min-width: 576px) {
    /* Category section - Tablet */
    .category-section {
        padding: 3rem 0;
    }

    .category-section h2,
    .featured-section h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .category-section h2::after,
    .featured-section h2::after {
        width: 70px;
        height: 4px;
        bottom: -10px;
    }

    .category-card .card-body {
        padding: 1.75rem 1.25rem;
    }

    .category-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .card-title {
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.25rem;
    }

    .form-control-lg {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .stat-item h3 {
        font-size: 2.8rem;
    }
}

/* Desktop et grands écrans (>= 768px) */
@media (min-width: 768px) {
    body.home-page {
        padding-top: 116px;
    }

    /* Category section - Desktop */
    .category-section,
    .featured-section {
        padding: 4rem 0;
    }

    .category-section h2,
    .featured-section h2 {
        font-size: 2.25rem;
        margin-bottom: 3.5rem;
    }

    .category-section h2::after,
    .featured-section h2::after {
        width: 80px;
    }

    .category-card {
        border-radius: 20px;
    }

    .category-card:hover {
        transform: translateY(-15px);
        box-shadow: 0 25px 50px var(--shadow-medium);
    }

    .category-card .card-body {
        padding: 2rem 1.5rem;
    }

    .category-icon {
        width: 75px;
        height: 75px;
        font-size: 1.85rem;
        margin-bottom: 1.5rem;
    }

    .category-card:hover .category-icon {
        transform: scale(1.15) rotate(5deg);
    }

    .category-icon::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .display-4 {
        font-size: 3.5rem;
    }

    .hero-section {
        min-height: 0;
        padding: 0;
    }

    .stats-section {
        padding: 4rem 0;
    }

    .stat-item {
        padding: 2rem 1rem;
        margin-bottom: 0;
    }

    .stat-item:not(:last-child) {
        margin-bottom: 0;
    }

    .stat-item i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .stat-item h3 {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
    }

    .stat-item small {
        font-size: 1.1rem;
    }

    .footer {
        padding: 4rem 0 2rem;
    }
}
