/* ================================================
   POLICE INTER — SERVIE EN LOCAL
   ================================================ */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/inter-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/inter-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/inter-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* VARIABLES THEME & COULEURS */
:root { --cpw-primary: #1a6fff; --cpw-primary-dark: #0052d9; --cpw-accent: #7c3aed; --cpw-accent-soft: rgba(124, 58, 237, 0.08); --cpw-surface: rgba(255, 255, 255, 0.92); --cpw-glow-blue: 0 0 28px rgba(26, 111, 255, 0.35); --cpw-glow-purple: 0 0 28px rgba(124, 58, 237, 0.25); --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1); --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1); --cpw-bg: #f8f9fa; --cpw-text: #1e293b; --cpw-muted: #64748b; --glass-bg: rgba(255, 255, 255, 0.65); --glass-border: rgba(150, 150, 150, 0.15); --glass-highlight: rgba(255, 255, 255, 0.9); --shadow-ios: 0 8px 30px -6px rgba(0, 0, 0, 0.05); --shadow-glow: 0 10px 24px -4px rgba(26, 111, 255, 0.4); --panel-bg: rgba(255, 255, 255, 0.85); --border-light: rgba(0, 0, 0, 0.06); --hover-bg: rgba(0, 0, 0, 0.04); --blog-text: #334155; --blog-heading: #0f172a; --blog-link: #2563eb; --blog-cta-bg: rgba(248, 250, 252, 0.8); }
[data-theme="dark"] { --cpw-primary: #4d8eff; --cpw-primary-dark: #1a6fff; --cpw-surface: rgba(15, 23, 42, 0.95); --cpw-glow-blue: 0 0 32px rgba(77, 142, 255, 0.3); --cpw-bg: #020617; --cpw-text: #f8fafc; --cpw-muted: #94a3b8; --glass-bg: rgba(15, 23, 42, 0.55); --glass-border: rgba(255, 255, 255, 0.1); --glass-highlight: rgba(255, 255, 255, 0.15); --shadow-ios: 0 8px 30px -6px rgba(0, 0, 0, 0.4); --panel-bg: rgba(15, 23, 42, 0.85); --border-light: rgba(255, 255, 255, 0.08); --hover-bg: rgba(255, 255, 255, 0.06); --blog-text: #f1f5f9; --blog-heading: #ffffff; --blog-link: #60a5fa; --blog-cta-bg: rgba(15, 23, 42, 0.6); }

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; background-color: var(--cpw-bg); color: var(--cpw-text); overflow-x: hidden; position: relative; width: 100%; max-width: 100vw; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; transition: background-color 0.5s var(--transition-smooth), color 0.5s var(--transition-smooth); padding-bottom: 5rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s var(--transition-smooth); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
::selection { background-color: var(--cpw-primary); color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* BRAND LOGO */
.brand-logo { display: flex; align-items: center; gap: 0.5rem; }
.brand-icon { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--cpw-primary), #60a5fa, var(--cpw-accent)); background-size: 200% 200%; animation: brand-gradient 6s ease infinite; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.875rem; box-shadow: 0 4px 14px rgba(26, 111, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth); }
@keyframes brand-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.brand-logo:hover .brand-icon { transform: scale(1.1) rotate(5deg); box-shadow: var(--cpw-glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.brand-text { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--cpw-text); }
.brand-text span { color: var(--cpw-primary); }

/* BTN PRIMARY */
.btn-primary { background: linear-gradient(135deg, var(--cpw-primary) 0%, var(--cpw-primary-dark) 100%); color: #fff !important; padding: 0.75rem 1.75rem; border-radius: 9999px; font-weight: 700; font-size: 0.875rem; box-shadow: 0 8px 20px -4px rgba(26, 111, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); transition: all 0.4s var(--transition-smooth); display: inline-flex; align-items: center; justify-content: center; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -4px rgba(26, 111, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:active { transform: translateY(0); }

/* HEADER PRINCIPAL */
.header-main { position: fixed; top: 0; left: 0; right: 0; width: 100%; display: flex; justify-content: center; padding-top: 1.5rem; z-index: 1000; pointer-events: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.header-glass { width: 95%; max-width: 1000px; pointer-events: auto; background-color: var(--glass-bg); backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.1); border-radius: 9999px; padding: 0.625rem 0.625rem 0.625rem 1.25rem; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth); }
.header-glass.shadow-lg { box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 4px 16px -4px rgba(26, 111, 255, 0.05), inset 0 1px 0 rgba(255,255,255,0.1); background-color: var(--cpw-surface); }
.header-left { display: flex; flex: 1; }
.nav-desktop { display: none; align-items: center; gap: 0.25rem; padding: 0.375rem; border-radius: 9999px; background-color: var(--hover-bg); border: 1px solid var(--border-light); }
.nav-link { padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; color: var(--cpw-text); opacity: 0.8; transition: all 0.3s var(--transition-smooth); }
.nav-link:hover { opacity: 1; background-color: var(--glass-highlight); }
.nav-link.active { background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff; opacity: 1; box-shadow: 0 4px 12px rgba(26, 111, 255, 0.3); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex: 1; }
.btn-theme, .btn-menu-mobile, .btn-close { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cpw-text); transition: all 0.3s var(--transition-smooth); background-color: transparent; }
.btn-theme:hover, .btn-menu-mobile:hover { background-color: var(--hover-bg); transform: scale(1.05); }
.btn-icon-primary { display: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: rgba(26, 111, 255, 0.1); color: var(--cpw-primary); align-items: center; justify-content: center; transition: all 0.3s var(--transition-smooth); }
.btn-icon-primary:hover { background-color: var(--cpw-primary); color: #fff; box-shadow: 0 4px 12px rgba(26,111,255,0.3); }
.nav-login { display: none; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 700; color: var(--cpw-text); opacity: 0.9; }
.nav-login:hover { opacity: 1; color: var(--cpw-primary); }
.nav-login i { font-size: 1.125rem; }
.btn-project { display: none; position: relative; overflow: hidden; align-items: center; gap: 0.5rem; background-color: var(--cpw-text); color: var(--cpw-bg); padding: 0.625rem 1.25rem; border-radius: 9999px; font-weight: 700; font-size: 0.875rem; box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15); transition: all 0.4s var(--transition-smooth); }
.btn-project::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0)); opacity: 0; transition: opacity 0.4s var(--transition-smooth); border-radius: inherit; }
.btn-project:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -4px rgba(0,0,0,0.25); }
.btn-project:hover::before { opacity: 1; }
.btn-project-arrow { transition: transform 0.4s var(--transition-spring); }
.btn-project:hover .btn-project-arrow { transform: translateX(4px); }
.btn-search { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cpw-text); transition: all 0.3s var(--transition-smooth); background-color: transparent; cursor: pointer; border: none; }
.btn-search:hover { background-color: var(--hover-bg); transform: scale(1.05); }

