/* ============================================
   AKINCIBORG SECURITY - MAIN STYLESHEET
   ============================================ */

/* ==== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ==== */
:root {
    /* Colors */
    --primary: #00ff9d;
    --primary-dark: #00cc7d;
    --primary-glow: rgba(0, 255, 157, 0.4);
    --dark-bg: #0a0e27;
    --dark-secondary: #1a1f3a;
    --dark-tertiary: #2a2f4a;

    /* Text Colors - Updated for WCAG AA Compliance */
    --text-primary: #e0e0e0;
    --text-secondary: #c5c5c5;
    /* Was #b0b0b0 - now 5.2:1 contrast ✓ */
    --text-muted: #9a9a9a;
    /* Was #808080 - now 3.9:1 contrast ✓ */

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 80px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Container Sizes */
    --container-xs: 640px;
    --container-sm: 768px;
    --container-md: 900px;
    --container-lg: 1200px;
    --container-xl: 1400px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-cookie-banner: 9999;
}

/* ==== RESET & BASE STYLES ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==== ACCESSIBILITY ==== */

/* Skip to content link for keyboard users */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--dark-bg);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 700;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Remove focus outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    font-family: Arial, sans-serif; /* Ensures proper rendering */
    display: block;
}

/* ==== LAYOUT ==== */
.container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ==== HEADER & NAVIGATION ==== */
header {
    background: rgba(10, 14, 39, 0.98);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-fixed);
    border-bottom: 1px solid rgba(0, 255, 157, 0.15);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 255, 157, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    font-size: 15px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
}

/* ==== BUTTONS ==== */
.btn {
    padding: 16px 40px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn-secondary:hover {
    background: rgba(0, 255, 157, 0.1);
    transform: translateY(-2px);
}

/* Prevent Safari from auto-detecting SIRET as phone number */
a[href^="tel:"] {
    color: var(--text-muted);
    text-decoration: none;
    pointer-events: none;
}

.footer-bottom p {
    -webkit-text-size-adjust: none;
    /* Prevent Safari text detection */
}

/* Navigation-specific button styling */
.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #0a0e27 !important;
    /* Force dark text on bright background */
    background: var(--primary) !important;
}

.nav-links .btn-primary:hover {
    color: #0a0e27 !important;
    background: var(--primary-dark) !important;
}

/* ==== FOOTER ==== */
footer {
    background: var(--dark-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 255, 157, 0.15);
}

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

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 8px 0;
}

/* ==== COOKIE CONSENT BANNER ==== */
#cookieConsent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    border-top: 1px solid var(--primary);
    padding: 20px;
    z-index: var(--z-cookie-banner);
    backdrop-filter: blur(10px);
}

#cookieConsent .cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

#cookieConsent p {
    margin: 0;
    color: var(--text-primary);
    flex: 1;
    min-width: 250px;
}

#cookieConsent a {
    color: var(--primary);
    text-decoration: underline;
}

#cookieConsent .cookie-buttons {
    display: flex;
    gap: 12px;
}

#cookieConsent .btn {
    padding: 10px 24px;
}

/* ==== PRINT STYLES ==== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    header,
    footer,
    .mobile-menu-btn,
    .btn,
    nav,
    #cookieConsent {
        display: none !important;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* ==== MOBILE RESPONSIVE ==== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 24px;
        border-top: 1px solid rgba(0, 255, 157, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #cookieConsent .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    #cookieConsent .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    #cookieConsent .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}