/* ==========================================================================
   FINAGECO - FEUILLE DE STYLE DES FONCTIONNALITÉS (fonctionnalites.css)
   Compatibilité : fonctionnalites.html & style.css (Éléments Globaux Unifiés)
   Infrastructure Cloud Powered by MBILLETECH
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
    /* Palette de Couleurs FINAGECO */
    --primary-blue: #0b4c8c;
    --primary-blue-hover: #083868;
    --secondary-blue: #004bb5;
    --accent-orange: #ff6b00;
    --accent-orange-hover: #e05e00;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --dark-bg: #0d233a;
    --dark-surface: #071524;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --border-color: #9e743d;

    /* Typographies */
    --font-main: 'Arial', 'Helvetica,', 'Poppins', sans-serif;
    --font-heading: 'Arial', 'Helvetica,', 'Poppins', sans-serif;

    /* Système d'Ombres & Transitions */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.288);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.22);
    --shadow-glow-orange: 0 8px 25px rgba(255, 107, 0, 0.35);
    --shadow-glow-blue: 0 8px 25px rgba(11, 76, 140, 0.35);
    --shadow-card-hover: 0 20px 40px -10px rgba(11, 76, 140, 0.18);

    --transition: all 0.3s ease;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --container-width: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-bg);
}

/* --------------------------------------------------------------------------
   2. PRELOADER (2-3 SECONDES - EXACT STYLE.CSS)
   -------------------------------------------------------------------------- */
#finageco-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-orange, .circle-blue {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.circle-orange {
    width: 90px;
    height: 90px;
    border-top-color: var(--accent-orange);
    animation: spin 1.2s linear infinite;
}

.circle-blue {
    width: 75px;
    height: 75px;
    border-bottom-color: var(--primary-blue);
    animation: spin-reverse 1s linear infinite;
}

.spinner-wrapper img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.preloader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION (EXACT STYLE.CSS)
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: -5px;
}

.logo-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 25px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.navbar ul li {
    font-family: poppins, sans-serif;
    font-weight: 600;
}

.navbar a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-blue);
}

.navbar a.active::after,
.navbar a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.sidenav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-idemo, .btn-login, .btn-demo {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.btn-idemo {
    background-color: #e2e8f0;
    color: var(--text-dark);
}

.btn-login {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-login:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-demo {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-demo:hover {
    background-color: var(--accent-orange-hover);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   4. WIDGETS (LEFT & RIGHT) (EXACT STYLE.CSS)
   -------------------------------------------------------------------------- */
.left-widgets {
    position: fixed;
    bottom: 25px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-widgets {
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 1000;
}

.widget-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.widget-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.calendar-btn {
    background-color: var(--primary-blue);
}

.wa-trigger {
    background-color: #25d366;
}

.whatsapp-container {
    position: relative;
}

.info-card.whatsapp {
    position: absolute;
    bottom: 65px;
    left: 0;
    width: 220px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    border: 1px solid var(--border-color);
}

.info-card.whatsapp.active {
    display: block;
}

.close-wa {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
}

.chat-trigger-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.chat-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--white);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
    overflow: hidden;
}

.chat-window.active {
    display: block;
}

.chat-header {
    background-color: var(--primary-blue);
    padding: 12px;
    display: flex;
    justify-content: flex-end;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
}

.chat-message p {
    font-size: 0.88rem;
    color: var(--text-dark);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-opt {
    background: var(--light-bg);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--primary-blue);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.chat-opt:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   5. DEMO MODAL (MULTI-STEP) (EXACT STYLE.CSS)
   -------------------------------------------------------------------------- */
.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 35, 58, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.demo-overlay.active {
    display: flex;
}

.demo-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.demo-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-blue));
    color: var(--white);
    padding: 30px 25px 20px;
    position: relative;
}

.close-demo {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

.demo-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.demo-header h2 {
    font-size: 1.5rem;
    margin: 10px 0 5px;
}

.demo-header p {
    font-size: 0.88rem;
    opacity: 0.9;
}

.demo-badges {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.8rem;
}

.demo-body {
    padding: 25px;
}

.demo-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.choice-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.choice-card.active {
    border-color: var(--primary-blue);
    background-color: rgba(11, 76, 140, 0.03);
}

.choice-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.choice-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.choice-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.step.active .step-circle {
    background: var(--primary-blue);
    color: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.phone-group {
    display: flex;
    gap: 8px;
}

.phone-group select {
    width: 100px;
}

.phone-group input {
    flex: 1;
}

.input-group small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn-continue, .btn-confirm {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
}

.recaptcha-mock {
    border: 1px solid #d3d3d3;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
}

.recaptcha-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.recaptcha-mock img {
    height: 32px;
}

.security-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 15px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION - FONCTIONNALITÉS
   -------------------------------------------------------------------------- */
.hero-fonctionnalites {
    position: relative;
    padding: 110px 0 90px;
    background-color: var(--dark-bg);
    overflow: hidden;
    color: var(--white);
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: heroImageAnimation 18s infinite ease-in-out;
}

.hero-slider-bg .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider-bg .slide:nth-child(2) { animation-delay: 6s; }
.hero-slider-bg .slide:nth-child(3) { animation-delay: 12s; }

@keyframes heroImageAnimation {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.04); }
    33% { opacity: 1; transform: scale(1.08); }
    43% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1); }
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 35, 58, 0.92) 0%, rgba(0, 0, 0, 0.82) 100%);
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-orange);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.highlight-gold {
    color: var(--accent-gold);
    position: relative;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.hero-subtitle {
    font-size: 1.08rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-hover));
    color: var(--white);
    padding: 14px 32px;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow-orange);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 14px 32px;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.hero-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   7. SECTION AVANTAGES STRATÉGIQUES
   -------------------------------------------------------------------------- */