/* MENU MOBILE (OFFCANVAS) */
.offcanvas-backdrop { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1999; opacity: 0; visibility: hidden; transition: all 0.4s var(--transition-smooth); }
.offcanvas-panel { position: fixed; top: 0.5rem; right: 0.5rem; bottom: 0.5rem; width: 85%; max-width: 320px; background: linear-gradient(160deg, var(--panel-bg) 0%, rgba(26, 111, 255, 0.02) 100%); backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%); border-radius: 1.5rem; z-index: 2000; transform: translateX(120%); transition: transform 0.5s var(--transition-smooth); box-shadow: -10px 0 40px rgba(0,0,0,0.1); display: flex; flex-direction: column; border: 1px solid var(--glass-border); overflow: hidden; }
.offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--border-light); }
.btn-close:hover { transform: rotate(90deg) scale(1.1); background-color: var(--hover-bg); }
.offcanvas-body { flex: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-link { display: block; font-size: 1.125rem; font-weight: 700; padding: 1rem 1.25rem; border-radius: 1rem; color: var(--cpw-text); transition: all 0.3s var(--transition-smooth); border: 1px solid transparent; }
.mobile-link:hover { background-color: rgba(26, 111, 255, 0.04); color: var(--cpw-primary); border-color: rgba(26, 111, 255, 0.1); transform: translateX(4px); }
.mobile-link.active { background-color: rgba(26, 111, 255, 0.08); color: var(--cpw-primary); border-color: rgba(26, 111, 255, 0.15); box-shadow: inset 3px 0 0 var(--cpw-primary); }
.flex-center { display: flex; align-items: center; }
.divider { height: 1px; background-color: var(--border-light); border: none; margin: 1.5rem 0; }

/* BLOG — ARTICLE BODY */
.blog-article-body { font-size: 1rem; line-height: 1.8; color: var(--blog-text); }
.blog-article-body h1, .blog-article-body h2, .blog-article-body h3, .blog-article-body h4, .blog-article-body strong, .blog-article-body b { font-weight: 800; margin-top: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.02em; color: var(--blog-heading); }
.blog-summary-box { background: linear-gradient(135deg, rgba(37,99,235,0.03), rgba(37,99,235,0.08)); border-left: 4px solid var(--cpw-primary); padding: 1.5rem 2rem; border-radius: 0 1rem 1rem 0; margin-bottom: 2.5rem; font-size: 1.05rem; color: var(--blog-heading); }
.blog-technical-note { background-color: var(--hover-bg); border: 1px solid var(--border-light); padding: 1.25rem 1.5rem; border-radius: 1rem; margin: 2rem 0; font-size: 0.9375rem; color: var(--cpw-muted); }
.blog-article-body a { font-weight: 700; color: var(--blog-link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; transition: all 0.3s ease; }
.blog-article-body a:hover { text-decoration-color: transparent; background-color: rgba(37,99,235,0.1); border-radius: 4px; }
.blog-article-body ul { list-style-type: none; padding-left: 0; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-article-body ul li { position: relative; padding-left: 1.5rem; }
.blog-article-body ul li::before { content: "•"; color: var(--cpw-primary); font-weight: 700; font-size: 1.5rem; position: absolute; left: 0; top: -0.25rem; }
.blog-article-body hr { margin: 3rem 0; border: none; border-top: 1px solid var(--border-light); }
.blog-cta-box { margin-top: 4rem; padding: 3rem 2rem; border-radius: 2rem; text-align: center; border: 1px solid var(--glass-border); background-color: var(--blog-cta-bg); backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.1); transition: all 0.4s var(--transition-smooth); }
.blog-cta-box:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.2); }
.blog-cta-icon { font-size: 3rem; color: var(--cpw-primary); margin-bottom: 1.5rem; }
.blog-cta-title { margin-top: 0 !important; margin-bottom: 1rem !important; font-size: 1.75rem; }
.blog-cta-text { margin-bottom: 2rem; color: var(--cpw-muted); font-size: 1.05rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.blog-cta-box a { color: #fff !important; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); padding: 0.875rem 2rem; border-radius: 9999px; font-weight: 700; font-size: 0.9375rem; box-shadow: 0 8px 20px -4px rgba(26,111,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2); border: none; text-decoration: none !important; display: inline-block; transition: all 0.4s var(--transition-smooth); }
.blog-cta-box a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -4px rgba(26,111,255,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }

/* FOOTER */
.footer-main { margin-top: 8rem; padding-top: 5rem; padding-bottom: 2.5rem; position: relative; z-index: 10; border-top: 1px solid var(--glass-border); background-color: var(--glass-bg); backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%); }
.footer-container { max-width: 1150px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-tagline { font-size: 0.8125rem; font-weight: 700; color: var(--cpw-primary); text-transform: uppercase; letter-spacing: 0.1em; margin: 0.75rem 0 0.5rem; opacity: 0.9; }
.footer-desc { color: var(--cpw-text); opacity: 0.75; line-height: 1.7; margin-bottom: 2rem; max-width: 320px; font-size: 0.875rem; }
.footer-socials { display: flex; gap: 1rem; }
.social-btn { width: 3rem; height: 3rem; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 50%; font-size: 1.25rem; transition: all 0.4s var(--transition-spring) !important; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; outline: none; text-decoration: none !important; line-height: 1 !important; }
.social-btn.phone, .social-btn.email, .social-btn.whatsapp { background-color: var(--glass-highlight); color: var(--cpw-text); border: 1px solid var(--border-light); box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05); }
.social-btn.phone i, .social-btn.email i, .social-btn.whatsapp i { display: block !important; line-height: 1 !important; position: static !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.social-btn.phone:hover { background-color: rgba(26, 111, 255, 0.1) !important; color: var(--cpw-primary) !important; border-color: rgba(26, 111, 255, 0.2) !important; transform: translateY(-3px) !important; box-shadow: 0 8px 20px rgba(26, 111, 255, 0.2) !important; }
.social-btn.whatsapp:hover { background-color: rgba(34, 197, 94, 0.1) !important; color: #16a34a !important; border-color: rgba(34, 197, 94, 0.2) !important; transform: translateY(-3px) !important; box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2) !important; }
.social-btn.email:hover { background-color: rgba(124, 58, 237, 0.1) !important; color: var(--cpw-accent) !important; border-color: rgba(124, 58, 237, 0.2) !important; transform: translateY(-3px) !important; box-shadow: var(--cpw-glow-purple) !important; }
.social-btn:focus, .social-btn:active { outline: none !important; box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05) !important; }
.footer-col h4 { font-size: 0.875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; color: var(--cpw-text); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.footer-col a { position: relative; color: var(--cpw-text); opacity: 0.7; font-size: 0.875rem; font-weight: 500; transition: all 0.3s var(--transition-smooth); }
.footer-col a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background-color: var(--cpw-primary); transition: width 0.3s var(--transition-smooth); }
.footer-col a:hover { opacity: 1; color: var(--cpw-primary); transform: translateX(3px); display: inline-block; }
.footer-col a:hover::after { width: 100%; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-light); display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--cpw-text); opacity: 0.7; }
.system-status { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: status-pulse 2.5s ease-in-out infinite; }
@keyframes status-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); } 60% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* POP-UP DE SORTIE */
.exit-popup-overlay { position: fixed; inset: 0; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 0.75rem; opacity: 0; visibility: hidden; transition: all 0.5s var(--transition-smooth); pointer-events: none; }
.exit-popup-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.exit-popup-box { position: relative; max-width: 520px; width: 100%; border-radius: 2rem; padding: 3rem 1.5rem; text-align: center; transform: translateY(20px) scale(0.97); transition: transform 0.5s var(--transition-smooth); background-color: var(--panel-bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 1px solid var(--glass-border); box-shadow: 0 32px 64px -16px rgba(0,0,0,0.3); }
.exit-popup-overlay.is-visible .exit-popup-box { transform: translateY(0) scale(1); }
.exit-popup-box::before { content: ''; position: absolute; top: 0; left: 2rem; right: 2rem; height: 3px; background: linear-gradient(90deg, var(--cpw-primary), #60a5fa); border-radius: 9999px; }
.exit-popup-close { position: absolute; top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; background-color: var(--hover-bg); color: var(--cpw-muted); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; transition: all 0.3s var(--transition-smooth); border: none; cursor: pointer; }
.exit-popup-close:hover { background-color: var(--border-light); color: var(--cpw-text); transform: rotate(90deg); }
.exit-popup-icon { width: 4rem; height: 4rem; border-radius: 1.25rem; background: linear-gradient(135deg, rgba(26,111,255,0.1), rgba(124,58,237,0.1)); border: 1px solid rgba(26,111,255,0.15); color: var(--cpw-primary); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; animation: popup-icon-float 4s ease-in-out infinite; }
@keyframes popup-icon-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.exit-popup-title { font-size: 1.75rem; font-weight: 800; color: var(--cpw-text); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem; }
.exit-popup-desc { font-size: 0.9375rem; color: var(--cpw-text); opacity: 0.75; line-height: 1.7; margin-bottom: 2rem; max-width: 380px; margin-left: auto; margin-right: auto; }
.exit-popup-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; text-align: left; max-width: 280px; margin-left: auto; margin-right: auto; }
.exit-popup-features li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; font-weight: 600; color: var(--cpw-text); }
.exit-popup-features li i { color: #22c55e; font-size: 1rem; flex-shrink: 0; }
.exit-popup-actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.exit-popup-btn-primary { display: inline-flex; align-items: center; gap: 0.625rem; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff !important; padding: 0.875rem 2rem; border-radius: 9999px; font-weight: 700; font-size: 1rem; box-shadow: 0 8px 20px -4px rgba(26,111,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2); transition: all 0.4s var(--transition-smooth); border: none; width: 100%; justify-content: center; }
.exit-popup-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -4px rgba(26,111,255,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.exit-popup-btn-secondary { font-size: 0.8125rem; color: var(--cpw-muted); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s ease; padding: 0.25rem; font-family: inherit; }
.exit-popup-btn-secondary:hover { color: var(--cpw-text); }

/* BANDEAU COOKIES RGPD */
.cookie-banner { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%); width: calc(100% - 3rem); max-width: 860px; z-index: 99998; border-radius: 1.5rem; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; background-color: var(--cpw-bg) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 1px solid var(--glass-border); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.15); transition: transform 0.6s var(--transition-smooth), opacity 0.6s ease; opacity: 0; pointer-events: none; }
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner.is-hiding { transform: translateX(-50%) translateY(120%); opacity: 0; }
.cookie-banner-content { display: flex; align-items: flex-start; gap: 1rem; flex: 1; }
.cookie-banner-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: linear-gradient(135deg, rgba(26,111,255,0.1), rgba(96,165,250,0.1)); border: 1px solid rgba(26,111,255,0.15); color: var(--cpw-primary); font-size: 1.125rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cookie-banner-text { display: flex; flex-direction: column; gap: 0.25rem; }
.cookie-banner-title { font-size: 0.9375rem; font-weight: 800; color: var(--cpw-text); }
.cookie-banner-desc { font-size: 0.8125rem; color: var(--cpw-text); opacity: 0.75; line-height: 1.6; margin: 0; }
.cookie-link { color: var(--cpw-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-link:hover { opacity: 0.8; }
.cookie-banner-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn-refuse { padding: 0.625rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 700; color: var(--cpw-muted); background: none; border: 1px solid rgba(150,150,150,0.2); cursor: pointer; transition: all 0.3s var(--transition-smooth); font-family: inherit; }
.cookie-btn-refuse:hover { background-color: var(--hover-bg); color: var(--cpw-text); border-color: rgba(150,150,150,0.4); }
.cookie-btn-accept { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.5rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 700; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff; border: none; cursor: pointer; box-shadow: 0 6px 16px -4px rgba(26,111,255,0.4); transition: all 0.3s var(--transition-smooth); font-family: inherit; }
.cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -4px rgba(26,111,255,0.5); }
.cookie-btn-accept:active { transform: translateY(0); }

/* OVERLAY RECHERCHE */
.search-overlay { position: fixed; inset: 0; z-index: 99997; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 8rem 1.5rem 1.5rem; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s var(--transition-smooth), visibility 0.4s; }
.search-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.search-overlay-box { width: 100%; max-width: 680px; transform: translateY(-20px); transition: transform 0.4s var(--transition-smooth); }
.search-overlay.is-open .search-overlay-box { transform: translateY(0); }
.search-overlay-form { display: flex; align-items: center; gap: 1rem; background-color: var(--cpw-bg); border-radius: 9999px; padding: 1rem 1.25rem 1rem 1.75rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2); border: 1px solid var(--glass-border); transition: box-shadow 0.3s ease; }
.search-overlay-form:focus-within { box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3), 0 0 0 3px rgba(26,111,255,0.2); }
.search-overlay-icon { color: var(--cpw-primary); font-size: 1.25rem; flex-shrink: 0; }
.search-overlay-input { flex: 1; background: none; border: none; outline: none; font-size: 1.125rem; font-family: inherit; color: var(--cpw-text); min-width: 0; }
.search-overlay-input::placeholder { color: var(--cpw-muted); }
.search-overlay-close { width: 2.25rem; height: 2.25rem; border-radius: 50%; background-color: var(--hover-bg); color: var(--cpw-muted); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; cursor: pointer; border: none; transition: all 0.3s var(--transition-smooth); font-family: inherit; flex-shrink: 0; }
.search-overlay-close:hover { background-color: var(--border-light); color: var(--cpw-text); transform: rotate(90deg); }
.search-overlay-hint { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem 0; font-size: 0.8125rem; color: rgba(255,255,255,0.7); }
.search-overlay-hint kbd { background-color: rgba(255,255,255,0.15); border-radius: 0.375rem; padding: 0.125rem 0.5rem; font-size: 0.75rem; font-family: inherit; }

