/* ============================================================
   module-detail.css — feuille partagée des pages détail module
   Recoloration par page : surcharger --purple / --purple-light / --gradient
   dans un <style> inline sur la page (voir les pages module-*.html).
   ============================================================ */

@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:800; font-display:swap; src:url('../fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2'); }

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

:root {
    --purple: #6c5ce7;
    --purple-light: #a29bfe;
    --gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --dark: #0d0d1a;
    --dark-2: #13132a;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--dark); color: #fff; overflow-x: hidden; }

/* ===== NAV ===== */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 64px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; transition: background .4s, backdrop-filter .4s, box-shadow .4s; }
nav.scrolled { background: rgba(13,13,26,0.95); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.nav-logo { font-size: 20px; font-weight: 800; color: #fff; text-decoration: none; }
.nav-logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { line-height: 1; text-decoration: none; display: inline-flex; border: none; cursor: pointer; align-items: center; gap: 0.6rem; background-color: var(--purple); color: #fff; border-radius: 10rem; font-weight: 700; font-size: 13px; font-family: inherit; padding: 0.55rem 0.85rem 0.55rem 1.1rem; white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.nav-cta:hover { background-color: #fff; color: #0d0d1a; }
.nav-cta__icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; color: var(--purple); background-color: #fff; border-radius: 50%; display: grid; place-items: center; overflow: hidden; transition: background-color 0.3s, color 0.3s; }
.nav-cta:hover .nav-cta__icon { background-color: var(--purple); color: #fff; }
.nav-cta__icon svg { position: absolute; transition: transform 0.3s ease-in-out; }
.nav-cta__icon svg:last-child { transform: translate(-150%, 150%); }
.nav-cta:hover .nav-cta__icon svg:first-child { transform: translate(150%, -150%); }
.nav-cta:hover .nav-cta__icon svg:last-child { transform: translate(0); transition-delay: 0.1s; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: all .3s; }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero { min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 40px 70px; background: radial-gradient(ellipse 100% 80% at 50% -10%, rgba(108,92,231,0.30) 0%, transparent 60%), linear-gradient(180deg, #0d0d1a 0%, #13132a 50%, #0d0d1a 100%); position: relative; overflow: hidden; }
.hero-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(108,92,231,0.2) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(108,92,231,0.15); border: 1px solid rgba(162,155,254,0.25); color: var(--purple-light); padding: 7px 18px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 28px; position: relative; }
.hero-badge .badge-ic { width: 20px; height: 20px; }
.hero-badge .badge-ic svg { width: 20px; height: 20px; stroke: currentColor; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; position: relative; }
.hero h1 .gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.55); max-width: 640px; margin: 0 auto 40px; font-weight: 400; line-height: 1.7; position: relative; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-primary { background: var(--gradient); color: #fff; padding: 15px 34px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: 0 8px 30px rgba(108,92,231,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(108,92,231,0.55); }
.btn-outline { background: transparent; color: #fff; padding: 15px 34px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.2); transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ===== MINI-SOMMAIRE (chips d'ancres) ===== */
.module-toc { position: sticky; top: 64px; z-index: 150; background: rgba(13,13,26,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 12px 20px; }
.module-toc-inner { max-width: 1000px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.module-toc a { font-size: 13px; font-weight: 600; color: var(--purple-light); text-decoration: none; padding: 7px 16px; border-radius: 100px; border: 1px solid var(--purple); background: transparent; transition: all .2s; white-space: nowrap; }
.module-toc a:hover { color: #fff; background: var(--gradient); border-color: transparent; box-shadow: 0 6px 18px rgba(108,92,231,0.3); }

/* ===== SECTION INTRO ===== */
.section-intro { padding: 90px 40px 30px; text-align: center; max-width: 820px; margin: 0 auto; }
.section-intro .big-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--purple-light); background: rgba(108,92,231,0.12); border: 1px solid rgba(162,155,254,0.2); padding: 6px 16px; border-radius: 100px; margin-bottom: 20px; }
.section-intro h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 18px; }
.section-intro h2 .accent { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-intro p { font-size: 1.1rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ===== APERÇU INTERACTIF (onglets) ===== */
.demo { max-width: 1000px; margin: 20px auto 40px; padding: 0 40px; }
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.demo-tab { font-family: inherit; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 9px 18px; cursor: pointer; transition: all .2s; }
.demo-tab:hover { color: #fff; border-color: rgba(162,155,254,0.35); }
.demo-tab.active { color: #fff; background: var(--gradient); border-color: transparent; box-shadow: 0 8px 24px rgba(108,92,231,0.35); }
.demo-panel { display: none; }
.demo-panel.active { display: block; animation: demoFade .35s ease; }
@keyframes demoFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo-cap { text-align: center; color: rgba(255,255,255,0.6); font-size: 14.5px; line-height: 1.6; margin-top: 18px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== CADRE ÉCRAN + PLACEHOLDER ===== */
.p-screen-wrap { position: relative; }
.p-screen-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 32px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08); transition: transform .3s, box-shadow .3s; }
.p-screen-frame.zoomable { cursor: zoom-in; }
.p-screen-frame:hover { transform: translateY(-4px); box-shadow: 0 40px 120px rgba(0,0,0,0.65), 0 0 0 1px rgba(162,155,254,0.2); }
.p-screen-bar { height: 34px; background: rgba(20,20,40,0.95); border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; padding: 0 14px; gap: 6px; }
.p-screen-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.p-screen-bar .dot:nth-child(1) { background: #ff5f57; }
.p-screen-bar .dot:nth-child(2) { background: #febc2e; }
.p-screen-bar .dot:nth-child(3) { background: #28c840; }
.p-screen-frame img { width: 100%; height: auto; display: block; }
/* Placeholder « capture à venir » (remplacer le .screen-ph par un <img> quand dispo) */
.screen-ph { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(ellipse 90% 70% at 50% 25%, rgba(108,92,231,0.18) 0%, transparent 60%), #13132a; }
.screen-ph .ph-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--purple); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.screen-ph .ph-ic svg { width: 34px; height: 34px; stroke: currentColor; }
.screen-ph small { font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,0.4); font-weight: 600; }
.p-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(108,92,231,0.4) 0%, transparent 70%); pointer-events: none; z-index: -1; }
.p-glow-tl { top: -60px; left: -60px; }
.p-glow-br { bottom: -60px; right: -60px; }

/* ===== SECTIONS PARALLAX (feature) ===== */
.parallax-section { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.parallax-bg { position: absolute; inset: -30% 0; background-size: cover; background-position: center; will-change: transform; }
.parallax-overlay { position: absolute; inset: 0; }
.parallax-content { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 80px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.parallax-content.reverse .p-text { order: 2; }
.parallax-content.reverse .p-screen { order: 1; }
.p-tag { display: inline-block; background: rgba(108,92,231,0.2); border: 1px solid rgba(162,155,254,0.3); color: var(--purple-light); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.p-title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 900; line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px; }
.p-title .accent { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.p-desc { font-size: 1.05rem; color: rgba(255,255,255,0.62); line-height: 1.75; margin-bottom: 26px; }
.p-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.p-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.78); font-weight: 500; }
.p-features li .check { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; background: rgba(108,92,231,0.25); border: 1px solid rgba(162,155,254,0.3); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--purple-light); margin-top: 1px; }

/* ===== ENCART « BON À SAVOIR » ===== */
.tip { margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; background: rgba(108,92,231,0.10); border: 1px solid rgba(162,155,254,0.22); border-left: 3px solid var(--purple); border-radius: 12px; padding: 16px 18px; }
.tip .tip-ic { flex-shrink: 0; color: var(--purple-light); font-size: 18px; line-height: 1.3; }
.tip p { font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.tip strong { color: #fff; }

.dark-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(108,92,231,0.3), transparent); margin: 0 40px; }

/* ===== FLOW STEPS ===== */
.flow-section { padding: 40px 40px 80px; max-width: 1100px; margin: 0 auto; }
.flow-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.flow-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 34px 28px 30px; transition: transform .3s, border-color .3s, box-shadow .3s; position: relative; }
.flow-card:hover { transform: translateY(-6px); border-color: rgba(162,155,254,0.25); box-shadow: 0 20px 50px rgba(108,92,231,0.15); }
.flow-step-num { position: absolute; top: -14px; left: 24px; background: var(--gradient); color: #fff; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px rgba(108,92,231,0.4); }
.flow-card h4 { font-size: 17px; font-weight: 700; margin: 8px 0 12px; }
.flow-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ===== PRINCIPES ===== */
.principles-banner { padding: 90px 40px; text-align: center; position: relative; overflow: hidden; }
.principles-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(108,92,231,0.15) 0%, transparent 70%); }
.principles-banner h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 50px; position: relative; }
.principles-banner h2 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.principles-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; }
.principle-pill { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 13px 22px; font-size: 15px; font-weight: 600; transition: background .2s, border-color .2s; }
.principle-pill:hover { background: rgba(108,92,231,0.12); border-color: rgba(162,155,254,0.3); }

/* ===== CTA ===== */
.cta-section { padding: 110px 40px; text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(108,92,231,0.2) 0%, transparent 70%); }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.5); font-size: 1.1rem; margin-bottom: 36px; }
.cta-note { display: block; margin-top: 26px; font-size: 13px; color: rgba(255,255,255,0.4); }

/* ===== FOOTER ===== */
footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 60px 40px 28px; background: rgba(0,0,0,0.3); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 10px; max-width: 280px; }
.footer-links-group { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-copy { max-width: 1100px; margin: 0 auto; font-size: 13px; color: rgba(255,255,255,0.25); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; text-align: center; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); backdrop-filter: blur(10px); align-items: center; justify-content: center; padding: 24px; }
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,0.8); animation: zoomIn .25s ease; }
@keyframes zoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close { position: fixed; top: 20px; right: 28px; font-size: 36px; color: #fff; cursor: pointer; opacity: 0.7; transition: opacity .2s; line-height: 1; }
.lightbox-close:hover { opacity: 1; }
.lightbox-caption { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.1); color: #fff; padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-right.visible { opacity: 1; transform: none; }
.delay-100 { transition-delay: .1s; }
.delay-200 { transition-delay: .2s; }
.delay-300 { transition-delay: .3s; }
.delay-400 { transition-delay: .4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    nav { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-burger { display: block; }
    .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: rgba(13,13,26,0.98); padding: 20px 24px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .nav-links.open li { border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links.open a { padding: 14px 8px; display: block; font-size: 15px; }
    .hero { min-height: auto; padding: 104px 22px 50px; }
    .hero h1 { letter-spacing: -1px; }
    .module-toc { padding: 10px 14px; }
    .module-toc-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .demo { padding: 0 18px; }
    .parallax-section { min-height: auto; }
    .parallax-content { grid-template-columns: 1fr; gap: 36px; padding: 60px 22px; }
    .parallax-content.reverse .p-text { order: 1; }
    .parallax-content.reverse .p-screen { order: 2; }
    .flow-grid { grid-template-columns: 1fr; }
    .footer-links-group { flex-direction: column; gap: 28px; }
    .section-intro { padding: 64px 22px 24px; }
    .flow-section { padding: 30px 22px 60px; }
    .principles-banner { padding: 64px 22px; }
    .cta-section { padding: 80px 22px; }
    footer { padding: 50px 22px 24px; }
}
