/* ===== Variables CSS ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #f97316);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --animation-bounce: bounce 2s infinite;
}

/* ===== Light Mode (Default) ===== */
:root {
    --bg-dark: #ffffff;
    --bg-darker: #f8fafc;
    --bg-card: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
    
    --gradient-dark: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    --border-light: #475569;
    
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --gradient-dark: linear-gradient(135deg, #1e293b, #334155);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== Background Animation (adaptée pour les deux modes) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    z-index: -2;
}

[data-theme="dark"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    opacity: 0.95;
    z-index: -1;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-30px); }
    70% { transform: translateY(-15px); }
    90% { transform: translateY(-4px); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Logo ===== */
.logo-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
}

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

.logo-svg {
    width: 50px;
    height: 50px;
    transition: var(--transition);
    transform: rotate(90deg); /* Position verticale par défaut */
}

.logo-svg:hover {
    transform: rotate(180deg); /* Rotation au survol */
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo span {
    color: var(--secondary-color);
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Language Toggle ===== */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: 6rem; /* Décaler pour faire place au bouton theme */
    z-index: 1000;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

#themeBtn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

#themeBtn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

#themeBtn i {
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Animation de rotation pour l'icône theme */
.theme-rotating {
    animation: spin 0.5s ease-in-out;
}

#langBtn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

#langBtn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== Floating Elements ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1; /* Ensure the container is above the hero but below the main content */
}

.floating-element {
    position: absolute;
    color: #ffd700; /* Example: A bright gold color */
    text-shadow: 0 0 5px hsl(255, 100%, 64%), 0 0 10px #6647ff; /* Adds a vibrant glow */
    animation: float 6s ease-in-out infinite; /* Adds a floating animation */
    opacity: 0.7; /* Ensures full visibility */
    z-index: 2; /* Puts the elements on top of their container */
}

/* Keyframes for the floating animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Floating Chat Icon */
.floating-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.6);
}

/* ===== Hero Section Élégante ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Background avec effet de particules adapté au thème */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.12) 0px, transparent 50%);
    z-index: -1;
    animation: floatParticles 15s ease-in-out infinite;
}

[data-theme="dark"] .hero::before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.18) 0px, transparent 50%);
}

/* Animation des particules d'arrière-plan */
@keyframes floatParticles {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
        opacity: 0.9;
    }
    66% {
        transform: translateY(20px) rotate(240deg);
        opacity: 0.5;
    }
}

/* Image hero avec effet flottant */
.hero-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    background-image: url('hero.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.3));
    animation: floatImage 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(-50%) translateX(0) scale(1) rotate(0deg);
    }
    33% {
        transform: translateY(-52%) translateX(5px) scale(1.02) rotate(1deg);
    }
    66% {
        transform: translateY(-48%) translateX(-5px) scale(0.98) rotate(-1deg);
    }
}

/* Effet de lueur derrière l'image */
.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes pulseGlow {
    from {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Contenu du hero */
.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradient 6s ease infinite, slideInLeft 1s ease-out both;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0;
    animation: slideInUp 1s ease-out 0.5s both;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 1s ease-out 1s both;
}

/* ===== CTA Buttons Élégants ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:not(.secondary-cta) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.cta-button:not(.secondary-cta):hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    backdrop-filter: blur(15px);
}

.secondary-cta:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Effet de lumière qui suit la souris */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                              rgba(255, 255, 255, 0.1) 0%, 
                              transparent 40%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero:hover::after {
    opacity: 1;
}

/* Éléments scintillants */
.hero .twinkle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
    z-index: 1;
}

.hero .twinkle:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 3px;
    height: 3px;
    animation-delay: 0s;
}

.hero .twinkle:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 2px;
    height: 2px;
    animation-delay: 1s;
}

.hero .twinkle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 4px;
    height: 4px;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive pour la hero */
@media (max-width: 1024px) {
    .hero {
        background-position: 80% center;
    }
    
    .hero-image {
        width: 350px;
        height: 350px;
        right: 5%;
    }
    
    .hero-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    
    .hero p {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* ===== Cart Button ===== */
.cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-accent);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.cart-btn i {
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ===== Services Section ===== */
.services {
    padding: 5rem 0;
    animation: slideInUp 1s ease-out;
}

.services h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ===== Statistics ===== */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.stat-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Service Categories ===== */
.service-category {
    margin-bottom: 4rem;
}

.service-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.service-category h3::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== Service Grid ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.6s;
}

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

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
}

.service-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Effet de verre transparent avec blur */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    flex-shrink: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    
}

.service-image i {
    font-size: 1.5rem;
    /* Utilisation de la couleur primaire pour une meilleure intégration */
    color: var(--primary-color);
}


.service-details {
    flex: 1;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.purchase-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

.purchase-indicator i {
    color: var(--success-color);
    font-size: 0.8rem;
}

.purchase-count {
    font-weight: 600;
    color: var(--success-color);
}

/* ===== Service Actions ===== */
.service-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.add-to-cart-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

.subscribe-btn, .order-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

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

.order-btn {
    background: var(--gradient-accent);
}

.order-btn:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: slideInUp 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 10;
}

.close-btn:hover {
    color: var(--error-color);
    transform: rotate(90deg);
}

.modal h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--bg-card);
}

