/* ============================================
   iMÉDIA SÉCURITÉ - Style principal
   Thème : Dark Professional Security
   ============================================ */

:root {
    /* Couleurs basées sur le logo */
    --color-bg: #0a0e1a;
    --color-bg-2: #0F1729;
    --color-bg-3: #151b2e;
    --color-surface: #1a2138;
    --color-surface-hover: #232b48;

    --color-blue: #1B2D5C;
    --color-blue-light: #4A6FE5;
    --color-blue-glow: rgba(74, 111, 229, 0.4);

    --color-red: #DC2937;
    --color-red-light: #ef4756;
    --color-red-glow: rgba(220, 41, 55, 0.4);

    --color-text: #f1f5f9;
    --color-text-dim: #94a3b8;
    --color-text-muted: #64748b;

    --color-border: rgba(74, 111, 229, 0.15);
    --color-border-hover: rgba(74, 111, 229, 0.4);

    /* Typographie */
    --font-display: 'Rajdhani', 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;

    /* Espacements */
    --container: 1280px;
    --header-h: 80px;

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.25s ease;
    --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================ RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================ ATMOSPHÈRE FOND */
.bg-atmosphere {
    position: fixed; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(27, 45, 92, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 100%, rgba(220, 41, 55, 0.15) 0%, transparent 60%),
        var(--color-bg);
}

.bg-atmosphere::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74, 111, 229, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 111, 229, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

/* ============================================ CONTAINER */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================ HEADER */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h); z-index: 100;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--t-base);
}

.site-header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo-wrap { display: flex; align-items: center; gap: 0.75rem; }
.logo-wrap img { height: 50px; width: auto; }

.nav-main { display: flex; align-items: center; gap: 2.5rem; }

.nav-main a {
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-text-dim);
    transition: color var(--t-fast); position: relative;
}

.nav-main a:hover { color: var(--color-text); }

.nav-main a::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px; background: var(--color-red);
    transition: width var(--t-base);
}

.nav-main a:hover::after { width: 100%; }

.btn-cta {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
    color: white !important;
    padding: 0.75rem 1.5rem; border-radius: 6px;
    font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem;
    border: none; transition: all var(--t-base);
    display: inline-flex; align-items: center; gap: 0.5rem;
}

.btn-cta::after { display: none !important; }

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--color-red-glow);
}

.menu-toggle {
    display: none; background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text); width: 44px; height: 44px;
    border-radius: 6px; align-items: center; justify-content: center;
}

/* ============================================ HERO */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding: calc(var(--header-h) + 4rem) 0 4rem;
    overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, var(--color-blue-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, var(--color-red-glow) 0%, transparent 40%);
    opacity: 0.3; z-index: -1;
}

.hero-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem; align-items: center;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(74, 111, 229, 0.1);
    border: 1px solid rgba(74, 111, 229, 0.3);
    color: var(--color-blue-light);
    padding: 0.5rem 1rem; border-radius: 100px;
    font-family: var(--font-mono); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-tag .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700; line-height: 1.05;
    letter-spacing: -0.02em; margin-bottom: 1.5rem;
    text-transform: uppercase;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero h1 span.gradient {
    background: linear-gradient(135deg, var(--color-blue-light) 0%, var(--color-red) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem; color: var(--color-text-dim);
    margin-bottom: 2rem; max-width: 540px;
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-red) 0%, #b91c2a 100%);
    color: white; padding: 1rem 2rem; border-radius: 6px;
    font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    font-size: 0.95rem; border: none;
    transition: all var(--t-base);
    display: inline-flex; align-items: center; gap: 0.6rem;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px var(--color-red-glow);
}

.btn-secondary {
    background: rgba(74, 111, 229, 0.1);
    color: var(--color-text);
    padding: 1rem 2rem; border-radius: 6px;
    font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    font-size: 0.95rem;
    border: 1px solid var(--color-border-hover);
    transition: all var(--t-base);
    display: inline-flex; align-items: center; gap: 0.6rem;
}

.btn-secondary:hover {
    background: rgba(74, 111, 229, 0.2);
    border-color: var(--color-blue-light);
}

/* Hero visual */
.hero-visual {
    position: relative; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-shield { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; }

.hero-shield .ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid var(--color-border);
}

.hero-shield .ring-1 { animation: rotateSlow 30s linear infinite; }
.hero-shield .ring-2 { inset: 12%; animation: rotateSlow 25s linear infinite reverse; border-color: rgba(220, 41, 55, 0.2); }
.hero-shield .ring-3 { inset: 24%; animation: rotateSlow 20s linear infinite; border-style: dashed; }

.hero-shield .ring::before {
    content: ''; position: absolute;
    width: 8px; height: 8px;
    background: var(--color-red); border-radius: 50%;
    top: -4px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 0 12px var(--color-red);
}

.hero-shield .ring-2::before {
    background: var(--color-blue-light);
    box-shadow: 0 0 12px var(--color-blue-light);
    top: auto; bottom: -4px;
}