.section-advantages {
    padding: 90px 0;
    background: var(--white);
}

.section-header {
    margin-bottom: 55px;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.advantage-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-blue);
    transition: var(--transition-normal);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(11, 76, 140, 0.2);
}

.advantage-card:hover::before {
    height: 100%;
}

.adv-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(11, 76, 140, 0.08), rgba(0, 75, 181, 0.04));
    color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.advantage-card:hover .adv-icon {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-glow-blue);
}

.advantage-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. SECTION CATALOGUE DES MODULES
   -------------------------------------------------------------------------- */
.section-modules {
    padding: 90px 0;
    background: var(--light-bg);
}

.modules-filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.filter-btn i {
    color: var(--text-muted);
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-glow-blue);
}

.filter-btn.active i {
    color: var(--white);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.module-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.module-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(11, 76, 140, 0.3);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.module-number {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.module-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-badge.finance { background: rgba(11, 76, 140, 0.1); color: var(--primary-blue); }
.module-badge.academique { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.module-badge.rh { background: rgba(16, 185, 129, 0.12); color: #059669; }
.module-badge.admin { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.module-badge.comms { background: rgba(236, 72, 153, 0.12); color: #db2777; }

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(11, 76, 140, 0.2);
}

.module-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.module-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.55;
}

.module-features {
    margin-bottom: 20px;
    flex: 1;
}

.module-features h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.module-features h4 i {
    color: #10b981;
}

.module-features ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.module-features li {
    font-size: 0.82rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 14px;
    line-height: 1.45;
}

.module-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.module-benefit {
    background: rgba(255, 107, 0, 0.05);
    border-left: 3px solid var(--accent-orange);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-dark);
    line-height: 1.45;
    margin-top: auto;
}

.module-benefit i {
    color: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   9. SECTION PERSONAS / ESPACES UTILISATEURS
   -------------------------------------------------------------------------- */
.section-personas {
    padding: 90px 0;
}

.persona-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.persona-tab-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.persona-tab-btn i {
    color: var(--primary-blue);
}

.persona-tab-btn:hover {
    border-color: var(--primary-blue);
}

.persona-tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-glow-blue);
}

.persona-tab-btn.active i {
    color: var(--white);
}

.persona-content-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.persona-pane {
    display: none;
}

.persona-pane.active {
    display: block;
    animation: fadeInPane 0.4s ease-out;
}

@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.persona-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge-role {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-orange);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.persona-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.persona-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.65;
}

.persona-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.persona-list li {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.persona-list i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 2px;
}

.persona-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    object-fit: cover;
    width: 100%;
    height: 380px;
}

/* --------------------------------------------------------------------------
   10. BANNIÈRE DÉMO CTA
   -------------------------------------------------------------------------- */