.form-group input[readonly] {
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: not-allowed;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* ===== Cart Modal ===== */
.cart-modal .modal-content {
    max-width: 600px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-darker);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.cart-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cart-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.remove-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== Order Summary ===== */
.order-summary {
    background: var(--bg-darker);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.order-item-price {
    color: var(--success-color);
    font-weight: 600;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-darker);
    border-radius: var(--border-radius-lg);
    margin: 4rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.faq-container {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-about h3 {
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-about p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
        top: 1rem;
        left: 1rem;
    }
    
    .language-toggle {
        top: 1rem;
        right: 4rem; /* Ajuster pour mobile */
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
    }
    
    #langBtn, #themeBtn {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
    
    #langBtn span {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 1rem 0;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .service-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }
    
    .add-to-cart-btn {
        width: 40px;
        height: 40px;
    }
    
    .subscribe-btn, .order-btn {
        flex: 1;
        max-width: 150px;
    }
    
    .statistics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .cart-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .cart-btn i {
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .faq-section {
        padding: 3rem 1rem;
        margin: 2rem 0;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services h2 {
        font-size: 2rem;
    }
    
    .service-category h3 {
        font-size: 1.5rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .service-name {
        font-size: 1rem;
    }
    
    .service-price {
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    .submit-btn {
        padding: 0.75rem 1.5rem;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Focus States ===== */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .floating-elements,
    .language-toggle,
    .cart-btn,
    .social-icons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .services,
    .faq-section {
        page-break-inside: avoid;
    }
}

/* ===== Dark Mode Enhancement ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
    }
}

/* ===== Loading Animation ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Selection Styling ===== */
::selection {
    background: var(--primary-color);
    color: white;
}
/* ===== Toast Notifications ===== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--success-color);
    max-width: 90%;
}

.toast-notification.success {
    border-left-color: var(--success-color);
}

.toast-notification.error {
    border-left-color: var(--error-color);
}

.toast-notification.warning {
    border-left-color: var(--warning-color);
}

.toast-notification.info {
    border-left-color: var(--primary-color);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification i {
    font-size: 1.2rem;
}

.toast-notification.success i {
    color: var(--success-color);
}

.toast-notification.error i {
    color: var(--error-color);
}

.toast-notification.warning i {
    color: var(--warning-color);
}

.toast-notification.info i {
    color: var(--primary-color);
}
/* ===== Téléphones (480px et moins) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1.2rem;
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .language-toggle {
        top: 0.75rem;
        right: 3.5rem;
    }
    
    .theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    #langBtn, #themeBtn {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    #langBtn span {
        display: none;
    }
    
    .hero {
        padding: 4rem 0.75rem 2rem;
        min-height: 80vh;
        text-align: center;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        gap: 0.75rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .services {
        padding: 3rem 0;
    }
    
    .services h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .service-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-item {
        padding: 1.25rem;
    }
    
    .service-name {
        font-size: 1.1rem;
    }
    
    .service-price {
        font-size: 1rem;
    }
    
    .service-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .add-to-cart-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .subscribe-btn, .order-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .statistics {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 3rem 0;
        margin: 2rem 0;
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Ajustements du panier pour mobile */
    .cart-popup-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .cart-btn {
        width: 50px;
        height: 50px;
    }
    
    .cart-count {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .cart-popup {
        width: 280px;
        max-height: 400px;
        bottom: 60px;
        right: -5px;
    }
    
    .cart-popup-header {
        padding: 1rem;
    }
    
    .cart-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .cart-popup-content {
        max-height: 250px;
        padding: 0.75rem;
    }
    
    .cart-popup-item {
        padding: 0.6rem;
    }
    
    .cart-item-info h4 {
        font-size: 0.9rem;
    }
    
    .cart-item-info p {
        font-size: 0.8rem;
    }
    
    .cart-popup-footer {
        padding: 0.75rem 1rem;
    }
    
    .cart-total {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .cart-popup-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view-cart-btn, .checkout-btn {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .floating-chat {
        bottom: 6rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Ajustements des modales pour mobile */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }
    
    .close-btn {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    .submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ===== Téléphones très petits (360px et moins) ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .language-toggle {
        right: 3rem;
    }
    
    .theme-toggle {
        right: 0.5rem;
    }
    
    .hero {
        padding: 3.5rem 0.5rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .cart-popup {
        width: 260px;
        right: -10px;
    }
    
    .service-item {
        padding: 1rem;
    }
}
/* ===== iPad Air and iPad Pro (Portrait and Landscape) ===== */
/* @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) */
/* This is a more classic way to target iPads, but a more modern approach is below */

/* iPad Air and older Pro (Portrait) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .hero {
        padding: 6rem 2rem 4rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .hero-image {
        position: static;
        transform: none;
        width: 400px;
        height: 400px;
        filter: drop-shadow(0 15px 30px rgba(99, 102, 241, 0.2));
    }

    .hero h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .button-group {
        justify-content: center;
    }

    .service-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }

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

/* iPad Pro 11-inch & iPad Air (Landscape) and iPad Pro 12.9-inch (Portrait) */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 3rem;
    }
    
    .hero-image {
        width: 500px;
        height: 500px;
        right: 8%;
    }

    .hero-content {
        max-width: 550px;
    }
    
    .service-grid {
        gap: 2rem;
    }
}


