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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.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;
    gap: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #1a1a1a;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.lang-btn img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.lang-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-primary, .btn-secondary {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
}

/* Custom App Store Badge */
.app-store-badge-custom {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    border: 1px solid #444;
}

.app-store-badge-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #111 0%, #444 100%);
}

.app-store-badge-custom.large {
    padding: 12px 24px;
    min-width: 200px;
    max-width: 240px;
    gap: 16px;
}

/* Styles pour les boutons désactivés */
.btn-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-disabled .app-store-badge-custom {
    background: linear-gradient(135deg, #666 0%, #999 100%);
    border: 1px solid #777;
}

.btn-disabled .app-store-badge-custom:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #666 0%, #999 100%);
}

.badge-icon {
    font-size: 2rem;
    line-height: 1;
}

.app-store-badge-custom.large .badge-icon {
    font-size: 2.5rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1;
}

.app-store-badge-custom.large .badge-small {
    font-size: 0.8rem;
}

.badge-large {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.app-store-badge-custom.large .badge-large {
    font-size: 1.3rem;
}

.btn-primary {
    text-decoration: none;
    display: inline-block;
}

.store-badge {
    height: 60px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    /* Fallback styling si l'image n'existe pas */
    background: #000;
    color: white;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 180px;
}

/* Badge temporaire en CSS si l'image n'est pas trouvée */
.store-badge[src*="app-store-badge.png"]::before {
    content: "📱 Télécharger sur l'App Store";
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary {
    color: #667eea;
    padding: 16px 32px;
    border: 2px solid #667eea;
    background: white;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
    z-index: 5;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

.screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 10;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
    background: #f8fafc;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    justify-items: center;
}

.screenshot-item {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
    text-align: center;
    max-width: 320px;
}

.screenshot-item:hover {
    transform: translateY(-10px);
}

.screenshot-phone-mockup {
    position: relative;
    width: 200px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto 30px;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.screenshot-item:nth-child(2) .screenshot-phone-mockup {
    transform: rotate(1deg);
}

.screenshot-item:nth-child(3) .screenshot-phone-mockup {
    transform: rotate(-1deg);
}

.screenshot-item:hover .screenshot-phone-mockup {
    transform: rotate(0deg) scale(1.05);
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.screenshot-caption {
    padding: 0;
    background: transparent;
}

.screenshot-caption h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.screenshot-caption p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.download-btn {
    display: inline-block;
    text-decoration: none;
}

.store-badge-large {
    height: 80px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.store-badge-large:hover {
    transform: scale(1.1);
}

.download-info {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.25rem;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* Legal Pages Styles */
.legal-page {
    padding: 120px 0 80px;
    background: #ffffff;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-content section {
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.legal-content p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-content ul {
    color: #444;
    line-height: 1.7;
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.back-link {
    margin-top: 50px;
    text-align: center;
}

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

/* Responsive for legal pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-content {
        padding: 0 15px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.2rem;
    }
    
    .legal-content ul {
        margin-left: 15px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a:not(.cta-button) {
        display: none;
    }
    
    .language-switcher {
        display: flex;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .cta-button {
        display: block;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .app-store-badge-custom {
        min-width: 160px;
        padding: 6px 12px;
    }
    
    .app-store-badge-custom.large {
        min-width: 160px;
        max-width: 180px;
        padding: 8px 16px;
    }
    
    .badge-icon {
        font-size: 1.5rem;
    }
    
    .app-store-badge-custom.large .badge-icon {
        font-size: 2rem;
    }
    
    .badge-small {
        font-size: 0.6rem;
    }
    
    .badge-large {
        font-size: 0.9rem;
    }
    
    .app-store-badge-custom.large .badge-large {
        font-size: 1.1rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        padding: 30px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .screenshot-phone-mockup {
        width: 160px;
        height: 320px;
        padding: 12px;
        border-radius: 25px;
    }
    
    .screenshot-img {
        border-radius: 18px;
    }
    
    .screenshot-caption h4 {
        font-size: 1.2rem;
    }
    
    .screenshot-caption p {
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}

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

.feature-card,
.screenshot-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.cta-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.language-switcher-floating {
    display: none;
}

@media (max-width: 768px) {
    .language-switcher {
        display: none !important;
    }
    .language-switcher-floating {
        display: flex;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 2000;
        background: rgba(255,255,255,0.95);
        border-radius: 24px;
        box-shadow: 0 4px 16px rgba(102,126,234,0.15);
        padding: 6px 10px;
        gap: 8px;
        border: 1px solid #eee;
        transition: box-shadow 0.2s;
    }
    .lang-btn-floating {
        background: none;
        border: none;
        padding: 0 4px;
        font-size: 1.6rem;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s;
        box-shadow: none;
    }
    .lang-btn-floating:focus,
    .lang-btn-floating.active {
        background: #667eea;
        color: white;
    }
}
