/*
Theme Name: Organilog 3D ACF Theme
Theme URI: https://organilog-3d.com
Description: Thème custom Organilog 3D — tout le contenu est géré via ACF. Design SaaS moderne.
Version: 1.0.0
Author: Organilog
Text Domain: organilog3d
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #5420E3;
    --primary-hover: #4119B8;
    --primary-light: #EDE5FC;
    --secondary: #47CEC0;
    --secondary-light: #E8F8F6;
    --dark: #1a1a2e;
    --text: #213140;
    --text-light: #5A6B7B;
    --bg: #FFFFFF;
    --bg-alt: #F7F8FA;
    --border: #E5E7EB;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 { color: var(--text); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-light); line-height: 1.7; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.125rem; color: var(--text-light); max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(84, 32, 227, 0.35);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(84, 32, 227, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-hover);
}

.btn-arrow::after { content: ' \2192'; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    padding: 8px 0;
}

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

.top-bar a {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-bar a:hover { color: var(--primary); }

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ============================================
   HEADER / NAV — Cartouche flottante
   ============================================ */
/* Note : le sticky du chrome (topbar + cartouche) est géré par
   .org-sticky-chrome via organilog-core. On laisse le natif faire son boulot.
   La box-shadow du wrapper (qui créait la "bande") est neutralisée via inline
   style en wp_head priorité 1000 (voir functions.php). */
.site-header {
    background: transparent;
    z-index: 1000;
    padding: 12px 24px 6px;
}

/* La cartouche flottante elle-même */
.site-header > .container {
    position: relative;
    background: #fff;
    border-radius: 10px;
    border: 1.5px solid rgba(84, 32, 227, 0.35);
    padding: 0 26px;
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.03),
        0 4px 10px rgba(15, 23, 42, 0.04),
        0 22px 44px rgba(84, 32, 227, 0.16);
    transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled > .container {
    border-color: rgba(84, 32, 227, 0.55);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.04),
        0 6px 14px rgba(15, 23, 42, 0.06),
        0 28px 60px rgba(84, 32, 227, 0.22);
}

/* Highlight subtil en haut de la cartouche (effet "verre") */
.site-header > .container::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}
.site-logo span { color: var(--primary); }
.site-logo img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav > li {
    list-style: none;
    position: relative;
}

.main-nav > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.1px;
    border-radius: 10px;
    cursor: pointer; /* <a> sans href : on garde le pointer pour la cohérence visuelle */
    transition: color .18s ease, background .18s ease;
}
/* Empêche le caret de texte sur les <a> sans href */
.main-nav > li > a:not([href]),
.mega-menu-item:not([href]),
.header-cta > a:not([href]) {
    cursor: pointer;
}

.main-nav > li > a:hover,
.main-nav > li:hover > a {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-arrow { font-size: 0.625rem; transition: transform .25s ease; }
.main-nav > li:hover .nav-arrow { transform: rotate(180deg); }

/* ============ MEGA MENU (refonte aérée) ============ */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
    padding: 36px;
    min-width: 800px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 100;
}

/* Pont invisible permanent : couvre le gap entre le trigger et le menu pour fiabiliser le hover */
.main-nav > li::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 24px;
    pointer-events: none;
}
@media (min-width: 769px) {
    .main-nav > li:hover::after,
    .main-nav > li:focus-within::after,
    .main-nav > li.is-hover::after {
        pointer-events: auto;
    }

    .main-nav > li:hover .mega-menu,
    .main-nav > li:focus-within .mega-menu,
    .main-nav > li.is-hover .mega-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

/* Petite flèche/diamond pour relier visuellement le menu à son trigger */
.mega-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 10px;
    transition: background .18s ease, transform .18s ease;
    text-decoration: none;
}
.mega-menu-item:hover { background: var(--bg-alt); transform: translateY(-1px); }

.mega-menu-icon {
    font-size: 1.25rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    flex-shrink: 0;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.mega-menu-item:hover .mega-menu-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.04);
}

