@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #050a15;
    --bg-lighter: #0a1226;
    --card-bg: rgba(10, 18, 38, 0.6);
    --card-hover: rgba(15, 28, 60, 0.7);
    --accent-primary: #00d2ff;
    --accent-secondary: #3a7bd5;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 82px;
    --subnav-height: 52px;
    --sidebar-width: 240px;
    --header-stack-offset: calc(15px + var(--nav-height) + 10px + var(--subnav-height) + 16px);
    --transition-smooth: all 0.3s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Décalage vertical du fond au scroll (mis à jour par script.js) */
    --bg-parallax-y: 0px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 3px solid #020617;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Prevent zoom on touch devices */
html {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-zoom: fixed;
    -moz-user-select: none;
    -webkit-touch-callout: none;
}

@media (max-width: 768px) {
    html {
        -webkit-user-zoom: fixed !important;
        zoom: 100% !important;
        touch-action: pan-y pinch-zoom !important;
    }
    
    * {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}

/* Cursor only on desktop */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* --- Animated Background --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 15% 50%, rgba(0, 102, 255, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(0, 50, 150, 0.04) 0%, transparent 50%),
        linear-gradient(rgba(5, 10, 21, 0.3), rgba(5, 10, 21, 0.5)),
        url('../../img/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    /* Fix zoom effect on mobile scroll */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    animation: gridPulse 8s ease-in-out infinite;
    /* Fix zoom effect on mobile scroll */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Mobile fix : évite le zoom/dézoom du fond au scroll (barre d'adresse iOS) */
@media (max-width: 768px) {
    body::before,
    body::after {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Légère surtaille pour absorber le décalage de la barre d'adresse */
        height: 100vh;
        min-height: -webkit-fill-available;
    }
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        background-position: center;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

/* Prevent zoom on all images */
img {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    display: block;
    max-width: 100%;
    height: auto;
    -webkit-user-zoom: fixed;
}

@media (max-width: 768px) {
    img {
        -webkit-transform: scale(1) !important;
        transform: scale(1) !important;
        zoom: 100% !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

@keyframes floatingIcon {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }

    100% {
        transform: translate(20px, 20px) rotate(10deg);
        opacity: 0.5;
    }
}

/* --- Card Glow & Interactions --- */
.service-card,
.pricing-card,
.portfolio-card {
    position: relative;
    overflow: hidden;
}

.service-card::before,
.pricing-card::before,
.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 210, 255, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::before,
.pricing-card:hover::before,
.portfolio-card:hover::before {
    opacity: 1;
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

/* --- Data Streams Background --- */
.data-streams {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stream {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    width: 300px;
    opacity: 0;
    animation: moveStream linear infinite;
}

@keyframes moveStream {
    0% {
        transform: translateX(110vw);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateX(-400px);
        opacity: 0;
    }
}

.text-blue {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5, #00d2ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s linear infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* --- Reading Progress --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    z-index: 2000;
    transition: width 0.1s ease;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.22), rgba(58, 123, 213, 0.16));
    color: #f0f9ff;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 210, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Badge hero accueil : aligné à gauche avec le titre */
.hero-content .badge {
    color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.28), rgba(10, 30, 60, 0.85));
}

.page-header .badge,
.contact-hero .badge {
    color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.28), rgba(10, 30, 60, 0.85));
}

/* Textes d'intro / sous-titres de section (lisibilité) */
.page-lead {
    font-size: 1.2rem;
    color: #eef4fc;
    font-weight: 500;
    line-height: 1.75;
    max-width: 800px;
    margin: 1.5rem auto 0;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding: 1rem 1.25rem;
    background: linear-gradient(90deg, rgba(8, 22, 48, 0.78), rgba(8, 22, 48, 0.4));
    border: 1px solid rgba(0, 210, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.page-lead strong {
    color: var(--accent-primary);
    font-weight: 700;
}

.section-lead {
    font-size: 1.1rem;
    color: #e8f0fa;
    font-weight: 500;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    padding: 0.85rem 1.1rem;
    background: rgba(8, 22, 48, 0.55);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 12px;
}

/* --- Custom Cursor (Tech Style) --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-secondary);
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s, height 0.3s, background 0.3s, transform 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
}

.custom-cursor::before,
.custom-cursor::after {
    content: '';
    position: absolute;
    background: var(--accent-secondary);
    transition: all 0.3s ease;
}

/* Vertical lines */
.custom-cursor::before {
    top: -6px;
    bottom: -6px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
}

/* Horizontal lines */
.custom-cursor::after {
    left: -6px;
    right: -6px;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
}

.custom-cursor.hovering {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid var(--accent-secondary);
    transform: translate(-50%, -50%) rotate(0deg);
}

.custom-cursor.hovering::before {
    height: 100%;
    top: 0;
    bottom: 0;
    opacity: 0.5;
}

.custom-cursor.hovering::after {
    width: 100%;
    left: 0;
    right: 0;
    opacity: 0.5;
}

/* --- Topbar --- */
header.topbar {
    height: var(--nav-height);
    width: calc(100% - 24px);
    max-width: 1400px;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 18, 38, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    overflow: visible;
}

.lang-switcher-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    order: -1;
    position: relative;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-bounce);
    cursor: pointer;
    text-decoration: none;
}

.login-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.login-btn i {
    width: 16px;
    height: 16px;
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.logo-container:hover {
    transform: translateX(-50%) scale(1.05);
}

.logo-container:hover .logo-text {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: none;
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 var(--accent-primary), -2px 0 #ff00c1;
    }

    40% {
        transform: translate(-2px, -2px);
        text-shadow: 2px 0 #ff00c1, -2px 0 var(--accent-primary);
    }

    60% {
        transform: translate(2px, 2px);
        text-shadow: -2px 0 var(--accent-primary), 2px 0 #ff00c1;
    }

    80% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 #ff00c1, 2px 0 var(--accent-primary);
    }

    100% {
        transform: translate(0);
        text-shadow: none;
    }
}

@keyframes spinLogo {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.logo-img {
    height: 68px;
    max-height: calc(var(--nav-height) - 10px);
    width: auto;
    min-width: 280px;
    display: block;
    object-fit: contain;
    filter: brightness(1.08) contrast(1.12) drop-shadow(0 0 10px rgba(0, 210, 255, 0.35));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.logo-container:hover .logo-img {
    filter: brightness(1.15) contrast(1.15) drop-shadow(0 0 14px rgba(0, 210, 255, 0.5));
}

.logo-container:hover .logo-img,
.logo-container:active .logo-img,
.logo-container.spin-active .logo-img {
    animation: spinLogo 1s ease-in-out;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    position: relative;
}

/* --- Noise Overlay --- */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Cursor Particles --- */
.cursor-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleFade 0.6s ease-out forwards;
}

@keyframes particleFade {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.logo-text span {
    color: var(--accent-secondary);
    font-weight: 400;
}

/* --- Mobile Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition-bounce);
    position: relative;
    padding: 0;
}

.hamburger:hover {
    background: rgba(0, 210, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: absolute;
}

.hamburger span:nth-child(1) {
    transform: translateY(-7px);
}

.hamburger span:nth-child(2) {
    transform: translateY(0);
    width: 14px;
    margin-right: -6px;
}

.hamburger span:nth-child(3) {
    transform: translateY(7px);
}

.hamburger.active {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent-primary);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
    width: 22px;
}

.hamburger.active span:nth-child(2) {
    transform: translateX(-20px);
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
    width: 22px;
}

/* --- Navigation sous la barre logo (desktop) --- */
aside.sidebar {
    position: fixed;
    top: calc(15px + var(--nav-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 1400px;
    height: auto;
    z-index: 999;
    padding: 0.45rem 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    overflow: visible;
}

@media (min-width: 769px) {
    aside.sidebar.subnav-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(calc(-100% - 14px));
    }
}

aside.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem 0.7rem 1.15rem;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(8, 20, 45, 0.72);
    border: 1px solid rgba(0, 210, 255, 0.22);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    width: auto;
    margin: 0;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Trait bleu actif sous le lien (barre horizontale) */
.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 5px;
    top: auto;
    width: auto;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: center center;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar-nav a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.22), rgba(58, 123, 213, 0.18));
    border-color: rgba(0, 210, 255, 0.55);
    box-shadow: 0 6px 22px rgba(0, 210, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sidebar-nav a.active {
    color: var(--accent-primary);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(10, 30, 60, 0.9));
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25), inset 0 0 12px rgba(0, 210, 255, 0.08);
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    transform: scaleX(1);
    opacity: 1;
}

.sidebar-nav a i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    transition: color 0.2s ease, filter 0.2s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.35));
}