/* CHATBOT WIDGET */
.chatbot-widget { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 9998; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.chatbot-widget.is-open { overflow: visible; }
.chatbot-toggle-btn { position: relative; width: 3.5rem; height: 3.5rem; font-size: 1.35rem; border-radius: 50%; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(26,111,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2); border: none; cursor: pointer; pointer-events: auto; transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease; flex-shrink: 0; }
.chatbot-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(26,111,255,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.chatbot-icon-open, .chatbot-icon-close { position: absolute; transition: all 0.4s var(--transition-smooth); }
.chatbot-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); font-size: 1.125rem; }
.chatbot-widget.is-open .chatbot-icon-open { opacity: 0; transform: rotate(90deg) scale(0.5); }
.chatbot-widget.is-open .chatbot-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.chatbot-notif-dot { position: absolute; top: 2px; right: 2px; width: 0.75rem; height: 0.75rem; background-color: #ef4444; border-radius: 50%; border: 2px solid #fff; display: none; }
.chatbot-notif-dot.visible { display: block; }
.chatbot-window { position: fixed; bottom: 5.5rem; left: 0 !important; right: 0 !important; margin: 0 auto !important; width: 92vw !important; height: 400px !important; min-height: auto !important; max-height: 60vh !important; border-radius: 1.5rem; display: flex; flex-direction: column; overflow: hidden; transform: translateY(10px) scale(0.95); opacity: 0; pointer-events: none; transition: all 0.4s var(--transition-smooth); transform-origin: bottom center !important; background-color: var(--cpw-bg) !important; border: 1px solid var(--border-light); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); }
.chatbot-widget.is-open .chatbot-window { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chatbot-header { padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.chatbot-header-info { display: flex; align-items: center; gap: 0.75rem; }
.chatbot-avatar { position: relative; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-color: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; color: #fff; flex-shrink: 0; }
.chatbot-online-dot { position: absolute; bottom: 1px; right: 1px; width: 0.625rem; height: 0.625rem; background-color: #22c55e; border-radius: 50%; border: 2px solid #fff; }
.chatbot-header-name { font-size: 0.9375rem; font-weight: 800; color: #fff; margin: 0; }
.chatbot-header-status { font-size: 0.75rem; color: rgba(255,255,255,0.8); margin: 0; }
.chatbot-close-btn { width: 2rem; height: 2rem; border-radius: 50%; background-color: rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; border: none; cursor: pointer; transition: background-color 0.3s ease; flex-shrink: 0; }
.chatbot-close-btn:hover { background-color: rgba(255,255,255,0.3); transform: rotate(90deg); }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; background-color: var(--cpw-bg); }
.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-end; }
.chat-msg-bot { justify-content: flex-start; }
.chat-bubble-user { background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff; padding: 0.625rem 1rem; border-radius: 1.25rem 1.25rem 0.25rem 1.25rem; font-size: 0.875rem; line-height: 1.5; max-width: 80%; word-break: break-word; box-shadow: 0 4px 12px rgba(26,111,255,0.2); }
.chat-bubble-bot { background-color: var(--hover-bg); color: var(--cpw-text); padding: 0.625rem 1rem; border-radius: 1.25rem 1.25rem 1.25rem 0.25rem; font-size: 0.875rem; line-height: 1.6; max-width: 85%; word-break: break-word; border: 1px solid var(--border-light); }
.chat-bubble-bot a { color: var(--cpw-primary); text-decoration: underline; }
.chat-typing { display: flex; align-items: center; gap: 0.3rem; padding: 0.75rem 1rem; }
.chat-typing span { width: 0.4rem; height: 0.4rem; background-color: var(--cpw-muted); border-radius: 50%; animation: typing-bounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.chatbot-input-area { padding: 0.875rem 1rem; border-top: 1px solid var(--border-light); background-color: var(--cpw-bg); flex-shrink: 0; }
.chatbot-input-wrapper { display: flex; align-items: center; gap: 0.5rem; background-color: var(--hover-bg); border: 1px solid var(--border-light); border-radius: 9999px; padding: 0.5rem 0.5rem 0.5rem 1rem; transition: border-color 0.3s ease; }
.chatbot-input-wrapper:focus-within { border-color: var(--cpw-primary); }
.chatbot-input { flex: 1; background: none; border: none; outline: none; font-size: 0.875rem; font-family: inherit; color: var(--cpw-text); min-width: 0; }
.chatbot-input::placeholder { color: var(--cpw-muted); }
.chatbot-send-btn { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; border: none; cursor: pointer; transition: transform 0.3s var(--transition-spring); flex-shrink: 0; }
.chatbot-send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 10px rgba(26,111,255,0.3); }
.chatbot-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.chatbot-powered { font-size: 0.6875rem; color: var(--cpw-muted); text-align: center; margin: 0.5rem 0 0; }
.chat-bubble-bot .chat-link, .chat-bubble-user .chat-link { color: var(--cpw-primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; transition: opacity 0.3s ease; }
.chat-bubble-bot .chat-link:hover { opacity: 0.8; }
.chat-bubble-user .chat-link { color: rgba(255,255,255,0.9); }
.chat-bubble-bot .chat-li { display: flex; align-items: flex-start; gap: 0.4rem; margin: 0.2rem 0; }
.chat-bubble-bot .chat-li i { color: var(--cpw-primary); font-size: 0.7rem; margin-top: 0.25rem; flex-shrink: 0; }

/* BOUTON RETOUR EN HAUT */
.scroll-top-btn { position: fixed; bottom: 1.5rem; left: auto !important; right: 1.5rem !important; width: 3.5rem; height: 3.5rem; z-index: 9997; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px) !important; transition: opacity 0.5s var(--transition-smooth), visibility 0.5s, transform 0.5s var(--transition-smooth); }
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0) !important; }
.scroll-top-btn:hover { transform: translateY(-4px) !important; }
.scroll-top-btn:active { transform: translateY(0) !important; }
.scroll-top-icon { position: absolute; font-size: 1.15rem; color: var(--cpw-primary); transition: transform 0.3s var(--transition-smooth); z-index: 2; }
.scroll-top-btn:hover .scroll-top-icon { transform: translateY(-2px); }
.scroll-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.scroll-top-ring-bg { fill: var(--glass-bg); stroke: var(--border-light); stroke-width: 2; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.05)); }
.scroll-top-ring-fill { fill: none; stroke: var(--cpw-primary); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 119.38; stroke-dashoffset: 119.38; transition: stroke-dashoffset 0.1s linear; }