/* Variante compacte : dropdown 1 colonne (peu d'items) */
.mega-menu--compact {
    min-width: 320px;
    padding: 14px;
}
.mega-menu--compact .mega-menu-grid {
    gap: 4px;
}
.mega-menu--compact .mega-menu-item {
    padding: 12px 14px;
    gap: 14px;
}
.mega-menu--compact .mega-menu-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
}
.mega-menu--compact .mega-menu-text p {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.mega-menu-text { min-width: 0; }
.mega-menu-text h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.35;
}
.mega-menu-text p {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

.header-cta { flex-shrink: 0; }

/* Mobile menu toggle */
/* Checkbox toggle — hidden, drives :checked state */
.menu-toggle {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
}
/* Hamburger label — the visible button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1050;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ============================================
   HERO — IMMERSIVE CRISP-STYLE
   ============================================ */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 40%, rgba(84,32,227,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(71,206,192,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(84,32,227,0.04) 0%, transparent 50%),
        linear-gradient(180deg, #F8F7FF 0%, #FFFFFF 50%, var(--bg-alt) 100%);
    z-index: 0;
    animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.badge-stars {
    color: #F59E0B;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #7B4FFF 50%, var(--secondary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 4s ease-in-out infinite alternate;
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.8;
    max-width: 520px;
}

.hero-features {
    list-style: none;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9375rem;
}

.hero-features li::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

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

.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* --- Dashboard Mockup --- */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-mockup {
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(84,32,227,0.15),
        0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: rotateY(-3deg) rotateX(2deg);
    transition: transform 0.6s ease;
    border: 1px solid rgba(84,32,227,0.1);
}

.dashboard-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2D3748 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }

.mockup-title {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.mockup-body {
    display: flex;
    min-height: 300px;
}

.mockup-sidebar {
    width: 160px;
    background: var(--bg-alt);
    padding: 16px 0;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-item {
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    transition: var(--transition);
}

.sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-right: 3px solid var(--primary);
}

.si-icon { font-size: 1rem; }

.mockup-content {
    flex: 1;
    padding: 20px;
}

.mockup-stat-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-stat {
    flex: 1;
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--border);
}

.mockup-stat.accent { border-color: var(--primary-light); background: #F5F0FF; }
.mockup-stat.success { border-color: var(--secondary-light); background: #F0FDF9; }

.ms-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}
.mockup-stat.accent .ms-num { color: var(--primary); }
.mockup-stat.success .ms-num { color: var(--secondary); }

.ms-label {
    font-size: 0.625rem;
    color: var(--text-light);
    font-weight: 500;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.chart-bar {
    flex: 1;
    height: 0;
    background: linear-gradient(180deg, rgba(84,32,227,0.3) 0%, rgba(84,32,227,0.1) 100%);
    border-radius: 6px 6px 0 0;
    animation: barGrow 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

.chart-bar.highlight {
    background: linear-gradient(180deg, var(--primary) 0%, rgba(84,32,227,0.6) 100%);
}

/* --- Hero product image (real image mode) --- */
.hero-image-wrapper {
    position: relative;
}

.hero-product-img {
    border-radius: 20px;
    box-shadow:
        0 25px 80px rgba(84,32,227,0.15),
        0 8px 30px rgba(0,0,0,0.08);
    animation: heroFloat 4s ease-in-out infinite;
    width: 100%;
    max-width: 600px;
}

.hero-product-placeholder {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(84,32,227,0.15);
    overflow: hidden;
    border: 1px solid rgba(84,32,227,0.1);
}

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

/* ============================================
   TRUST BANNER
   ============================================ */
.trust-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #7B4FFF 100%);
    padding: 32px 0;
    color: #fff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.trust-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
}

.trust-text span {
    font-size: 0.75rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr; }
}

@keyframes barGrow {
    to { height: var(--h); }
}

/* --- Floating Notifications --- */
.notif {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    animation: notifSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.notif-1 { top: 5%; right: -30px; animation-delay: 1.5s; }
.notif-2 { top: 35%; right: -50px; animation-delay: 2.2s; }
.notif-3 { bottom: 25%; left: -40px; animation-delay: 2.9s; transform: translateX(-30px) scale(0.9); }
.notif-4 { bottom: 0%; right: -20px; animation-delay: 3.6s; }

.notif-3 {
    animation-name: notifSlideInLeft;
}

@keyframes notifSlideIn {
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes notifSlideInLeft {
    from { opacity: 0; transform: translateX(-30px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.notif::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    animation: notifGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes notifGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(84,32,227,0); }
    50% { box-shadow: 0 0 0 4px rgba(84,32,227,0.06); }
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-green { background: #ECFDF5; }
.notif-blue { background: #EFF6FF; }
.notif-purple { background: var(--primary-light); }
.notif-orange { background: #FFF7ED; }

.notif-text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.notif-text span {
    font-size: 0.6875rem;
    color: var(--text-light);
}

/* --- Animate in --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate="fadeInLeft"] { transform: translateX(-30px); }
[data-animate="fadeInRight"] { transform: translateX(30px); }
[data-animate="fadeInDown"] { transform: translateY(-20px); }
[data-animate="fadeInUp"] { transform: translateY(30px); }

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   TRUST BAR / LOGOS
   ============================================ */
.logos-section {
    padding: 60px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logos-section h3 {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logos-grid img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition);
}
.logos-grid img:hover {
    filter: grayscale(0%) opacity(1);
}

/* ============================================
   FEATURES
   ============================================ */
.feature-section { padding: 100px 0; }
.feature-section.bg-alt { background: var(--bg-alt); }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }

.feature-content .section-tag { margin-bottom: 16px; }
.feature-content h2 { margin-bottom: 16px; }
.feature-content > p { margin-bottom: 24px; }

.feature-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text);
}

.feature-checklist li::before {
    content: '';
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--secondary-light);
    border-radius: 50%;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2347CEC0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.feature-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.feature-link:hover { gap: 12px; }

/* ============================================
   GRID CARDS
   ============================================ */
.grid-section { padding: 100px 0; background: var(--bg-alt); }

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.card h3 { margin-bottom: 10px; font-size: 1.125rem; }
.card p { font-size: 0.9375rem; line-height: 1.6; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
}
.card-link:hover { gap: 10px; }

/* ============================================
   STATS
   ============================================ */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #7B4FFF 100%);
    color: #fff;
}

.stats-section .section-header { text-align: center; margin-bottom: 60px; }
.stats-section h2 { color: #fff; }
.stats-section .section-subtitle { color: rgba(255,255,255,0.8); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 32px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-alt);
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #F59E0B;
    font-size: 1.125rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

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

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

.testimonial-name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-company { font-size: 0.8125rem; color: var(--text-light); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--dark);
    text-align: center;
    color: #fff;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1.125rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #213140;
    color: rgba(255,255,255,0.8);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .site-logo { color: #fff; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.6); }

.footer-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
}
.footer-rating .stars { color: #F59E0B; }

/* Contact rows (adresse, téléphone) */
.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}
.footer-contact-row a { color: inherit; }
.footer-contact-row a:hover { color: #fff; }
.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    flex-shrink: 0;
}

/* Bouton "Demander une démonstration" dans la colonne marque */
.footer-cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}
.footer-cta-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

/* Lien spécial "Et bien d'autres fonctionnalités" — bloc mis en avant */
.footer-link-special {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-link-special a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}
.footer-link-special a:hover {
    background: var(--primary);
    transform: translateY(-1px);
    color: #fff;
}
.footer-link-special-icon {
    display: inline-flex;
    align-items: center;
    color: currentColor;
}

/* Réseaux sociaux */
.footer-col-socials .footer-socials {
    display: flex;
    gap: 10px;
}
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.footer-social:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* Bandeau écosystème — version discrète */
.footer-ecosystem {
    padding: 14px 0 6px;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.28);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}
.footer-ecosystem-label {
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    margin-right: 4px;
    text-transform: none;
}
.footer-ecosystem a {
    color: rgba(255,255,255,0.32);
    transition: color .18s ease;
}
.footer-ecosystem a:hover { color: rgba(255,255,255,0.7); }
.footer-ecosystem-sep { color: rgba(255,255,255,0.15); }

.footer-col h4 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    transition: var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: #fff; }

.footer-legal { display: flex; gap: 24px; }

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero { min-height: auto; padding: 60px 0; }
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }
    .notif { display: none; }
    .mockup-sidebar { display: none; }
    .feature-grid { grid-template-columns: 1fr; gap: 40px; }
    .feature-grid.reverse { direction: ltr; }
    .feature-image { order: -1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    /* ── Mobile: make header the positioning context ── */
    .site-header { position: relative; }
    .site-header > .container { overflow: visible; }

    /* ── Hamburger visible ── */
    .hamburger { display: flex !important; }
    .header-cta { display: none; }

    /* ── Hamburger → X animation (via :checked on sibling input) ── */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* ── Mobile nav container ── */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    /* Pure CSS toggle: checkbox checked → show nav */
    .menu-toggle:checked ~ .main-nav { display: flex !important; }

    /* ── Kill desktop hover bridge ── */
    .main-nav > li::after { display: none; }

    /* ── Nav items ── */
    .main-nav > li {
        width: 100%;
        border-bottom: 1px solid #f3f3f3;
        position: static;
        list-style: none;
    }
    .main-nav > li:last-child { border-bottom: none; }
    .main-nav > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        border-radius: 0;
        background: none;
    }

    /* ── Chevron on items with mega-menu ── */
    .main-nav > li.has-mega > a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--text-light);
        border-bottom: 2px solid var(--text-light);
        transform: rotate(45deg);
        transition: transform 0.3s;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .main-nav > li.has-mega.sub-open > a::after {
        transform: rotate(-135deg);
    }
    .main-nav > li.has-mega.sub-open > a {
        color: var(--primary);
        background: var(--primary-light);
    }

    /* ── Mega-menu reset for mobile ── */
    .mega-menu,
    .mega-menu.mega-menu--compact {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 0 10px 15px !important;
        min-width: 100% !important;
        width: 100% !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none;
        background: var(--primary-light);
    }
    .mega-menu::before { display: none !important; }
    .main-nav > li.has-mega.sub-open > .mega-menu {
        display: flex !important;
        flex-direction: column;
    }

    /* ── Mega-menu grid & items ── */
    .mega-menu-grid { grid-template-columns: 1fr !important; gap: 0; }
    .mega-menu-item {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(84, 32, 227, 0.08);
        border-radius: 0;
        gap: 12px;
    }
    .mega-menu-item:last-child { border-bottom: none; }
    .mega-menu-item:hover { background: rgba(84, 32, 227, 0.06); transform: none; }
    .mega-menu-icon {
        font-size: 16px;
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .mega-menu-text h4 { font-size: 14px; }
    .mega-menu-text p { font-size: 12px; line-height: 1.4; }

    /* ── Mobile CTA button in nav ── */
    .main-nav .mobile-cta-wrap {
        display: list-item !important;
        list-style: none;
        padding: 10px 20px;
        border-bottom: none;
    }
    .main-nav .mobile-cta {
        display: block;
        padding: 14px;
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        text-align: center;
        text-decoration: none;
        border-radius: 10px;
        width: 100%;
    }
    .main-nav .mobile-cta:hover {
        background: var(--primary-hover);
        color: #fff;
    }

    .hero { padding: 40px 0; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    .cards-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .logos-grid { gap: 24px; }
    .logos-grid img { height: 30px; }
}

/* ============================================
   ADMIN NOTICE FOR GLOBAL BLOCKS
   ============================================ */
.admin-notice-block {
    background: #FFF3CD;
    border: 1px solid #FFEAA7;
    border-left: 4px solid #F59E0B;
    padding: 10px 20px;
    font-size: 0.8125rem;
    color: #856404;
    text-align: center;
}
.admin-notice-block a {
    color: #856404;
    font-weight: 700;
    text-decoration: underline;
}

/* ============================================
   WP ADMIN BAR FIX
   ============================================ */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}
