/* ========================================
 * VARIABLES CSS - Couleurs et typographie
 * ======================================== */
:root {
    /* Couleurs principales - Palette MatrixPay inspirée */
    --color-background: #0a0e14;
    --color-background-secondary: #0f1419;
    --color-background-card: rgba(15, 20, 25, 0.6);
    --color-accent: #00ffaa;
    --color-accent-secondary: #00d4aa;
    --color-accent-glow: rgba(0, 255, 170, 0.3);
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0aec0;
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00ffaa 0%, #00d4aa 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 255, 170, 0.05) 0%, rgba(0, 212, 170, 0.05) 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(0, 255, 170, 0.15) 0%, transparent 50%);
    
    /* Typographie */
    --font-family: 'Poppins', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Effets glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blur-amount: 12px;
}

/* ========================================
 * RESET ET BASE
 * ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    cursor: none; /* Cache le curseur par défaut pour afficher le personnalisé */
}

/* Sur les écrans tactiles, on rétablit le curseur natif */
@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
}

/* Images fluides par défaut */
img, svg {
    max-width: 100%;
    height: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(0, 255, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 2200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 1;
}

/* Offres masquees */
.navigation .nav-link[href$="#offres"],
.offres-section,
.offers-card {
    display: none !important;
}

/* ========================================
 * 1. HEADER ET NAVIGATION
 * ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
    padding: 0.35rem 0;
    transition: all var(--transition-normal);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .container::before,
.header .container::after {
    content: '';
    position: absolute;
    left: clamp(0.8rem, 2vw, 1.8rem);
    right: clamp(0.8rem, 2vw, 1.8rem);
    pointer-events: none;
    display: none;
}

.header .container::before {
    bottom: -0.72rem;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 255, 170, 0) 0%,
        rgba(5, 36, 26, 0.04) 8%,
        rgba(9, 63, 44, 0.12) 24%,
        rgba(14, 95, 67, 0.22) 40%,
        rgba(20, 156, 110, 0.46) 50%,
        rgba(14, 95, 67, 0.22) 60%,
        rgba(9, 63, 44, 0.12) 76%,
        rgba(5, 36, 26, 0.04) 92%,
        transparent 100%
    );
    clip-path: polygon(
        0 88%,
        8% 87%,
        18% 85%,
        30% 80%,
        40% 70%,
        50% 34%,
        60% 70%,
        70% 80%,
        82% 85%,
        92% 87%,
        100% 88%,
        100% 100%,
        0 100%
    );
    filter: blur(9px);
    opacity: 0.94;
    z-index: 0;
}

.header .container::after {
    bottom: -0.16rem;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 255, 170, 0) 0%,
        rgba(8, 60, 42, 0.12) 8%,
        rgba(12, 86, 60, 0.3) 24%,
        rgba(16, 122, 86, 0.56) 40%,
        rgba(28, 255, 183, 0.98) 50%,
        rgba(16, 122, 86, 0.56) 60%,
        rgba(12, 86, 60, 0.3) 76%,
        rgba(8, 60, 42, 0.12) 92%,
        rgba(0, 255, 170, 0) 100%
    );
    clip-path: polygon(
        0 78%,
        10% 77%,
        22% 74%,
        34% 69%,
        44% 56%,
        50% 18%,
        56% 56%,
        66% 69%,
        78% 74%,
        90% 77%,
        100% 78%,
        100% 100%,
        0 100%
    );
    box-shadow:
        0 0 12px rgba(0, 255, 170, 0.18),
        0 0 28px rgba(0, 255, 170, 0.08);
    z-index: 0;
}

.header .container > *:not(.navigation):not(.nav-toggle) {
    position: relative;
    z-index: 1;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
}

.home-page .header .logo {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.94);
}

.home-page.show-header-logo .header .logo {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.logo-image {
    width: clamp(44px, 4.2vw, 64px);
    height: clamp(44px, 4.2vw, 64px);
    object-fit: fill;
    border-radius: 50%;
    background-color: transparent;

    padding: 0;
    margin: 0;
    display: block;
    transition: all var(--transition-normal);
}

/* ========================================
 * BOUTON HAMBURGER (mobile)
 * ======================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 42px;
    height: 36px;
    padding: 8px 6px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    transition: all var(--transition-normal);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] {
    border-color: var(--color-accent);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: var(--color-accent);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background: var(--color-accent);
}

/* Backdrop derrière la nav mobile */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Cacher le CTA "mobile" du drawer par défaut (utilisé par les sous-pages) */
.demo-button--mobile {
    display: none !important;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(140, 70%, 50%, 0.3);
}

/* Styles du texte logo (utilisé par les sous-pages, ex: "VeryAgenda") */
.logo-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: 1px;
}

body:not(.home-page) .header .logo .logo-text {
    display: none;
}

/* Navigation */
.navigation {
    display: flex;
    gap: var(--spacing-sm);
    position: relative;
    overflow: visible;
}

.header::before,
.header::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(620px, 74vw, 1120px);
    pointer-events: none;
}

.header::before {
    bottom: -1rem;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 255, 170, 0) 0%,
        rgba(139, 255, 140, 0.03) 9%,
        rgba(139, 255, 140, 0.08) 25%,
        rgba(139, 255, 140, 0.14) 40%,
        rgba(139, 255, 140, 0.24) 50%,
        rgba(139, 255, 140, 0.14) 60%,
        rgba(139, 255, 140, 0.08) 75%,
        rgba(139, 255, 140, 0.03) 91%,
        transparent 100%
    );
    clip-path: polygon(
        0 86%,
        10% 85%,
        22% 83%,
        34% 79%,
        44% 70%,
        50% 52%,
        56% 70%,
        66% 79%,
        78% 83%,
        90% 85%,
        100% 86%,
        100% 100%,
        0 100%
    );
    filter: blur(7px);
    opacity: 0.95;
    z-index: 0;
}

.header::after {
    bottom: -0.2rem;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0, 255, 170, 0) 0%,
        rgba(139, 255, 140, 0.04) 8%,
        rgba(139, 255, 140, 0.14) 24%,
        rgba(139, 255, 140, 0.34) 40%,
        rgba(139, 255, 140, 0.8) 50%,
        rgba(139, 255, 140, 0.34) 60%,
        rgba(139, 255, 140, 0.14) 76%,
        rgba(139, 255, 140, 0.04) 92%,
        rgba(0, 255, 170, 0) 100%
    );
    clip-path: polygon(
        0 82%,
        12% 81%,
        24% 79%,
        36% 74%,
        46% 60%,
        50% 40%,
        54% 60%,
        64% 74%,
        76% 79%,
        88% 81%,
        100% 82%,
        100% 100%,
        0 100%
    );
    box-shadow:
        0 0 12px rgba(139, 255, 140, 0.28),
        0 0 28px rgba(0, 255, 170, 0.12);
    z-index: 0;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: transparent;
    transition: all var(--transition-normal);
    font-weight: var(--font-weight-regular);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--transition-normal);
    z-index: -1;
    opacity: 0.1;
}

.nav-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-accent-glow);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px var(--color-accent-glow);
}

/* ========================================
 * 4. BOUTON DÉMO
 *     - Styles pour le bouton "Demander une démo"
 ======================================== */
.demo-button,
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), filter var(--transition-normal);
    background: linear-gradient(135deg, rgba(8, 24, 16, 0.95) 0%, rgba(4, 11, 7, 0.98) 100%);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(139, 255, 140, 0.08),
        0 0 0 1px rgba(139, 255, 140, 0.12);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.demo-button {
    margin-left: var(--spacing-lg);
}

.demo-button::before,
.contact-button::before {
    content: '';
    position: absolute;
    inset: -130%;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 285deg,
        rgba(37, 255, 167, 0.08) 300deg,
        rgba(37, 255, 167, 0.92) 330deg,
        rgba(139, 255, 140, 0.45) 346deg,
        transparent 360deg
    );
    animation: ledOrbit 3s linear infinite;
    z-index: 0;
}

.demo-button::after,
.contact-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(139, 255, 140, 0.16),
        0 0 16px rgba(0, 255, 170, 0.08);
    background:
        radial-gradient(circle at 12% 50%, rgba(139, 255, 140, 0.08), transparent 24%),
        radial-gradient(circle at 88% 50%, rgba(0, 255, 170, 0.06), transparent 22%);
    pointer-events: none;
    z-index: 1;
}