/* SMART ANTI-GÊNE & UTILITAIRES */
.smart-anti-gene { opacity: 0.6; transition: opacity 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth), box-shadow 0.3s ease; }
.smart-anti-gene:hover, .smart-anti-gene:focus, .chatbot-widget.is-open .smart-anti-gene { opacity: 1; }
.hidden { display: none !important; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--cpw-primary); color: #fff; padding: 8px 16px; text-decoration: none; z-index: 9999; border-radius: 0 0 8px 0; font-weight: 600; font-size: 0.875rem; transition: top 0.3s ease; }
.skip-link:focus { top: 0; }

/* RESPONSIVE */
@media (min-width: 640px) { .btn-project { display: flex; } .scroll-top-btn { bottom: 2rem; right: 2.5rem !important; width: 4rem; height: 4rem; } .chatbot-widget { bottom: 2.5rem; left: 2.5rem; } .chatbot-toggle-btn { width: 4rem; height: 4rem; font-size: 1.5rem; } .chatbot-window { position: absolute; bottom: calc(100% + 1rem); left: 0 !important; right: auto !important; margin: 0 !important; width: 360px !important; height: 400px !important; max-height: none !important; transform-origin: bottom left !important; } .newsletter-form-inner { flex-direction: row; } .exit-popup-box { padding: 3.5rem 3rem; } .exit-popup-title { font-size: 2rem; } }
@media (min-width: 768px) { .btn-icon-primary, .nav-login { display: flex; } .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-bottom { flex-direction: row; } .blog-article-body { font-size: 1.125rem; } .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.25rem 2rem; } .newsletter-box { padding: 4rem 4.5rem; } .newsletter-title { font-size: 2rem; } .footer-tagline { font-size: 0.8125rem; } }
@media (min-width: 1024px) { .header-glass { padding: 0.5rem; } .nav-desktop { display: flex; } .btn-menu-mobile { display: none; } .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .chatbot-window { width: 380px !important; height: 460px !important; max-height: 560px; } }

