/* Styles pour le chargement des traductions */
[data-i18n] {
    transition: opacity 0.3s ease;
}

/* 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.minecraft-hero {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8) 0%, rgba(76, 175, 80, 0.6) 50%, rgba(33, 150, 243, 0.7) 100%), url('../images/background/Minecraft-Background.jpeg') center/cover no-repeat !important;
}

[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"] .service-card {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .service-card#vps::after {
    background:
        linear-gradient(to bottom, rgba(30, 41, 59, 0.1) 0%, rgba(6, 182, 212, 0.6) 40%, rgba(245, 158, 11, 0.9) 100%),
        url('../images/background/VPS-Background.png') top/cover no-repeat;
    opacity: 1;
}

[data-theme="dark"] .service-card#minecraft::after {
    background:
        linear-gradient(to bottom, rgba(30, 41, 59, 0.1) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.9) 100%),
        url('../images/background/Minecraft-Background.jpeg') top/cover no-repeat;
    opacity: 1;
}

[data-theme="dark"] .service-card#discord::after {
    background:
        linear-gradient(to bottom, rgba(30, 41, 59, 0.1) 0%, rgba(79, 70, 229, 0.6) 40%, rgba(147, 51, 234, 0.9) 100%),
        url('../images/background/Nodejs-Background.png') top/cover no-repeat;
    opacity: 1;
}

[data-theme="dark"] .service-card#gmod::after {
    background:
        linear-gradient(to bottom, rgba(30, 41, 59, 0.1) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.9) 100%),
        url('../images/background/Gmod-Background.jpg') top/cover no-repeat;
    opacity: 1;
}

[data-theme="dark"] .service-card#hytale::after {
    background:
        linear-gradient(to bottom, rgba(30, 41, 59, 0.3) 0%, rgba(25, 118, 210, 0.8) 40%, rgba(46, 125, 50, 0.95) 100%),
        url('../images/background/hytale-background.jpg') top/cover no-repeat;
    opacity: 1;
}

[data-theme="dark"] .service-card:has(.fa-key) {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(30, 58, 138, 0.7) 100%), url('../images/background/License-Background.png') center/cover no-repeat !important;
}

[data-theme="dark"] .service-card:has(.fa-key)::before {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(30, 58, 138, 0.7) 100%);
}

[data-theme="dark"] .service-card#web-hosting::after {
    background:
        linear-gradient(to bottom, rgba(30, 41, 59, 0.1) 0%, rgba(6, 182, 212, 0.6) 40%, rgba(34, 197, 94, 0.9) 100%),
        url('../images/background/Web-Background.png') top/cover no-repeat;
    opacity: 1;
}

[data-theme="dark"] .service-card#mc-proxy::after {
    background:
        linear-gradient(to bottom, rgba(46, 125, 50, 0.1) 0%, rgba(76, 175, 80, 0.6) 40%, rgba(33, 150, 243, 0.9) 100%),
        url('../images/background/Minecraft-Background.jpeg') top/cover no-repeat;
    opacity: 1;
}

[data-theme="dark"] .service-card:nth-child(5)::after {
    background:
        linear-gradient(to bottom, rgba(30, 41, 59, 0.1) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.9) 100%),
        url('../images/background/License-Background.png') top/cover no-repeat;
    opacity: 1;
}

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

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

[data-theme="dark"] .service-features li {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* 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;
}

/* FreeNode — Stats section (padding: 80px 0; background: #ffffff) */
[data-theme="dark"] section[style*="padding: 80px 0; background: #ffffff"] {
    background: var(--bg-secondary) !important;
}

/* Cards inside stats section that use background: #f8fafc */
[data-theme="dark"] *[style*="background: #f8fafc"] {
    background: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !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"] .feature-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"] .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;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

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);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 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;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.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%);
}

/* Mode sombre pour les sections hero personnalisées - Web Hosting */
[data-theme="dark"] .hero[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(6, 182, 212, 0.6) 50%, rgba(34, 197, 94, 0.7) 100%), url('../images/background/Web-Background.png') center/cover no-repeat !important;
}