.section-cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-cta-banner p {
    font-size: 1.05rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. FOOTER (EXACT STYLE.CSS)
   -------------------------------------------------------------------------- */
.footer {
    background: #091929;
    color: #94a3b8;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    background: var(--accent-orange);
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.footer-contact i {
    color: var(--accent-orange);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   12. PROMOTIONAL POPUP MODAL (EXACT STYLE.CSS)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.finageco-modal {
    background: var(--white);
    width: 100%;
    max-width: 850px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.promo-side {
    background: linear-gradient(135deg, #0b4c8c, #002d5a);
    color: var(--white);
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.special-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.crown-box {
    font-size: 2rem;
    margin-top: 10px;
}

.promo-label {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 800;
    letter-spacing: 1px;
}

.promo-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 10px 0;
}

.promo-description {
    font-size: 0.85rem;
    opacity: 0.85;
}

.promo-side .pricing {
    background: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-item .price {
    font-size: 1.5rem;
    font-weight: 800;
}

.price-description {
    font-size: 0.72rem;
    opacity: 0.8;
}

.price-or {
    font-size: 0.8rem;
    opacity: 0.6;
}

.saving-badge {
    background: var(--accent-orange);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
}

.content-side {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.brand {
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.content-side h2 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-side .features {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    background: none;
}

.content-side .feature {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.content-side .feature-icon {
    color: #10b981;
    font-weight: 800;
}

.content-side .feature-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.content-side .feature-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.countdown-box {
    background: var(--light-bg);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.countdown-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--accent-orange);
    margin-bottom: 6px;
}

.countdown {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-box {
    text-align: center;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex: 1;
}

.time-box div {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.time-box span {
    font-size: 0.55rem;
    color: var(--text-muted);
}

.offer-button {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
    transition: var(--transition);
}

.offer-button:hover {
    background: var(--accent-orange-hover);
}

.later-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
}

.later-button:hover {
    color: var(--text-dark);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (ADD TO BOTTOM OF FONCTIONNALITES.CSS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESKTOP SMALL / TABLET LANDSCAPE (1080px)
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .finageco-modal {
        max-width: 720px;
    }
}

/* --------------------------------------------------------------------------
   2. TABLET PORTRAIT / MOBILE LARGE (768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Header & Navigation */
    .menu-toggle {
        display: flex;
    }

    .navbar {
        display: none; /* Intégration JS menu mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 15px;
        box-shadow: var(--shadow-md);
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    /* Hero Section */
    .hero-fonctionnalites {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-stats-strip {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .stat-divider {
        width: 60%;
        height: 1px;
    }

    /* Section Advantages & Modules */
    .advantages-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .section-advantages,
    .section-modules,
    .section-personas,
    .section-cta-banner {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Personas */
    .persona-content-box {
        padding: 24px;
    }

    .persona-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .persona-image img {
        height: 260px;
    }

    /* Modals & Popups */
    .finageco-modal {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }

    .promo-side {
        padding: 25px 20px;
    }

    .content-side {
        padding: 25px 20px;
    }

    .demo-choices,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .demo-modal-content {
        max-height: 85vh;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --------------------------------------------------------------------------
   3. MOBILE INTERMEDIATE (520px)
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .modules-filter-bar,
    .persona-tabs {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn,
    .persona-tab-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons a,
    .cta-buttons button {
        width: 100%;
        text-align: center;
    }

    .chat-window {
        width: calc(100vw - 30px);
        right: -10px;
    }

    .info-card.whatsapp {
        width: calc(100vw - 40px);
        left: -10px;
    }
}

/* --------------------------------------------------------------------------
   4. MOBILE STANDARD (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-text h2 {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .advantage-card,
    .module-card {
        padding: 20px 16px;
    }

    .persona-content-box {
        padding: 16px;
    }

    .persona-text h3 {
        font-size: 1.4rem;
    }

    .demo-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .demo-header h2 {
        font-size: 1.25rem;
    }

    .phone-group {
        flex-direction: column;
    }

    .phone-group select {
        width: 100%;
    }

    .left-widgets {
        left: 12px;
        bottom: 15px;
    }

    .right-widgets {
        right: 12px;
        bottom: 15px;
    }

    .widget-btn,
    .chat-trigger-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   5. MOBILE EXTRA SMALL (360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .section-header h2 {
        font-size: 1.45rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 18px;
        font-size: 0.88rem;
    }

    .module-card h3,
    .advantage-card h3 {
        font-size: 1.05rem;
    }

    .promo-title {
        font-size: 1.3rem;
    }

    .countdown {
        gap: 4px;
    }

    .time-box {
        padding: 2px 4px;
    }

    .time-box div {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   CORRECTION RESPONSIVE : MENU HAMBURGER ET SIDENAV (360px - 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .header .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 10001;
    }

    /* Masquer le sidenav de la barre d'en-tête principale sur mobile */
    .header > .container > .sidenav {
        display: none !important;
    }

    /* Conteneur du menu déroulant mobile */
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 10px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 10000;
        flex-direction: column;
        gap: 5px;
    }

    .navbar.active {
        display: flex !important;
    }

    .navbar ul {
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 10px 0;
        width: 100%;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid #f1f5f9;
    }

    /* Affichage du sidenav empilé dans le menu mobile */
    .navbar .sidenav {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding-top: 10px;
        margin-top: 5px;
        border-top: 2px solid #e2e8f0;
    }

    .navbar .sidenav .btn-idemo,
    .navbar .sidenav .btn-login,
    .navbar .sidenav .btn-demo {
        width: 100%;
        text-align: center;
        display: block;
        padding: 10px 14px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
    }
}