.sidebar-nav a:hover i {
    color: #ffffff;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.sidebar-nav a.active i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

/* PC : catégories bien visibles sur le fond de page */
@media (min-width: 769px) {
    .sidebar-nav a {
        padding: 0.55rem 1rem 0.68rem;
        font-size: 0.9rem;
        letter-spacing: 0.02em;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .sidebar-nav a span {
        color: inherit;
    }

    .sidebar-nav a:hover {
        transform: translateY(-2px);
    }

    .sidebar-nav a.active span {
        color: var(--accent-primary);
    }

    .sidebar-bottom {
        margin-top: 0;
        padding: 0 0 0 0.5rem;
        border-top: none;
        border-left: none;
    }

    .sidebar-bottom .cta-mini {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }
}

/* --- Sidebar Bottom Info --- */
.sidebar-bottom {
    margin-top: 0;
    padding: 0;
    border-top: none;
    flex-shrink: 0;
}

.sidebar-bottom .cta-mini {
    display: block;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--accent-primary), #0052cc);
    color: white;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.sidebar-bottom .cta-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
}

.sidebar-bottom .cta-mini.active {
    box-shadow: 0 0 22px rgba(0, 210, 255, 0.35);
    outline: 1px solid rgba(0, 210, 255, 0.45);
}

/* --- Main Layout --- */
.main-content {
    margin-left: 0;
    padding-top: var(--header-stack-offset);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, var(--accent-primary), #0052cc);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-bounce);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-bounce);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
}

/* --- Hero Section --- */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    border-radius: 50%;
    filter: blur(50px);
    animation: orbFloat 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 25px) scale(1.05);
    }

    66% {
        transform: translate(25px, -35px) scale(0.97);
    }
}

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

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.hero-content h1 .text-blue {
    position: relative;
    display: inline-block;
}