.reporting-button__inner {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    width: 100%;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #0b130d 0%, #050905 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.28);
    transition: background-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
}

.reporting-button__icon {
    color: #8bff8c;
    font-size: 1rem;
    flex-shrink: 0;
    transition: color var(--transition-normal), transform var(--transition-normal);
}

.demo-button:hover,
.contact-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(139, 255, 140, 0.2),
        0 0 24px rgba(77, 175, 78, 0.18),
        0 0 42px rgba(0, 255, 170, 0.08);
    filter: brightness(1.03);
}

.demo-button:hover .reporting-button__inner,
.contact-button:hover .reporting-button__inner {
    background: linear-gradient(180deg, #081008 0%, #020402 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.38);
}

.demo-button:hover .reporting-button__icon,
.contact-button:hover .reporting-button__icon {
    color: #ffffff;
    transform: translateX(4px);
}

.demo-button:hover::before,
.contact-button:hover::before {
    animation-duration: 1.8s;
    filter: drop-shadow(0 0 14px rgba(37, 255, 167, 0.52));
}

@keyframes ledOrbit {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-button::before,
    .contact-button::before {
        animation: none;
    }
}

/* ========================================
 * 2. SECTION HÉRO
 * ======================================== */
/* ========================================
 * SIDEBAR DES MODULES
 *     - Habillage premium avec contour LED
 * ======================================== */
body .modules-sidebar {
    --modules-bar-top: 84px;
    --modules-bar-height: 88px;
    --modules-bar-radius: 28px;
    --modules-bar-ring-size: 2px;
    position: fixed;
    top: var(--modules-bar-top);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    width: min(1480px, calc(100vw - 2rem));
    min-height: var(--modules-bar-height);
    padding: var(--modules-bar-ring-size);
    border: 0;
    border-radius: var(--modules-bar-radius);
    background: linear-gradient(135deg, rgba(8, 24, 16, 0.95) 0%, rgba(4, 11, 7, 0.98) 100%);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(139, 255, 140, 0.08),
        0 0 0 1px rgba(139, 255, 140, 0.12);
    overflow: hidden;
    isolation: isolate;
    z-index: 920;
}

body .modules-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(139, 255, 140, 0.14),
        0 0 22px rgba(0, 255, 170, 0.05);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 34%),
        radial-gradient(circle at 10% 50%, rgba(139, 255, 140, 0.04), transparent 18%),
        radial-gradient(circle at 90% 50%, rgba(0, 255, 170, 0.03), transparent 20%);
    pointer-events: none;
    z-index: 0;
}

body .modules-sidebar::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    box-shadow:
        inset 0 0 0 1px rgba(139, 255, 140, 0.08),
        0 0 18px rgba(0, 255, 170, 0.04);
    background:
        linear-gradient(180deg, rgba(6, 12, 8, 0.24) 0%, rgba(2, 6, 3, 0.08) 100%);
}

body .modules-sidebar .sidebar-title {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 0 0 1rem;
    padding: 0.9rem 1rem 0.9rem 1.05rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(11, 19, 13, 0.96) 0%, rgba(5, 9, 5, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

body .modules-sidebar .modules-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.7rem;
    min-width: 0;
    margin: 0.6rem 0.75rem 0.6rem 0;
    padding: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(11, 19, 13, 0.96) 0%, rgba(5, 9, 5, 0.98) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.24);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 255, 140, 0.34) transparent;
}

body .modules-sidebar .modules-list::-webkit-scrollbar {
    height: 6px;
}

body .modules-sidebar .modules-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(139, 255, 140, 0.34);
}

body .modules-sidebar .module-item-sidebar {
    position: relative;
    z-index: 0;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    width: 104px;
    min-width: 104px;
    min-height: 70px;
    padding: 0.78rem 0.6rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-text-primary);
    background: linear-gradient(180deg, rgba(14, 21, 15, 0.96) 0%, rgba(7, 10, 7, 0.98) 100%);
    border: 1px solid rgba(139, 255, 140, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 18px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal),
        filter var(--transition-normal);
}

body .modules-sidebar .module-item-sidebar::before {
    content: '';
    position: absolute;
    inset: -155%;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 304deg,
        rgba(37, 255, 167, 0.06) 320deg,
        rgba(37, 255, 167, 0.72) 336deg,
        rgba(139, 255, 140, 0.34) 348deg,
        transparent 360deg
    );
    opacity: 0;
    animation: ledOrbit 4s linear infinite;
    transition: opacity var(--transition-normal), filter var(--transition-normal);
    z-index: 0;
}

body .modules-sidebar .module-item-sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(139, 255, 140, 0.05);
    background:
        linear-gradient(180deg, rgba(139, 255, 140, 0.04) 0%, transparent 48%),
        radial-gradient(circle at 50% 100%, rgba(0, 255, 170, 0.06), transparent 28%);
}

body .modules-sidebar .module-item-sidebar:hover,
body .modules-sidebar .module-item-sidebar.active,
body .modules-sidebar .module-item-sidebar[aria-current="page"] {
    transform: translateY(-3px);
    border-color: rgba(139, 255, 140, 0.18);
    background: linear-gradient(180deg, rgba(10, 18, 11, 0.98) 0%, rgba(3, 6, 4, 0.98) 100%);
    box-shadow:
        0 14px 26px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(139, 255, 140, 0.12),
        0 0 24px rgba(0, 255, 170, 0.08);
    filter: brightness(1.03);
}

body .modules-sidebar .module-item-sidebar:hover::before,
body .modules-sidebar .module-item-sidebar.active::before,
body .modules-sidebar .module-item-sidebar[aria-current="page"]::before {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(37, 255, 167, 0.34));
}

body .modules-sidebar .module-icon-sidebar {
    position: relative;
    z-index: 2;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0.42rem;
    border-radius: 13px;
    object-fit: contain !important;
    background: linear-gradient(180deg, rgba(13, 21, 15, 0.95) 0%, rgba(6, 10, 7, 0.98) 100%);
    border: 1px solid rgba(139, 255, 140, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.18);
}

