/* Gestion du multi-langues */
.fr, .en, .de, .es, .it {
    display: none !important;
}

body.lang-fr .fr,
body.lang-en .en,
body.lang-de .de,
body.lang-es .es,
body.lang-it .it {
    display: unset !important;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.lang-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: var(--text-main);
    background-color: var(--bg-panel);
    border-color: var(--border-color);
}

.flag-icon {
    width: 14px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Animations de défilement (Scroll Reveal) */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translate(0, 0); }
}

@keyframes revealRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translate(0, 0); }
}

.reveal.active {
    animation: revealUp 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

.reveal-left.active {
    animation: revealLeft 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

.reveal-right.active {
    animation: revealRight 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

/* Délais en cascade pour les cartes */
.delay-1.active { animation-delay: 0.15s; }
.delay-2.active { animation-delay: 0.3s; }
.delay-3.active { animation-delay: 0.45s; }

/* Variables de thème (Inspiré de l'application) */
:root {
    --bg-dark: #1c1c1c;
    --bg-panel: #272727;
    --bg-panel-hover: #333333;
    --accent-blue: #0078D7;
    --accent-blue-hover: #005a9e;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #3f3f3f;
    --font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 120, 215, 0.15);
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* En-tête */
.header {
    background-color: rgba(28, 28, 28, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Sélecteur de langue */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-btns-desktop {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-select-mobile {
    display: none;
    background-color: var(--bg-panel);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f0f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 30px;
}

.lang-select-mobile:hover {
    background-color: var(--bg-panel-hover);
}

.lang-select-mobile option {
    background-color: var(--bg-dark);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.lang-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: var(--text-main);
    background-color: var(--bg-panel);
    border-color: var(--border-color);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Section Héro */
.hero {
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.app-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.app-title-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 120, 215, 0.4));
}

.app-name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    padding-bottom: 10px;
    background: linear-gradient(135deg, #00d2ff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 215, 0.4);
}

.store-icon {
    flex-shrink: 0;
}

.hero-visual {
    flex: 1.2;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover .app-screenshot,
.feature-image:hover .app-screenshot {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Section Fonctionnalités */
.features {
    padding: 80px 0 120px;
    background-color: #161616;
}

/* Fonctionnalités Détaillées */
.detailed-features {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-row-title {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--accent-blue);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.feature-list li strong {
    color: var(--text-main);
}

.feature-image {
    flex: 1;
}

/* Section Contact */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-panel) 0%, #111 100%);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 600px;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-panel-hover);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pied de page */
.footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.sys-req-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(63, 63, 63, 0.5);
    border-radius: var(--radius-md);
    padding: 15px 200px;
}

.sys-req-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sys-req-text {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.4;
}

.sys-req-text strong {
    color: #aaa;
    font-weight: 600;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.privacy-details {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.privacy-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: color 0.2s ease;
}

.privacy-summary::-webkit-details-marker {
    display: none;
}

.summary-arrow {
    transition: transform 0.3s ease;
}

.privacy-details[open] .summary-arrow {
    transform: rotate(180deg);
}

.privacy-policy-content {
    margin-top: 16px;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(63, 63, 63, 0.5);
    border-radius: var(--radius-md);
    color: #888;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: justify;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bouton Retour en haut */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    -webkit-tap-highlight-color: transparent;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .app-screenshot {
        transform: none;
        margin-top: 0px;
    }

    .hero-visual:hover .app-screenshot,
    .feature-image:hover .app-screenshot {
        transform: none;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 50px;
    }
    
    .feature-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .lang-btns-desktop {
        display: none;
    }
    
    .lang-select-mobile {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .app-title-group {
        justify-content: center;
    }
    
    .app-title-logo {
        width: 45px;
        height: 45px;
    }
    
    .app-name {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
}