.hero-content h1 .text-blue::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    animation: underlineGrow 1.5s ease forwards;
    transform-origin: left;
}

@keyframes underlineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.hero-content p,
.hero-lead {
    font-size: 1.15rem;
    color: #eef4fc;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.75;
    max-width: 92%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 210, 255, 0.08);
}

.hero-lead {
    padding: 1rem 1.2rem;
    background: linear-gradient(90deg, rgba(8, 22, 48, 0.75), rgba(8, 22, 48, 0.35));
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), transparent, rgba(59, 130, 246, 0.08));
    border-radius: 24px;
    z-index: -1;
    filter: blur(25px);
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

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

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-bounce);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 102, 255, 0.25);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.25rem;
}

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

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 2rem 1.8rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 210, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.3), transparent 50%, rgba(59, 130, 246, 0.2));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.12);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--accent-secondary);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: rgba(0, 102, 255, 0.18);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
    transform: scale(1.08);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.7;
}

/* --- Page Header --- */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 550px;
}

/* --- Contact Banner --- */
.contact-banner {
    background: linear-gradient(135deg, rgba(15, 34, 64, 0.8), rgba(10, 25, 48, 0.9));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.contact-banner::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12), transparent);
    top: -80px;
    right: -40px;
    border-radius: 50%;
    filter: blur(35px);
}

.contact-text {
    position: relative;
    z-index: 1;
}

.contact-text h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.contact-action {
    position: relative;
    z-index: 1;
}