body .modules-sidebar .module-item-sidebar.active .module-icon-sidebar,
body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-icon-sidebar,
body .modules-sidebar .module-item-sidebar:hover .module-icon-sidebar {
    border-color: rgba(139, 255, 140, 0.22);
    background: linear-gradient(180deg, rgba(14, 34, 19, 0.96) 0%, rgba(5, 12, 7, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 18px rgba(0, 255, 170, 0.14);
}

body .modules-sidebar .module-name {
    position: relative;
    z-index: 2;
    width: 100%;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-align: center;
    transition: color var(--transition-normal), transform var(--transition-normal);
}

body .modules-sidebar .module-item-sidebar:hover .module-name,
body .modules-sidebar .module-item-sidebar.active .module-name,
body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-name {
    color: #ffffff;
    transform: translateY(1px);
}

body .modules-sidebar .module-item-sidebar.active .module-name,
body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-name {
    text-shadow: 0 0 14px rgba(139, 255, 140, 0.18);
}

body main[class$="-content"] {
    margin-top: 0 !important;
    padding-top: 182px !important;
    padding-bottom: 2rem !important;
}

@media (max-width: 1100px) {
    body .modules-sidebar {
        --modules-bar-top: 78px;
        --modules-bar-height: 84px;
        --modules-bar-radius: 28px;
        width: calc(100vw - 1.25rem);
        gap: 0.65rem;
    }

    body .modules-sidebar .sidebar-title {
        display: none !important;
    }

    body .modules-sidebar .modules-list {
        margin: 0.55rem !important;
    }

    body main[class$="-content"] {
        padding-top: 168px !important;
    }
}

@media (max-width: 768px) {
    body .modules-sidebar {
        --modules-bar-top: 74px;
        --modules-bar-height: 80px;
        --modules-bar-radius: 24px;
        width: calc(100vw - 0.9rem);
    }

    body .modules-sidebar .modules-list {
        gap: 0.55rem;
        margin: 0.45rem !important;
        padding: 0.3rem;
        border-radius: 20px;
    }

    body .modules-sidebar .module-item-sidebar {
        width: 92px;
        min-width: 92px;
        min-height: 64px;
        border-radius: 16px;
        padding: 0.68rem 0.5rem;
    }

    body .modules-sidebar .module-icon-sidebar {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }

    body .modules-sidebar .module-name {
        font-size: 0.64rem;
    }

    body main[class$="-content"] {
        padding-top: 158px !important;
    }
}

@media (max-width: 480px) {
    body .modules-sidebar {
        --modules-bar-radius: 22px;
        width: calc(100vw - 0.5rem);
    }

    body .modules-sidebar .modules-list {
        margin: 0.35rem !important;
        gap: 0.45rem;
    }

    body .modules-sidebar .module-item-sidebar {
        width: 84px;
        min-width: 84px;
        min-height: 60px;
        padding: 0.62rem 0.45rem;
    }

    body .modules-sidebar .module-icon-sidebar {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }

    body .modules-sidebar .module-name {
        font-size: 0.6rem;
    }

    body main[class$="-content"] {
        padding-top: 150px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .modules-sidebar::before,
    body .modules-sidebar::after,
    body .modules-sidebar .module-item-sidebar::before {
        animation: none;
    }
}

/* ========================================
 * SIDEBAR MODULES - RETOUR VERTICAL GLOBAL
 * ======================================== */
body:has(main.jnsagenda-content) {
    --modules-sidebar-accent: #FECD21;
    --modules-sidebar-glow: rgba(254, 205, 33, 0.3);
}

body:has(main.jnsmail-content) {
    --modules-sidebar-accent: #FE4E6E;
    --modules-sidebar-glow: rgba(254, 78, 110, 0.3);
}

body:has(main.jnsdrive-content) {
    --modules-sidebar-accent: #4A90E2;
    --modules-sidebar-glow: rgba(74, 144, 226, 0.3);
}

body:has(main.jnsmeet-content),
body:has(main.jnslab-content) {
    --modules-sidebar-accent: #8B5CF6;
    --modules-sidebar-glow: rgba(139, 92, 246, 0.3);
}

body:has(main.jnsexpert-content) {
    --modules-sidebar-accent: #24D5E5;
    --modules-sidebar-glow: rgba(36, 213, 229, 0.3);
}

body:has(main.jnsagent-content) {
    --modules-sidebar-accent: #1A8C96;
    --modules-sidebar-glow: rgba(26, 140, 150, 0.3);
}

body:has(main.jnsrecorder-content) {
    --modules-sidebar-accent: #EE3A37;
    --modules-sidebar-glow: rgba(238, 58, 55, 0.3);
}

body:has(main.jnsinvoice-content) {
    --modules-sidebar-accent: #AC91E8;
    --modules-sidebar-glow: rgba(172, 145, 232, 0.3);
}

body:has(main.jnsprod-content) {
    --modules-sidebar-accent: #F4F243;
    --modules-sidebar-glow: rgba(244, 242, 67, 0.3);
}

body:has(main.jnsbank-content) {
    --modules-sidebar-accent: #C5E107;
    --modules-sidebar-glow: rgba(197, 225, 7, 0.3);
}

body:has(main.jnscollab-content) {
    --modules-sidebar-accent: #6ecce5;
    --modules-sidebar-glow: rgba(110, 204, 229, 0.3);
}

body main[class$="-content"] {
    margin-top: 0 !important;
    padding-top: 80px !important;
    padding-bottom: 0 !important;
}

body main.jnsagenda-content {
    padding-top: 144px !important;
}

body .modules-sidebar {
    position: fixed !important;
    right: clamp(10px, 1.6vw, 22px) !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: block !important;
    grid-template-columns: none !important;
    align-items: initial !important;
    gap: 0 !important;
    width: 142px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    background:
        radial-gradient(circle at 50% 0%, var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)) 0%, transparent 36%),
        linear-gradient(180deg, rgba(32, 32, 36, 0.9) 0%, rgba(10, 10, 13, 0.96) 100%) !important;
    border-radius: 22px !important;
    padding: 12px 10px 12px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    z-index: 920 !important;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.38),
        0 0 0 1px var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)),
        0 0 30px var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    max-height: min(78vh, 720px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    isolation: isolate !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--modules-sidebar-accent, var(--color-accent, #FECD21)) transparent !important;
}

body .modules-sidebar::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 16px !important;
    bottom: 16px !important;
    left: 7px !important;
    width: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--modules-sidebar-accent, var(--color-accent, #FECD21)) 18%,
        var(--modules-sidebar-accent, var(--color-accent, #FECD21)) 82%,
        transparent 100%
    ) !important;
    box-shadow: 0 0 18px var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)) !important;
    opacity: 0.72 !important;
    pointer-events: none !important;
}

body .modules-sidebar::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 1px !important;
    border-radius: inherit !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.04), transparent 38%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

body .modules-sidebar .sidebar-title {
    display: none !important;
}

body .modules-sidebar .modules-list {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    scrollbar-width: auto !important;
}

body .modules-sidebar .module-item-sidebar {
    position: relative !important;
    z-index: auto !important;
    display: flex !important;
    flex: initial !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 8px 6px 7px !important;
    border: 1px solid transparent !important;
    border-radius: 15px !important;
    text-decoration: none !important;
    color: inherit !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    isolation: isolate !important;
    filter: none !important;
    cursor: pointer !important;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease !important;
}

body .modules-sidebar .module-item-sidebar::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    background:
        radial-gradient(circle at 50% 0%, var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 220ms ease !important;
    z-index: 0 !important;
}

body .modules-sidebar .module-item-sidebar::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 10px !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 3px !important;
    border-radius: 0 999px 999px 0 !important;
    background: var(--modules-sidebar-accent, var(--color-accent, #FECD21)) !important;
    opacity: 0 !important;
    box-shadow: 0 0 14px var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)) !important;
    transition: opacity 220ms ease !important;
    z-index: 1 !important;
}

body .modules-sidebar .module-item-sidebar:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)) !important;
    transform: translateX(-4px) !important;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    filter: none !important;
}

