/* ====================================
   E~WIZONE Documentation - Custom Styles
   Refactored: Soft Editorial — v2
   ==================================== */

/* ----- Variables & Reset ----- */
:root {
    /* Palette désaturée, plus douce */
    --primary-color: #3b6fd4;
    --primary-dark: #2a52a8;
    --primary-subtle: rgba(59, 111, 212, 0.07);
    --secondary-color: #7a8fa6;
    --success-color: #2db58a;
    --warning-color: #e8a44a;
    --danger-color: #e05555;
    --info-color: #2fa8cc;
    --bg-light: #f5f7fa;
    --bg-soft: #eef1f6;
    --bg-white: #ffffff;
    --border-color: #e4e9f0;
    --border-subtle: #edf0f5;

    --text-primary: #1c2b3a;
    --text-secondary: #526070;
    --text-muted: #98a8b8;
    --text-faint: #c0cdd8;

    --sidebar-width: 260px;
    --header-height: 60px;

    /* Ombres très légères */
    --shadow-xs: 0 1px 2px rgba(28, 43, 58, 0.04);
    --shadow-sm: 0 2px 6px rgba(28, 43, 58, 0.06);
    --shadow-md: 0 4px 16px rgba(28, 43, 58, 0.08);
    --shadow-lg: 0 12px 32px rgba(28, 43, 58, 0.10);

    /* Typographie */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-base: 0.2s var(--ease-smooth);
}

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

body {
    font-family: var(--font-body);
    font-size: 14px;
    /* Réduit de 16px → 14px */
    font-weight: 400;
    line-height: 1.7;
    /* Plus aéré */
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    letter-spacing: -0.01em;
    /* Légère compression Inter */
}

/* ----- Scrollbar globale ----- */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ----- Typographie ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    /* Compression pour les titres Inter */
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

/* 30px */
h2 {
    font-size: 1.5rem;
    font-weight: 650;
}

/* 24px */
h3 {
    font-size: 1.25rem;
}

/* 20px */
h4 {
    font-size: 1.1rem;
}

/* 17.6px */
h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* 15.2px */
h6 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Label style */

p {
    margin-bottom: 0.875rem;
    font-size: 0.875rem;
    /* 14px */
    color: var(--text-secondary);
    line-height: 1.5;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

small,
.text-sm {
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}


/* ----- Header/Navbar ----- */
.docs-header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1030;
    transition: box-shadow var(--transition-base);
}

.docs-header .navbar {
    padding: 0 1.25rem;
    height: 100%;
}

.docs-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity var(--transition-base);
}

.docs-logo img{
    width: 100px;
}

.docs-logo:hover {
    color: var(--primary-color);
    opacity: 0.9;
}

.docs-search {
    max-width: 320px;
    position: relative;
}

.docs-search input {
    border-radius: 7px;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.875rem 0.4rem 2.25rem;
    font-size: 0.825rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-soft);
    transition: all var(--transition-base);
    width: 100%;
}

.docs-search input::placeholder {
    color: var(--text-muted);
}

.docs-search input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-subtle);
    outline: none;
}

.docs-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.docs-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    border: 1px solid var(--border-color);
}
.docs-search-results.show {
    display: block;
}
.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover, .search-result-item.active {
    background-color: var(--bg-soft);
    color: var(--primary-color);
}
.search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.search-result-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.search-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}


/* ----- Sidebar ----- */
.docs-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
    padding: 1.25rem 0 2rem;
    z-index: 1020;
    transition: transform 0.3s var(--ease-smooth);
}

/* Scrollbar sidebar */
.docs-sidebar::-webkit-scrollbar {
    width: 3px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 0.1rem;
}

/* Label de section sidebar */
.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-faint);
    padding: 1rem 1.25rem 0.35rem;
    display: block;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 450;
    font-size: 0.845rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border-radius: 0;
    gap: 0.625rem;
}

.sidebar-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.sidebar-link.active {
    background-color: var(--primary-subtle);
    color: var(--primary-color);
    font-weight: 550;
    border-right: 2px solid var(--primary-color);
}

.sidebar-link i {
    width: 16px;
    font-size: 0.85rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.sidebar-link .toggle-icon {
    margin-left: auto;
    font-size: 0.65rem;
    opacity: 0.5;
    transition: transform var(--transition-base);
}

.sidebar-link.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* Dropdown sidebar */
.sidebar-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s var(--ease-smooth);
}

.sidebar-dropdown.show {
    max-height: 1200px;
}

.sidebar-dropdown-item {
    padding: 0.4rem 1.25rem 0.4rem 3rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    transition: all var(--transition-base);
    position: relative;
}

.sidebar-dropdown-item::before {
    content: '';
    position: absolute;
    left: 2.1rem;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--text-faint);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: background var(--transition-base);
}