/* NEWSLETTER FOOTER INLINE */
.footer-col-newsletter { margin-top: 1.75rem; }
.footer-col-newsletter-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cpw-muted); margin-bottom: 0.75rem; }
.footer-col-newsletter-form { display: flex; align-items: center; gap: 0; background-color: var(--hover-bg); border: 1px solid var(--border-light); border-radius: 9999px; overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.footer-col-newsletter-form:focus-within { border-color: var(--cpw-primary); box-shadow: 0 0 0 3px rgba(26,111,255,0.1); }
.footer-col-newsletter-input { flex: 1; background: none; border: none; outline: none; padding: 0.625rem 1rem; font-size: 0.875rem; font-family: inherit; color: var(--cpw-text); min-width: 0; }
.footer-col-newsletter-input::placeholder { color: var(--cpw-muted); }
.footer-col-newsletter-btn { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; margin: 0.25rem; flex-shrink: 0; transition: transform 0.3s var(--transition-spring), box-shadow 0.3s ease; box-shadow: 0 4px 12px rgba(26,111,255,0.3); }
.footer-col-newsletter-btn:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(26,111,255,0.4); }
.footer-col-newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.footer-col-newsletter-success { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700; color: #16a34a; margin-top: 0.75rem; }
.footer-col-newsletter-success.hidden { display: none !important; }

/* NEWSLETTER ARTICLE */
.article-newsletter-section { padding: 4rem 0 2rem; }
.article-newsletter-box { text-align: center; padding: 3.5rem 2.5rem; border-radius: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; background: linear-gradient(135deg, rgba(26,111,255,0.05), rgba(124,58,237,0.05)); border: 1px solid rgba(26,111,255,0.12); position: relative; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); }
.article-newsletter-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cpw-primary), #60a5fa); }
.article-newsletter-icon { width: 4rem; height: 4rem; border-radius: 1.25rem; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-accent)); color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(26,111,255,0.3); }
.article-newsletter-title { font-size: 1.75rem; font-weight: 800; color: var(--cpw-text); letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.article-newsletter-desc { font-size: 1rem; color: var(--cpw-text); opacity: 0.75; line-height: 1.7; max-width: 460px; margin: 0; }
.article-newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 480px; }
.article-newsletter-input { flex: 1; padding: 0.875rem 1.25rem; border-radius: 9999px; border: 1px solid rgba(150,150,150,0.25); background-color: var(--cpw-bg); color: var(--cpw-text); font-size: 0.9375rem; font-family: inherit; outline: none; transition: all 0.3s var(--transition-smooth); }
.article-newsletter-input:focus { border-color: var(--cpw-primary); box-shadow: 0 0 0 3px rgba(26,111,255,0.1); }
.article-newsletter-input::placeholder { color: var(--cpw-muted); }
.article-newsletter-btn { flex-shrink: 0; padding: 0.875rem 2rem; border-radius: 9999px; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff; font-weight: 700; font-size: 0.9375rem; border: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; box-shadow: 0 8px 20px rgba(26,111,255,0.3); transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease; }
.article-newsletter-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(26,111,255,0.4); }
.article-newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.article-newsletter-success { display: none; align-items: center; gap: 0.625rem; padding: 0.875rem 1.5rem; border-radius: 9999px; background-color: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #16a34a; font-weight: 700; font-size: 0.9375rem; }
.article-newsletter-success:not(.hidden) { display: flex; }
.article-newsletter-privacy { font-size: 0.8125rem; color: var(--cpw-muted); margin: -0.25rem 0 0; }
.article-newsletter-privacy a { color: var(--cpw-primary); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 640px) { .article-newsletter-form { flex-direction: row; } .article-newsletter-btn { white-space: nowrap; } }
@media (min-width: 768px) { .article-newsletter-box { padding: 4rem 4.5rem; } .article-newsletter-title { font-size: 2rem; } }

/* BARRE DE NAVIGATION MOBILE FIXE EN BAS */
.mobile-bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100; background-color: var(--glass-bg); backdrop-filter: blur(30px) saturate(200%); -webkit-backdrop-filter: blur(30px) saturate(200%); border-top: 1px solid rgba(150,150,150,0.15); box-shadow: 0 -4px 30px -4px rgba(0, 0, 0, 0.08); padding: 0.375rem 0 calc(0.375rem + env(safe-area-inset-bottom)); justify-content: space-around; align-items: stretch; }
.mobile-bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 0.2rem; padding: 0.375rem 0.25rem; color: var(--cpw-muted); font-size: 0.625rem; font-weight: 600; text-decoration: none; transition: color 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth); -webkit-tap-highlight-color: transparent; border-radius: 0.75rem; position: relative; }
.mobile-bottom-nav-item i { font-size: 1.125rem; transition: transform 0.4s var(--transition-spring), color 0.3s ease; line-height: 1; }
.mobile-bottom-nav-item:hover, .mobile-bottom-nav-item.active { color: var(--cpw-primary); }
.mobile-bottom-nav-item.active i { transform: translateY(-2px); }
.mobile-bottom-nav-item.active::before { content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); width: 2rem; height: 3px; background: linear-gradient(90deg, var(--cpw-primary), #60a5fa); border-radius: 0 0 9999px 9999px; }
.mobile-bottom-nav-cta { position: relative; }
.mobile-bottom-nav-cta i { width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(135deg, var(--cpw-primary), var(--cpw-primary-dark)); color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 1.125rem !important; box-shadow: 0 8px 24px -4px rgba(26, 111, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.2); margin-top: -1rem; transition: transform 0.4s var(--transition-spring), box-shadow 0.3s ease; }
.mobile-bottom-nav-cta:hover i, .mobile-bottom-nav-cta.active i { transform: scale(1.1) translateY(-2px); box-shadow: 0 12px 28px -4px rgba(26, 111, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.mobile-bottom-nav-cta.active::before { display: none; }
.mobile-bottom-nav-cta span { color: var(--cpw-primary); font-weight: 700; }
@media (min-width: 1024px) { .mobile-bottom-nav { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)) !important; } }
@media (max-width: 1023px) { .chatbot-widget { bottom: calc(5rem + env(safe-area-inset-bottom)); } .scroll-top-btn { bottom: calc(5rem + env(safe-area-inset-bottom)) !important; } }

/* WIDGETS AVIS GOOGLE */
.google-badge-footer { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; border-radius: 12px; background-color: var(--hover-bg); border: 1px solid var(--border-light); color: var(--cpw-text); text-decoration: none; transition: all 0.3s var(--transition-smooth); margin-top: 1rem; }
.google-badge-footer:hover { background-color: var(--glass-highlight); border-color: rgba(66, 133, 244, 0.3); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.google-badge-footer .google-icon { font-size: 1.5rem; color: #4285F4; }
.google-badge-content { display: flex; flex-direction: column; gap: 0.1rem; }
.google-stars { color: #FBBC05; font-size: 0.75rem; display: flex; gap: 2px; }
.google-badge-content span { font-size: 0.75rem; opacity: 0.8; }
.google-badge-hero { display: inline-flex; align-items: center; gap: 1rem; padding: 0.75rem 1.25rem; border-radius: 16px; background-color: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--cpw-text); text-decoration: none; transition: all 0.3s var(--transition-smooth); margin: 0 1rem; box-shadow: var(--shadow-ios); }
.google-badge-hero:hover { border-color: rgba(66, 133, 244, 0.3); transform: translateY(-3px); box-shadow: 0 8px 24px -4px rgba(66, 133, 244, 0.15); }
.gbh-left { display: flex; flex-direction: column; align-items: flex-end; }
.gbh-score { font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--cpw-text); }
.gbh-stars { color: #FBBC05; font-size: 0.65rem; margin-top: 0.2rem; }
.gbh-divider { width: 1px; height: 30px; background-color: var(--border-light); }
.gbh-right { display: flex; flex-direction: column; align-items: flex-start; }
.gbh-right i { color: #4285F4; font-size: 1.1rem; margin-bottom: 0.1rem; }
.gbh-right span { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
@media (min-width: 768px) { .google-badge-footer { margin-top: 0; } }
.social-btn.phone { background-color: rgba(26, 111, 255, 0.1); color: #1a6fff; border-color: rgba(26, 111, 255, 0.2); }
.social-btn.whatsapp { background-color: rgba(37, 211, 102, 0.1); color: #25D366; border-color: rgba(37, 211, 102, 0.2); }
.social-btn.email { background-color: rgba(124, 58, 237, 0.1); color: #7c3aed; border-color: rgba(124, 58, 237, 0.2); }
.social-btn.facebook { background-color: rgba(24, 119, 242, 0.1); color: #1877F2; border: 1px solid rgba(24, 119, 242, 0.2); box-shadow: 0 4px 12px -2px rgba(0,0,0,0.05); }
.social-btn.facebook:hover { background-color: rgba(24, 119, 242, 0.18) !important; color: #1877F2 !important; border-color: rgba(24, 119, 242, 0.35) !important; transform: translateY(-3px) !important; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25) !important; }
.social-btn.whatsapp i { font-size: 1.45rem; }

/* ================================================
   HEADER — TELEPHONE ADAPTATIF
   ================================================ */
.header-phone-link {
    display: none;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--cpw-text);
    opacity: 0.85;
    padding: 0.5rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid var(--border-light);
    background-color: var(--hover-bg);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s var(--transition-smooth);
}
.header-phone-link i {
    font-size: 0.75rem;
    color: var(--cpw-primary);
    flex-shrink: 0;
}
.header-phone-text {
    display: none;
}
.header-phone-link:hover {
    opacity: 1;
    color: var(--cpw-primary);
    border-color: rgba(26, 111, 255, 0.25);
    background-color: rgba(26, 111, 255, 0.06);
}
/* 1024px–1279px : icône seule */
@media (min-width: 1024px) {
    .header-phone-link { display: flex; }
}
/* 1280px+ : icône + numéro complet */
@media (min-width: 1280px) {
    .header-phone-link { display: flex; }
}

/* ================================================
   OFFCANVAS — STRUCTURE FLEX AVEC FOOTER FIXE
   ================================================ */
.offcanvas-panel {
    display: flex;
    flex-direction: column;
}
.offcanvas-body {
    flex: 1;
    overflow-y: auto;
}
.offcanvas-footer {
    flex-shrink: 0;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: linear-gradient(to bottom, transparent, var(--panel-bg) 30%);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.offcanvas-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background-color: rgba(26, 111, 255, 0.06);
    border: 1px solid rgba(26, 111, 255, 0.15);
    color: var(--cpw-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    transition: all 0.3s var(--transition-smooth);
}
.offcanvas-tel i {
    font-size: 0.875rem;
    flex-shrink: 0;
}
.offcanvas-tel:hover {
    background-color: rgba(26, 111, 255, 0.12);
    border-color: rgba(26, 111, 255, 0.25);
}
.offcanvas-footer .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
}

/* ================================================
   FOOTER — ADRESSE PHYSIQUE
   ================================================ */
.footer-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-style: normal;
    color: var(--cpw-text);
    opacity: 0.7;
    margin-bottom: 1.25rem;
}
.footer-address i {
    font-size: 0.875rem;
    color: var(--cpw-primary);
    flex-shrink: 0;
}

/* ================================================
   FOND BODY — GRADIENT PREMIUM
   ================================================ */

body {
    background-image:
        radial-gradient(ellipse 80% 50% at 15% 0%,   rgba(26, 111, 255, 0.07)  0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 10%,  rgba(124, 58, 237, 0.05)  0%, transparent 55%),
        radial-gradient(ellipse 50% 35% at 50% 100%, rgba(6, 182, 212, 0.04)   0%, transparent 50%);
    background-attachment: fixed;
}

[data-theme="dark"] body,
[data-theme="dark"] {
    background-image:
        radial-gradient(ellipse 80% 50% at 15% 0%,   rgba(77, 142, 255, 0.09)  0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 10%,  rgba(167, 108, 255, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 35% at 50% 100%, rgba(34, 211, 238, 0.05)  0%, transparent 50%);
    background-attachment: fixed;
}

/* ================================================
   GRILLES CARREAUX — NEUTRALISATION GLOBALE
   Toutes les grilles de toutes les pages
   ================================================ */

.portfolio-hero-grid,
.cs-hero-grid,
.faq-hero-grid,
.blog-hero-grid,
.about-hero-grid,
.devis-hero-grid {
    background-image: none !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* ================================================
   ORBE SECONDAIRE VIOLET — REMPLACEMENT DES GRILLES
   Ajouté via ::after sur les sections hero
   ================================================ */

.portfolio-hero,
.cs-hero,
.faq-hero,
.blog-hero {
    isolation: isolate;
}

.portfolio-hero::after,
.cs-hero::after,
.faq-hero::after,
.blog-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -8%;
    width: 45%;
    height: 70%;
    background: radial-gradient(
        ellipse,
        rgba(124, 58, 237, 0.06) 0%,
        transparent 65%
    );
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .portfolio-hero::after,
[data-theme="dark"] .cs-hero::after,
[data-theme="dark"] .faq-hero::after,
[data-theme="dark"] .blog-hero::after {
    background: radial-gradient(
        ellipse,
        rgba(167, 108, 255, 0.09) 0%,
        transparent 65%
    );
}

/* ================================================
   GLASSMORPHISME — RAFFINEMENT GLOBAL
   ================================================ */

.glass-ios {
    backdrop-filter: blur(48px) saturate(220%);
    -webkit-backdrop-filter: blur(48px) saturate(220%);
    border-color: rgba(26, 111, 255, 0.08);
    box-shadow:
        0 8px 30px -6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .glass-ios {
    border-color: rgba(77, 142, 255, 0.12);
    box-shadow:
        0 8px 30px -6px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ================================================
   HEADER — GLASSMORPHISME RENFORCÉ
   ================================================ */

.header-glass {
    backdrop-filter: blur(48px) saturate(220%);
    -webkit-backdrop-filter: blur(48px) saturate(220%);
    border-color: rgba(26, 111, 255, 0.08);
    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.06),
        0 2px 8px -2px rgba(26, 111, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.header-glass.shadow-lg {
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 4px 16px -4px rgba(26, 111, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ================================================
   NAVIGATION DESKTOP — TEINTE BLEUE SUBTILE
   ================================================ */

.nav-desktop {
    background-color: rgba(26, 111, 255, 0.04);
    border-color: rgba(26, 111, 255, 0.08);
}

/* ================================================
   HOVER BG — TEINTE BLEUE AU LIEU DU GRIS NEUTRE
   ================================================ */

:root {
    --hover-bg: rgba(26, 111, 255, 0.035);
    --border-light: rgba(26, 111, 255, 0.07);
    --glass-border: rgba(26, 111, 255, 0.08);
}

[data-theme="dark"] {
    --hover-bg: rgba(77, 142, 255, 0.06);
    --border-light: rgba(77, 142, 255, 0.1);
    --glass-border: rgba(77, 142, 255, 0.12);
}

/* ================================================
   FOOTER — FONDU VERS LE BAS
   ================================================ */

.footer-main {
    border-top-color: rgba(26, 111, 255, 0.08);
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--glass-bg) 10%
    );
}

/* ================================================
   BOUTIQUE E-COMMERCE — AJOUTS SPECIFIQUES
   ================================================ */

/* Forcer l'affichage des icônes d'action sur Desktop */
@media (min-width: 768px) {
    .header-actions .btn-icon-primary {
        display: flex;
    }
    .header-actions .nav-login {
        display: flex;
    }
}

/* Style du badge du panier (Desktop & Général) */
.cart-trigger-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444; /* Rouge alerte */
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--cpw-surface);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.pop {
    transform: scale(1.3);
}

/* Style du badge pour la navigation basse mobile */
.mobile-bottom-badge {
    top: -2px;
    right: -8px;
    border-color: var(--cpw-primary); /* S'adapte au bouton bleu */
}

/* Ajustement de l'icône dans la navigation basse */
.mobile-bottom-nav-cta i {
    position: relative;
}

/* Badge texte pour le menu Offcanvas */
.mobile-cart-count {
    color: #ef4444;
    font-size: 0.9rem;
    margin-left: auto;
    font-weight: 800;
}