body .modules-sidebar .module-item-sidebar.active,
body .modules-sidebar .module-item-sidebar[aria-current="page"] {
    background:
        linear-gradient(180deg, var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)), rgba(255, 255, 255, 0.04)) !important;
    border-color: var(--modules-sidebar-accent, var(--color-accent, #FECD21)) !important;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.28),
        0 0 0 1px var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body .modules-sidebar .module-item-sidebar:hover::before,
body .modules-sidebar .module-item-sidebar.active::before,
body .modules-sidebar .module-item-sidebar[aria-current="page"]::before,
body .modules-sidebar .module-item-sidebar.active::after,
body .modules-sidebar .module-item-sidebar[aria-current="page"]::after {
    opacity: 1 !important;
}

body .modules-sidebar .module-item-sidebar:focus-visible {
    outline: 2px solid var(--modules-sidebar-accent, var(--color-accent, #FECD21)) !important;
    outline-offset: 3px !important;
}

body .modules-sidebar .module-icon-sidebar,
body .modules-sidebar .module-item-sidebar:hover .module-icon-sidebar,
body .modules-sidebar .module-item-sidebar.active .module-icon-sidebar,
body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-icon-sidebar {
    position: relative !important;
    z-index: 2 !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    background: rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 5px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.22) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transition:
        border-color 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease !important;
}

body .modules-sidebar .module-item-sidebar:hover .module-icon-sidebar,
body .modules-sidebar .module-item-sidebar.active .module-icon-sidebar,
body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-icon-sidebar {
    border-color: var(--modules-sidebar-accent, var(--color-accent, #FECD21)) !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 0 18px var(--modules-sidebar-glow, rgba(254, 205, 33, 0.3)),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body .modules-sidebar .module-name,
body .modules-sidebar .module-item-sidebar:hover .module-name,
body .modules-sidebar .module-item-sidebar.active .module-name,
body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-name {
    position: static !important;
    z-index: 2 !important;
    width: auto !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.64rem !important;
    font-weight: var(--font-weight-semibold) !important;
    line-height: 1.12 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    text-shadow: none !important;
    transform: none !important;
    white-space: normal !important;
    transition: color 220ms ease !important;
}

body .modules-sidebar .module-item-sidebar:hover .module-name {
    color: #ffffff !important;
}

body .modules-sidebar .module-item-sidebar.active .module-name,
body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-name {
    color: #ffffff !important;
    font-weight: var(--font-weight-bold) !important;
}

/* ========================================
 * SIDEBAR DÉPLIABLE — bouton flottant + état collapsed (hors écran)
 * ======================================== */

/* Bouton flottant indépendant, toujours visible sur le bord droit */
.modules-sidebar-toggle {
    position: fixed !important;
    right: clamp(10px, 1.6vw, 22px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg, rgba(11, 19, 13, 0.96), rgba(5, 9, 5, 0.98)) !important;
    border: 1px solid rgba(139, 255, 140, 0.35) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    z-index: 925 !important;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 14px rgba(0, 255, 170, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transition:
        right var(--transition-normal),
        background var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal) !important;
}

.modules-sidebar-toggle:hover {
    background: linear-gradient(180deg, rgba(15, 38, 22, 0.98), rgba(8, 18, 11, 0.98)) !important;
    border-color: rgba(0, 255, 170, 0.6) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(0, 255, 170, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.modules-sidebar-toggle:focus-visible {
    outline: 2px solid var(--color-accent) !important;
    outline-offset: 2px !important;
}

/* Quand la sidebar est ouverte, le bouton se déplace à sa gauche */
.modules-sidebar-toggle.sidebar-open {
    right: calc(142px + clamp(20px, 3vw, 32px)) !important;
}

/* État replié : la sidebar sort entièrement de l'écran à droite */
body .modules-sidebar.collapsed {
    transform: translateY(-50%) translateX(calc(100% + 40px)) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Transition fluide d'ouverture/fermeture */
body .modules-sidebar {
    transition:
        transform var(--transition-normal),
        opacity var(--transition-normal),
        visibility var(--transition-normal) !important;
}

/* ========================================
 * MODULES CTA - CARTE OFFRES
 * ======================================== */
body main[class$="-content"] .cta-section .cta-content {
    max-width: 760px;
    margin: 0 auto;
}

body main[class$="-content"] .cta-section .cta-buttons {
    width: min(560px, 100%);
    margin: 0 auto;
    justify-content: center;
}

body main[class$="-content"] .cta-section .cta-buttons .offers-card.cta-button.secondary {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 1.1rem 1.15rem;
    border-radius: 24px;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 26px var(--modules-sidebar-glow, rgba(255, 255, 255, 0.12));
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

body main[class$="-content"] .cta-section .cta-buttons .offers-card.cta-button.secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 28%, transparent 58%),
        radial-gradient(circle at 100% 0%, var(--modules-sidebar-glow, rgba(255, 255, 255, 0.16)) 0%, transparent 42%);
    pointer-events: none;
    z-index: 0;
}

body main[class$="-content"] .cta-section .cta-buttons .offers-card.cta-button.secondary::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        var(--modules-sidebar-accent, var(--color-accent, #00ffaa)) 30%,
        var(--modules-sidebar-accent, var(--color-accent, #00ffaa)) 70%,
        rgba(255, 255, 255, 0.08) 100%
    );
    box-shadow: 0 0 16px var(--modules-sidebar-glow, rgba(255, 255, 255, 0.2));
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

body main[class$="-content"] .cta-section .cta-buttons .offers-card.cta-button.secondary:hover {
    transform: translateY(-6px);
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 28px 58px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 34px var(--modules-sidebar-glow, rgba(255, 255, 255, 0.18));
}

body main[class$="-content"] .cta-section .cta-buttons .offers-card.cta-button.secondary:focus-visible {
    outline: 2px solid var(--modules-sidebar-accent, var(--color-accent, #00ffaa));
    outline-offset: 4px;
}

body main[class$="-content"] .cta-section .offers-card-icon,
body main[class$="-content"] .cta-section .offers-card-copy,
body main[class$="-content"] .cta-section .offers-card-arrow {
    position: relative;
    z-index: 2;
}

body main[class$="-content"] .cta-section .offers-card-icon,
body main[class$="-content"] .cta-section .offers-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 24px rgba(0, 0, 0, 0.18);
}

body main[class$="-content"] .cta-section .offers-card-icon {
    color: var(--modules-sidebar-accent, var(--color-accent, #00ffaa));
    font-size: 1.15rem;
}

body main[class$="-content"] .cta-section .offers-card-arrow {
    color: #ffffff;
    font-size: 0.95rem;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

body main[class$="-content"] .cta-section .offers-card:hover .offers-card-arrow {
    transform: translateX(4px);
    border-color: var(--modules-sidebar-accent, var(--color-accent, #00ffaa));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 22px var(--modules-sidebar-glow, rgba(255, 255, 255, 0.18));
}

body main[class$="-content"] .cta-section .offers-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

body main[class$="-content"] .cta-section .offers-card-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--modules-sidebar-accent, var(--color-accent, #00ffaa));
}

body main[class$="-content"] .cta-section .offers-card-title {
    font-size: 1.12rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    line-height: 1.15;
    text-wrap: balance;
}

body main[class$="-content"] .cta-section .offers-card-copy::after {
    content: 'Comparez les packs, options et conditions de déploiement';
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 768px) {
    body main[class$="-content"] .cta-section .cta-buttons {
        width: 100%;
    }

    body main[class$="-content"] .cta-section .cta-buttons .offers-card.cta-button.secondary {
        gap: 0.8rem;
        padding: 0.95rem;
        border-radius: 20px;
    }

    body main[class$="-content"] .cta-section .offers-card-icon,
    body main[class$="-content"] .cta-section .offers-card-arrow {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    body main[class$="-content"] .cta-section .offers-card-title {
        font-size: 1rem;
    }

    body main[class$="-content"] .cta-section .offers-card-copy::after {
        font-size: 0.84rem;
    }
}

@media (max-width: 520px) {
    body main[class$="-content"] .cta-section .cta-buttons .offers-card.cta-button.secondary {
        grid-template-columns: auto 1fr;
        padding: 0.9rem;
    }

    body main[class$="-content"] .cta-section .offers-card-arrow {
        grid-column: 1 / -1;
        width: 100%;
        height: 42px;
        border-radius: 12px;
        justify-self: stretch;
    }

    body main[class$="-content"] .cta-section .offers-card:hover .offers-card-arrow {
        transform: translateY(2px);
    }
}

body .modules-sidebar::-webkit-scrollbar {
    width: 5px !important;
}

body .modules-sidebar::-webkit-scrollbar-track {
    background: transparent !important;
}

body .modules-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: var(--modules-sidebar-accent, var(--color-accent, #FECD21)) !important;
}

@media (max-width: 900px) {
    body .modules-sidebar {
        right: 8px !important;
        width: 118px !important;
        padding: 10px 8px 10px 12px !important;
        border-radius: 18px !important;
        max-height: calc(100vh - 110px) !important;
    }

    body .modules-sidebar .modules-list {
        gap: 5px !important;
    }

    body .modules-sidebar .module-item-sidebar {
        padding: 7px 5px 6px !important;
        border-radius: 13px !important;
    }

    body .modules-sidebar .module-icon-sidebar,
    body .modules-sidebar .module-item-sidebar:hover .module-icon-sidebar,
    body .modules-sidebar .module-item-sidebar.active .module-icon-sidebar,
    body .modules-sidebar .module-item-sidebar[aria-current="page"] .module-icon-sidebar {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
        padding: 4px !important;
    }

    body .modules-sidebar .module-name {
        font-size: 0.58rem !important;
    }
}

@media (max-width: 520px) {
    body .modules-sidebar {
        right: 6px !important;
        top: 56% !important;
        width: 88px !important;
        padding: 9px 6px 9px 10px !important;
        max-height: calc(100vh - 96px) !important;
    }

    body .modules-sidebar::before {
        left: 5px !important;
    }

    body .modules-sidebar .module-item-sidebar {
        gap: 3px !important;
        padding: 6px 3px !important;
    }

    body .modules-sidebar .module-name {
        font-size: 0.5rem !important;
        line-height: 1.05 !important;
    }
}

/* ========================================
 * 2. SECTION HERO
 * ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    margin-top: 0;
    padding-top: 80px;
    position: relative;
    background: var(--color-background);
    overflow: hidden;
}

/* Grille de fond PCB High-Tech */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Lignes PCB verticales */
        linear-gradient(90deg, transparent 95%, rgba(77, 175, 78, 0.05) 95%),
        /* Lignes PCB horizontales */
        linear-gradient(transparent 95%, rgba(77, 175, 78, 0.05) 95%),
        /* Points de connexion subtils */
        radial-gradient(circle at 50% 50%, rgba(77, 175, 78, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

/* Effet de lueur ambiante */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(77, 175, 78, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Contenu texte à gauche */
.hero-content {
    text-align: left;
    z-index: 2;
}

.hero-title {
    position: relative;
    font-size: clamp(2.5rem, 6vw + 1rem, 5.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    line-height: 0.95;
    letter-spacing: -0.04em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.32rem;
    padding-left: clamp(0.4rem, 1vw, 0.9rem);
    filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.3));
}

.hero-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.16em;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(139, 255, 140, 0.14) 0%, rgba(139, 255, 140, 0.8) 48%, rgba(0, 255, 170, 0.16) 100%);
    box-shadow:
        0 0 12px rgba(139, 255, 140, 0.28),
        0 0 28px rgba(0, 255, 170, 0.12);
}

.hero-title-line {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(6, 11, 17, 0.95) 0%, rgba(8, 19, 30, 0.74) 100%);
    border: 1px solid rgba(139, 255, 140, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.1em 0.34em;
    margin: 0;
    border-radius: 0.28em;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(0, 255, 170, 0.05),
        0 0 24px rgba(0, 0, 0, 0.08);
    text-shadow:
        0 8px 24px rgba(0, 0, 0, 0.38),
        0 0 14px rgba(255, 255, 255, 0.04);
}

.hero-title-line::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 55%);
    pointer-events: none;
}

.hero-title-line:nth-child(4) {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(7, 14, 12, 0.96) 0%, rgba(17, 61, 37, 0.7) 100%);
    border-color: rgba(139, 255, 140, 0.26);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 28px rgba(77, 175, 78, 0.2);
}

/* Style spécifique pour "et" */
.hero-title-line:nth-child(3) {
    font-size: clamp(1.15rem, 1.1vw + 0.65rem, 2rem);
    font-weight: 600;
    margin: 0.16em 0 0.12em 0;
    padding: 0;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow:
        0 0 12px rgba(139, 255, 140, 0.45),
        0 0 28px rgba(77, 175, 78, 0.2);
}

.hero-title-line:nth-child(3)::before {
    content: none;
}

.hero-title-line:nth-child(1) { animation-delay: 0.04s; }
.hero-title-line:nth-child(2) { animation-delay: 0.08s; }
.hero-title-line:nth-child(3) { animation-delay: 0.12s; }
.hero-title-line:nth-child(4) { animation-delay: 0.16s; }

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.24s forwards;
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
}

.hero-subtitle--terminal {
    color: #8bff8c;
    background: rgba(6, 18, 10, 0.78);
    border: 1px solid rgba(77, 175, 78, 0.55);
    box-shadow:
        inset 0 0 0 1px rgba(139, 255, 140, 0.08),
        0 0 18px rgba(77, 175, 78, 0.18);
    text-shadow: 0 0 10px rgba(139, 255, 140, 0.35);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.34s forwards;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 8px;
}

/* Partie visuelle avec logo et connexions */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo circulaire central */
.logo-circle {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: logoAppear 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.18s forwards, float 4s ease-in-out infinite;
    opacity: 0;
    filter: drop-shadow(0 0 60px var(--color-accent-glow)) drop-shadow(0 0 100px rgba(0, 255, 170, 0.3));
}

@keyframes logoAppear {
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.central-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lignes de connexion */
.connection-line {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    right: auto;
    bottom: auto;
}

.connection-top {
    width: 300px;
    height: 150px;
    left: calc(50% + 220px); /* +40px pour écarter */
    top: calc(50% - 245px);
}

.connection-right {
    width: 250px;
    height: 100px;
    left: calc(50% + 270px); /* +40px pour écarter */
    top: calc(50% - 50px);
}

.connection-bottom {
    width: 300px;
    height: 150px;
    left: calc(50% + 220px); /* +40px pour écarter */
    top: calc(50% + 95px);
}

.connection-label {
    position: absolute;
    font-size: clamp(1.18rem, 0.65vw + 0.85rem, 1.45rem);
    font-weight: 700;
    line-height: 1;
    color: #8bff8c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(139, 255, 140, 0.7), 0 0 24px rgba(77, 175, 78, 0.5);
    opacity: 0;
    animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
    pointer-events: none;
}

.connection-label-top {
    left: 100%;
    top: 40px;
    transform: translateY(-50%);
    margin-left: 14px;
}

.connection-label-right {
    left: 100%;
    top: 40px;
    transform: translateY(-50%);
    margin-left: 14px;
}

.connection-label-bottom {
    left: 100%;
    top: 90px;
    transform: translateY(-50%);
    margin-left: 14px;
}

/* SVG des connexions */
.connection-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible; /* Important pour les lueurs qui dépassent */
}

.connection-path-glow {
    fill: none;
    stroke: #4DAF4E;
    stroke-width: 6; /* Large pour la lueur */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0.6;
    animation: drawLine 0.75s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    filter: blur(2px) drop-shadow(0 0 8px #4DAF4E);
}

.connection-path-core {
    fill: none;
    /* Utilise le gradient défini dans le SVG ou une couleur très claire */
    stroke: #8bff8c; 
    stroke-width: 2; /* Fin pour le cœur */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 0.75s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    /* Contraste net */
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.8));
}

.hero-value-badges {
    position: absolute;
    left: 50%;
    bottom: clamp(0.25rem, 1.2vw, 1.25rem);
    z-index: 3;
    display: none;
    width: min(100%, 760px);
    padding-inline: var(--spacing-sm);
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 0.9rem);
    flex-wrap: wrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-value-badge {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 40px;
    padding: 0.58rem 1.05rem;
    border: 1px solid rgba(139, 255, 140, 0.55);
    border-radius: 999px;
    background: rgba(1, 24, 10, 0.72);
    color: #8bff8c;
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 170, 0.08),
        0 0 18px rgba(77, 175, 78, 0.14);
    font-size: clamp(0.74rem, 0.42vw + 0.66rem, 0.95rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: anywhere;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(139, 255, 140, 0.52);
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Labels supprimés */

/* ========================================
 * 3. SECTION DES VALEURS
 * ======================================== */
.values-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background-secondary);
    position: relative;
}

.values-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.value-item {
    text-align: center;
    padding: var(--spacing-md);
    flex: 1;
    min-width: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.value-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px var(--color-accent-glow);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-card);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--color-accent);
    font-size: 1.8rem;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.value-item:hover .value-icon {
    background: var(--gradient-primary);
    color: var(--color-background);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.value-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.value-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-light);
}

/* ========================================
 * 4. SECTION NOS MODULES
 * ======================================== */
.modules-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background);
    padding-top: calc(var(--spacing-xl) + 2rem);
    position: relative;
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw + 0.5rem, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
    margin-top: 2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    line-height: 1.6;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.module-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.module-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.module-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow), 0 0 40px var(--color-accent-glow);
}

.module-item:hover::before {
    opacity: 1;
}

.module-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--color-text-primary);
    font-size: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.module-item:hover .module-icon {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 0 20px var(--color-accent));
}

.module-title {
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.module-item:hover .module-title {
    color: var(--color-accent);
}

.module-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.module-description-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto var(--spacing-md);
    flex-grow: 1;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 14px rgba(0, 255, 170, 0.18));
    transition: transform var(--transition-normal);
}

.module-item:hover .module-description-image {
    transform: scale(1.04);
}

/* ----- Tampon "Solution compatible" sur la card VeryInvoice ----- */
.module-item.module-item--stamped {
    overflow: visible;
    padding-top: calc(var(--spacing-lg) + clamp(0.25rem, 0.8vw, 0.9rem));
}

.module-item--stamped::before {
    border-radius: inherit;
}

.module-stamp {
    position: absolute;
    top: clamp(-18px, -1.4vw, -10px);
    right: clamp(-14px, -1.4vw, -6px);
    width: clamp(92px, 8vw, 140px);
    max-width: 42%;
    height: auto;
    transform: rotate(12deg);
    transform-origin: center;
    z-index: 4;
    pointer-events: none;
    opacity: 0.95;
    filter:
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.module-item--stamped:hover .module-stamp {
    transform: rotate(8deg) scale(1.05);
    opacity: 1;
}

@media (max-width: 480px) {
    .module-item.module-item--stamped {
        padding-top: calc(var(--spacing-md) + 1rem);
    }

    .module-stamp {
        width: clamp(78px, 25vw, 96px);
        max-width: 38%;
        top: -10px;
        right: -6px;
        transform: rotate(10deg);
    }
}

/* ========================================
 * 5. LIENS DES MODULES
 *     - Styles pour les liens cliquables des modules
 ======================================== */
.module-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all var(--transition-normal);
}

.module-link:hover {
    transform: translateY(-5px);
}

.module-item:hover .module-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
 * 7. ICÔNES SVG DES MODULES
 *     - Styles pour les icônes SVG personnalisées
 * ======================================== */
.module-icon-svg {
    width: 40px;
    height: 40px;
    /* Suppression du filtre qui rendait les icônes blanches */
    transition: all var(--transition-normal);
    display: block;
    max-width: 100%;
    max-height: 100%;
    /* Assurer que les icônes sont bien visibles */
    object-fit: contain;
}

.module-item:hover .module-icon-svg {
    transform: scale(1.1);
    /* Suppression du filtre au survol aussi */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* S'assurer que les icônes SVG remplacent bien les icônes Font Awesome */
.module-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Bouton "Voir le détail" pour les modules */
.module-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: var(--color-background);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9em;
    transition: all var(--transition-normal);
    align-self: center;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.module-detail-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px var(--color-accent-glow);
}

.arrow-icon {
    font-style: normal;
    font-size: 1em;
    transition: transform var(--transition-normal);
}

.module-detail-btn:hover .arrow-icon {
    transform: translate(5px, -3px);
}

/* ========================================
 * 6. SECTION NOS OFFRES
 * ======================================== */
.offres-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background-secondary);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-lg) + 1rem);
    max-width: 5000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    align-items: start;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: clamp(var(--spacing-md), 3vw, calc(var(--spacing-xl) + 1.5rem));
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.pricing-card.featured {
    border-color: var(--color-accent);
    transform: scale(1.02);
    box-shadow: 0 8px 32px var(--color-accent-glow);
}

.pricing-card.featured::before {
    opacity: 0.5;
}

@media (hover: hover) and (pointer: fine) {
    .pricing-card:hover {
        border-color: var(--color-accent);
        transform: translateY(-8px);
        box-shadow: var(--glass-shadow), 0 0 50px var(--color-accent-glow);
    }

    .pricing-card:hover::before {
        opacity: 1;
    }

    .pricing-card.featured:hover {
        transform: scale(1.02) translateY(-8px);
    }
}

/* Header de la carte */
.card-header {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--color-background);
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 0 30px var(--color-accent-glow);
    position: relative;
    z-index: 1;
}

.plan-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

/* Toggle de prix (plan Pro) */
.pricing-toggle {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--color-accent);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.pricing-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--gradient-primary);
    border-radius: 12px;
    transition: transform var(--transition-normal);
    z-index: 1;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.pricing-toggle.active-annual::before {
    transform: translateX(100%);
}