/* --- Particles --- */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(59, 130, 246, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Pied de page pleine largeur */
.main-content > footer.site-footer {
    width: 100%;
    margin-left: 0;
    padding: 32px 0 18px;
    color: var(--text-secondary);
    background: rgba(5, 10, 21, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

/* Suppression de la barre Uptime / NVMe / France dans le cadre noir */
.site-footer .stats-row,
.footer-trust-bar,
.site-footer .footer-bottom p:last-child {
    display: none !important;
}

.site-footer .footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-children>* {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.25s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.3s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.glow-text {
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.15);
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 1100px) and (min-width: 769px) {
    :root {
        --subnav-height: 88px;
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }

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

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

  /* Menu mobile : panneau centré, taille au contenu (rien de visible à gauche quand fermé) */
    aside.sidebar {
        left: 8px;
        right: 8px;
        top: 82px; /* Topbar top (10px) + height (72px) */
        bottom: auto;
        width: auto;
        height: auto;
        max-height: calc(100dvh - 7rem);
        margin: 0;
        padding: 1rem 0.75rem;
        background: rgba(10, 18, 38, 0.78);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    aside.sidebar::-webkit-scrollbar {
        display: none;
    }

    aside.sidebar.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    aside.sidebar .sidebar-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.35rem;
        width: 100%;
        text-align: center;
    }

    aside.sidebar .sidebar-nav a {
        width: 100%;
        margin: 4px 0;
        white-space: normal;
        padding: 0.7rem 0.85rem 0.7rem 1.15rem;
        justify-content: center; /* Centre le contenu des liens */
    }

    aside.sidebar .sidebar-nav a::before {
        left: 9px;
        right: auto;
        bottom: auto;
        top: 50%;
        width: 4px;
        height: 50%;
        transform: translateY(-50%) scaleY(0);
        background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    }

    aside.sidebar .sidebar-nav a:hover::before,
    aside.sidebar .sidebar-nav a.active::before {
        transform: translateY(-50%) scaleY(1);
    }

    aside.sidebar .sidebar-bottom {
        width: 100%;
        padding: 0.5rem 0.35rem 0.25rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Bouton Contact bleu dans le menu mobile */
    aside.sidebar .sidebar-bottom .cta-mini {
        width: 100%;
        padding: 0.75rem 1rem;
        background: linear-gradient(135deg, var(--accent-primary), #0052cc);
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 18px rgba(0, 102, 255, 0.35);
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        text-align: center;
        text-shadow: none;
        transform: none;
        letter-spacing: 0.02em;
        position: relative;
        overflow: hidden;
    }

    aside.sidebar .sidebar-bottom .cta-mini::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
        transition: left 0.5s ease;
    }

    aside.sidebar .sidebar-bottom .cta-mini:hover::before {
        left: 100%;
    }

    aside.sidebar .sidebar-bottom .cta-mini:hover {
        box-shadow: 0 8px 28px rgba(0, 102, 255, 0.55);
        transform: translateY(-2px);
    }

    /* Style du sélecteur de langue dans le menu */
    .sidebar .lang-switcher {
        width: auto;
        justify-content: center;
    }
    
    .sidebar .lang-dropdown {
        bottom: calc(100% + 10px);
        top: auto;
        right: 50%;
        transform: translateX(50%) translateY(10px);
    }

    .sidebar.open .lang-switcher.open .lang-dropdown {
        transform: translateX(50%) translateY(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        margin-left: 0 !important;
        padding-top: calc(64px + 28px);
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
        position: relative;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-lead {
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto 1.5rem;
        text-align: center;
        border-left: none;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image-container {
        position: relative;
        width: 100%;
        height: 300px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 50px rgba(0, 210, 255, 0.15);
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .hero-slide.active {
        opacity: 1;
    }

    /* Disable floating animation on mobile */
    .hero-slide,
    .hero-image img {
        animation: none !important;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .contact-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .contact-text h2 {
        font-size: 1.5rem;
    }

    /* promo styles removed */

    /* --- Fixed Header Overlaps --- */
    header.topbar {
        justify-content: space-between;
        padding: 0 0.75rem;
        top: 10px;
        height: 72px;
        background: rgba(10, 18, 38, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.12);
        width: calc(100% - 16px);
        border-radius: 16px;
        left: 50%;
        transform: translateX(-50%);
        overflow: visible;
    }

    .hamburger {
        order: -10;
        flex-shrink: 0;
        margin-left: 0.35rem;
        margin-right: 0;
        background: transparent;
        border: none;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .logo-container {
        position: absolute;
        /* Keep it absolute so it's strictly centered */
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-text {
        font-size: 1rem;
        /* Logo plus petit */
    }

    .logo-img {
        height: 58px;
        min-width: 210px;
        max-height: calc(100% - 6px);
    }

    .login-btn {
        order: 3;
        padding: 0;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        box-shadow: none;
        margin-right: 0.35rem;
    }

    .main-content > footer.site-footer {
        margin-left: 0;
        width: 100%;
        padding: 28px 0 16px;
    }

    .lang-switcher-header {
        gap: 0.5rem;
        order: 2;
        margin-left: auto;
        margin-right: 0;
    }

    .login-btn i {
        width: 24px;
        /* Plus grand car c'est juste l'icône maintenant */
        height: 24px;
        color: #fff;
    }

    .login-btn span {
        display: none;
    }

    /* Hide custom cursor on touch */
    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
}

/* --- Sélecteur de langue (bouton + menu) --- */
.lang-switcher {
    position: relative;
    display: inline-flex;
    margin: 0;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem 0.55rem 0.75rem;
    background: rgba(8, 20, 45, 0.72);
    border: 1px solid rgba(0, 210, 255, 0.22);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.lang-toggle-btn:hover,
.lang-switcher.open .lang-toggle-btn {
    border-color: rgba(0, 210, 255, 0.55);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.22), rgba(58, 123, 213, 0.18));
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(0, 210, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* On cache l'icône globe mais on affiche le nom de la langue */
.lang-toggle-icon {
    display: none !important;
}

.lang-toggle-label {
    display: inline-block;
    margin-left: 0.3rem;
}

.lang-toggle-code {
    min-width: 1.5rem;
}

.lang-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.lang-toggle-icon i {
    width: 15px;
    height: 15px;
}

.lang-toggle-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-toggle-label {
    white-space: nowrap;
}

.lang-toggle-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--accent-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lang-chevron {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 0.4rem;
    background: rgba(10, 18, 38, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-option-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-option-text {
    flex: 1;
}

.lang-option-check {
    width: 16px !important;
    height: 16px !important;
    opacity: 0;
    color: var(--accent-primary);
    transition: opacity 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-option.active {
    color: #fff;
    background: rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.22);
}

.lang-option.active .lang-option-check {
    opacity: 1;
}

.lang-switcher--floating {
    position: fixed;
    z-index: 9999;
    bottom: 24px;
    left: 24px;
    top: auto;
    right: auto;
}

@media (max-width: 768px) {
    .lang-switcher--floating {
        bottom: 20px;
        left: 15px;
    }
}

.lang-switcher--floating.lang-switcher--bottom-right {
    left: auto;
    right: 24px;
}

/* --- Hero Image Slideshow --- */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.15);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    padding: 1rem 1.5rem;
    background: rgba(10, 25, 48, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    width: 20px;
    height: 20px;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

.toast-info i {
    color: var(--accent-primary);
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning i {
    color: #f59e0b;
}

/* promo styles removed */

@media (max-width: 768px) {
    .lang-toggle-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .lang-dropdown {
        right: 0;
        left: auto;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        text-align: center;
    }

    .footer-grid ul {
        align-items: center;
    }

    .footer-grid p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid .logo-text {
        justify-content: center;
        display: flex;
    }

    .footer-grid div:first-child {
        grid-column: span 3;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        margin-bottom: 1rem;
    }

    .footer-grid div:last-child {
        grid-column: auto;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .site-footer .footer-bottom {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .site-footer .footer-bottom .social-links {
        justify-content: center;
        width: 100%;
    }
}

/* --- Floating Contact Button --- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), #0052cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    z-index: 9999;
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-contact:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
    color: white;
}

.floating-contact i {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        z-index: 999999 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .floating-contact i {
        width: 20px;
        height: 20px;
    }
}

/* --- Typewriter Cursor --- */
.typing-cursor::after {
    content: '|';
    margin-left: 2px;
    color: var(--accent-primary);
    animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}