/*
Theme Name: NOUDIZAY Theme
Theme URI: https://noudizay.co
Author: Ton Nom
Description: Thème minimaliste Light Mode haute performance.
Version: 3.5 (Features Split Added)
Text Domain: NOUDIZAY
*/

/* -----------------------------------------------------------
   1. VARIABLES & CONFIGURATION
----------------------------------------------------------- */
:root {
    --bg-color: #ffffff;
    --surface-color: #F5F7FA;
    --text-main: #001E2B;      /* Bleu Marine MongoDB */
    --text-muted: #5C6C75;     /* Gris bleuté */
    --brand-color: #00ED64;    /* Vert MongoDB */
    --container-width: 1200px;
    --section-spacing: 120px;
}

/* -----------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis { height: auto; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* -----------------------------------------------------------
   3. HEADER (Style Pill Light)
----------------------------------------------------------- */
.site-header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1000px; padding: 12px 30px; 
    z-index: 2000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 30, 43, 0.08); border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 30, 43, 0.05);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding: 0; max-width: 100%; }
.logo a { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text-main); }

/* Menu Desktop */
.main-navigation ul { display: flex; gap: 30px; }
.main-navigation a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.main-navigation a:hover { color: var(--text-main); }

/* -----------------------------------------------------------
   4. HERO SECTION
----------------------------------------------------------- */
.hero-section { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; }
.hero-title { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 30px; color: var(--text-main); }
.d-block { display: block; }
.highlight { color: var(--brand-color); background: rgba(0, 30, 43, 0.9); padding: 0 15px; border-radius: 8px; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 15px 35px; background-color: var(--text-main); color: #ffffff; border-radius: 50px; font-weight: 700; font-size: 1rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn-primary:hover { transform: translateY(-3px); background-color: var(--brand-color); color: #001E2B; box-shadow: 0 10px 30px rgba(0, 237, 100, 0.3); }
.btn-link { font-weight: 600; border-bottom: 1px solid rgba(0,30,43,0.15); }

/* -----------------------------------------------------------
   5. BENTO GRID
----------------------------------------------------------- */
.services-section { padding: var(--section-spacing) 0; }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; margin-bottom: 60px; letter-spacing: -0.02em; color: var(--text-main); }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; grid-auto-rows: minmax(320px, auto); }
.bento-card { background: var(--surface-color); border: 1px solid rgba(0, 30, 43, 0.05); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.4s ease; grid-column: span 4; }
.bento-card:hover { background: #ffffff; box-shadow: 0 20px 40px rgba(0, 30, 43, 0.08); transform: translateY(-5px); }
.bento-card.wide { grid-column: span 8; }
.bento-card.full { grid-column: span 12; }
.bento-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-main); }
.bento-card p { color: var(--text-muted); font-size: 1rem; }
.card-icon svg { width: 40px; height: 40px; stroke: var(--text-main); }

/* -----------------------------------------------------------
   6. STACKING CARDS
----------------------------------------------------------- */
.stacking-section { padding: 100px 0 150px 0; }
.stacking-cards-container { display: flex; flex-direction: column; gap: 40px; max-width: 900px; margin: 0 auto; }
.stacking-card { position: sticky; height: 400px; background: white; border-radius: 30px; border: 1px solid rgba(0, 30, 43, 0.05); padding: 60px; display: flex; align-items: center; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05); transform-origin: center top; }
.stacking-card.card-1 { top: 150px; background: #F5F7FA; z-index: 1; }
.stacking-card.card-2 { top: 180px; background: #E8EEF2; z-index: 2; }
.stacking-card.card-3 { top: 210px; background: var(--text-main); color: white; z-index: 3; }
.stacking-content { max-width: 600px; }
.step-number { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; color: var(--brand-color); }
.stacking-card h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; color: var(--text-main); }
.stacking-card p { font-size: 1.2rem; color: var(--text-muted); }
.stacking-card.card-3 h3 { color: white; }
.stacking-card.card-3 p { color: rgba(255,255,255, 0.8); }

/* -----------------------------------------------------------
   7. SECTIONS ADDITIONNELLES
----------------------------------------------------------- */
.marquee-section { padding: 40px 0; border-top: 1px solid rgba(0, 30, 43, 0.05); border-bottom: 1px solid rgba(0, 30, 43, 0.05); background: var(--surface-color); overflow: hidden; }
.marquee-content { display: flex; gap: 80px; width: max-content; animation: scrollText 30s linear infinite; }
.marquee-item { font-size: 1.8rem; font-weight: 700; color: #B4C4CC; transition: 0.3s; }
.marquee-item:hover { color: var(--text-main); opacity: 1; }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.big-text-section { padding: 180px 0; text-align: center; }
.big-text-paragraph { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.2; color: #B4C4CC; max-width: 1000px; margin: 0 auto; }
.big-text-paragraph span.highlight-white { color: var(--text-main); }

.faq-section { padding: var(--section-spacing) 0; max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0, 30, 43, 0.1); padding: 30px 0; }
.faq-question { color: var(--text-main); font-weight: 600; font-size: 1.4rem; }
.faq-answer { color: var(--text-muted); margin-top: 10px; font-size: 1.1rem; }

.cta-section { padding: 160px 0; text-align: center; position: relative; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 237, 100, 0.2) 0%, rgba(255,255,255,0) 70%); z-index: -1; }
.cta-title { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; color: var(--text-main); }
.site-footer { padding: 60px 0; border-top: 1px solid rgba(0, 30, 43, 0.05); text-align: center; color: var(--text-muted); }
.reveal-text, .reveal-card { opacity: 1 !important; transform: none !important; }