.toggle-option {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    color: var(--color-accent);
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.toggle-option.active {
    color: var(--color-background);
    font-weight: var(--font-weight-semibold);
}

.savings {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.2;
}

/* Description et prix */
.plan-description {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.plan-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.plan-price {
    margin-bottom: var(--spacing-md);
}

.price-amount {
    display: block;
    font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    display: block;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

/* Bouton CTA */
.cta-button {
    background: var(--gradient-primary);
    color: var(--color-background);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: var(--spacing-lg);
    width: 100%;
    box-shadow: 0 6px 25px var(--color-accent-glow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all var(--transition-slow);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px var(--color-accent-glow);
}

.cta-button:hover::before {
    left: 100%;
}

/* Liste des fonctionnalités */
.features-list {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    padding: 0.5rem 0;
    transition: all var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-item i {
    color: var(--color-background);
    margin-right: var(--spacing-sm);
    margin-top: 2px;
    flex-shrink: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--color-accent-glow);
    transition: all var(--transition-normal);
}

.feature-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px var(--color-accent-glow);
}

.feature-item span {
    color: var(--color-text-secondary);
    font-size: clamp(0.95rem, 1vw + 0.6rem, 1.3rem);
    line-height: 1.5;
    padding-top: 1px;
}

/* Public cible */
.target-audience {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.target-audience span {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
}

/* ========================================
 * RESPONSIVE DESIGN
 * ======================================== */

/* Lignes de connexion decoratives : visibles uniquement sur les ecrans
   vraiment larges pour contenir les labels. En dessous, les badges sous le logo
   reprennent l'information sans deborder de la zone hero. */
@media (max-width: 2299px) {
    .connection-line {
        display: none;
    }

    .hero-value-badges {
        display: flex;
    }
}

/* ---------- GRAND ECRAN (< 1400px) ---------- */
@media (max-width: 1400px) {
    .hero-container {
        padding: 0 var(--spacing-md);
    }
}

/* ---------- MOYEN / TABLETTE PAYSAGE (< 1200px) ---------- */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        padding: 0 var(--spacing-md);
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-visual {
        height: clamp(360px, 55vw, 500px);
    }

    .logo-circle {
        width: clamp(260px, 40vw, 380px);
        height: clamp(260px, 40vw, 380px);
    }

    /* En mode 1 colonne, le logo est centré : les lignes de connexion
       (prévues pour le layout 2 colonnes) sont masquées pour éviter
       qu'elles débordent ou flottent toutes seules à l'écran. */
    .connection-line {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }

    .pricing-card.featured {
        grid-column: 1 / -1;
        max-width: 600px;
        justify-self: center;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-visual {
        height: auto;
        min-height: 0;
        flex-direction: column;
        gap: 0.85rem;
        padding-bottom: 0.35rem;
    }

    .hero-value-badges {
        position: static;
        transform: none;
        width: 100%;
        padding-inline: 0;
    }
}

/* ---------- TABLETTE (< 992px) ---------- */
@media (max-width: 992px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    /* Active le hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Transforme la nav en drawer plein écran */
    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 14, 20, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
        padding: 100px var(--spacing-md) var(--spacing-xl);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--transition-normal), visibility var(--transition-normal);
        z-index: 1050;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    }

    .navigation::before,
    .navigation::after,
    .header::before,
    .header::after {
        display: none;
    }

    body.nav-open .navigation {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
        border: 1px solid transparent;
        border-radius: 12px;
    }

    /* Dans le drawer mobile, le CTA prend toute la largeur en bas */
    .navigation .demo-button {
        margin: var(--spacing-md) 0 0;
        justify-content: center;
        width: 100%;
    }

    .navigation .demo-button .reporting-button__inner {
        width: 100%;
    }

    /* Hero */
    .hero-section {
        padding-top: 90px;
    }

    .hero-visual {
        height: auto;
        min-height: 340px;
    }

    /* Valeurs */
    .values-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .value-item {
        flex: 1 1 calc(33.333% - var(--spacing-md));
        min-width: 160px;
    }

    /* Modules */
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--spacing-md);
    }

    /* Offres : déjà 2 col + featured pleine largeur (hérité de 1200px) */

    /* Apropos / contact */
    .apropos-content {
        padding: var(--spacing-lg);
    }
}

