/* ========================================
   LEGENDE GROUPE - Design System
   Palette: Bleus africains + Motifs élégants
   ======================================== */

/* Variables CSS - Palette africaine moderne */
:root {
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --accent-gold: #d97706;
    --accent-gold-light: #f59e0b;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Motifs africains en SVG encodé */
.african-pattern-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60 Z' fill='%233b82f6' fill-opacity='0.05'/%3E%3C/svg%3E");
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-blue-dark);
    font-weight: 700;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-blue);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0f2fe 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60 Z' fill='%233b82f6' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(90deg, var(--primary-blue-dark), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
    margin-bottom: 1.5rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

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

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

.btn-whatsapp {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4);
}

.hero-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    animation: pulse 4s infinite;
}

.pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L90 10 L90 90 L10 90 Z' fill='none' stroke='%23ffffff' stroke-width='0.5' stroke-opacity='0.1'/%3E%3C/svg%3E");
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

/* Sections communes */
.section {
    padding: 6rem 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services - Design moderne épuré */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.08);
    opacity: 0;
    transform: translateY(20px);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px -3px rgba(30, 64, 175, 0.15);
    border-color: var(--primary-blue-light);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

/* Processus */
.process {
    background: var(--light-bg);
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.step:hover {
    transform: translateY(-5px);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 60px;
    margin-bottom: 1.5rem;
}

.step h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
}

/* Portfolio - Design moderne épuré */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(59, 130, 246, 0.08);
    opacity: 0;
    transform: translateY(20px);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px -3px rgba(30, 64, 175, 0.15);
    border-color: var(--primary-blue-light);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.portfolio-item h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.portfolio-item p {
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.portfolio-link {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.portfolio-link:hover {
    color: var(--accent-gold);
}

.portfolio-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.portfolio-link:hover::after {
    transform: translateX(3px);
}

/* Technologies - Design moderne épuré */
.technologies {
    background: var(--light-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tech-category {
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(59, 130, 246, 0.08);
    opacity: 0;
    transform: translateY(20px);
}

.tech-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px -3px rgba(30, 64, 175, 0.15);
}

.tech-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-category h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.tech-list li:last-child {
    padding-bottom: 0;
}

.tech-list li::before {
    content: '•';
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.tech-list li:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
    color: var(--primary-blue-light);
    margin-bottom: 1rem;
}

.footer a {
    color: #cbd5e1;
}

.footer a:hover {
    color: var(--primary-blue-light);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

.african-pattern {
    font-size: 2rem;
    opacity: 0.5;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .section {
        padding: 4rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}