* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text-light: #cbd5e1;
    --text-white: #f8fafc;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

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

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

.lang-switch {
    justify-self: end;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.lang-switch:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 3.5rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    background: var(--primary-dark);
}

/* Section commune */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.product-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-radius: 24px;
    padding: 3rem;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.25);
}

.product-card:hover::before {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

.product-card:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.product-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
}

.product-card:hover .product-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.product-card h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--text-white);
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-align: center;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.status-available {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.status-available::before {
    content: '●';
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-coming {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.status-coming::before {
    content: '⏱';
    font-size: 1rem;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    text-align: center;
    height: 5.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-features {
    list-style: none;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
    width: 100%;
    flex-grow: 1;
}

.product-features li {
    padding: 0.8rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
}

.product-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3rem;
    width: 24px;
    height: 24px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.product-link:hover {
    gap: 1.2rem;
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* About Section */
.about {
    background: var(--dark-light);
    border-radius: 30px;
    padding: 4rem;
    margin: 4rem auto 4rem;
    max-width: 1400px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 4rem 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-item span {
    font-size: 2.5rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--dark-light);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-light);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .lang-switch {
        justify-self: end;
    }

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

    .about {
        padding: 2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

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

/* Animation fade in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Logo Miderva dans la navbar */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Logo Fidelis dans la carte produit */
.product-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}