@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);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.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;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.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(400px, 1fr));
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Styles de base pour toutes les cartes de service */
.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Images de fond spécifiques pour chaque carte */
.service-card#vps {
    background-image: url('../images/background/VPS-Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card#web-hosting {
    background-image: url('../images/background/Web-Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card#minecraft {
    background-image: url('../images/background/Minecraft-Background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card#discord {
    background-image: url('../images/background/Nodejs-Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card#gmod {
    background-image: url('../images/background/Gmod-Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card#hytale {
    background-image: url('../images/background/hytale-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card#mc-proxy {
    background-image: url('../images/background/Nodejs-Background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Carte de licence (sans ID spécifique) */
.service-card:not([id]) {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Overlay sombre pour améliorer la lisibilité du texte */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

/* Mode sombre */
[data-theme="dark"] .service-card::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%);
}

/* Ajustement des couleurs du texte pour une meilleure lisibilité */
.service-card h3,
.service-card p,
.service-card li,
.service-card .btn-outline {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .service-card p,
[data-theme="light"] .service-card li {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Style pour le bouton en mode clair */
[data-theme="light"] .service-card .btn-outline {
    border-color: white;
    color: white;
}

[data-theme="light"] .service-card .btn-outline:hover {
    background: rgba(255,255,255,0.2);
}

/* Assure que le contenu est au-dessus de l'overlay */
.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

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

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

/* Les styles de base pour .service-card sont déjà définis plus haut */

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Styles spécifiques pour chaque carte de service */
.service-card#vps {
    background-image: url('../images/background/VPS-Background.png');
}

.service-card:has(.fa-key) {
    background-image: url('../images/background/License-Background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.service-card:has(.fa-key)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.7) 100%);
    z-index: 1;
}

.service-card:has(.fa-key) > * {
    position: relative;
    z-index: 2;
}

.service-card#web-hosting {
    background-image: url('../images/background/Web-Background.png');
}

.service-card#minecraft {
    background-image: url('../images/background/Minecraft-Background.jpeg');
}

.service-card#discord {
    background-image: url('../images/background/Nodejs-Background.png');
}

.service-card#gmod {
    background-image: url('../images/background/Gmod-Background.jpg');
}

.service-card#mc-proxy {
    background-image: url('../images/background/Minecraft-Background.jpeg');
}

.service-card:nth-child(5) {
    background-image: url('../images/background/License-Background.png');
}

/* Ajustement de la visibilité en mode clair */
[data-theme="light"] .service-card::after {
    opacity: 0.3; /* Assure que toutes les cartes ont la même opacité en mode clair */
}

/* Styles pour le mode sombre */
[data-theme="dark"] .service-card {
    border-color: var(--border-color);
    position: relative;
}

[data-theme="dark"] .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

[data-theme="dark"] .service-card > * {
    position: relative;
    z-index: 2;
}

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

[data-theme="dark"] .service-card p,
[data-theme="dark"] .service-features li {
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Amélioration de la lisibilité du texte */
.service-card > * {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

[data-theme="light"] .service-card > * {
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .service-card > * {
    color: #f1f5f9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Effet de survol */
.service-card {
    transition: all 0.3s ease;
    transform: translateZ(0); /* Améliore les performances des animations */
}

.service-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: transparent; /* Empêche l'apparition d'un fond au survol */
}

/* Suppression du filtre gris au survol */
[data-theme="dark"] .service-card::before {
    background: rgba(15, 23, 42, 0.7);
    transition: none;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 120px 0;
    background: var(--bg-secondary);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.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;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.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 - Tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 32px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    /* Empêcher le scroll horizontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    /* Container mobile - meilleur centrage */
    .container {
        padding: 0 12px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Services container spécifique pour éviter le débordement */
    .services .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    /* Forcer les cartes à ne jamais dépasser */
    .services .container .services-grid .service-card {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* 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;
    }
    
    /* Hero section mobile - meilleur centrage */
    .hero {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        text-align: center;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 16px;
        text-align: center;
        margin-bottom: 32px;
        padding: 0 16px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hero stats mobile - centrage */
    .hero-stats {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 32px;
        margin-bottom: 32px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .stat {
        text-align: center;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Hero actions mobile - centrage */
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        width: 100%;
        padding: 0 16px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
    }
    
    /* Features section mobile */
    .features {
        padding: 60px 0;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .feature-card {
        text-align: center;
        padding: 32px 24px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Services section mobile */
    .services {
        padding: 60px 0;
        text-align: center;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 48px;
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-header h2 {
        font-size: 2rem;
        text-align: center;
        padding: 0;
        margin: 0 auto 16px;
    }
    
    .section-header p {
        text-align: center;
        font-size: 16px;
        padding: 0;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    /* Forcer les cartes à ne jamais dépasser la largeur de l'écran */
    .services .container .services-grid .service-card {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .service-card {
        text-align: center;
        padding: 24px 16px;
        margin: 0;
        max-width: 100%;
        width: 100%;
        min-height: auto;
        box-sizing: border-box;
        border-radius: 16px;
    }
    
    .service-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 14px;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 16px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-features {
        text-align: left;
        padding-left: 16px;
        margin: 0 auto 20px;
        max-width: 100%;
        font-size: 14px;
    }
    
    .service-features li {
        margin-bottom: 8px;
        padding-right: 8px;
    }
    
    .service-card .btn {
        width: 100%;
        max-width: 100%;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Why Choose Us mobile */
    .why-choose-us {
        padding: 60px 0;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }
    
    .benefit-item {
        text-align: left;
        padding: 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    /* CTA section mobile */
    .cta {
        padding: 60px 0;
        text-align: center;
    }
    
    .cta-content {
        text-align: center;
        padding: 0 16px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .cta-content p {
        text-align: center;
        font-size: 16px;
    }
    
    .cta-content .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* 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);
    }

    .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: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    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;
    }
}

/* Corrections spécifiques pour très petits écrans (iPhone 12 Mini - 375px) */
@media (max-width: 400px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .container {
        padding: 0 12px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        padding: 0 8px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        padding: 0 12px;
    }
    
    .hero-stats {
        gap: 24px;
        margin-bottom: 24px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .hero-actions {
        padding: 0 12px;
    }
    
    .hero-actions .btn {
        max-width: 100%;
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .features {
        padding: 48px 0;
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .services {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
        padding: 0 12px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .services-grid {
        gap: 16px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .service-card {
        padding: 20px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 13px;
    }
    
    .service-features {
        font-size: 13px;
        padding-left: 12px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    .why-choose-us {
        padding: 48px 0;
    }
    
    .benefit-item {
        padding: 16px;
        font-size: 14px;
    }
    
    .cta {
        padding: 48px 0;
    }
    
    .cta-content {
        padding: 0 12px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    .cta-content .btn {
        max-width: 100%;
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Badge Netic - présent sur toutes les pages */
.netic-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

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

.netic-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.netic-badge:hover::before {
    left: 100%;
}

.netic-badge i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

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

/* Mode sombre pour le badge Netic */
[data-theme="dark"] .netic-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .netic-badge:hover {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Mobile - badge Netic masqué sur petits écrans */
@media (max-width: 768px) {
    .netic-badge {
        display: none;
    }
}

/* Section Netic sur page d'accueil */
.netic-section-home {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .netic-section-home {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.netic-section-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(99, 102, 241, 0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    opacity: 0.5;
}

.netic-home-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.netic-home-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netic-home-icon i {
    font-size: 4rem;
    color: #6366f1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.ai-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

.netic-home-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.netic-home-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.netic-home-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.netic-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.netic-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #6366f1;
}

.netic-feature i {
    font-size: 1.25rem;
    color: #6366f1;
    width: 24px;
    text-align: center;
}

.netic-feature span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.netic-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.netic-home-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Mobile pour section Netic */
@media (max-width: 768px) {
    .netic-home-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .netic-home-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .netic-home-icon i {
        font-size: 3rem;
    }
    
    .ai-glow {
        width: 80px;
        height: 80px;
    }
    
    .netic-home-text h2 {
        font-size: 2rem;
    }
    
    .netic-home-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scrolling Banner Styles */
.scrolling-banner {
    /* --- CONFIGURATION PAR DÉFAUT --- */
    /* Ces valeurs peuvent être surchargées directement dans le HTML via style="..." */
    --banner-height: 2rem;      /* Hauteur (padding haut/bas) */
    --logo-size: 50px;          /* Taille des logos */
    --mask-width: 25%;          /* Largeur du fondu sur les côtés */
    --gap-between-logos: 2rem;  /* Espace entre les logos */
    --banner-speed: 50;         /* Vitesse (pixels par seconde) */
    /* ------------------------------------ */

    background: var(--bg-secondary);
    padding: var(--banner-height) 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
    /* Masque dégradé configurable */
    mask-image: linear-gradient(
        to right, 
        transparent, 
        black var(--mask-width), 
        black calc(100% - var(--mask-width)), 
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right, 
        transparent, 
        black var(--mask-width), 
        black calc(100% - var(--mask-width)), 
        transparent
    );
}

.scrolling-track {
    display: flex;
    width: max-content;
    /* L'animation est gérée par le JS désormais */
    /* animation: scroll 40s linear infinite; */
}

/* Pause de l'animation au survol désactivée */
/* .scrolling-banner:hover .scrolling-track {
    animation-play-state: paused !important;
} */

/* Animation intelligente gérée par JS */
@keyframes smartScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--scroll-distance, -100%));
    }
}

.scrolling-track.reverse {
    animation-direction: reverse;
}

.scrolling-slide {
    display: flex;
    align-items: center;
    padding: 0 var(--gap-between-logos);
    text-decoration: none; /* Pour les liens */
    color: inherit; /* Pour les liens */
    cursor: pointer; /* Indique que c'est cliquable */
}

.scrolling-slide img {
    height: var(--logo-size);
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.scrolling-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-12.5%);
    }
}

/* Dark Mode support for scrolling banner */
[data-theme="dark"] .scrolling-banner {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .scrolling-slide img {
    filter: grayscale(100%) brightness(1.5); /* Increase brightness for dark logos in dark mode */
}

[data-theme="dark"] .scrolling-slide img:hover {
    filter: grayscale(0%) brightness(1);
}

/* Partners Section - Integration of Header and Banner */
.partners-section {
    background-color: var(--bg-secondary);
    padding-top: 60px;
    border-bottom: 1px solid var(--border-color);
}

.partners-section .section-header {
    margin-bottom: 2rem;
}

.partners-section .scrolling-banner {
    background: transparent;
    border-bottom: none;
    padding-top: 1rem;
    padding-bottom: 5rem; /* Keep bottom padding */
}

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

/* Full color banner override */
.scrolling-banner.full-color .scrolling-slide img {
    filter: none !important;
    opacity: 1 !important;
}

[data-theme="dark"] .scrolling-banner.full-color .scrolling-slide img {
    filter: none !important;
    opacity: 1 !important;
}
