/* Base Styles & Variables */
:root {
    --bg-dark: #050508;
    --bg-darker: #020203;
    --bg-card: rgba(15, 15, 25, 0.7);
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.5);
    --secondary: #7000ff;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b5;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(5, 5, 8, 0.7);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 6rem 0;
}

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

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typography */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.w-100 {
    width: 100%;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-primary-sm {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-3px);
}

.btn-primary-sm {
    padding: 0.5rem 1.2rem;
    background: var(--primary);
    color: #000;
    font-size: 0.9rem;
    box-shadow: 0 0 10px var(--primary-glow);
}

.btn-primary-sm:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

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

.logo img {
    max-height: 65px;
    width: auto;
    /* Optionnel: pour s'adapter au thème sombre si le logo a un fond blanc */
    /* mix-blend-mode: screen; */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary-sm) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn-primary-sm)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(5, 5, 8, 0.9), rgba(5, 5, 8, 0.7)), url('https://images.unsplash.com/photo-1537498425277-c283d32ef9db?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin-top: 4rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 240, 255, 0.3);
}

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

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Showcase Section */
.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.showcase-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

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

.image-wrapper {
    padding: 1rem;
    transform: rotate(2deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.image-wrapper img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* Trust Banner */
.trust-banner {
    background: linear-gradient(90deg, rgba(5, 5, 8, 1) 0%, rgba(15, 15, 25, 1) 50%, rgba(5, 5, 8, 1) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

.trust-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--primary-glow);
}

.trust-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(0, 0, 0, 0.2);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-muted);
}

.contact-form-container {
    padding: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.input-group select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
}

.footer-brand .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-brand .logo img {
    max-height: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-link:hover {
    color: var(--primary);
}

/* Animations Classes */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

.fade-in {
    transition: opacity 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

.slide-up {
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        border-bottom: 1px solid var(--glass-border);
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }
}