/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #ffffff;
}

/* ===== PALETTE DE COULEURS ===== */
:root {
    --color-1: #001DB4;
    --color-2: #0022D1;
    --color-3: #001BD1;
    --color-4: #001DE1;
    --color-5: #0019C4;
    --color-6: #1D38F1;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9ff;
    --white: #ffffff;
}

/* ===== SECTIONS ===== */
section {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER / NAVIGATION ===== */
header {
    background: linear-gradient(90deg, var(--color-1) 0%, var(--color-2) 50%, var(--color-6) 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 29, 180, 0.2);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
}

.logo-text {
    display: block;
    font-size: 18px;
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
    }
    
    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 14px;
    }
}

nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* ===== HERO ===== */
#home {
    background: linear-gradient(135deg, var(--color-1) 0%, var(--color-5) 50%, var(--color-6) 100%);
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}

#home::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--white);
    color: var(--color-1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--color-1);
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTION TITLES ===== */
h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-dark);
    font-weight: 700;
}

h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    font-weight: 600;
}

/* ===== SERVICES ===== */
#services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 29, 180, 0.08);
    transition: all 0.3s;
    border-left: 4px solid var(--color-2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 29, 180, 0.15);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-1), var(--color-6));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

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

/* ===== PORTFOLIO CAROUSEL ===== */
#portfolio {
    background: var(--bg-light);
}

.portfolio-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
}

.portfolio-track {
    display: flex;
    gap: 20px;
    animation: scrollPortfolio 50s linear infinite;
    width: max-content;
}

@keyframes scrollPortfolio {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

.portfolio-track:hover {
    animation-play-state: paused;
}

.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 29, 180, 0.1);
    transition: all 0.3s;
    height: 280px;
    width: 280px;
    min-width: 280px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 29, 180, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 29, 180, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--white);
    margin-bottom: 8px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* ===== ABOUT ===== */
#about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 29, 180, 0.1);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ===== CLIENTS SECTION ===== */
#clients {
    background: var(--white);
    padding: 80px 20px;
}

.clients-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.clients-track {
    display: flex;
    gap: 40px;
    animation: scrollClients 35s linear infinite;
    width: max-content;
    align-items: center;
}

@keyframes scrollClients {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 150px;
    min-width: 150px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s;
}

.client-logo:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--color-1), var(--color-6));
}

.client-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ===== CTA SECTION ===== */
#contact {
    background: linear-gradient(135deg, var(--color-1) 0%, var(--color-4) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

#contact h2 {
    color: var(--white);
    margin-bottom: 20px;
}

#contact p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
    background: var(--color-1);
    color: var(--white);
    padding: 50px 20px 30px;
    text-align: center;
}

footer h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 24px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
    margin: 8px 0;
}

/* ===== UTILITAIRES ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section {
        padding: 40px 20px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        gap: 15px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    nav a {
        font-size: 12px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-image img {
        height: 250px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .portfolio-item {
        height: 200px;
        width: 200px;
        min-width: 200px;
    }

    .client-logo {
        height: 80px;
        width: 120px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 15px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    #home {
        padding: 80px 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    nav a {
        font-size: 11px;
        margin: 0 8px;
    }

    .portfolio-item {
        height: 150px;
        width: 150px;
        min-width: 150px;
    }

    .client-logo {
        height: 70px;
        width: 100px;
        min-width: 100px;
    }
}