/* --- 1. Variables et Thème "Noir & Blanc Pro" --- */
:root {
    --bg: #000000; /* Fond noir profond */
    --bg-offset: #111111; /* Gris très foncé (pour les cartes) */
    --text-primary: #FFFFFF; /* Blanc pur */
    --text-secondary: #888888; /* Gris neutre pour sous-titres */
    --border-color: #222222; /* Bordure très subtile */
    
    /* Le seul "accent" est le bouton primaire */
    --accent-primary: #FFFFFF;
    --accent-primary-text: #000000;

    /* NOUVELLE EXCEPTION: Étoiles jaunes */
    --accent-stars: #FFD60A; 

    --radius-md: 99px; /* Boutons pilule */
    --radius-lg: 20px; /* Cartes arrondies */
    --nav-height: 70px; 
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Courbe d'animation "Apple" (Ease-out) */
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- 2. Base et Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark; 
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: var(--nav-height);
    opacity: 0; /* Caché au début, affiché par JS */
    transition: opacity 0.5s var(--ease-out);
    
    /* Typographie "Pro" */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.loading {
    overflow: hidden; /* Empêche le scroll pendant le chargement */
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 160px 0; /* PLUS D'ESPACE */
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em; /* Très Apple */
    color: var(--text-primary); 
}

h1 { font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    margin-bottom: 4rem; /* Plus d'espace sous les titres */
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 2.5rem auto;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    section { padding: 80px 0; }
}

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }

/* --- 3. Pré-chargeur (Splash Screen) --- */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    z-index: 10000;
    display: grid;
    place-items: center;
    transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
    visibility: visible;
    opacity: 1;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    color: var(--text-primary);
    animation: pulse 1.2s infinite ease-in-out;
}
.preloader-logo i {
    width: 48px;
    height: 48px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* --- 4. Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir translucide */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#mobile-menu-btn { display: none; }
.mobile-menu { 
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-offset);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 99; /* Sous la navbar */
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease-out);
}
.mobile-menu.open { 
    display: flex; 
    transform: translateY(0);
}
.mobile-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
}
.mobile-link:hover { background-color: var(--border-color); }


@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    #mobile-menu-btn { display: inline-flex; }
    .nav-actions #mobile-menu-btn { display: inline-flex; }
}

/* --- 5. Boutons (Noir & Blanc) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem; /* Plus fin */
    padding: 10px 20px;
    border: 1px solid var(--text-primary); /* Bordure blanche par défaut */
    border-radius: var(--radius-md); /* Pilule */
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    text-decoration: none;
}
.btn--primary {
    background-color: var(--accent-primary); /* Blanc */
    color: var(--accent-primary-text); /* Noir */
}
.btn--primary:hover {
    background-color: #CCC; /* Gris clair au survol */
    border-color: #CCC;
}
.btn--secondary {
    background-color: transparent;
    color: var(--text-primary); /* Texte blanc */
    border-color: var(--border-color); /* Bordure grise subtile */
}
.btn--secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}
.btn--large {
    padding: 15px 30px;
    font-size: 1rem;
}
.btn--full {
    width: 100%;
}

/* --- 6. Section Hero --- */
.hero {
    background-color: var(--bg);
    text-align: center;
    padding: 120px 0;
}
.hero .highlight {
    color: var(--text-secondary); /* Plus subtil */
}
.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.5rem auto 2.5rem auto;
}

