/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000000;
    --primary-dark: #111827;
    --secondary: #374151;
    --accent: #6b7280;
    --dark: #000000;
    --darker: #111827;
    --light: #f9fafb;
    --gray: #6b7280;
    --gray-light: #d1d5db;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

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

body.dark {
    background: var(--darker);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 80rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .header {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.dark .logo {
    color: var(--white);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--gradient);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--gray);
}

.dark .btn-outline {
    border-color: var(--gray);
    color: var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    z-index: -1;
}

.dark .hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-content {
    text-align: center;
    max-width: 64rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.dark .hero-subtitle {
    color: var(--gray-light);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

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

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.dark .stat-label {
    color: var(--gray-light);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    width: 8rem;
    height: 8rem;
    background: var(--primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    width: 6rem;
    height: 6rem;
    background: var(--secondary);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-3 {
    width: 4rem;
    height: 4rem;
    background: var(--accent);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* Brands Section */
.brands {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--light);
}

.dark .brands {
    background: rgba(15, 23, 42, 0.5);
}

.brands-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--gray);
}

.brands-carousel {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    padding: 0 2rem;
}

.brand-logo {
    height: 2rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.brands-container {
    overflow: hidden;
    position: relative;
}

.brands-container::before,
.brands-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 2;
}

.brands-container::before {
    left: 0;
    background: linear-gradient(to right, var(--light), transparent);
}

.brands-container::after {
    right: 0;
    background: linear-gradient(to left, var(--light), transparent);
}

.dark .brands-container::before {
    background: linear-gradient(to right, var(--darker), transparent);
}

.dark .brands-container::after {
    background: linear-gradient(to left, var(--darker), transparent);
}

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

/* Features Section */
.features {
    padding: 8rem 2rem;
    background: var(--white);
}

.dark .features {
    background: var(--darker);
}

.features-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 6rem;
}

.features-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

.dark .features-subtitle {
    color: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.feature-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .feature-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.dark .feature-title {
    color: var(--white);
}

.feature-description {
    color: var(--gray);
    line-height: 1.7;
}

.dark .feature-description {
    color: var(--gray-light);
}

/* Globe Section */
.globe-section {
    padding: 8rem 2rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.dark .globe-section {
    background: var(--darker);
}

.globe-container {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.globe-header {
    margin-bottom: 4rem;
}

.globe-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.globe-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

.dark .globe-subtitle {
    color: var(--gray-light);
}

#globeViz {
    width: 100%;
    height: 600px;
    border-radius: 1rem;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.dark #globeViz {
    background: rgba(15, 23, 42, 0.5);
}

.globe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray);
    font-size: 1.125rem;
}

.dark .globe-loading {
    color: var(--gray-light);
}

.globe-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.language-count, .coverage-info {
    text-align: center;
}

.count-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.count-label, .coverage-text {
    color: var(--gray);
    font-size: 0.875rem;
}

.dark .count-label, .dark .coverage-text {
    color: var(--gray-light);
}

.globe-bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.globe-bg-1 {
    width: 10rem;
    height: 10rem;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.globe-bg-2 {
    width: 8rem;
    height: 8rem;
    background: var(--secondary);
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.globe-bg-3 {
    width: 6rem;
    height: 6rem;
    background: var(--accent);
    bottom: 10%;
    left: 20%;
    animation-delay: 6s;
}

/* Demo Section */
.demo {
    padding: 8rem 2rem;
    background: var(--light);
    text-align: center;
}

.dark .demo {
    background: rgba(15, 23, 42, 0.5);
}

.demo-content {
    max-width: 48rem;
    margin: 0 auto;
}

.demo-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.dark .demo-subtitle {
    color: var(--gray-light);
}

.demo-video {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.demo-placeholder {
    width: 100%;
    height: 300px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    background: var(--gradient);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 48rem;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.cta-btn-primary {
    background: white;
    color: var(--primary);
}

.cta-btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    background: var(--dark);
    color: var(--white);
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--gray-light);
    line-height: 1.7;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    color: var(--gray-light);
}

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

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom {
    max-width: 80rem;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .stat-number {
        font-size: 2rem;
    }

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

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

    .brands-carousel {
        gap: 2rem;
    }

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

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

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

    .cta-actions {
        flex-direction: column;
    }

    .globe-info {
        flex-direction: column;
        gap: 2rem;
    }
}

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

/* ==========================================
   FIX RESPONSIVE TABLEAU COMPARAISON
   ========================================== */

/* Mobile: Convertir le tableau en cards empilées */
@media (max-width: 768px) {
    /* Masquer le tableau natif sur mobile */
    .comparison table {
        display: block;
    }
    
    .comparison thead {
        display: none; /* Cache les headers sur mobile */
    }
    
    .comparison tbody {
        display: block;
    }
    
    .comparison tr {
        display: block;
        margin-bottom: 2rem;
        border: 2px solid var(--border);
        border-radius: 1rem;
        overflow: hidden;
        background: white;
    }
    
    .comparison td {
        display: block;
        padding: 1rem 1.5rem !important;
        text-align: left !important;
        border: none !important;
    }
    
    /* Ajouter des labels avant chaque cellule */
    .comparison td:nth-child(2)::before {
        content: "💜 Ora";
        display: block;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    .comparison td:nth-child(3)::before {
        content: "🏢 Solutions traditionnelles";
        display: block;
        font-weight: 700;
        color: var(--gray);
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    .comparison td:nth-child(4)::before {
        content: "💰 Économies";
        display: block;
        font-weight: 700;
        color: var(--success);
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Fix pour la ligne "1000h/mois" avec colspan */
    .comparison tr:last-child td[colspan] {
        text-align: center !important;
        padding: 2rem 1rem !important;
    }
    
    .comparison tr:last-child td[colspan]::before {
        display: none; /* Pas de label sur la cellule fusionnée */
    }
    
    .comparison tr:last-child td[colspan] p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Supprimer le <br> sur mobile */
    .comparison tr:last-child td[colspan] p br {
        display: none;
    }
    
    .comparison tr:last-child td[colspan] .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Réduire les tailles de police sur mobile */
    .comparison td > div:first-child {
        font-size: 1.5rem !important; /* Prix */
    }
    
    .comparison td > div:nth-child(2) {
        font-size: 0.75rem !important; /* Sous-texte */
    }
}

/* Très petits écrans (< 480px) */
@media (max-width: 480px) {
    .comparison td {
        padding: 1rem !important;
    }
    
    .comparison td > div:first-child {
        font-size: 1.25rem !important;
    }
}

/* ===== ACCESSIBILITÉ ===== */

/* Skip link visible au focus clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible pour navigation clavier */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Boutons accessibles */
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Amélioration du contraste pour les liens */
.nav-links a:focus {
    color: var(--primary);
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Amélioration du contraste pour les boutons de langue */
.lang-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Amélioration de l'accessibilité des formulaires */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Amélioration du contraste pour les liens du footer */
.footer-links a:focus {
    color: var(--white);
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 4px;
}
