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

:root {
    /* Palette professionnelle limitée à 4 couleurs */
    --color-primary: #2C3E50;      /* Bleu-gris foncé professionnel */
    --color-accent: #3498DB;       /* Bleu clair pour accents */
    --color-text: #2C2C2C;        /* Gris foncé pour texte */
    --color-bg: #FAFAFA;          /* Fond très clair */
    --color-white: #FFFFFF;        /* Blanc pur */
    
    /* Couleurs dérivées pour cohérence */
    --text-light: #6B6B6B;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: #000000;
    overflow-x: hidden;
    font-size: 16px;
    position: relative;
}

/* Matrix Canvas Background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
    opacity: 0.3;
}

html {
    scroll-behavior: smooth;
}

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

/* Header */
.header {
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 20px;
    gap: 1rem;
}

.logo {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-selector.active .lang-arrow,
.lang-dropdown.active ~ .lang-btn .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-hover);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-option:hover {
    background: var(--color-bg);
    color: var(--color-accent);
}

.lang-option:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.lang-option:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Hero Section */
.hero {
    color: #ffffff;
    padding: 140px 0 100px;
    text-align: center;

    backdrop-filter: blur(5px);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    animation: fadeInUp 0.8s ease 0.4s both;
    border: 2px solid #00ff41;
}

.btn-primary:hover {
    background: #00ff41;
    border-color: #00ff41;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Services Section */
.services {
    backdrop-filter: blur(5px);
}

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

.service-card {
    background: rgba(20, 20, 20, 0.7);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.2);
    border-color: rgba(0, 255, 65, 0.6);
    background: rgba(20, 20, 20, 0.85);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Activités Section */
.activites {
    backdrop-filter: blur(5px);
}

.activite-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #00ff41;
    letter-spacing: -0.3px;
}

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

.activite-item {
    background: rgba(20, 20, 20, 0.7);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.activite-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.2);
    border-color: rgba(0, 255, 65, 0.6);
    background: rgba(20, 20, 20, 0.85);
}

.activite-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.activite-list {
    list-style: none;
    padding: 0;
}

.activite-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.activite-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #00ff41;
    font-weight: 600;
}

/* References Section */
.references {
    backdrop-filter: blur(5px);
}

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

.reference-card {
    background: rgba(20, 20, 20, 0.7);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.reference-card:hover {
    border-color: rgba(0, 255, 65, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.2);
    background: rgba(20, 20, 20, 0.85);
}

.reference-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.reference-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.reference-link {
    color: #00ff41;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    font-size: 0.95rem;
}

.reference-link:hover {
    gap: 1rem;
    color: #00ff88;
}

/* Contact Section */
.contact {
    backdrop-filter: blur(5px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.7);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 65, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    color: var(--color-white);
    text-align: center;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-selector {
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .lang-dropdown {
        right: 0;
        left: auto;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
        background: #ffffff;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }

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

    .category-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .service-card,
    .reference-card,
    .activite-item {
        padding: 1.5rem;
    }
}

