:root {
    --primary: #000000;
    --secondary: #333333;
    --dark: #FFFFFF;
    --dark-alt: #F8F9FA;
    --light: #000000;
    --accent: #666666;
    --glow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

body::before {
    display: none;
}

body::after {
    display: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: #FFFFFF;
    backdrop-filter: none;
    z-index: 1000;
    border-bottom: 1px solid #E5E5E5;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 75px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

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

.nav-center a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

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

.nav-center a:hover {
    color: #666666;
}

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

/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #000000;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 100px 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.mobile-nav li {
    margin-bottom: 0.5rem;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-nav a:hover {
    background: #F8F9FA;
}

.mobile-language {
    padding-top: 2rem;
    border-top: 1px solid #E5E5E5;
}

/* Overlay when menu is open */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hide desktop lang switcher on mobile */
.desktop-only {
    display: flex;
}


/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #F8F9FA;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #666666;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: #000000;
}

.lang-btn.active {
    background: #000000;
    color: #FFFFFF;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1400px;
    width: 100%;
}

/* Hero Section */
#hero {
    position: relative;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 0;
}

#hero .container {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #000000;
    animation: fadeInUp 1s ease;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #333333;
    opacity: 1;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #000000;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #FFFFFF;
    transform: translateY(-2px);
}

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

/* Services Section */
#services {
    background: #F8F9FA;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: #000000;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #333333;
    opacity: 1;
    margin-bottom: 4rem;
}

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

.service-card {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 3rem 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    display: none;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #000000;
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #333333;
    opacity: 1;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* About Section */
#about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    color: #000000;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333333;
    opacity: 1;
    line-height: 1.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E5E5E5;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #000000;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #333333;
    opacity: 1;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: #F8F9FA;
    border: 2px solid #E5E5E5;
    border-radius: 20px;
    backdrop-filter: none;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 50%;
    right: 10%;
    width: 120px;
    height: 120px;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 15%;
    left: 30%;
    width: 100px;
    height: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Contact Section */
#contact {
    background: #F8F9FA;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 3rem;
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Message de confirmation/erreur */
#form-message {
    margin-top: 2rem !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

#form-message:empty {
    display: none !important;
}

#form-message.success {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

#form-message.error {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

#form-message.loading {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

/* S'assurer que le contenu du message est visible */
#form-message * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-item {
    text-align: center;
}

.contact-item-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.contact-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-item p {
    color: #333333;
    opacity: 1;
}

.contact-item a {
    color: #333333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #000000;
}

/* Footer */
footer {
    background: #FFFFFF;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid #E5E5E5;
}

footer p {
    color: #333333;
    opacity: 1;
}

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

    /* Cacher le sélecteur de langue desktop */
    .desktop-only {
        display: none !important;
    }

    /* Afficher le bouton hamburger sur mobile */
    .hamburger {
        display: flex;
    }

    /* Afficher le menu mobile */
    .mobile-menu {
        display: block;
    }

    #about .container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        height: 300px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    /* Ajustements du header sur mobile */
    header {
        padding: 1rem 5%;
    }

    .logo {
        height: 50px;
    }

    nav {
        position: relative;
    }
}

/* Hide elements by language */
[data-lang]:not([data-lang="fr"]) {
    display: none;
}

body.lang-en [data-lang="fr"] {
    display: none;
}

body.lang-en [data-lang="en"] {
    display: block !important;
}

body.lang-fr [data-lang="en"] {
    display: none;
}

body.lang-fr [data-lang="fr"] {
    display: block !important;
}
