/* Reset & Base */
:root {
    /* Palette Black & Blue Mode (Thème Sombre & Carré) */
    --primary-color: #3B82F6; /* Bleu vibrant */
    --primary-hover: #2563EB;
    --secondary-color: #94a3b8; /* Gris clair pour les sous-titres */
    
    --bg-body: #020202;       /* Noir presque pur */
    --bg-card: #0a0a0a;       /* Noir très profond */
    --bg-light: #111111;      /* Gris très sombre */
    --bg-input: #171717;      /* Fond champs formulaire */
    
    --text-color: #f8fafc;    /* Blanc pur */
    --text-muted: #94a3b8;    /* Gris bleuté */
    --border-color: #1e3a8a;  /* Bordures Bleu Nuit */
    
    --white: #ffffff;
    --border-radius: 0px;     /* CARRÉ - SHARP EDGES */
    --transition: all 0.2s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-body);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase; /* Style plus "carré" / industriel */
    letter-spacing: 1px;
}

/* Animation Aurore Boréale Circulaire */
@keyframes aurora-cycle {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1 { 
    font-size: 2.5rem; 
    line-height: 1.2;
    /* Effet Aurore Premium */
    background: linear-gradient(
        90deg,
        #3B82F6 0%,   /* Bleu */
        #10B981 25%,  /* Emeraude */
        #8B5CF6 50%,  /* Violet */
        #EC4899 75%,  /* Rose */
        #3B82F6 100%  /* Boucle Bleu */
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: aurora-cycle 5s ease infinite;
    text-shadow: none; /* Important pour le clip */
}

/* Typographie Standard */
h2 { font-size: 2rem; border-left: 4px solid var(--primary-color); padding-left: 15px; }
h3 { font-size: 1.5rem; }

p { 
    margin-bottom: 1rem; 
    color: var(--text-muted);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    /* L'effet s'applique déjà via le sélecteur h1 global, 
       mais on s'assure qu'il n'est pas écrasé par une couleur blanche */
    color: transparent; 
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.2); /* Légère lueur derrière */
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-white {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--white);
}

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

.btn-white:hover {
    background-color: var(--white);
    color: var(--bg-body);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Header & Nav */
.header {
    background-color: rgba(2, 2, 2, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar {
    display: flex;
    gap: 2rem;
}

.navbar a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar a:hover, .navbar a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #1e3a8a 0%, var(--bg-body) 60%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--bg-body);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title p {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Services Preview */
.services-preview {
    padding: 6rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: #0f1218;
}

.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.link-arrow:hover {
    gap: 0.8rem;
}

/* Process Preview */
.process-preview {
    padding: 6rem 0;
    background-color: var(--bg-body);
}

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

.step {
    text-align: center;
    background: var(--bg-card);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0; /* Carré */
    line-height: 46px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.center-btn {
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: var(--bg-light);
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #000000;
    color: var(--text-muted);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3, .footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--white);
}

.page-header p {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Service Detail Page */
.service-detail {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.service-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 1;
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.5rem;
}

.service-list i {
    color: var(--primary-color);
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    color: var(--text-muted);
    font-weight: 600;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Method Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item .content {
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: none;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-body);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    text-align: center;
    line-height: 36px;
    font-weight: bold;
    position: absolute;
    top: 30px;
    z-index: 10;
}

.timeline-item.left .step-icon { right: -60px; }
.timeline-item.right .step-icon { left: -60px; }

/* Portfolio Grid */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.portfolio-img {
    height: 250px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 0.75rem;
    border-radius: 0;
    margin-top: 0.5rem;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.info-item i {
    color: var(--primary-color);
    width: 24px;
    font-size: 1.5rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background-color: var(--bg-card);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.contact-form {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-input);
    color: var(--text-color);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #000;
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

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

.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.stars {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: normal;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.testimonial-card h4 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--white);
    text-transform: uppercase;
}

.testimonial-card span {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .service-row, .service-row.reverse {
        flex-direction: column;
    }
    
    .timeline::after { left: 40px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.right { left: 0; }
    .timeline-item.left .step-icon, .timeline-item.right .step-icon {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(2, 2, 2, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        height: 100vh;
    }

    .navbar.active { display: flex; }

    .header .btn-primary { display: none; } /* Hide CTA in header on mobile */

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

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