/* Reset et variables CSS */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Variables pour le mode sombre */
[data-theme="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #020617;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --gradient-primary: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Application globale du mode sombre */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .hero {
    background: var(--gradient-dark);
}

[data-theme="dark"] .features,
[data-theme="dark"] .services,
[data-theme="dark"] .why-choose-us,
[data-theme="dark"] .cta {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .benefit-item {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .why-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .why-card p {
    color: var(--text-secondary);
}

/* Mode sombre pour le header - Corrections de visibilité */
[data-theme="dark"] .header {
    background-color: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

/* Corrections pour les boutons en mode sombre */
[data-theme="dark"] .btn-outline {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .dropdown-item:hover {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(6, 182, 212, 0.1) 100%
    ) !important;
    color: #ffffff !important;
}

/* Mode sombre pour les boutons */
[data-theme="dark"] .btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Mode sombre pour le sélecteur de langue */
[data-theme="dark"] .language-selector,
[data-theme="dark"] .language-toggle {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .language-dropdown {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(30, 41, 59, 0.8) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 6000;
}

[data-theme="dark"] .language-option {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .language-option:hover {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(6, 182, 212, 0.1) 100%
    ) !important;
    color: #ffffff !important;
}

/* Positionnement adaptatif pour le sélecteur de langue */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    max-width: 200px;
    z-index: 6000;
}

/* Mode sombre pour les cartes de pricing VPS */
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .plan-card {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .pricing-card .price,
[data-theme="dark"] .plan-card .price {
    color: var(--text-primary);
}

[data-theme="dark"] .pricing-card .price .amount,
[data-theme="dark"] .plan-card .price .amount {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="dark"] .pricing-card .features,
[data-theme="dark"] .plan-card .features {
    color: var(--text-secondary);
}

[data-theme="dark"] .pricing-card .features li,
[data-theme="dark"] .plan-card .features li {
    color: var(--text-secondary);
}

[data-theme="dark"] .pricing-card h3,
[data-theme="dark"] .plan-card h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .pricing-card .popular-badge,
[data-theme="dark"] .plan-card .popular-badge {
    background-color: var(--primary-color);
    color: white;
}

/* Mode sombre pour les cartes OS et features VPS */
[data-theme="dark"] .os-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .vps-feature {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .os-card h3,
[data-theme="dark"] .feature-item h3,
[data-theme="dark"] .vps-feature h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .os-card p,
[data-theme="dark"] .feature-item p,
[data-theme="dark"] .vps-feature p {
    color: var(--text-secondary);
}

[data-theme="dark"] .os-card .icon,
[data-theme="dark"] .feature-item .icon,
[data-theme="dark"] .vps-feature .icon {
    color: var(--primary-color);
}

/* Mode sombre UNIQUEMENT pour la page FreeNode */
[data-theme="dark"] .server-card {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .server-card > div[style*="background: white"] {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .server-card h4[style*="color: #1a1a2e"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .server-card p[style*="color: #64748b"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .server-card i {
    color: #b8471a !important;
}

/* Forcer le mode sombre sur tous les éléments blancs de la page FreeNode */
[data-theme="dark"] div[style*="background: white"],
[data-theme="dark"] div[style*="background-color: white"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background-color: white"] {
    background-color: var(--bg-primary) !important;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] [style*="color: #1a1a2e"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] [style*="color: #64748b"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] [style*="color: rgba(255,255,255,0.8)"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] [style*="background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%)"] {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b14 100%) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] [style*="color: white"][data-i18n*="needMore"] {
    color: var(--text-primary) !important;
}

/* Styles ultra-spécifiques pour forcer le mode sombre */
html[data-theme="dark"] .server-card > div[style] {
    background-color: var(--bg-primary) !important;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] div[style*="padding: 24px"][style*="background: white"] {
    background-color: var(--bg-primary) !important;
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme="dark"] h4[style*="color: #1a1a2e"] {
    color: var(--text-primary) !important;
}

html[data-theme="dark"] p[style*="color: #64748b"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .btn-orange {
    background: linear-gradient(135deg, #b8471a, #cc5d26) !important;
    color: white !important;
}

[data-theme="dark"] .btn-orange:hover {
    background: linear-gradient(135deg, #a03e16, #b8471a) !important;
}

/* Corrections spécifiques pour la page FreeNode */
[data-theme="dark"] .feature-card-freenode {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-card-freenode h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-card-freenode p {
    color: var(--text-secondary) !important;
}

/* Sections avec background gris */
[data-theme="dark"] section[style*="background: #f8fafc"] {
    background: var(--bg-secondary) !important;
}

/* Forcer tous les éléments avec des styles inline spécifiques */
[data-theme="dark"] *[style*="text-align: center; padding: 24px; background: white"] {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] *[style*="color: #1a1a2e; margin-bottom: 8px"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] *[style*="color: #64748b; font-size: 14px"] {
    color: var(--text-secondary) !important;
}

/* Corrections pour les sections avec padding et background */
[data-theme="dark"] section[style*="padding: 120px 0; background: #f8fafc"] {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] section[style*="padding: 120px 0"] {
    background: var(--bg-primary) !important;
}

/* Corrections pour les divs avec styles complexes */
[data-theme="dark"] div[style*="background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%)"] {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    color: white !important;
}

[data-theme="dark"] div[style*="background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%)"] {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: var(--text-primary) !important;
}

/* Corrections pour les textes dans les sections colorées */
[data-theme="dark"] div[style*="background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%)"] h3 {
    color: white !important;
}

[data-theme="dark"] div[style*="background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%)"] p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Corrections ultra-spécifiques pour tous les éléments de la page FreeNode */
[data-theme="dark"] .hero-freenode {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
}

/* Forcer le mode sombre sur TOUS les éléments avec background blanc */
body[data-theme="dark"] *[style*="background: white"],
body[data-theme="dark"] *[style*="background-color: white"],
html[data-theme="dark"] *[style*="background: white"],
html[data-theme="dark"] *[style*="background-color: white"] {
    background: var(--bg-primary) !important;
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Forcer les couleurs de texte */
body[data-theme="dark"] *[style*="color: #1a1a2e"],
html[data-theme="dark"] *[style*="color: #1a1a2e"] {
    color: var(--text-primary) !important;
}

body[data-theme="dark"] *[style*="color: #64748b"],
html[data-theme="dark"] *[style*="color: #64748b"] {
    color: var(--text-secondary) !important;
}

/* Corrections pour les grilles de cartes */
[data-theme="dark"] div[style*="display: grid"][style*="gap: 24px"] > div {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] div[style*="display: grid"][style*="gap: 32px"] > div {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Corrections pour les cartes serveur spécifiques */
[data-theme="dark"] div[style*="text-align: center; padding: 24px; background: white; border-radius: 12px"] {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Corrections pour les titres et paragraphes dans les cartes */
[data-theme="dark"] div[style*="background: white"] h4[style*="color: #1a1a2e"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] div[style*="background: white"] p[style*="color: #64748b"] {
    color: var(--text-secondary) !important;
}

/* Corrections pour les sections alternées */
[data-theme="dark"] section[style*="padding: 120px 0; background: #f8fafc;"] {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] section[style*="padding: 120px 0;"] {
    background: var(--bg-primary) !important;
}

/* Corrections pour les boutons outline orange */
[data-theme="dark"] .btn-outline-orange {
    background: transparent !important;
    color: #b8471a !important;
    border: 2px solid #b8471a !important;
}

[data-theme="dark"] .btn-outline-orange:hover {
    background: #b8471a !important;
    color: white !important;
}

/* Corrections pour les icônes dans les cartes */
[data-theme="dark"] div[style*="font-size: 36px; color: #ff6b35"] {
    color: #b8471a !important;
}

/* Corrections pour les éléments avec box-shadow */
[data-theme="dark"] div[style*="box-shadow: 0 4px 6px rgba(0,0,0,0.1)"] {
    box-shadow: var(--shadow-md) !important;
}

/* Layout simple pour les offres VPS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Styles spécifiques pour la carte custom dans la grille */
.pricing-grid .pricing-card[style*="grid-column"] {
    margin-top: 2rem;
}

/* Mode sombre pour les cartes de loaders Minecraft */
[data-theme="dark"] .loader-card,
[data-theme="dark"] .version-card,
[data-theme="dark"] .minecraft-feature {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .loader-card h3,
[data-theme="dark"] .version-card h3,
[data-theme="dark"] .minecraft-feature h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .loader-card p,
[data-theme="dark"] .version-card p,
[data-theme="dark"] .minecraft-feature p {
    color: var(--text-secondary);
}

[data-theme="dark"] .loader-card .icon,
[data-theme="dark"] .version-card .icon,
[data-theme="dark"] .minecraft-feature .icon {
    color: var(--primary-color);
}

/* Mode sombre pour le menu mobile */
[data-theme="dark"] .nav-menu {
    /* Transparent on desktop to avoid dark bar behind links; mobile styles are defined later */
    background-color: transparent;
    border-color: transparent;
}

[data-theme="dark"] .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-menu .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Correction déjà appliquée plus haut - pas de duplication */

[data-theme="dark"] .mobile-actions .btn {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .mobile-actions .btn-outline {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mobile-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Mode sombre pour la page About */
[data-theme="dark"] .about-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .legal-card {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .about-section {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .about-content p {
    color: var(--text-secondary);
}

/* Forcer les styles pour les divs avec background blanc inline */
[data-theme="dark"] div[style*="background: white"],
[data-theme="dark"] div[style*="background:white"] {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] div[style*="background: white"] p,
[data-theme="dark"] div[style*="background:white"] p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] div[style*="background: white"] strong,
[data-theme="dark"] div[style*="background:white"] strong {
    color: var(--text-primary) !important;
}


/* Mode sombre pour les sections alternées */
[data-theme="dark"] section:nth-child(even) {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] section:nth-child(odd) {
    background-color: var(--bg-primary);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Header & Navigation - Liquid Glass Effect */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: 5000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible; /* Permettre aux dropdowns de sortir */
    min-height: 70px; /* Hauteur minimale pour le header */
}

/* Effet de reflet liquide */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: liquidShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes liquidShine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Mode sombre pour l'effet liquid glass */
[data-theme="dark"] .header {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(30, 41, 59, 0.6) 25%,
        rgba(15, 23, 42, 0.8) 50%,
        rgba(30, 41, 59, 0.6) 75%,
        rgba(15, 23, 42, 0.8) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
}

.navbar {
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-text {
    color: inherit;
    font-weight: 700;
}

/* Forcer la couleur blanche pour le logo en mode sombre */
[data-theme="dark"] .nav-logo {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .logo-text {
    color: rgba(255, 255, 255, 0.95) !important;
}

.logo {
    width: 32px;
    height: 32px;
    display: block;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

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

/* Forcer la couleur blanche en mode sombre pour une meilleure visibilité */
[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.6);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px); /* Petit espacement sous le header */
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    min-width: 220px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    z-index: 6000; /* Au-dessus du header */
}

/* Adaptation pour éviter le débordement à droite */
.dropdown:last-child .dropdown-menu,
.nav-actions .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(-10px) scale(0.95);
}

/* Adaptation pour le menu Services (plus large) */
.nav-item.dropdown .dropdown-menu {
    min-width: 250px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Animation spécifique pour les dropdowns alignés à droite */
.dropdown:last-child:hover .dropdown-menu,
.nav-actions .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 2px 8px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.dropdown-item:hover {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(6, 182, 212, 0.05) 100%
    );
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item:hover::before {
    left: 100%;
}

/* Mode sombre pour le dropdown liquid glass */
[data-theme="dark"] .dropdown-menu {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(30, 41, 59, 0.8) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dropdown-item:hover {
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(6, 182, 212, 0.1) 100%
    );
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent);
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.feature-card {
    text-align: center;
    padding: 48px 32px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

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

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: 32px;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--gradient-dark);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 32px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Corrections pour les navigateurs mobiles */
/* Éviter les problèmes avec les barres d'adresse sur mobile */
.nav-menu.active {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* Fix pour le zoom iOS */
@supports (-webkit-touch-callout: none) {
    .nav-toggle {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
}

/* Fix pour Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .nav-menu {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
    }
}

/* Forçage du masquage des éléments sur mobile - règle globale */
@media (max-width: 768px) {
    /* Masquer UNIQUEMENT les nav-actions sur mobile */
    .nav-actions {
        display: none !important;
    }
    
    /* S'assurer que nav-toggle reste fonctionnel */
    .nav-toggle,
    #nav-toggle {
        display: flex !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header mobile - liquid glass effect adapté */
    .header {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.15) 100%
        );
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        z-index: 1000;
    }
    
    /* Mode sombre mobile */
    [data-theme="dark"] .header {
        background: linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(30, 41, 59, 0.7) 50%,
            rgba(15, 23, 42, 0.9) 100%
        );
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .navbar {
        padding: 12px 0;
        min-height: 60px;
    }
    
    /* Navigation container mobile */
    .nav-container {
        padding: 0 16px;
        position: relative;
        min-height: 60px;
        align-items: center;
    }
    
    /* Logo mobile */
    .nav-logo {
        font-size: 18px;
        flex: 1;
        z-index: 1001;
    }
    
    .logo {
        width: 28px;
        height: 28px;
    }
    
    .logo-link {
        gap: 10px;
    }
    
    /* Menu principal mobile - liquid glass effect */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 100%
        );
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 
            0 0 50px rgba(0, 0, 0, 0.1),
            inset 1px 0 0 rgba(255, 255, 255, 0.4);
        padding-top: 80px;
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mode sombre pour le menu mobile */
    [data-theme="dark"] .nav-menu {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(30, 41, 59, 0.9) 100%
        );
        box-shadow: 
            0 0 50px rgba(0, 0, 0, 0.3),
            inset 1px 0 0 rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
        padding: 20px 0;
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        padding: 0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 18px;
        padding: 16px 24px;
        display: block;
        width: 100%;
        color: var(--text-primary);
        font-weight: 500;
        transition: all 0.2s ease;
        border-radius: 8px;
        margin: 4px 0;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background-color: rgba(59, 130, 246, 0.05);
        color: var(--primary-color);
    }

    /* Actions navigation - masquées sur mobile mais menu fonctionnel */
    .nav-actions {
        display: none !important;
    }

    /* Bouton hamburger - amélioré */
    .nav-toggle {
        display: flex;
        z-index: 1001;
        background: none;
        border: none;
        padding: 12px;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: manipulation;
        flex-shrink: 0;
        border-radius: 6px;
        transition: all 0.2s ease;
        position: relative;
    }
    
    .nav-toggle:hover,
    .nav-toggle:focus {
        background-color: rgba(0, 0, 0, 0.05);
        outline: none;
    }
    
    .nav-toggle:active {
        transform: scale(0.95);
        background-color: rgba(0, 0, 0, 0.1);
    }

    .nav-toggle .bar {
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    
    .nav-toggle .bar:nth-child(1) {
        top: 18px;
    }
    
    .nav-toggle .bar:nth-child(2) {
        top: 23px;
    }
    
    .nav-toggle .bar:nth-child(3) {
        top: 28px;
    }

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

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

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

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

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

    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fixes pour les dropdowns sur mobile */
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0; /* remove rounded corners */
        padding: 0;
        margin: 8px 0 0 0;
        display: block; /* always visible on mobile */
    }

    /* Keep rule for compatibility if class is present */
    .nav-item.dropdown.open > .dropdown-menu { display: block; }

    /* Submenu items look like normal list items on mobile */
    .nav-item.dropdown .dropdown-item {
        margin: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
        background: transparent;
    }

    .nav-item.dropdown .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Rounded group styling for Services submenu in hamburger */
    .nav-item.dropdown > .dropdown-menu {
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 4px 0;
        margin: 12px 16px 12px 16px;
        width: calc(100% - 32px);
    }

    [data-theme="dark"] .nav-item.dropdown > .dropdown-menu {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }

    .nav-item.dropdown .dropdown-item {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item.dropdown .dropdown-item:last-child {
        border-bottom: none;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .nav-item.dropdown .dropdown-item:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    /* Remove the separator line under the Services item to avoid merging with submenu */
    .nav-item.dropdown {
        border-bottom: none;
    }
    
    .dropdown-item {
        padding: 8px 0;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
        font-size: 13px;
        background: transparent;
        transform: none !important;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background: var(--bg-secondary);
        color: var(--primary-color);
        transform: none !important;
        padding-left: 0 !important;
    }

    /* Ensure stable widths */
    .dropdown-item { width: 100%; box-sizing: border-box; }

    /* Disable desktop hover stripe animation on mobile */
    .dropdown-item::before {
        display: none;
    }
    
}

/* Ensure hamburger submenu does not shift when overlay is open (any viewport) */
.nav-menu.active .nav-item.dropdown > .dropdown-menu {
    position: relative;
    left: 0;
    right: auto;
    transform: none;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: calc(100% - 32px);
    margin: 12px 16px;
    padding: 4px 0;
    display: block;
}

[data-theme="dark"] .nav-menu.active .nav-item.dropdown > .dropdown-menu {
    background: var(--bg-secondary);
}

.nav-menu.active .dropdown-item {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    background: transparent;
    transform: none !important;
    width: 100%;
    box-sizing: border-box;
}

.nav-menu.active .dropdown-item:last-child { border-bottom: none; }
.nav-menu.active .dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: none !important;
    padding-left: 0 !important;
}
.nav-menu.active .dropdown-item::before { display: none; }

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

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

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

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utility classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* Hero spacing to avoid header overlap */
.hero {
    padding-top: 120px;
}

/* Ensure language dropdown is visible above header */
.nav-actions {
    overflow: visible;
}

/* Offer background utility */
.offer-bg {
    background: url('assets/images/offers-bg.jpg') center/cover no-repeat;
}

/* Optional subtle pattern for cards */
.pricing-card {
    background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 12px 12px;
}

.lang-select {
    margin-left: 12px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}
@media (max-width: 768px) {
    .lang-select { padding: 6px 8px; }
}

.trustpilot-bar { 
    padding: 20px 0; 
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .trustpilot-bar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.trustpilot-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.trustpilot-bar .trustpilot-widget { 
    flex: 1;
    max-width: 600px;
}
.trustpilot-intro {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .trustpilot-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .trustpilot-intro {
        white-space: normal;
        text-align: center;
    }
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-toggle .icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Dark mode contrast for theme toggle */
[data-theme="dark"] .theme-toggle {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Header theme toggle pour PC */
@media (min-width: 1025px) {
    .theme-toggle {
        position: static;
        bottom: auto;
        left: auto;
        border-radius: 25px;
        width: auto;
        height: auto;
        padding: 8px 12px;
        gap: 8px;
        font-size: 0.9rem;
        margin-left: 15px;
    }
    
    .header-nav {
        display: flex;
        align-items: center;
    }
}

/* Mobile et tablette - bouton en bas à gauche */
@media (max-width: 1024px) {
    .theme-toggle {
        position: fixed !important;
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 50%;
        padding: 0;
        gap: 0;
    }
    
    .theme-toggle .theme-text {
        display: none;
    }
}

.theme-toggle:hover .icon {
    transform: rotate(180deg);
}


/* Language selector styles */
.language-selector {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.language-toggle:hover {
    border-color: var(--primary-color);
}

.language-flag {
    font-size: 16px;
}

.language-name {
    font-size: 14px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.language-option:hover {
    background-color: var(--bg-secondary);
}

.language-option:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* Mobile language selector */
.mobile-language-selector {
    display: none;
}

.mobile-actions {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop language selector */
    .nav-actions #language-selector-container {
        display: none !important;
    }

    /* Show mobile language selector */
    .mobile-language-selector {
        display: block;
        padding: 16px 20px;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        margin: 16px 0;
        background: var(--bg-secondary);
    }

    .mobile-language-selector .language-selector {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .mobile-language-selector .language-toggle {
        width: 100%;
        justify-content: center;
        background: white;
    }

    .mobile-language-selector .language-dropdown {
        position: relative;
        width: 100%;
        margin-top: 8px;
        box-shadow: var(--shadow-md);
    }

    .mobile-language-selector .language-name {
        display: inline-block;
    }

    /* Show mobile actions */
    .mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .mobile-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