.hero-core {
    position: absolute; inset: 30%; border-radius: 50%;
    background: radial-gradient(circle, var(--color-blue) 0%, var(--color-bg-2) 70%);
    border: 2px solid var(--color-border-hover);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 40px var(--color-blue-glow), inset 0 0 30px rgba(74, 111, 229, 0.2);
}

.hero-core svg {
    width: 50%; height: 50%; color: var(--color-blue-light);
    filter: drop-shadow(0 0 8px var(--color-blue-glow));
}

/* ============================================ SECTIONS */
section { padding: 6rem 0; position: relative; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--color-red);
    text-transform: uppercase; letter-spacing: 0.2em;
    margin-bottom: 1rem; display: inline-block;
}

.section-tag::before { content: '◆'; margin-right: 0.5rem; color: var(--color-blue-light); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.02em; line-height: 1.1;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-dim); font-size: 1.05rem;
    max-width: 600px; margin: 0 auto;
}

/* ============================================ SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(135deg, var(--color-bg-2), var(--color-bg-3));
    border: 1px solid var(--color-border);
    border-radius: 12px; padding: 2rem;
    position: relative; overflow: hidden;
    transition: all var(--t-slow);
}

.service-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--color-blue-light), var(--color-red));
    transition: width var(--t-slow);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before { width: 100%; }

.service-icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(74, 111, 229, 0.2), rgba(220, 41, 55, 0.2));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; color: var(--color-blue-light);
    transition: all var(--t-base);
}

.service-card:hover .service-icon {
    color: var(--color-red-light);
    transform: scale(1.05);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
    font-family: var(--font-display); font-size: 1.25rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 0.5rem;
}

.service-card p { color: var(--color-text-dim); font-size: 0.95rem; }

/* ============================================ STATS */
.stats {
    padding: 5rem 0;
    background:
        linear-gradient(135deg, var(--color-bg-2), transparent),
        radial-gradient(ellipse at center, rgba(27, 45, 92, 0.3), transparent);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.stat { text-align: center; padding: 1.5rem 1rem; position: relative; }

.stat:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%;
    height: 60%; width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-border-hover), transparent);
}

.stat-icon {
    width: 48px; height: 48px; margin: 0 auto 1rem;
    color: var(--color-red); opacity: 0.6;
}

.stat-icon svg { width: 100%; height: 100%; }

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700; line-height: 1;
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-red));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex; align-items: baseline;
}

.stat-prefix, .stat-suffix { font-size: 0.6em; margin: 0 0.1em; }

.stat-label {
    font-family: var(--font-display); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--color-text-dim);
    font-size: 0.85rem; margin-top: 0.5rem;
}

/* ============================================ PARTENAIRES */
.partners { overflow: hidden; padding: 5rem 0; }

.partners-track-wrap {
    overflow: hidden; position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex; gap: 3rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.partners-track:hover { animation-play-state: paused; }

.partner-logo {
    flex-shrink: 0; width: 180px; height: 100px;
    background: var(--color-bg-2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    transition: all var(--t-base);
    filter: grayscale(100%) brightness(0.7);
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(1);
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
}

.partner-logo img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto; object-fit: contain;
}

.partners-empty {
    text-align: center; color: var(--color-text-muted);
    padding: 2rem; font-style: italic;
}

/* ============================================ CHANTIERS */
.chantiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.chantier-card {
    position: relative; aspect-ratio: 4/3;
    border-radius: 12px; overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-bg-2);
    transition: all var(--t-slow);
}

.chantier-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.chantier-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.chantier-card:hover img { transform: scale(1.08); }

.chantier-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.4) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--t-base);
}

.chantier-card:hover .chantier-overlay { opacity: 1; }

.chantier-overlay h3 {
    font-family: var(--font-display); font-size: 1.25rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 0.25rem;
}

.chantier-overlay p { font-size: 0.9rem; color: var(--color-text-dim); }

.chantier-zoom {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px;
    background: rgba(220, 41, 55, 0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    opacity: 0; transform: scale(0.8);
    transition: all var(--t-base);
}

.chantier-card:hover .chantier-zoom {
    opacity: 1; transform: scale(1);
}

.chantiers-empty {
    text-align: center; color: var(--color-text-muted);
    padding: 3rem 2rem; font-style: italic;
    grid-column: 1 / -1;
}

/* ============================================ MODAL */
.modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 2rem;
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-base);
}

.modal.active { opacity: 1; pointer-events: all; }

.modal-content {
    max-width: 90vw; max-height: 90vh;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--t-base);
    display: flex; flex-direction: column; align-items: center;
}

.modal.active .modal-content { transform: scale(1); }

.modal-content img {
    max-width: 100%; max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    margin-top: 1rem; text-align: center;
    color: var(--color-text);
    background: var(--color-bg-2);
    padding: 1rem 1.5rem; border-radius: 8px;
    border: 1px solid var(--color-border);
    max-width: 600px;
}

.modal-caption h3 {
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--color-blue-light); margin-bottom: 0.25rem;
}

.modal-close {
    position: absolute; top: -2.5rem; right: 0;
    background: rgba(220, 41, 55, 0.9);
    color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.25rem;
    transition: all var(--t-fast);
}