/* -----------------------------------------------------------
   10. IMAGE SLIDER
----------------------------------------------------------- */
.slider-section { padding: var(--section-spacing) 0; overflow: hidden; }
.slider-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 40px; -webkit-overflow-scrolling: touch; width: 100%; flex-wrap: nowrap; touch-action: pan-x; cursor: grab; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 80%; min-width: 80%; width: 80%; max-width: 800px; height: 500px; scroll-snap-align: center; border-radius: 30px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0, 30, 43, 0.1); transition: transform 0.3s ease; }
.slider-item:hover { transform: scale(1.02); }
.slider-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.slider-item:hover .slider-bg { transform: scale(1.1); }
.slider-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(to top, rgba(0, 30, 43, 0.9) 0%, rgba(0,0,0,0) 100%); color: white; }
.slider-content h3 { font-size: 2rem; margin-bottom: 10px; }
.slider-content p { font-size: 1.1rem; color: rgba(255,255,255,0.8); }

/* -----------------------------------------------------------
   11. LOGO & VIDEO SHOWCASE
----------------------------------------------------------- */
.showcase-section { padding: 80px 0 120px 0; }
.showcase-container { display: flex; gap: 60px; align-items: center; height: 500px; }
.logo-carousel-column { flex: 0 0 25%; height: 100%; overflow: hidden; position: relative; mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%); }
.logo-carousel-track { display: flex; flex-direction: column; gap: 40px; animation: scrollVertical 20s linear infinite; }
.logo-item { font-size: 1.8rem; font-weight: 700; color: #B4C4CC; text-align: center; transition: color 0.3s ease; cursor: default; }
.logo-item:hover { color: var(--text-main); }
@keyframes scrollVertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.video-column { flex: 1; height: 100%; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 30, 43, 0.1); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; filter: grayscale(20%) contrast(110%); transition: filter 0.3s ease; }
.video-column:hover iframe { filter: grayscale(0%) contrast(100%); }

/* -----------------------------------------------------------
   13. PRICING (MODERN GLASS STYLE)
----------------------------------------------------------- */
#pricing {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(0, 237, 100, 0.03) 0%, transparent 60%);
}
#pricing .bento-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(0, 30, 43, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}
#pricing .bento-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 20px 60px rgba(0, 30, 43, 0.12); background: rgba(255, 255, 255, 0.8); }
#pricing .bento-card:nth-child(2) { background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(0, 237, 100, 0.4); box-shadow: 0 15px 45px rgba(0, 237, 100, 0.15); z-index: 2; }