.sidebar-dropdown-item:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.sidebar-dropdown-item:hover::before {
    background: var(--primary-color);
}

.sidebar-dropdown-header {
    padding: 8px 16px 4px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    pointer-events: none;
    border-bottom: 1px solid var(--border-light);
    margin-top: 8px;
}

.sidebar-dropdown-header:first-of-type {
    margin-top: 0;
}


/* ----- Main Content ----- */
.docs-content {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-width);
    padding: 2.5rem 2rem;
    min-height: calc(100vh - var(--header-height));
}

.content-wrapper {
    max-width: 920px;
    margin: 0 2rem;
}

/* ----- Breadcrumb ----- */
.docs-breadcrumb {
    background-color: transparent;
    padding: 0 0 1.25rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.docs-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
}

.breadcrumb-item {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: var(--text-faint);
}


/* ----- Section Cards (Overview) ----- */
.section-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.375rem;
    transition: transform 0.25s var(--ease-smooth),
        box-shadow 0.25s var(--ease-smooth),
        border-color 0.25s var(--ease-smooth);
    cursor: pointer;
    height: 100%;
    text-decoration: none;
    display: block;
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.section-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
    color: var(--bg-white);
}

/* Dégradés adoucis */
.section-card-icon.blue {
    background: linear-gradient(135deg, #4a7fe0, #6b9cf5);
}

.section-card-icon.green {
    background: linear-gradient(135deg, #2db58a, #50d0a5);
}

.section-card-icon.orange {
    background: linear-gradient(135deg, #e8a44a, #f5c070);
}

.section-card-icon.purple {
    background: linear-gradient(135deg, #9b73e8, #b896f7);
}

.section-card-icon.red {
    background: linear-gradient(135deg, #f06a6a, #f78d8d);
}

.section-card-icon.indigo {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.section-card-icon.pink {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.section-card-icon.teal {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}

.section-card-icon.cyan {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.section-card-icon.dark {
    background: linear-gradient(135deg, #1f2937, #374151);
}

.section-card-icon.cyan {
    background: linear-gradient(135deg, #2fa8cc, #55ccee);
}

.section-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    letter-spacing: -0.015em;
}

.section-card-description {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0;
}


/* ----- Alert Boxes ----- */
.alert-custom {
    border-radius: 7px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.845rem;
    line-height: 1.6;
}

.alert-custom i {
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.alert-info {
    background-color: rgba(47, 168, 204, 0.07);
    border-color: var(--info-color);
    color: #1a5f73;
}

.alert-info i {
    color: var(--info-color);
}

.alert-warning {
    background-color: rgba(232, 164, 74, 0.09);
    border-color: var(--warning-color);
    color: #7a5010;
}

.alert-warning i {
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(224, 85, 85, 0.08);
    border-color: var(--danger-color);
    color: #7a2020;
}

.alert-danger i {
    color: var(--danger-color);
}

.alert-success {
    background-color: rgba(45, 181, 138, 0.08);
    border-color: var(--success-color);
    color: #1a5e45;
}

.alert-success i {
    color: var(--success-color);
}

.alert-tip {
    background-color: rgba(155, 115, 232, 0.08);
    border-color: #9b73e8;
    color: #4a2d8a;
}

.alert-tip i {
    color: #9b73e8;
}


/* ----- Code Blocks ----- */
pre {
    background-color: #1e2330;
    border-radius: 8px;
    padding: 1.125rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

pre code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.75;
    color: #cdd6f4;
}

code {
    background-color: var(--primary-subtle);
    color: var(--primary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.82em;
    font-family: var(--font-mono);
    letter-spacing: 0;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}


/* ----- Tables ----- */
.table-responsive {
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

table {
    margin-bottom: 0;
    font-size: 0.845rem;
}

.table thead th {
    background-color: var(--bg-soft);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 550;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: var(--bg-soft);
}


/* ----- Footer ----- */
.docs-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    margin-left: var(--sidebar-width);
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* ----- Responsive ----- */
@media (max-width: 991px) {
    .docs-sidebar {
        transform: translateX(-100%);
    }

    .docs-sidebar.show {
        transform: translateX(0);
    }

    .docs-content,
    .docs-footer {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block !important;
    }
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    transition: color var(--transition-base);
}

.sidebar-toggle:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .docs-content {
        padding: 1.5rem 1rem;
    }

    .docs-search {
        display: none;
    }
}


/* ----- Utilities ----- */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
}

.shadow-xs-custom {
    box-shadow: var(--shadow-xs);
}

.shadow-sm-custom {
    box-shadow: var(--shadow-sm);
}

.shadow-md-custom {
    box-shadow: var(--shadow-md);
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: 8px;
}

/* ----- Full-width content (Overview page) ----- */
.docs-content-full {
    margin-left: 0;
    margin-top: var(--header-height);
    padding: 2.5rem 0;
    min-height: calc(100vh - var(--header-height));
}

.docs-content-full .container {
    max-width: 1200px;
}

.docs-content-full~.docs-footer {
    margin-left: 0;
}


/* ========================================
   STYLES SPÉCIFIQUES — PAGE INTRODUCTION
   ======================================== */

.quick-link-card {
    transition: transform 0.2s var(--ease-smooth),
        box-shadow 0.2s var(--ease-smooth),
        border-color 0.2s var(--ease-smooth);
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color) !important;
}

.screenshot-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.screenshot-thumb img {
    transition: transform 0.35s var(--ease-smooth);
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.screenshot-thumb:hover img {
    transform: scale(1.04);
}

.screenshot-overlay {
    position: absolute;
    inset: 0 0 22px 0;
    background: rgba(59, 111, 212, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s var(--ease-smooth);
}

.screenshot-thumb:hover .screenshot-overlay {
    opacity: 1;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-subtle);
    color: var(--primary-color);
    box-shadow: none;
    font-size: 0.875rem;
}

.accordion-button {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.feature-accordion-icon {
    width: 28px;
    text-align: center;
    opacity: 0.7;
}

/*=========================================
# CSS de la page REQUIREMENTS
=======================================  */
.code-block-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-block-header {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.language-routeros {
    color: rgba(246, 243, 243, 0.726);
}

.code-block-wrapper pre {
    margin: 0;
    border-radius: 0;
    border: none;
}

.code-dynamic-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Step Badges */
.step-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.step-badge-sm {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ----- WireGuard Form ----- */
.wg-info-form .form-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.wg-info-form .input-group-text {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

.wg-info-form .form-control {
    border-color: var(--border-color);
}

.wg-info-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wg-dynamic-value {
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}


/*===========================================
#  CSS pour la page ESPACES
============================================  */
/* ----- Spaces Page ----- */
.definition-banner {
    border-left: 4px solid var(--primary-color) !important;
}

.definition-icon {
    min-width: 50px;
}

/* Flow Diagram */
.flow-diagram {
    position: relative;
    padding: 1rem 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.flow-step-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.flow-step-content {
    flex: 1;
}

.flow-step-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border-color);
    min-width: 40px;
    text-align: right;
}

.flow-connector {
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.2rem;
}

/* URL Cards */
.url-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.url-card-tech .url-card-header {
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

.url-card-client .url-card-header {
    background: linear-gradient(135deg, #065f46, #10b981);
}

.url-card-header {
    padding: 1.25rem 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.url-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.url-card-body {
    padding: 1.5rem;
    flex: 1;
    background: var(--bg-white);
}

.url-card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
}

.url-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.url-feature-list li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.url-feature-list li:last-child {
    border-bottom: none;
}

/* Multi-space Diagram */
.ms-node {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ms-node-manager {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.ms-node-space {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    border: 2px solid rgba(37, 99, 235, 0.2);
    min-width: 130px;
}

.ms-node-pending {
    background: rgba(245, 158, 11, 0.08);
    color: var(--warning-color);
    border: 2px dashed rgba(245, 158, 11, 0.4);
    min-width: 130px;
}

.ms-connector-line {
    width: 2px;
    height: 40px;
    background: var(--border-color);
    margin: 0 60px;
}

.ms-connector-dashed {
    background: repeating-linear-gradient(to bottom,
            var(--border-color) 0px,
            var(--border-color) 6px,
            transparent 6px,
            transparent 12px);
}

/* Lifecycle Timeline */
.lifecycle-timeline {
    position: relative;
    padding-left: 2rem;
}

.lifecycle-timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.lifecycle-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-left: 0.5rem;
}

.lifecycle-item:last-child {
    margin-bottom: 0;
}

.lifecycle-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border-color);
    margin-left: -1.75rem;
    margin-top: 0.2rem;
    z-index: 1;
}

.lifecycle-content {
    flex: 1;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

/* ==============================================
3 CSS pour la page GESTIONNAIRES
=============================================== */
/* ----- Manager Guide Page ----- */
.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.quick-nav-link:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.quick-nav-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Guide Steps */
.guide-step {
    scroll-margin-top: 100px;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.step-content {
    padding-left: 76px;
}

/* Instruction Box */
.instruction-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.instruction-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.instruction-list {
    margin: 0;
    padding-left: 1.25rem;
}

.instruction-list li {
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.instruction-list ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.instruction-list ul li {
    margin-bottom: 0.5rem;
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    border-radius: 8px;
    overflow: hidden;
}

.screenshot-placeholder img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

/* Supervision Features */
.supervision-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.feature-content {
    flex: 1;
}

/* Next Steps Cards */
.next-step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s ease;
}

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

.next-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .step-content {
        padding-left: 0;
    }

    .step-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ----- Sub Steps ----- */
.sub-step {
    padding-left: 2rem;
    border-left: 3px solid var(--border-color);
}

.sub-step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sub-step-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-action-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: 8px;
}

/* ----- Payment Options ----- */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-option-card:has(.form-check-input:checked) {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.03);
}

.payment-option-card .form-check-input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.payment-option-card .form-check-label {
    cursor: pointer;
    margin-bottom: 0;
}

.payment-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.payment-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-features li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
}

/* ----- Step Navigation ----- */
.step-navigation-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}

.step-indicator {
    font-weight: 500;
}

/* ----- Subscription Plans ----- */
.subscription-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.subscription-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.subscription-card-popular {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.subscription-card-best {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.popular-badge,
.best-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.popular-badge {
    background: var(--warning-color);
    color: #fff;
}

.best-badge {
    background: var(--success-color);
    color: #fff;
}

.subscription-header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.subscription-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.subscription-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.subscription-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.subscription-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.subscription-features li:last-child {
    border-bottom: none;
}

.subscription-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    text-align: center;
}

/* ----- Payment Methods ----- */
.payment-method-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ----- Subscription History ----- */
.subscription-history-preview {
    background: var(--bg-light);
}

/* ----- User Guide Tabs ----- */
.guide-tabs {
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guide-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.875rem 1.25rem;
    transition: all 0.2s ease;
}

.guide-tabs .nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.guide-tabs .nav-link.active {
    background: var(--primary-color);
    color: #fff;
}

.guide-tab-content {
    padding: 2rem 0;
}

.tab-content-wrapper {
    max-width: 900px;
}

@media (max-width: 768px) {
    .tab-content-wrapper {
        max-width: 100%;
    }
}

/* ----- Dashboard Indicators ----- */
.indicator-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.indicator-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* ----- Menu Structure ----- */
.menu-structure {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.menu-category {
    margin-bottom: 1.5rem;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    padding: 0.5rem 0 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ----- Sale Steps ----- */
.sale-step {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.sale-step-header {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sale-step-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.sale-step-content {
    padding: 1.5rem;
}

/* ----- SMS Preview ----- */
.sms-preview {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* ----- Sale Confirmation ----- */
.sale-confirmation {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-credentials-box {
    box-shadow: var(--shadow-sm);
}

.credential-item {
    text-align: center;
}

/* ----- Transmission Options ----- */
.transmission-card {
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 100%;
    text-align: center;
    transition: all 0.2s ease;
}

.transmission-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.transmission-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 0.75rem;
}

/* ----- Stats Cards ----- */
.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-period {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ----- Charts List ----- */
.charts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.chart-icon {
    font-size: 1.75rem;
    min-width: 40px;
}

/* ----- Benefit Cards ----- */
.benefit-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 100%;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ----- Coming Soon Notice ----- */
.coming-soon-notice {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .guide-tabs {
        border-bottom: none;
    }
    
    .guide-tabs .nav-link {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .guide-tabs .nav-link.active {
        border-radius: 8px;
    }
}

/* ----- Bulk Actions ----- */
.bulk-actions-info {
    margin-bottom: 2rem;
}

.bulk-action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 100%;
}

.bulk-action-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.bulk-action-content {
    flex: 1;
}

/* ----- Action Example ----- */
.action-example {
    border-left: 3px solid var(--primary-color);
}


/* ----- Responsive ----- */
@media (max-width: 768px) {
    .selection-bar-preview {
        padding: 1rem;
    }
    
    .selection-bar-preview .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .selection-bar-preview .d-flex > div {
        width: 100%;
    }
    
    .selection-bar-preview button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ----- Action Cards & Items ----- */
.action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.action-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.action-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.action-item:last-child {
    margin-bottom: 0;
}

.action-icon-mini {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.action-content-mini {
    flex: 1;
}

/* ----- Benefits List ----- */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefit-item {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ----- Export Cards ----- */
.export-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.export-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* ----- Status Grid & Cards ----- */
.status-grid {
    margin-bottom: 2rem;
}

.status-card {
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    height: 100%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

/* ----- Categories Example ----- */
.categories-example {
    margin: 2rem 0;
}

.category-example-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.category-example-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-featured {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.category-badge {
    padding: 0.75rem 1rem;
    text-align: center;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-details {
    padding: 1.25rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ----- User Management ----- */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.info-item i {
    font-size: 1.1rem;
    min-width: 20px;
}

.user-action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 100%;
    transition: all 0.2s ease;
}

.user-action-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.user-action-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

/* ----- Subsections ----- */
.subsection {
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 768px) {
    .category-example-card,
    .status-card,
    .user-action-card {
        margin-bottom: 1rem;
    }
    
    .info-list {
        padding: 1rem;
    }
}