:root {
    --primary: #6e48ff;
    --primary-gradient: linear-gradient(135deg, #6e48ff 0%, #9d4edd 100%);
    --secondary: #00ffcc;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f8f9fa;
    --gray: #8a8a8a;
    --card-bg: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--darker);
    color: var(--light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: rgba(10, 10, 10, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.espace-client-link {
    background: var(--primary-gradient);
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
}

.espace-client-link::after {
    display: none;
}

.espace-client-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 72, 255, 0.4);
}

.espace-client-link .text {
    display: inline;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(110, 72, 255, 0.2) 0%, transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.15) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray);
    max-width: 600px;
}

.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 72, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Sections générales */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: white;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Avantages IA Locale */
.advantages {
    background: radial-gradient(circle at top right, rgba(110, 72, 255, 0.1) 0%, transparent 40%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.advantage-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(110, 72, 255, 0.4);
}

.advantage-card:hover .advantage-image {
    transform: scale(1.1);
}

.advantage-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advantage-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: white;
}

.advantage-card p {
    color: var(--gray);
}

/* Solutions */
.solutions {
    position: relative;
}

.solutions::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 204, 0.05) 0%, transparent 70%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-10px);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.solution-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover .solution-image {
    transform: scale(1.1);
}

.solution-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.solution-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: white;
}

.solution-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.solution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.solution-tag {
    background: rgba(110, 72, 255, 0.2);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Services Techniques */
.technical-services {
    background: radial-gradient(circle at top left, rgba(0, 255, 204, 0.1) 0%, transparent 40%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 204, 0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: white;
}

.service-card p {
    color: var(--gray);
}

.service-list {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.service-list li {
    margin-bottom: 10px;
    color: var(--light);
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 10px;
}

/* Processus */
.process {
    background: radial-gradient(circle at bottom left, rgba(157, 78, 221, 0.1) 0%, transparent 40%);
    position: relative;
    z-index: 10;
    padding: 80px 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.process-number {
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.process-content h3 {
    margin-bottom: 10px;
    color: white;
}

.process-content p {
    color: var(--gray);
}

/* Contact */
.contact {
    background: radial-gradient(circle at center, rgba(110, 72, 255, 0.08) 0%, transparent 60%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: white;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--dark);
    color: var(--light);
}

/* Footer */
footer {
    background: transparent;
    padding: 50px 0 20px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #9d4edd;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 5px 0;
    }

    .espace-client-link .text {
        display: inline;
        font-size: 1rem;
        margin-left: 8px;
        font-weight: 600;
    }

    .espace-client-link {
        padding: 12px 25px !important;
        background: linear-gradient(135deg, #6e48ff 0%, #9d4edd 100%) !important;
        box-shadow: 0 3px 15px rgba(110, 72, 255, 0.5) !important;
        font-size: 1rem !important;
        min-width: 160px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .espace-client-link i {
        font-size: 1.3rem;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .advantages-grid,
    .solutions-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantage-card,
    .solution-card,
    .service-card {
        margin: 0 10px;
    }

    .advantage-card h3,
    .solution-card h3,
    .service-card h3 {
        font-size: 1.3rem;
    }

    .advantage-content,
    .solution-content,
    .service-content {
        padding: 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .social-links {
        justify-content: center;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .advantage-icon,
    .solution-icon {
        font-size: 2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg,
        #0a0a0a 0%,
        #1a0a2e 25%,
        #16213e 50%,
        #0f3460 75%,
        #0a0a0a 100%);
}

/* Grille futuriste */
.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(110, 72, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 72, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Effet de lumière animée */
.particles::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(110, 72, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.particle {
    position: absolute;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Christmas Button */
.btn-christmas {
    background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
    color: white;
    border: 2px solid #ffd700;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
    animation: christmasGlow 2s ease-in-out infinite;
}

.btn-christmas:hover {
    background: linear-gradient(135deg, #d4314d 0%, #1a7340 100%);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6);
    transform: translateY(-3px) scale(1.05);
}

@keyframes christmasGlow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(196, 30, 58, 0.7), 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

/* Snowflakes */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    user-select: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0.7;
    }
}

.snowflake:nth-child(odd) {
    animation-duration: 10s;
}

.snowflake:nth-child(even) {
    animation-duration: 15s;
}

.snowflake:nth-child(3n) {
    animation-duration: 12s;
}

.snowflake:nth-child(4n) {
    font-size: 0.8em;
}

.snowflake:nth-child(5n) {
    font-size: 1.2em;
}

.snowflake:nth-child(6n) {
    font-size: 0.6em;
}
