/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Variables CSS pour les couleurs de base - Mode clair par défaut */
:root {
    --primary-color: #FF9900;      /* Orange principal */
    --secondary-color: #12b2df;    /* Bleu secondaire */
    --accent-color: #ff8800;       /* Orange accent */
    --background-dark: #ffffff;    /* Blanc */
    --background-light: #f8f9fa;   /* Gris très clair */
    --text-primary: #000000;       /* Noir */
    --text-secondary: #6c757d;     /* Gris foncé */
    --success-color: #4CAF50;      /* Vert succès */
    --error-color: #f44336;        /* Rouge erreur */
}

/* Mode sombre */
[data-theme="dark"] {
    --background-dark: #000000;    /* Noir */
    --background-light: #1a1a1a;   /* Gris foncé */
    --text-primary: #ffffff;       /* Blanc */
    --text-secondary: #cccccc;     /* Gris clair */
}

/* Transition pour le changement de thème - optimisé */
.navbar, .nav-menu, .theme-toggle-btn, .hamburger {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    padding: 20px;
}

.splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    animation: logoAppear 1s ease-out;
}

.splash-logo i {
    font-size: 3rem;
    animation: logoRotate 2s ease-in-out infinite;
}

.splash-logo .logo-img {
    height: 250px;
    width: auto;
    object-fit: contain;
    animation: logoRotate 2s ease-in-out infinite;
}

@keyframes logoAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    transition: background-color 0.3s ease;
    will-change: background-color;
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.95);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
}

.nav-logo .logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

@keyframes logoScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Theme Toggle Button */
.theme-toggle {
    margin-right: 20px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

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

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
}

.floating-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.bubble:nth-child(even) {
    background: rgba(18, 178, 223, 0.1);
}

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

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

.bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.bubble:nth-child(5) {
    width: 70px;
    height: 70px;
    top: 70%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.highlight {
    color: var(--primary-color);
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--background-dark);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3);
}

