/* ==========================================================================
   BST Services - Style Glassmorphism avec Thème Clair/Sombre
   Design moderne avec effets de verre et 3D
   ========================================================================== */

/* Variables CSS - Thème Sombre (par défaut) */
:root {
    /* Couleurs primaires */
    --primary-blue: #3B82F6;
    --primary-gold: #F59E0B;
    --accent-cyan: #06B6D4;
    --accent-purple: #8B5CF6;
    
    /* Couleurs de fond - Thème Sombre */
    --bg-primary: #0B0F14;
    --bg-secondary: #141B24;
    --bg-tertiary: #1A2332;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    /* Texte */
    --text-primary: #FFFFFF;
    --text-secondary: #B4BFD0;
    --text-muted: #6B7B93;
    
    /* Effets */
    --blur-amount: 30px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --border-radius: 1.25rem;
    --border-radius-lg: 2rem;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
    --gradient-gold: linear-gradient(135deg, var(--primary-gold), #EF4444);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* Variables CSS - Thème Clair */
[data-theme="light"] {
    /* Couleurs de fond - Thème Clair */
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    
    /* Glassmorphism - Thème Clair */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Texte - Thème Clair */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    /* Ombres - Thème Clair */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Canvas pour le background étoilé */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Glassmorphism Card Global */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

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

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar {
    padding: 1.25rem 0;
}

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

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Logo Image */
.logo-img {
    height: 55px;
    width: auto;
    display: block;
    border-radius: 50%;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.logo-img:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: var(--shadow-md);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle i {
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    background: var(--glass-bg);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 3px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Hero Stats Cards */
.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    height: 100%;
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    animation: fadeInRight 1s ease-out;
    animation-fill-mode: backwards;
}

.stats-card:nth-child(1) {
    animation-delay: 0.2s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.4s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.6s;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.stats-icon i {
    font-size: 1.75rem;
    color: #FFFFFF;
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   SOLUTIONS SECTION
   ========================================================================== */

.solutions {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.solution-card {
    margin-bottom: 4rem;
    overflow: hidden;
    position: relative;
}

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

.solution-card.reverse .solution-content {
    direction: rtl;
}

.solution-card.reverse .solution-text {
    direction: ltr;
}

.solution-text {
    padding: 3rem;
}

.solution-text h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.solution-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.solution-highlight i {
    font-size: 1.5rem;
}

.solution-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.solution-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.solution-features i {
    color: var(--primary-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.solution-image {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.solution-card:hover .solution-image img {
    transform: scale(1.05);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.75rem;
    color: var(--primary-blue);
    min-width: 28px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(255, 255, 255, 1);
}

/* Style des options du select */
.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 1rem;
}

[data-theme="light"] .form-group select option {
    background: #FFFFFF;
    color: #1F2937;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

.checkbox-group a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
    display: inline-block;
}

.footer-section i {
    margin-right: 0.75rem;
    color: var(--primary-blue);
}

.footer-section i.fab.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
}

.footer-section a[href*="instagram"]:hover {
    color: #E1306C;
}

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

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading State */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-loading .btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Desktop Large */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .solution-image {
        height: 500px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-container {
        gap: 3rem;
    }

    .solution-image {
        height: 380px;
    }

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

    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navigation Container Mobile */
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 86px;
        flex-direction: column;
        background: rgba(11, 15, 20, 0.95);
        backdrop-filter: blur(var(--blur-amount));
        -webkit-backdrop-filter: blur(var(--blur-amount));
        width: 100%;
        text-align: center;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 999;
        border-bottom: 1px solid var(--glass-border);
        gap: 0;
    }

    [data-theme="light"] .nav-menu {
        background: rgba(248, 250, 252, 0.95);
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        color: #FFFFFF;
        background: transparent;
        transition: var(--transition-fast);
        text-decoration: none;
        border-radius: 0;
        margin: 0;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:focus {
        background: rgba(59, 130, 246, 0.2);
        color: #60A5FA;
        transform: translateX(8px);
    }

    [data-theme="light"] .nav-menu .nav-link {
        color: #1F2937;
    }

    [data-theme="light"] .nav-menu .nav-link:hover,
    [data-theme="light"] .nav-menu .nav-link:focus {
        background: rgba(59, 130, 246, 0.15);
        color: var(--primary-blue);
        transform: translateX(8px);
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        color: #FFFFFF;
        background: transparent;
        transition: var(--transition-fast);
        text-decoration: none;
        border-radius: 0;
        margin: 0;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:focus {
        background: rgba(59, 130, 246, 0.2);
        color: #60A5FA;
        transform: translateX(8px);
    }

    [data-theme="light"] .nav-menu .nav-link {
        color: #1F2937;
    }

    [data-theme="light"] .nav-menu .nav-link:hover,
    [data-theme="light"] .nav-menu .nav-link:focus {
        background: rgba(59, 130, 246, 0.15);
        color: var(--primary-blue);
        transform: translateX(8px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section Mobile */
    .hero {
        padding-top: 120px;
    }

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

    .hero-title {
        font-size: 3.2rem;
        margin-bottom: 1.25rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Stats Cards Mobile */
    .stats-card {
        padding: 1.5rem;
    }

    .stats-icon {
        width: 50px;
        height: 50px;
    }

    .stats-icon i {
        font-size: 1.5rem;
    }

    .stats-number {
        font-size: 2rem;
    }

    .stats-label {
        font-size: 0.9rem;
    }

    /* Sections */
    .section-header h2 {
        font-size: 2.25rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .solutions,
    .contact {
        padding: 5rem 0;
    }

    /* Solutions Mobile */
    .solution-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .solution-card.reverse .solution-content {
        direction: ltr;
    }

    .solution-text {
        padding: 2rem;
    }

    .solution-text h3 {
        font-size: 1.85rem;
    }

    .solution-image {
        height: 280px;
    }

    /* Contact Mobile */
    .contact-form {
        padding: 2rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    /* Footer Mobile */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Scroll to Top Mobile */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .logo-img {
        height: 42px;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
        /* Amélioration tactile pour mobile */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        /* Zone de toucher plus grande pour mobile */
        padding: 8px;
        margin: 0 4px;
    }

    .theme-toggle i {
        font-size: 1.1rem;
    }

    .nav-toggle {
        padding: 6px;
    }

    .bar {
        width: 22px;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .stats-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .stats-icon {
        width: 45px;
        height: 45px;
    }

    .stats-number {
        font-size: 1.75rem;
    }

    .stats-label {
        font-size: 0.85rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .solution-text {
        padding: 1.5rem;
    }

    .solution-text h3 {
        font-size: 1.6rem;
    }

    .solution-image {
        height: 240px;
    }

    .contact-form {
        padding: 1.75rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    /* Scroll to Top Small Mobile */
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary-blue);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

[data-theme="light"] .scroll-to-top {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .scroll-to-top:hover {
    background: var(--primary-blue);
    color: white;
}

/* ==========================================================================
   ACCESSIBILITY & FOCUS STATES
   ========================================================================== */

.btn:focus,
.nav-link:focus,
.theme-toggle:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

.scroll-to-top:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

/* ==========================================================================
   LEGAL PAGES STYLES
   ========================================================================== */

.legal-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.legal-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.legal-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.legal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.legal-section {
    padding: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-blue);
}

.legal-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.75rem 0 1rem 0;
}

.legal-info p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.legal-info ul {
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.legal-info li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.legal-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-info a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.legal-info a:hover {
    color: var(--accent-purple);
}

.legal-footer {
    text-align: center;
    margin-top: 3rem;
}

.legal-page .nav-logo a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-info ul {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
}
