/**
 * Invokap Factor - Landing Page Styles
 * Modern, Professional Design
 */

/* ===== NAVBAR ===== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

/* Pages internes : navbar lisible dès le chargement (fond clair, texte sombre) */
body.page-inner .navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}
body.page-inner .navbar .nav-link {
    color: var(--text-primary) !important;
}
body.page-inner .navbar .nav-link:hover {
    color: var(--primary) !important;
}
body.page-inner .navbar .logo-light {
    display: none !important;
}
body.page-inner .navbar .logo-dark {
    display: flex !important;
}
body.page-inner .navbar .navbar-actions .btn-ghost {
    color: var(--text-primary) !important;
}
body.page-inner .navbar .nav-lang-btn {
    color: var(--text-primary) !important;
}
body.page-inner .navbar .btn-outline-light {
    color: var(--primary) !important;
    border-color: var(--primary);
}
body.page-inner .navbar .btn-outline-light:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
    border-color: var(--primary);
}

/* Compense la navbar fixed sur les pages internes */
body.page-inner main {
    padding-top: 92px;
}

/* Bandeau bleu type Invokap pour les pages internes (padding-top pour ne pas passer sous la navbar fixed) */
.page-hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 5rem;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero .page-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.page-hero .page-hero-lead {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 640px;
}

/* Table dans les pages (tarifs) */
.section .table th {
    background: var(--bg-body);
    color: var(--text-primary);
    font-weight: 600;
}
.section .table td {
    color: var(--text-secondary);
    vertical-align: middle;
}

.navbar.scrolled .nav-link {
    color: var(--text-primary) !important;
}

.navbar.scrolled .logo-light {
    display: none;
}

.navbar.scrolled .logo-dark {
    display: flex !important;
    align-items: center;
}

.navbar-brand img {
    height: 45px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 38px;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-light) !important;
}

.navbar-actions .btn-ghost {
    color: white;
    background: transparent;
    border: none;
}

.navbar.scrolled .navbar-actions .btn-ghost {
    color: var(--text-primary);
}

.navbar-actions .btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.5rem 1.5rem;
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.5);
    transform: translateY(-1px);
}

/* Language switcher in navbar */
.nav-lang-btn {
    color: white !important;
    padding: 0.25rem 0.5rem;
}

.navbar.scrolled .nav-lang-btn {
    color: var(--text-primary) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-sm);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta .btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: none;
    box-shadow: var(--shadow-lg);
}

.hero-cta .btn-light:hover {
    background: var(--bg-body);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-cta .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.hero-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-image-block {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 420px;
    width: 100%;
}

.hero-main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-float-card.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    bottom: 15%;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.info { background: var(--info-light); color: var(--info); }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

/* ===== HOW IT WORKS ===== */
.steps-container {
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step-card:last-child::after {
    display: none;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== BENEFITS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefit-icon.gradient {
    background: var(--gradient-primary);
    color: white;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.benefit-desc {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Blocs avantages : hauteur uniforme */
.advantage-block {
    min-height: 100px;
}

/* Cartes tarifs : hauteur uniforme, bouton aligné en bas */
.pricing-card {
    display: flex;
}
.pricing-card .card-body {
    min-height: 0;
}
.pricing-card .flex-grow-1 {
    min-height: 8rem;
}
/* Placeholder pour aligner les cartes avec/sans badge "Recommandé" */
.pricing-card-header {
    min-height: 1.6rem;
}

/* OptiBFR image : fond uni pour zones transparentes (évite carreaux) */
.optibfr-img-wrapper {
    background: #f8f9fa;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
}
.optibfr-img-wrapper img {
    display: block;
    vertical-align: middle;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-primary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-size: var(--font-size-lg);
    border: none;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-info small {
    color: var(--text-muted);
}

/* ===== SIMULATOR ===== */
.simulator-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: white;
}

.simulator-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.simulator-input label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.simulator-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.simulator-input input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    appearance: none;
    outline: none;
    margin-bottom: 1.5rem;
}

.simulator-input input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.simulator-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
}

.simulator-result-label {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.simulator-result-value {
    font-size: 3rem;
    font-weight: 800;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-contact:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

.footer-bottom {
    text-align: center;
    font-size: var(--font-size-sm);
}

.footer-bottom .disclaimer {
    font-size: var(--font-size-xs);
    opacity: 0.6;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .step-card::after {
        display: none;
    }

    .navbar-collapse {
        background: var(--bg-card);
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar-collapse .nav-link {
        color: var(--text-primary) !important;
    }

    .navbar-actions {
        flex-direction: column;
        gap: 0.5rem !important;
        margin-top: 1rem;
    }

    .navbar-actions .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }

    .stats-bar {
        margin-top: -40px;
        padding: 1.5rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

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

    .simulator-section {
        padding: 2rem;
    }

    .hero-float-card {
        display: none;
    }
}
