/* 
 * NDS - Next Digital Solution 
 * Custom CSS
 */

 :root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #3b82f6; /* Vibrant Blue */
    --primary-hover: #2563eb;
    --secondary: #1f2937;
    --border-color: #333333;
    --card-bg: #111111;
    --glow-color: rgba(59, 130, 246, 0.4);
    
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

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

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #374151;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

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

.white-outline {
    border-color: #fff;
}
.white-outline:hover {
    background-color: #fff;
    color: var(--bg-color);
}

.btn-full {
    width: 100%;
}

.glow-effect {
    box-shadow: 0 0 20px var(--glow-color);
}
.glow-effect:hover {
    box-shadow: 0 0 30px var(--glow-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px; /* Adjust based on actual logo */
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(5,5,5,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-img {
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    max-width: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 1;
}

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

/* Sections Common */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.step-icon {
    color: var(--primary);
    margin-bottom: 20px;
    margin-top: 10px;
}

.step-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.check-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.02);
}

.premium-card {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(17,17,17,1) 0%, rgba(20,30,50,1) 100%);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 40px;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features {
    list-style: none;
    margin-bottom: 40px;
}

.features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ddd;
}

.features li span {
    color: var(--primary);
    font-weight: bold;
}

/* Comparison Section */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.comp-box {
    padding: 40px;
    border-radius: 16px;
}

.old-way {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.new-way {
    background: rgba(52, 199, 89, 0.05);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.comp-box h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.comp-box ul {
    list-style: none;
}

.comp-box li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cross {
    color: #ff3b30;
    font-weight: bold;
}

.check {
    color: #34c759;
    font-weight: bold;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #ccc;
    margin-bottom: 30px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #111 0%, rgba(59,130,246,0.2) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-container p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item .icon {
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
    text-align: center;
}

.social-contact-link {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.social-contact-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    background: #080808;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-logo .dot {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 380px;
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #e5e7eb;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    z-index: 2001;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.video-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #0d0d0d;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.vimeo-direct-link {
    color: var(--primary);
    font-weight: 500;
}

.vimeo-direct-link:hover {
    text-decoration: underline;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .pricing-grid,
    .comparison-container,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: flex;
        gap: 10px;
        margin-right: 15px; /* Spacing before hamburger */
    }
    
    .nav-cta .btn-outline {
        display: none; /* Hide 'Nous contacter' on mobile */
    }
    
    .nav-cta .btn {
        width: auto !important; /* Prevent 100% width on navbar button */
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero::before,
    .hero-visual {
        display: none !important; /* Cache les éléments visuels non essentiels sur mobile */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .video-modal-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
