/* ========================================
   EPICENTRE GROUP - MAIN STYLESHEET
   Filiale africaine d'Innovtek Inc.
   ======================================== */

/* CSS Variables - Couleurs du logo Epicentre */
:root {
    --primary: #0A2540;
    --secondary: #00A3E0;
    --accent: #00BCD4;
    --accent-bright: #00E5FF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F0F9FF;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent-bright);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-bright);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 37, 64, 0.98);
    backdrop-filter: blur(10px);
    min-width: 250px;
    border-radius: 8px;
    padding: 1rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: rgba(0, 229, 255, 0.1);
    padding-left: 2rem;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,229,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 229, 255, 0.2);
    color: var(--accent-bright);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 229, 255, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.1s backwards;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.hero-button {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.hero-button.primary {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: var(--white);
}

.hero-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.4);
}

.hero-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-bright);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.7s backwards;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-mini strong {
    font-size: 2rem;
    color: var(--accent-bright);
}

.stat-mini span {
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   POLES GRID
   ======================================== */
.poles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.pole-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: block;
}

.pole-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

.pole-card:hover::before {
    transform: scaleX(1);
}

.pole-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.pole-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pole-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pole-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.pole-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.pole-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-bright);
    font-weight: bold;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition);
}

.pole-card:hover .card-link {
    color: var(--accent-bright);
    transform: translateX(5px);
}

/* ========================================
   INDUSTRIES
   ======================================== */
.industries {
    background: var(--bg-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.industry-card:hover {
    border-color: var(--accent-bright);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.industry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.industry-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent-bright);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   GLOBAL PRESENCE
   ======================================== */
.global-presence {
    text-align: center;
}

.map-container {
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.1), rgba(0, 229, 255, 0.1));
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
}

.regions {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.african-regions {
    gap: 3rem;
}

.region {
    text-align: center;
    max-width: 300px;
}

.region h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.region p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.clients {
    background: var(--bg-light);
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.client-logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.client-logo:hover {
    color: var(--accent);
    transform: scale(1.1);
    border-color: var(--accent-bright);
}

/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    background: var(--bg-light);
}

/* ========================================
   CERTIFICATIONS
   ======================================== */
.certifications {
    background: var(--white);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-item {
    background: var(--bg-light);
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
    border: 2px solid transparent;
}

.cert-item:hover {
    background: var(--white);
    border-color: var(--accent-bright);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: var(--white);
    text-align: center;
    border-radius: 20px;
    padding: 5rem 2rem;
    margin: 4rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-bright);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-bright);
    padding-left: 5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .poles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Masquer le bouton CTA sur mobile */
    nav .cta-button {
        display: none;
    }

    .hero {
        padding: 6rem 2rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 2rem;
    }

    .poles-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .regions {
        flex-direction: column;
        gap: 2rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

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

    .clients-logos {
        gap: 1rem;
    }

    .client-logo {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}