.modal-close:hover {
    background: var(--color-red);
    transform: rotate(90deg);
}

/* ============================================ CONTACT */
.contact { background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-2) 100%); }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 4rem; align-items: start;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 1.5rem;
}

.info-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.info-icon {
    width: 44px; height: 44px;
    background: rgba(74, 111, 229, 0.1);
    border: 1px solid var(--color-border-hover);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-blue-light);
    flex-shrink: 0;
}

.info-icon svg { width: 20px; height: 20px; }

.info-text strong {
    font-family: var(--font-display); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--color-text-dim);
    display: block; margin-bottom: 0.25rem;
}

.info-text a, .info-text span {
    color: var(--color-text); font-size: 1rem;
    transition: color var(--t-fast);
}

.info-text a:hover { color: var(--color-red); }

.contact-form {
    background: var(--color-bg-2);
    border: 1px solid var(--color-border);
    border-radius: 16px; padding: 2.5rem;
}

.form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin-bottom: 1.25rem;
}

.form-field { position: relative; margin-bottom: 1.25rem; }

.form-field label {
    display: block;
    font-family: var(--font-display); font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--color-text-dim);
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--color-text);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: all var(--t-fast);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-blue-light);
    box-shadow: 0 0 0 3px var(--color-blue-glow);
}

.form-field textarea {
    resize: vertical; min-height: 130px;
    font-family: var(--font-body);
}

/* Captcha */
.captcha {
    display: flex; align-items: center; gap: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px; padding: 1rem;
    margin-bottom: 1.5rem;
}

.captcha-question {
    font-family: var(--font-mono); font-size: 1.2rem;
    color: var(--color-blue-light);
    background: rgba(74, 111, 229, 0.1);
    padding: 0.5rem 1rem; border-radius: 6px;
    user-select: none;
    letter-spacing: 0.1em;
}

.captcha input {
    flex: 1; background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px; padding: 0.5rem 0.75rem;
    color: var(--color-text);
    font-family: var(--font-mono); font-size: 1rem;
    text-align: center;
    transition: all var(--t-fast);
}

.captcha input:focus {
    outline: none;
    border-color: var(--color-blue-light);
}

.captcha-refresh {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-dim);
    width: 38px; height: 38px;
    border-radius: 6px;
    transition: all var(--t-fast);
}

.captcha-refresh:hover {
    color: var(--color-blue-light);
    border-color: var(--color-blue-light);
    transform: rotate(180deg);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
    color: white; padding: 1.1rem; border-radius: 8px;
    font-family: var(--font-display); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    font-size: 1rem; border: none;
    transition: all var(--t-base);
    position: relative; overflow: hidden;
}

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

.btn-submit:hover::before { width: 400px; height: 400px; }

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px var(--color-red-glow);
}

.btn-submit:disabled {
    opacity: 0.6; cursor: not-allowed;
    transform: none !important;
}

.form-message {
    padding: 1rem; border-radius: 8px;
    margin-top: 1rem; font-size: 0.9rem;
    display: none;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac; display: block;
}

.form-message.error {
    background: rgba(220, 41, 55, 0.1);
    border: 1px solid rgba(220, 41, 55, 0.3);
    color: #fca5a5; display: block;
}

/* ============================================ FOOTER */
.site-footer {
    background: #050810;
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img { height: 60px; margin-bottom: 1rem; }

.footer-brand p {
    color: var(--color-text-dim);
    font-size: 0.95rem; line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-display); font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--color-text);
    margin-bottom: 1.25rem; padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.footer-col ul { list-style: none; }
.footer-col ul li { padding: 0.4rem 0; }

.footer-col ul li a {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    transition: color var(--t-fast);
    display: inline-flex; align-items: center; gap: 0.5rem;
}

.footer-col ul li a:hover { color: var(--color-red); }

.footer-col ul li a::before {
    content: '›'; color: var(--color-blue-light);
    transition: transform var(--t-fast);
}

.footer-col ul li a:hover::before { transform: translateX(3px); }

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

.social-link {
    width: 40px; height: 40px;
    background: var(--color-bg-2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-dim);
    transition: all var(--t-fast);
}

.social-link:hover {
    background: var(--color-blue);
    color: white;
    border-color: var(--color-blue-light);
    transform: translateY(-2px);
}

.social-link svg { width: 18px; height: 18px; }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap; gap: 1rem;
}

.footer-bottom .branches {
    display: flex; gap: 1.5rem; align-items: center;
}

.footer-bottom .branches a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: color var(--t-fast);
    display: inline-flex; align-items: center; gap: 0.3rem;
}

.footer-bottom .branches a:hover { color: var(--color-blue-light); }

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================ RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    :root { --header-h: 70px; }
    .nav-main {
        display: none; position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column; padding: 2rem; gap: 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-main.open { display: flex; }
    .nav-main a { font-size: 1.1rem; }
    .menu-toggle { display: flex; }
    .logo-wrap img { height: 40px; }
    section { padding: 4rem 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .stat:not(:last-child)::after { display: none; }
    .stats-grid { gap: 1rem; }
    .contact-form { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .modal-close { top: -3rem; }
}