/* --- 7. Sections (Logos, Features, Testimonials, FAQ) --- */
.logos {
    background-color: var(--bg);
    text-align: center;
}
.logos-grid {
    display: grid;
    /* Grille à 5 colonnes */
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.logo-card {
    background-color: var(--bg-offset);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem; /* Moins haut */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .logos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .logos-grid { grid-template-columns: repeat(2, 1fr); }
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* MODIFICATION ICI : Ajout de padding-bottom à la section features pour l'espace */
#features {
    padding-bottom: 200px; /* Augmenter l'espace en bas de la section (avant Témoignages) */
}

.card {
    background-color: var(--bg-offset); /* Fond des cartes */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: border-color 0.3s var(--ease-out);
}
.card:hover {
    border-color: #555; /* Bordure subtile au survol */
}
.card .icon {
    color: var(--text-primary); /* Icônes blanches */
    margin-bottom: 1.5rem;
    width: 32px;
    height: 32px;
}

/* Correction pour l'espacement dans la section Features */
.features-grid .card h3 {
    margin-bottom: 0.5rem; /* Réduire l'espace sous le titre */
}
.features-grid .card p {
    margin-top: 1.5rem; /* Ajouter plus d'espace avant le paragraphe (écartement) */
    padding-top: 0;
}

.testimonials {
    /* REMARQUE: La section Testimonials est sombre, donc un grand padding-bottom sur #features suffit. */
    background-color: var(--bg-offset);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--accent-stars); /* Étoiles jaunes */
    margin-bottom: 1rem;
}
.testimonial-quote {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.testimonial-author {
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- 8. Section Tarifs (Pricing) --- */
.pricing {
    background-color: var(--bg);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-offset); /* Fond plus sombre pour les cartes de prix */
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s var(--ease-out);
}
/* Correction: Animation au survol appliquée à toutes les cartes de prix */
.pricing-card:hover {
    transform: scale(1.03); /* Agrandissement au survol */
}
.pricing-card.highlight {
    border-color: var(--text-primary); /* Bordure blanche pour 'highlight' */
    transform: scale(1.03); /* Même scale que les autres au survol */
}

.highlight-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--text-primary);
    color: var(--bg);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0;
}
.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    width: 100%;
}
.pricing-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.pricing-card li i { color: var(--text-primary); } /* 'check' en blanc */
.pricing-card .btn { margin-top: auto; }

@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { margin-bottom: 1rem; }
    /* Désactiver l'effet de scale sur mobile pour éviter les bugs */
    .pricing-card.highlight, .pricing-card:hover { 
        transform: scale(1); 
    }
}

/* --- 9. F.A.Q. (Accordéon) --- */
.faq { background-color: var(--bg); max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
    /* Reset du bouton */
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;

    /* Style */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}
.faq-question span { text-align: left; }
.faq-icon {
    color: var(--text-secondary);
    transition: transform 0.3s var(--ease-out);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--text-primary); /* Devient blanc */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding-top 0.4s var(--ease-out);
}
.faq-answer p {
    color: var(--text-secondary);
    padding-top: 1rem;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Hauteur suffisante pour la réponse */
}


/* --- 10. Modales (Connexion et Entreprise) --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}
.modal.open {
    opacity: 1;
    pointer-events: auto;
}
.modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal__content {
    position: relative;
    background-color: #111; /* Fond de la modale */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px;
    padding: 2.5rem;
    z-index: 501;
    overflow: hidden; 
}
.modal__content#enterpriseModal .modal__content {
    max-width: 550px;
}

.modal__close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}
.modal__close-btn:hover { color: var(--text-primary); }

/* Étapes du formulaire de connexion */
.step-container {
    position: relative;
    min-height: 350px;
}
.login-step {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    transform: translateX(20px);
}
.login-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.login-step h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.login-step p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}
.google-btn-wrapper {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}
/* #googleLoginBtn { ... } */

.separator {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}
.separator::before, .separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: var(--border-color);
}
.separator::before { left: 0; }
.separator::after { right: 0; }

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

/* CORRECTION: Formulaire Rectangle avec bords arrondis (8px) */
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Bords arrondis stylés */
    background-color: #000; /* Fond plus sombre pour les champs */
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary); /* Focus blanc */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
/* Style pour le champ email désactivé */
.form-group input:disabled {
    background-color: #222;
    color: var(--text-secondary);
}

.success-message {
    text-align: center;
    padding: 2rem 0;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    height: 350px; 
}
.success-message .icon {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* --- 11. Animations (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: var(--ease-out);
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 12. Footer --- */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg);
}
.footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}