/* --- Variables & Reset --- */
:root {
    --primary-color: #2563eb; /* Bleu Royal */
    --secondary-color: #1e293b; /* Gris Foncé */
    --accent-color: #f59e0b; /* Or/Jaune Vif */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-color: #334155;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- Navigation --- */
.navbar {
    background: var(--white);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.logo span { color: var(--primary-color); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary-color); }

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}
.btn-nav:hover { background: #1d4ed8; }

/* Burger Menu (Mobile) */
.burger { display: none; cursor: pointer; }
.burger div {
    width: 25px; height: 3px; background-color: var(--secondary-color);
    margin: 5px; transition: var(--transition);
}

/* --- Hero Section (MODIFIÉ POUR LA VIDÉO) --- */
.hero {
    min-height: 100vh; /* Pleine hauteur de la fenêtre */
    padding: 0;
    display: flex;
    align-items: center; /* Centrer verticalement le contenu texte */
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--secondary-color); /* Couleur de fallback si la vidéo ne charge pas */
    text-align: center; /* Centrer le texte pour l'effet full-width */
}

/* Positionnement et style de la vidéo en arrière-plan */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que la vidéo couvre tout l'écran */
    filter: brightness(0.6); /* Assombrir légèrement la vidéo */
}

/* Couche d'obscurcissement pour améliorer la lisibilité du texte */
.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Opacité sombre */
    z-index: 2;
}

/* Contenu texte du Hero, placé au-dessus de la vidéo */
.hero-content {
    z-index: 3; /* Placer au-dessus de la vidéo et de l'overlay */
    position: relative;
    max-width: 800px;
}

.hero-text {
    color: var(--white); /* Rendre le texte lisible sur le fond sombre */
}

.hero-text h1 {
    font-size: 4rem; /* Taille augmentée */
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}
.highlight { color: var(--accent-color); } /* Garder l'accent */
.hero-text p {
    margin-bottom: 40px;
    font-size: 1.25rem;
    color: #cbd5e1;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center; /* Centrer les boutons */
}

/* Ajuster le bouton outline pour le fond sombre */
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--white); /* Bordure blanche */
    color: var(--white);
}
.btn-outline:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}
.btn-dark { background: var(--secondary-color); color: var(--white); }
.btn-dark:hover { background: #334155; }

/* --- Sections Communes --- */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--secondary-color); }

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Steps (Comment ça marche) --- */
.steps { background: var(--white); }
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.step { flex: 1; text-align: center; min-width: 250px; }
.step-number {
    display: inline-block;
    width: 50px; height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* --- Products (Prix) --- */
.products { background: var(--light-bg); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}
.price { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; }
.product-features { margin-bottom: 30px; text-align: left; padding-left: 20px; }
.product-features li { margin-bottom: 10px; font-size: 0.9rem; }
.product-features i { color: #10b981; margin-right: 10px; }

.badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.badge.premium { background: var(--secondary-color); }

/* --- Section Partenaires (Carrousel Infini) --- */
.partners-section {
    padding: 50px 0;
    background: var(--white);
    overflow: hidden;
    border-bottom: 1px solid #eee;
}
.partners-intro {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logos-slider {
    display: flex;
    width: 200%; /* Pour permettre le défilement */
}
.logos-slide {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 50%;
    animation: scroll 20s linear infinite;
}
.partner-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- Section Vidéo Démo (NON HERO) --- */
.video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    cursor: pointer;
}
.video-overlay { position: relative; }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 2rem;
    box-shadow: 0 0 0 10px rgba(255,255,255,0.3);
    transition: var(--transition);
}
.video-wrapper:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }

/* --- Section Témoignages --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.stars { color: var(--accent-color); margin-bottom: 15px; }
.testimonial-card p { font-style: italic; margin-bottom: 20px; font-size: 0.95rem; }
.user-info { display: flex; align-items: center; gap: 15px; }
.user-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.user-info h4 { font-size: 1rem; color: var(--secondary-color); }
.user-info span { font-size: 0.8rem; color: #64748b; }

/* --- Section FAQ (Accordéon) --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}
.faq-question:hover { background: #f1f5f9; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--white);
    color: #475569;
}
.faq-item.active .faq-answer {
    max-height: 150px; /* Ajuster si le texte est long */
    padding: 0 20px 20px 20px;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* --- Footer --- */
footer { background: var(--secondary-color); color: var(--white); padding: 60px 0 20px; }
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { margin-bottom: 20px; color: var(--accent-color); }
.footer-col a:hover { color: var(--accent-color); }
.social-links a { font-size: 1.5rem; margin-right: 15px; transition: var(--transition); }
.social-links a:hover { color: var(--accent-color); transform: scale(1.1); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; }

/* --- Responsive Media Queries --- */
@media screen and (max-width: 900px) {
    .hero { min-height: 70vh; } /* Réduire un peu la hauteur sur mobile */
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { font-size: 1rem; }
    .hero-btns { flex-direction: column; align-items: center; }

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

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px; /* Hauteur de la barre de navigation */
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding-top: 30px;
    }
    .nav-links li { opacity: 0; margin: 15px 0; }
    .nav-links a { color: var(--secondary-color); font-size: 1.1rem; }
    .btn-nav { margin-top: 15px; }

    .burger { display: block; }
    
}

/* JS classes for mobile menu */
.nav-active { transform: translateX(0%); }

.burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

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