/* Main Stylesheet - Confiance Numérique */

/* Import CSS Variables for global values */
@import 'variables.css';

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: #0a0a0a;
    overflow-x: hidden;
    position: relative;
    color: #FFFFFF;
}

/* Animated Gradient Background - ENTIRE PAGE */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(20, 110, 245, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(20, 110, 245, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(20, 110, 245, 0.08) 0%, transparent 40%);
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

/* Grid Pattern - ENTIRE PAGE */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(20, 110, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 110, 245, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 150% 70% at 50% 50%, black 30%, transparent 100%);
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Floating shapes */
.floating-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 110, 245, 0.4) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 110, 245, 0.3) 0%, transparent 70%);
    bottom: -5%;
    left: -5%;
    animation-delay: 7s;
}

/* Content wrapper to stay on top of background */
header, main, footer {
    position: relative;
    z-index: 10;
}

/* Header Navigation */
header {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 110, 245, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: rgba(10, 10, 10, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #146EF5;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

nav .nav-contact-btn {
    padding: 12px 28px;
    font-size: 0.95rem;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #146EF5;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-button:hover {
    color: #146EF5;
    background: rgba(20, 110, 245, 0.1);
    transform: translateX(-3px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(20,110,245,0.3) 50%, transparent 100%);
    z-index: 5;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 40px rgba(20, 110, 245, 0.3);
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #146EF5, transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(20, 110, 245, 0.6);
}

.hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    margin-top: 32px;
    font-weight: 400;
    line-height: 1.6;
}

.hero p strong {
    font-weight: 700;
    color: #FFFFFF;
}

.highlight-region {
    font-weight: 700;
    color: #FFFFFF;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    min-width: 300px;
}

.btn {
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #146EF5 0%, #0d5ad4 100%);
    color: #FFFFFF;
    box-shadow:
        0 4px 15px rgba(20, 110, 245, 0.4),
        0 0 0 0 rgba(20, 110, 245, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow:
            0 4px 15px rgba(20, 110, 245, 0.4),
            0 0 0 0 rgba(20, 110, 245, 0.5);
    }
    50% {
        box-shadow:
            0 4px 15px rgba(20, 110, 245, 0.4),
            0 0 0 10px rgba(20, 110, 245, 0);
    }
    100% {
        box-shadow:
            0 4px 15px rgba(20, 110, 245, 0.4),
            0 0 0 0 rgba(20, 110, 245, 0);
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(20, 110, 245, 0.5),
        0 0 0 0 rgba(20, 110, 245, 0);
    animation: none;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(20, 110, 245, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 110, 245, 0.2);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(20,110,245,0.3) 50%, transparent 100%);
    z-index: 5;
}

.services-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #FFFFFF;
    text-shadow: 0 2px 40px rgba(20, 110, 245, 0.2);
    position: relative;
    padding-bottom: 20px;
}

.services-section h2::after {
    display: none;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(20, 110, 245, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-card .btn {
    margin-top: auto;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(20, 110, 245, 0.4);
    box-shadow: 0 12px 40px rgba(20, 110, 245, 0.2);
}

.service-card h3 {
    font-size: 1.3rem;
    color: #1a7fff;
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.service-card li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #146EF5;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-card-link {
    display: inline-block;
    margin-top: 15px;
    color: #1a7fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.service-card-link:hover {
    color: #146EF5;
    text-decoration: underline;
}

/* Differentiators Section */
.differentiators-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: -40px;
}

.differentiators-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #FFFFFF;
    text-shadow: 0 2px 40px rgba(20, 110, 245, 0.2);
    position: relative;
    padding-bottom: 20px;
}

.differentiators-section h2::after {
    display: none;
}

.diff-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 110, 245, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.diff-item {
    margin-bottom: 28px;
}

.diff-item:last-child {
    margin-bottom: 0;
}

.diff-item h4 {
    font-size: 1.1rem;
    color: #146EF5;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.diff-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet: 2 columns */
@media(min-width:768px) {
    .diff-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-content: start;
    }

    .diff-card > h3 {
        grid-column: 1 / -1;
        margin-bottom: 10px;
    }

    .diff-item {
        margin-bottom: 0;
    }
}

/* Desktop: enhanced spacing */
@media(min-width:1024px) {
    .diff-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 50px;
    }
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(20, 110, 245, 0.2);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 80px 20px;
    margin-top: 0;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .shape-1, .shape-2 {
        display: none;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero h1::after {
        width: 140px;
        height: 3px;
    }

    .services-section h2,
    .differentiators-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero h1::after {
        width: 100px;
        height: 2px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
    }

    nav {
        padding: 0.75rem 1rem;
    }

    nav ul {
        display: flex;
        gap: 0.5rem;
    }

    nav .nav-contact-btn {
        width: auto;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .services-section h2,
    .differentiators-section h2 {
        font-size: 1.75rem;
    }
}

/* Performance optimization for mobile */
@media (prefers-reduced-motion: reduce) {
    body::before,
    .floating-shape,
    .btn-primary {
        animation: none;
    }
}