/* -----------------------------------------------------------
   14. CRYSTAL HAMBURGER & MOBILE MENU
----------------------------------------------------------- */
.crystal-burger {
    display: none; position: relative; width: 50px; height: 50px; border: none; background: rgba(255, 255, 255, 0.4); border-radius: 16px; cursor: pointer; overflow: hidden; z-index: 2000;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 30, 43, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 4px 6px rgba(255, 255, 255, 0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.crystal-burger:active { transform: scale(0.92); }
.crystal-surface { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%); transform: rotate(45deg) translateY(100%); transition: transform 0.5s; pointer-events: none; }
.crystal-burger:hover .crystal-surface { transform: rotate(45deg) translateY(-100%); }
.burger-lines { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.burger-lines span { display: block; width: 100%; height: 2px; background-color: var(--text-main); border-radius: 2px; transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); }
body.menu-open .burger-lines span:nth-child(1) { transform: translateY(4px) rotate(45deg); background-color: #000; }
body.menu-open .burger-lines span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); background-color: #000; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(245, 247, 250, 0.85); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); z-index: 1900; opacity: 0; visibility: hidden; transition: all 0.5s ease; display: flex; align-items: center; justify-content: center; }
body.menu-open .mobile-menu-overlay { opacity: 1; visibility: visible; }
.mobile-nav-links { list-style: none; text-align: center; padding: 0; }
.mobile-nav-links li { margin: 25px 0; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
body.menu-open .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
body.menu-open .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
body.menu-open .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
body.menu-open .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.mobile-nav-links a { font-size: 2.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: -0.04em; }
.mobile-nav-links a:hover { color: var(--brand-color); }

/* -----------------------------------------------------------
   15. AUTO SCROLL IMAGES
----------------------------------------------------------- */
.auto-scroll-section { padding: 60px 0; background: var(--surface-color); border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); overflow: hidden; }
.auto-scroll-track { display: flex; gap: 80px; width: max-content; animation: scrollHorizontal 30s linear infinite; }
.scroll-group { display: flex; gap: 80px; }
.scroll-item img { height: 50px; width: auto; filter: grayscale(100%) opacity(0.6); transition: filter 0.3s ease, transform 0.3s ease; cursor: pointer; }
.scroll-item img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
@keyframes scrollHorizontal { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* -----------------------------------------------------------
   16. FEATURES SPLIT (ZIG-ZAG SECTION)
   Alternance Texte / Image
----------------------------------------------------------- */
.features-split-section {
    padding: var(--section-spacing) 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 150px; /* Espace entre chaque feature */
}

/* On inverse l'ordre pour la 2ème row */
.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-text {
    flex: 1;
}

.feature-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 30, 43, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.feature-text h3 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-color);
    font-weight: 800;
}

.feature-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 30, 43, 0.1);
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.5s ease;
}

.feature-row:hover .image-wrapper {
    transform: translateY(-10px); /* Petit flottement au survol */
}

/* -----------------------------------------------------------
   12. RESPONSIVE (MOBILE & TABLETTE)
----------------------------------------------------------- */
@media (max-width: 992px) {
    :root { --section-spacing: 80px; }
    .hero-title { font-size: 3.5rem; }
    .bento-card.wide { grid-column: span 12; }
    .bento-card { grid-column: span 6; }
    .stacking-card { height: auto; min-height: 350px; padding: 40px; }
    .showcase-container { flex-direction: column-reverse; height: auto; gap: 40px; }
    .logo-carousel-column { width: 100%; height: 200px; mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%); }
    .logo-carousel-track { flex-direction: row; animation: scrollText 20s linear infinite; gap: 40px; }
    .logo-item { font-size: 1.5rem; white-space: nowrap; }
    
    .auto-scroll-track { gap: 60px; }
    .scroll-group { gap: 60px; }
    
    /* Responsive Features Zig-Zag */
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
        text-align: left; /* Ou center si tu préfères */
    }
    .feature-text h3 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --section-spacing: 60px; }
    .container { padding: 0 15px; }
    .site-header { width: 95%; padding: 10px 15px; top: 10px; justify-content: space-between; }
    .desktop-only { display: none; }
    .crystal-burger { display: block; } 
    
    .hero-section { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
    .hero-title { font-size: 2.5rem; margin-bottom: 20px; }
    .hero-actions { justify-content: center; }
    .btn-primary { width: 100%; text-align: center; }
    
    .bento-card, .bento-card.wide, .bento-card.full { grid-column: span 12; }
    .bento-card { padding: 30px; min-height: 250px; }
    
    .stacking-section { padding: 60px 0; }
    .stacking-card { position: relative; top: 0 !important; margin-bottom: 20px; height: auto; padding: 30px; transform: none !important; }
    .stacking-card h3 { font-size: 1.8rem; }
    
    .slider-item { flex: 0 0 85%; min-width: 85%; height: 300px; }
    .big-text-section { padding: 80px 0; }
    .big-text-paragraph { font-size: 1.8rem; }
    
    .auto-scroll-section { padding: 40px 0; }
    .auto-scroll-track { gap: 40px; }
    .scroll-group { gap: 40px; }
    .scroll-item img { height: 35px; }
    
    /* Fix Pricing Mobile */
    #pricing > .container > div { grid-template-columns: 1fr !important; gap: 30px !important; margin-top: 40px !important; }
    #pricing .bento-card:nth-child(2) { transform: none !important; }
    
    /* Feature Split Mobile */
    .feature-text h3 { font-size: 2rem; }
    
    .site-footer { padding: 40px 0; }
}