/* ==================== VARIABLES ==================== */
:root {
    --primary-dark: #0a0e27;
    --primary: #0f172a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --gray-light: #f8fafc;
    --gray: #64748b;
    --gray-dark: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --orange: #f97316;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    /* backdrop-filter: blur(10px); */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-brand span {
    color: var(--orange);
}

.navbar-brand i {
    color: var(--accent);
    font-size: 1.6rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-dark);
    transition: color 0.2s;
    margin: 0 0.25rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

/* ==================== BOUTONS ==================== */
.btn-primary-custom {
    background: var(--gray);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-lg-custom {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, var(--gray-light) 0%, #eef2ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--orange);
    position: relative;
    display: inline-block;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 4px;
}

.code-block {
    background: #1e1e2e;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
}

.code-block pre {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.85rem;
    overflow-x: auto;
}

/* ==================== CARDS ==================== */
.card-service {
    border: none;
    border-radius: 1.5rem;
    transition: all 0.3s;
    height: 100%;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.15);
}

.card-service .icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* ==================== FORMULAIRES ==================== */
.form-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.form-card:hover {
    transform: translateY(-3px);
}

.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ==================== SLIDER ==================== */
.complexity-slider {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.complexity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.complexity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ==================== BADGES & TRUST ==================== */
.trust-badge {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    padding: 1rem;
    border-radius: 0.75rem;
}

.badge-custom {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* ==================== SECTEURS ==================== */
.sector-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.sector-card:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer h5, .footer h6 {
    color: white;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 60px 0;
    }
    .form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    .btn-primary-custom, .btn-outline-custom {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==================== MISC ==================== */
.cursor-pointer {
    cursor: pointer;
}

.text-accent {
    color: var(--orange);
}

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

.ratio-16x9 {
    aspect-ratio: 16 / 9;
}