/* ---------- MOBILE (< 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: var(--spacing-xl) 0;
        padding-top: 100px;
    }

    .hero-title {
        gap: 0.2rem;
    }

    .hero-title::before {
        width: 2px;
    }

    .hero-title-line {
        padding-inline: 0.3em;
    }

    .hero-title-line:nth-child(3) {
        font-size: 1.4rem;
        letter-spacing: 0.22em;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .values-section,
    .modules-section,
    .offres-section,
    .apropos-section,
    .contact-section {
        padding: var(--spacing-xl) 0;
    }

    /* Valeurs : 2 colonnes puis 1 si vraiment étroit */
    .values-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .value-item {
        flex: unset;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .value-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .value-title {
        font-size: 1rem;
    }

    .value-description {
        font-size: 0.85rem;
    }

    /* Modules : 2 colonnes pour rester lisible sur tablette portrait, 1 col sur très petit écran */
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--spacing-md);
    }

    .module-item {
        padding: var(--spacing-md);
    }

    .module-icon {
        width: 64px;
        height: 64px;
    }

    /* Offres : 1 colonne */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 0;
    }

    .pricing-card.featured {
        grid-column: auto;
        max-width: none;
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: none;
    }

    .card-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .plan-icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    .plan-title {
        font-size: 1.8rem;
    }

    .pricing-toggle {
        max-width: 100%;
    }

    .toggle-option {
        padding: 0.6rem 0.8rem;
        min-height: 48px;
    }

    .toggle-option span:first-child {
        font-size: 0.85rem;
    }

    .savings {
        font-size: 0.7rem;
    }

    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Contact */
    .contact-item {
        font-size: 1rem;
        flex-wrap: wrap;
        text-align: center;
    }

    .contact-button {
        width: 100%;
        justify-content: center;
    }

    .contact-button .reporting-button__inner {
        width: 100%;
        min-height: 52px;
        padding-inline: 1.6rem;
        font-size: 0.95rem;
    }

    .apropos-content {
        padding: var(--spacing-md);
    }

    .apropos-text p {
        font-size: 1rem;
    }
}