.cta-button.secondary {
    background: linear-gradient(135deg, var(--secondary-color), #0d6b7a);
    color: var(--background-dark);
}

/* Store Buttons */
.store-button {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-badge {
    height: 60px;
    width: 180px;
    display: block;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.store-button:hover .store-badge {
    transform: scale(1.05);
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.pulse-animation.secondary {
    animation: pulseSecondary 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 153, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}

@keyframes pulseSecondary {
    0% { box-shadow: 0 0 0 0 rgba(18, 178, 223, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(18, 178, 223, 0); }
    100% { box-shadow: 0 0 0 0 rgba(18, 178, 223, 0); }
}

/* Phone Mockup */
.hero-visual {
    animation: slideInRight 1s ease-out;
}

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

.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.app-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-bar {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

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

.search-bar i {
    color: var(--primary-color);
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    flex: 1;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category.active {
    background: var(--primary-color);
    color: var(--background-dark);
}

.category:hover {
    background: rgba(255, 153, 0, 0.3);
}

.category.secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
}

.category.secondary:hover {
    background: rgba(18, 178, 223, 0.3);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light), #e9ecef);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item:nth-child(even) i {
    color: var(--secondary-color);
}

.floating-phone {
    display: flex;
    justify-content: center;
    animation: phoneRotate 4s ease-in-out infinite;
}

@keyframes phoneRotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(10deg); }
}

.floating-phone img {
    max-width: 300px;
}

.floating-phone img:hover {
    transition: box-shadow 0.3s ease;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: linear-gradient(135deg, var(--background-light), #ffffff);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, var(--background-light), #2a2a2a);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:nth-child(even) {
    background: linear-gradient(135deg, var(--background-light), #ffffff);
    border-left: 3px solid var(--secondary-color);
}

[data-theme="dark"] .feature-card:nth-child(even) {
    background: linear-gradient(135deg, var(--background-light), #2a2a2a);
}

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

.feature-card:nth-child(even)::before {
    background: linear-gradient(90deg, transparent, rgba(18, 178, 223, 0.1), transparent);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 153, 0, 0.2);
}

.feature-card:nth-child(even):hover {
    box-shadow: 0 20px 60px rgba(18, 178, 223, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--background-dark);
    animation: iconBounce 2s ease-in-out infinite;
}

.feature-card:nth-child(even) .feature-icon {
    background: linear-gradient(135deg, var(--secondary-color), #0d6b7a);
    color: var(--background-dark);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

/* How it works Section */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light), #e9ecef);
}

[data-theme="dark"] .how-it-works {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background-dark);
    z-index: 2;
    animation: numberPulse 2s ease-in-out infinite;
}

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

.timeline-content {
    flex: 1;
    padding: 0 40px;
    text-align: center;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light), #e9ecef);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.testimonial-slide.active {
    display: block;
}

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

.testimonial-content {
    background: linear-gradient(135deg, var(--background-light), #ffffff);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

[data-theme="dark"] .testimonial-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-stars {
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .dot {
    background: rgba(255, 255, 255, 0.3);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--background-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-form {
    background: linear-gradient(135deg, var(--background-light), #ffffff);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .contact-form {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .form-group input {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .form-group input:focus {
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--background-dark);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.3);
}

.success-message {
    display: none;
    align-items: center;
    gap: 10px;
    color: #4CAF50;
    font-weight: 600;
    margin-top: 20px;
    animation: slideInUp 0.5s ease-out;
}

.error-message {
    display: none;
    align-items: center;
    gap: 10px;
    color: #f44336;
    font-weight: 600;
    margin-top: 20px;
    animation: slideInUp 0.5s ease-out;
}

.error-message i {
    font-size: 1.2rem;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--background-light), #e9ecef);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%2312b2df" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: grainMove 20s linear infinite;
}

@keyframes grainMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-logo .logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

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

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

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

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

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px) rotate(360deg);
}

/* Styles pour le compteur de visites */
.visit-counter-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visit-counter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 153, 0, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .visit-counter-item {
    background: rgba(255, 255, 255, 0.05);
}

.visit-counter-item:hover {
    background: rgba(255, 153, 0, 0.05);
    border-color: rgba(255, 153, 0, 0.2);
    transform: translateY(-2px);
}

.visit-counter-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.visit-counter-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.visit-counter-item span span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

/* Animation pour le compteur */
@keyframes counterPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.visit-counter-item:hover span span {
    animation: counterPulse 0.6s ease-in-out;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.separator {
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Responsive pour les liens légaux */
@media (max-width: 768px) {
    .footer-bottom-content {
        gap: 10px;
    }
    
    .legal-links {
        gap: 8px;
    }
    
    .legal-link {
        font-size: 0.8rem;
    }
    
    .separator {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .legal-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .separator {
        display: none;
    }
}

/* Pages légales */
.legal-content {
    padding: 120px 0 60px;
    background: var(--background-dark);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
}

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

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

.legal-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--background-light);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 20px 0 15px;
}

.legal-section p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-section li {
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.6;
}

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

/* Responsive pour les pages légales */
@media (max-width: 768px) {
    .legal-content {
        padding: 100px 0 40px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-section {
        padding: 15px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}

/* Navigation mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
        will-change: left;
    }

    [data-theme="dark"] .nav-menu {
        background-color: rgba(0, 0, 0, 0.95);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu a {
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 600;
        padding: 10px 20px;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        color: var(--primary-color);
        background: rgba(255, 153, 0, 0.1);
        border-radius: 10px;
    }

    .theme-toggle {
        margin-right: 10px;
    }

    .theme-toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-controls {
        gap: 10px;
    }

    .theme-toggle {
        display: flex;
    }

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        padding-left: 80px;
        text-align: left;
    }
    
    .phone-screen {
        width: 240px;
        height: 480px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .phone-screen {
        width: 200px;
        height: 400px;
        padding: 15px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .testimonial-content {
        padding: 30px 20px;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 10px;
    }

    .splash-logo {
        font-size: 2rem;
    }

    .splash-logo i {
        font-size: 2.5rem;
    }

    .splash-logo .logo-img {
        height: 100px;
    }

    .splash-loading p {
        font-size: 0.8rem;
    }

    .loading-bar {
        width: 200px;
        height: 4px;
    }

    .nav-logo .logo-img {
        height: 50px;
    }

    .footer-logo .logo-img {
        height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .store-badge {
        height: 50px;
        width: 150px;
    }

    .nav-controls {
        gap: 8px;
    }

    .theme-toggle-btn {
        padding: 8px;
    }

    .splash-logo .logo-img {
        height: 80px;
    }

    .splash-loading p {
        font-size: 0.7rem;
    }

    .loading-bar {
        width: 150px;
        height: 3px;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

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

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animations supplémentaires */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Animation de chargement */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animation de pulsation pour les éléments importants */
.pulse-important {
    animation: pulseImportant 2s ease-in-out infinite;
}

@keyframes pulseImportant {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 153, 0, 0);
    }
}

/* Animation de rebond pour les icônes */
.bounce-icon {
    animation: bounceIcon 1s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animation de rotation pour les éléments */
.rotate-slow {
    animation: rotateSlow 10s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation de fade-in progressif */
.fade-in-progressive > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInProgressive 0.6s ease-out forwards;
}

.fade-in-progressive > *:nth-child(1) { animation-delay: 0.1s; }
.fade-in-progressive > *:nth-child(2) { animation-delay: 0.2s; }
.fade-in-progressive > *:nth-child(3) { animation-delay: 0.3s; }
.fade-in-progressive > *:nth-child(4) { animation-delay: 0.4s; }
.fade-in-progressive > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInProgressive {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de hover pour les cartes */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 153, 0, 0.15);
}

/* Animation de focus pour les inputs */
.input-focus {
    transition: all 0.3s ease;
}

.input-focus:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* Animation de succès */
.success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