/* ---------- PETIT MOBILE (< 480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-section {
        padding-top: 90px;
    }

    .hero-title-line {
        padding: 0.08em 0.24em;
        border-radius: 12px;
    }

    .hero-title {
        padding-left: 0.32rem;
    }

    .hero-title::before {
        width: 2px;
    }

    .hero-subtitle {
        padding: 4px 10px;
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 10px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        padding: var(--spacing-sm);
    }

    .module-title {
        font-size: 1.1rem;
    }

    .module-description {
        font-size: 0.9rem;
    }

    .module-detail-btn {
        padding: 9px 16px;
        font-size: 0.85em;
    }

    .plan-title {
        font-size: 1.5rem;
    }

    .feature-item span {
        font-size: 0.95rem;
    }

    .contact-info {
        padding: var(--spacing-md);
    }

    /* Nav drawer encore plus adapté */
    .navigation {
        width: 100vw;
        border-left: none;
    }
}

/* ---------- TRÈS PETIT (< 360px) ---------- */
@media (max-width: 360px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }

    .nav-toggle {
        width: 38px;
        height: 32px;
    }
}

/* ========================================
 * ANIMATIONS ET EFFETS
 * ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    25% {
        transform: scale(1.1) translateY(-5px);
    }
    50% {
        transform: scale(1.05) translateY(-3px);
    }
    75% {
        transform: scale(1.08) translateY(-4px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--color-accent-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--color-accent-glow), 0 0 60px var(--color-accent-glow);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation de chargement initial */
body {
    opacity: 0;
    transition: opacity 0.25s ease-in;
}

body.js-loaded {
    opacity: 1;
}

/* Effet de brillance sur les cartes featured */
.pricing-card.featured {
    animation: glow 2s ease-in-out infinite;
}

/* ========================================
 * 7. SECTION À PROPOS
 *     - Styles pour la section "À propos"
 ======================================== */
.apropos-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background);
    position: relative;
}

.apropos-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-xl);
}

.apropos-text p {
    color: var(--color-text-secondary);
    line-height: 1.9;
    font-size: 1.15rem;
    margin-bottom: var(--spacing-md);
}

/* ========================================
 * 8. SECTION CONTACT
 *     - Styles pour la section contact
 ======================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background-secondary);
    position: relative;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--color-accent);
    font-size: 1.3rem;
    width: 24px;
    transition: all var(--transition-normal);
}

.contact-item:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px var(--color-accent));
}

.contact-button .reporting-button__inner {
    min-height: 54px;
    padding-inline: 2.35rem;
    font-size: 0.98rem;
}

/* ========================================
 * 9. EFFETS AVANCÉS (CURSEUR & GLITCH)
 * ======================================== */

/* --- Curseur Personnalisé --- */
.cursor-dot,
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    transition: width 0.18s, height 0.18s, background-color 0.18s;
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.15) 0%, transparent 70%);
    transition: width 0.18s, height 0.18s, background 0.18s;
    mix-blend-mode: screen;
}

/* État actif du curseur (survol liens/boutons) */
body.hovering .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
}

body.hovering .cursor-glow {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.25) 0%, transparent 70%);
}

/* Cacher le curseur sur mobile/touch */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-glow {
        display: none;
    }
}

body {
    cursor: auto;
}

body.has-custom-cursor {
    cursor: none;
}

@media (hover: none) and (pointer: coarse) {
    body,
    body.has-custom-cursor {
        cursor: auto;
    }
}

/* --- Effet Glow Eco sur le Titre --- */
.glitch-effect {
    position: relative;
    display: inline-block;
    transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), letter-spacing 0.22s ease;
}

.glitch-effect::before,
.glitch-effect::after {
    content: none;
}

.hero-title:hover .glitch-effect {
    color: #8bff8c;
    text-shadow:
        0 0 12px rgba(139, 255, 140, 0.75),
        0 0 28px rgba(77, 175, 78, 0.55),
        0 0 48px rgba(0, 255, 170, 0.35);
    transform: translateY(-3px);
    letter-spacing: 0.01em;
}

.hero-title:hover .hero-title-line:nth-child(1) { transition-delay: 0s; }
.hero-title:hover .hero-title-line:nth-child(2) { transition-delay: 0.04s; }
.hero-title:hover .hero-title-line:nth-child(3) { transition-delay: 0.08s; }
.hero-title:hover .hero-title-line:nth-child(4) { transition-delay: 0.12s; }

/* --- Effet Machine à écrire (Typing) --- */
.typing-cursor {
    position: relative;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--color-accent);
    margin-left: 0.08em;
}

.typing-cursor--terminal::after {
    color: #8bff8c;
    text-shadow: 0 0 8px rgba(139, 255, 140, 0.45);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ========================================
 * 10. RESPONSIVE - POLISH index.html
 * ======================================== */

/* Protections globales contre les débordements horizontaux */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.hero-title-line,
.hero-subtitle,
.hero-description,
.module-title,
.module-description,
.plan-title,
.feature-item span,
.contact-item span,
.apropos-text p {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

/* ---------- PETIT DESKTOP / GRANDE TABLETTE (1200 - 1024) ---------- */
@media (min-width: 993px) and (max-width: 1200px) {
    .values-grid {
        gap: var(--spacing-sm);
    }

    .value-item {
        padding: var(--spacing-sm) 0.75rem;
    }
}

/* ---------- TABLETTE PORTRAIT (768 - 992) ---------- */
@media (max-width: 992px) {
    .pricing-toggle {
        max-width: 320px;
    }

    .feature-item span {
        font-size: clamp(0.92rem, 0.6vw + 0.7rem, 1.05rem);
    }

    .hero-title-line {
        max-width: 100%;
    }
}

/* ---------- MOBILE (≤ 768) ---------- */
@media (max-width: 768px) {
    .hero-container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3.4rem);
    }

    .hero-subtitle {
        white-space: normal;
        word-break: break-word;
        line-height: 1.4;
    }

    .pricing-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .feature-item span {
        font-size: 0.95rem;
    }

    .feature-item i {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .contact-info {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .contact-item {
        gap: var(--spacing-sm);
        font-size: 0.95rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
        padding: 0 var(--spacing-xs);
    }
}

/* ---------- PETIT MOBILE (≤ 480) ---------- */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.75rem, 11vw, 2.6rem);
    }

    .hero-title-line:nth-child(3) {
        font-size: 1.1rem;
        letter-spacing: 0.18em;
    }

    .hero-visual {
        min-height: 280px;
    }

    .logo-circle {
        width: clamp(200px, 70vw, 280px);
        height: clamp(200px, 70vw, 280px);
    }

    .module-title {
        font-size: 1.1rem;
    }

    .pricing-card {
        padding: var(--spacing-md) var(--spacing-sm);
        border-radius: 18px;
    }

    .card-header {
        margin-bottom: var(--spacing-md);
    }

    .pricing-toggle {
        max-width: 100%;
    }

    .toggle-option {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .feature-item {
        margin-bottom: 0.4rem;
    }

    .reporting-button__inner {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

/* ---------- TRÈS PETIT (≤ 360) ---------- */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-title-line {
        padding: 0.06em 0.2em;
    }

    .hero-title-line:nth-child(3) {
        font-size: 0.95rem;
        letter-spacing: 0.14em;
    }

    .hero-description {
        font-size: 0.85rem;
        padding: 8px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .plan-title {
        font-size: 1.4rem;
    }

    .price-amount {
        font-size: 1.6rem;
    }
}

/* ---------- ORIENTATION PAYSAGE COURTE ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-visual {
        min-height: 220px;
    }

    .logo-circle {
        width: 200px;
        height: 200px;
    }
}

/* ========================================
 * 11. RESPONSIVE FINAL - index.html
 * ======================================== */
.header .container,
.hero-container,
.modules-grid,
.pricing-grid,
.values-grid,
.contact-content,
.apropos-content {
    width: 100%;
}

.section-title,
.section-subtitle,
.hero-title,
.hero-subtitle,
.hero-description,
.plan-title,
.price-amount {
    text-wrap: balance;
}

.pricing-grid {
    max-width: 1440px;
}

@media (max-width: 1320px) and (min-width: 993px) {
    .header .container {
        gap: 0.75rem;
    }

    .navigation {
        gap: 0.35rem;
    }

    .nav-link {
        padding-inline: clamp(0.7rem, 1vw, 1rem);
        font-size: 0.84rem;
    }

    .demo-button {
        margin-left: 0.75rem;
    }

    .demo-button .reporting-button__inner {
        padding-inline: 1.25rem;
    }
}

@media (max-width: 992px) {
    .home-page .header .logo {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .header .container {
        min-height: 56px;
    }

    .navigation {
        overscroll-behavior: contain;
        background: #0a0e14;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-backdrop {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.nav-open .nav-backdrop {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .cursor-dot,
    .cursor-glow {
        display: none !important;
    }

    body.has-custom-cursor {
        cursor: auto;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-container {
        max-width: 760px;
    }

    .hero-title {
        align-items: center;
        padding-left: 0;
    }

    .hero-title::before {
        display: none;
    }

    .hero-content {
        max-width: 720px;
        margin-inline: auto;
    }

    .hero-visual {
        width: min(100%, 520px);
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        margin-top: 0;
        margin-bottom: 0.85rem;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    .hero-section {
        padding-bottom: 2.5rem;
    }

    .hero-container {
        gap: 1.75rem;
    }

    .hero-title {
        margin-bottom: 1.25rem;
        letter-spacing: 0;
        line-height: 1.05;
    }

    .hero-title-line {
        justify-content: center;
        max-width: 100%;
    }

    .hero-subtitle,
    .hero-description {
        width: 100%;
        max-width: 34rem;
    }

    .hero-visual {
        min-height: 240px;
    }

    .logo-circle {
        width: clamp(190px, 58vw, 320px);
        height: clamp(190px, 58vw, 320px);
    }

    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    }

    .module-item {
        min-height: 100%;
    }

    .pricing-grid {
        max-width: 560px;
        margin-inline: auto;
    }

    .pricing-card {
        width: 100%;
    }

    .feature-item:hover,
    .contact-item:hover {
        transform: none;
    }

    .apropos-content,
    .contact-info {
        border-radius: 16px;
    }
}

@media (max-width: 560px) {
    .navigation {
        width: 100vw;
        padding: 88px 1rem 2rem;
    }

    .nav-link {
        text-align: center;
    }

    .values-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .value-item,
    .module-item {
        padding: 1rem;
    }

    .module-item.module-item--stamped {
        padding-top: 2rem;
    }

    .card-header {
        align-items: center;
    }

    .pricing-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .toggle-option {
        padding-inline: 0.45rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: clamp(1.5rem, 10vw, 2.1rem);
    }

    .hero-title-line:nth-child(3) {
        letter-spacing: 0.1em;
    }

    .logo-circle {
        width: min(72vw, 230px);
        height: min(72vw, 230px);
    }

    .hero-value-badges {
        gap: 0.45rem;
    }

    .hero-value-badge {
        min-height: 34px;
        padding: 0.5rem 0.7rem;
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .price-amount {
        font-size: 1.45rem;
    }

    .cta-button,
    .reporting-button__inner {
        white-space: normal;
    }

    .module-item.module-item--stamped {
        padding-top: 1.85rem;
    }

    .module-stamp {
        width: clamp(70px, 24vw, 86px);
        right: -4px;
    }
}

/* Mode mobile lisible : neutralise les effets qui peuvent flouter/masquer la page.
   On garde l'ambiance verte de body::before et .hero-section::after pour éviter
   que la page ne paraisse brutalement assombrie quand la navbar passe en burger. */
@media (max-width: 992px) {
    .header .container::before,
    .header .container::after,
    .navigation::before,
    .navigation::after,
    .header::before,
    .header::after {
        display: none !important;
    }

    .header {
        top: 0 !important;
        bottom: auto !important;
        transform: none !important;
        filter: none !important;
    }

    .hero-title-line,
    .hero-subtitle,
    .hero-description,
    .logo-circle,
    .value-item,
    .module-item,
    .pricing-card,
    .section-title,
    .section-subtitle {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* IMPORTANT : sur mobile, neutraliser TOUS les backdrop-filter sans exception.
       Edge (et certains autres navigateurs) appliquent backdrop-filter même sur des
       éléments invisibles (visibility:hidden, opacity:0), ce qui floute toute la page.
       En mobile on sacrifie l'effet glassmorphism pour garantir un rendu net. */
    *,
    *::before,
    *::after {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .pricing-card.featured {
        box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.25) !important;
    }

    .hero-title {
        filter: none !important;
    }
}

/* ========================================
   BOUTON FLOTTANT "RETOUR EN HAUT"
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 170, 0.4);
    background: rgba(10, 14, 20, 0.85);
    color: #00ffaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
                background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 255, 170, 0.08);
    z-index: 9000;
    padding: 0;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: rgba(0, 255, 170, 0.15);
    border-color: rgba(0, 255, 170, 0.7);
    box-shadow: 0 8px 28px rgba(0, 255, 170, 0.25), 0 0 0 1px rgba(0, 255, 170, 0.2);
}

.scroll-top-btn:focus-visible {
    outline: 2px solid #00ffaa;
    outline-offset: 3px;
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 992px) {
    .scroll-top-btn {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Footer global */
.footer {
    background: #05090b !important;
    border-top: 0;
    color: rgba(255, 255, 255, 0.54);
    padding: 0 !important;
}

.footer,
.footer .container,
.footer p {
    text-align: center !important;
}

.footer .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: clamp(2rem, 4vw, 4.5rem);
    width: min(100%, 1180px);
    min-height: 64px;
    padding-inline: 0;
}

.footer p {
    width: auto;
    margin: 0;
}

.footer .footer-copy {
    justify-self: start;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left !important;
    white-space: nowrap;
}

.footer-links {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.65rem;
    flex-wrap: wrap;
}

.footer .footer-tagline {
    justify-self: end;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: right !important;
    white-space: nowrap;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color var(--transition-normal),
        text-shadow var(--transition-normal),
        opacity var(--transition-normal);
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
    color: rgba(255, 255, 255, 0.86);
    text-shadow: none;
}

.footer-legal-link[aria-current="page"] {
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
}

/* Page mentions legales */
.legal-page {
    background: var(--color-background);
}

.legal-content {
    min-height: calc(100vh - 180px);
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xxl);
    background:
        radial-gradient(circle at 14% 12%, rgba(139, 255, 140, 0.1), transparent 30%),
        radial-gradient(circle at 86% 0%, rgba(0, 255, 170, 0.07), transparent 28%),
        var(--color-background);
}

.legal-content > .container {
    max-width: 920px;
}

.legal-hero {
    margin-bottom: var(--spacing-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(139, 255, 140, 0.16);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(11, 19, 13, 0.88), rgba(5, 9, 5, 0.94)),
        radial-gradient(circle at 0% 0%, rgba(139, 255, 140, 0.14), transparent 42%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 24px 60px rgba(0, 0, 0, 0.24);
}

.legal-eyebrow {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.02;
    text-wrap: balance;
}

.legal-hero p,
.legal-section p {
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.legal-section {
    margin-bottom: 1rem;
    padding: clamp(1.2rem, 3vw, 1.75rem);
    border: 1px solid rgba(139, 255, 140, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.legal-section h2 {
    margin: 0 0 0.85rem;
    color: var(--color-accent);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.legal-section p {
    margin: 0;
}

.legal-section p + p {
    margin-top: 0.85rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding-top: calc(70px + var(--spacing-lg));
    }

    .legal-hero,
    .legal-section {
        border-radius: 16px;
    }
}

@media (max-width: 900px) {
    .footer {
        padding: 0.95rem 0 calc(0.95rem + env(safe-area-inset-bottom)) !important;
    }

    .footer .container {
        grid-template-columns: 1fr;
        gap: 0.62rem;
        min-height: 0;
        padding-inline: 1rem;
    }

    .footer .footer-copy,
    .footer-links,
    .footer .footer-tagline {
        justify-self: center;
        text-align: center !important;
        white-space: normal;
    }

    .footer-links {
        gap: 0.8rem 1.1rem;
    }
}

@media (max-width: 420px) {
    .footer {
        padding-block: 0.9rem !important;
    }

    .footer .container {
        gap: 0.5rem;
        padding-inline: 0.85rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.35rem;
    }

    .footer .footer-copy,
    .footer .footer-tagline,
    .footer-legal-link {
        font-size: 0.78rem;
    }
}
