/* ====================================================================
   EVOSYS - Module Cantine - Présentation Client
   CSS Professionnel - Pagination Slide-by-Slide
   ==================================================================== */

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root[data-theme="dark"] {
    --bg-primary: #0a0a1a;
    --bg-secondary: rgba(10, 10, 30, 0.95);
    --bg-tertiary: rgba(255, 255, 255, 0.03);
    --bg-light: rgba(255, 255, 255, 0.06);
    --text-primary: #e0e6ed;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.08);
    --accent: #667eea;
    --accent-light: rgba(102, 126, 234, 0.15);
}

:root[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: rgba(255, 255, 255, 0.98);
    --bg-tertiary: rgba(0, 0, 0, 0.02);
    --bg-light: rgba(0, 0, 0, 0.04);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0, 0, 0, 0.55);
    --text-muted: rgba(0, 0, 0, 0.35);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.05);
    --accent: #667eea;
    --accent-light: rgba(102, 126, 234, 0.1);
}

html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 0.75rem;
}

.ms-1 {
    margin-left: 0.25rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

/* ============================================================
   NAVIGATION FIXE EN HAUT
   ============================================================ */
.presentation-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    gap: 1.5rem;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
}

.nav-module {
    color: var(--accent);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-light);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.nav-controls {
    flex-shrink: 0;
}

.slide-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* ============================================================
   CONTENEUR DES SLIDES
   ============================================================ */
.slides-container {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 60px;
    overflow: hidden;
}

/* ============================================================
   SLIDE DE BASE
   ============================================================ */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    padding: 2rem 3rem;
}

.slide::-webkit-scrollbar {
    width: 6px;
}

.slide::-webkit-scrollbar-track {
    background: transparent;
}

.slide::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   SLIDE HEADER (numéro + titre)
   ============================================================ */
.slide-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.slide-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.slide-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.slide-body {
    max-width: 1200px;
    margin: 0 auto;
}

.slide-intro {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.slide-intro strong {
    color: var(--accent);
}

/* ============================================================
   FEATURE SECTION
   ============================================================ */
.feature-section {
    margin-bottom: 2rem;
}

.feature-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

/* ============================================================
   KPI GRID
   ============================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-grid.kpi-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.kpi-demo {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kpi-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-demo:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
}

.kpi-green::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.kpi-blue::before {
    background: linear-gradient(90deg, #2980b9, #3498db);
}

.kpi-orange::before {
    background: linear-gradient(90deg, #e67e22, #f39c12);
}

.kpi-purple::before {
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
}

.kpi-demo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 1.1rem;
}

.kpi-green .kpi-demo-icon {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

.kpi-blue .kpi-demo-icon {
    background: rgba(41, 128, 185, 0.15);
    color: #3498db;
}

.kpi-orange .kpi-demo-icon {
    background: rgba(230, 126, 34, 0.15);
    color: #f39c12;
}

.kpi-purple .kpi-demo-icon {
    background: rgba(142, 68, 173, 0.15);
    color: #9b59b6;
}

.kpi-demo-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.kpi-demo-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.kpi-demo-trend {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
}

.kpi-demo-trend.up {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

.kpi-demo-trend.down {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.kpi-demo-badge {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
    display: inline-block;
}

/* ============================================================
   FEATURES GRID (2 colonnes)
   ============================================================ */
.features-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.features-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-card-pres {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.feature-card-pres:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #00b4d8, #48cae4);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.feature-card-pres h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-card-pres p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.feature-card-pres p strong {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   MINI FEATURES (3 colonnes compactes)
   ============================================================ */
.mini-feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s;
}

.mini-feature:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mini-feature-icon {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.7rem;
}

.mini-feature h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.mini-feature p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   WEEK CHART DEMO
   ============================================================ */
.week-chart-demo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    height: 180px;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.chart-bar-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    max-width: 80px;
}

.bar-fill {
    width: 100%;
    max-width: 40px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transition: height 0.6s ease;
}

.bar-fill.today {
    background: linear-gradient(180deg, #27ae60, #2ecc71);
    box-shadow: 0 0 15px rgba(39, 174, 96, 0.3);
}

.bar-fill.empty {
    background: rgba(255, 255, 255, 0.06);
}

.bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.bar-value {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================================
   VIEW MODES DEMO (Consultation Menus)
   ============================================================ */
.view-modes-demo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.view-mode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.view-mode-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.view-mode-icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.8rem;
}

.view-mode-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.view-mode-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.view-mode-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.tag-success {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

.tag-primary {
    background: rgba(41, 128, 185, 0.15);
    color: #3498db;
}

.tag-warning {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.tag-info {
    background: rgba(0, 180, 216, 0.15);
    color: #48cae4;
}

.tag-dark {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.dot-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bg-success {
    background: #2ecc71;
}

.bg-primary {
    background: #3498db;
}

.bg-warning {
    background: #f39c12;
}

/* ============================================================
   FILTERS DEMO
   ============================================================ */
.filters-demo {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.filter-group h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.filter-chips-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    cursor: default;
    transition: all 0.3s;
}

.chip.active {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.chip.danger {
    border-color: rgba(231, 76, 60, 0.15);
}

.chip.danger.active {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.4);
}

.calorie-slider-demo {
    margin-top: 0.5rem;
}

.slider-track {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 3px;
}

.slider-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f39c12;
}

/* ============================================================
   STEPPER DEMO (Réservation)
   ============================================================ */
.stepper-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    gap: 0;
}

.step-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.step-icon-demo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.step-demo.active .step-icon-demo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.step-demo.completed .step-icon-demo {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border-color: #27ae60;
}

.step-label-demo {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.step-demo.active .step-label-demo {
    color: #667eea;
}

.step-demo.completed .step-label-demo {
    color: #2ecc71;
}

.step-desc-demo {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
}

.step-line-demo {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    min-width: 50px;
    max-width: 100px;
    margin: 0 0.5rem;
    margin-bottom: 2.5rem;
    border-radius: 2px;
}

.step-line-demo.active {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

/* ============================================================
   OPTIONS GRID
   ============================================================ */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.option-item>i {
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.option-item strong {
    font-size: 0.85rem;
    color: #fff;
    display: block;
    margin-bottom: 0.2rem;
}

.option-item p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

.text-primary {
    color: #3498db;
}

.text-danger {
    color: #e74c3c;
}

.text-warning {
    color: #f39c12;
}

.text-success {
    color: #2ecc71;
}

.text-info {
    color: #48cae4;
}

/* ============================================================
   WEEK PLANNING DEMO (Gestion plats)
   ============================================================ */
.week-planning-demo {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
}

.day-column-demo {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.day-header-demo {
    padding: 0.7rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.day-header-demo.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.day-items-demo {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.plat-mini {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.plat-mini i {
    font-size: 0.65rem;
}

/* ============================================================
   SOLDE DEMO (Recharge)
   ============================================================ */
.solde-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.solde-card-demo {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.solde-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}

.solde-currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.solde-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.solde-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.solde-bar {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 4px;
}

.solde-hint {
    font-size: 0.78rem;
    color: #2ecc71;
    font-weight: 500;
}

.solde-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.solde-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.2rem;
}

.solde-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.solde-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.solde-stat-count {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.3rem;
}

/* ============================================================
   AUTO RECHARGE DEMO
   ============================================================ */
.auto-recharge-demo {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
}

.auto-recharge-item {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.auto-recharge-item>i {
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.auto-recharge-item strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.auto-recharge-item p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============================================================
   STATUS BADGES DEMO (Historique)
   ============================================================ */
.status-badges-demo {
    display: flex;
    gap: 1rem;
}

.status-badge-demo {
    flex: 1;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.status-badge-demo.success {
    background: rgba(39, 174, 96, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-badge-demo.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status-badge-demo.danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-desc {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.7;
}

/* ============================================================
   COMPARISON DEMO (Stats)
   ============================================================ */
.comparison-demo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.compare-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.compare-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.compare-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.compare-vs {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.compare-previous {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.compare-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
}

.compare-trend.up {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.compare-trend.down-good {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

/* ============================================================
   DISPLAY SETTINGS DEMO (Paramètres)
   ============================================================ */
.display-settings-demo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.setting-item>i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.setting-item strong {
    font-size: 0.82rem;
    color: #fff;
    display: block;
    margin-bottom: 0.15rem;
}

.setting-item p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* ============================================================
   SLIDE COUVERTURE
   ============================================================ */
.slide-cover {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow-y: auto;
    padding: 2rem 2rem 3rem;
}

.cover-bg-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 180, 216, 0.06) 0%, transparent 40%);
    animation: rotateBg 30s linear infinite;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cover-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 2rem;
}

.cover-icon-main {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.cover-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cover-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 0 1.5rem;
}

.cover-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cover-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.cover-feature i {
    font-size: 1.3rem;
    color: #667eea;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cover-feature span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.cover-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cover-meta span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cover-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.cover-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* ============================================================
   SLIDE FIN (Conclusion)
   ============================================================ */
.slide-end {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.end-content {
    max-width: 900px;
}

.end-icon {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.end-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.end-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.recap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.recap-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.recap-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.recap-num {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    position: absolute;
    top: 0.5rem;
    left: 0.7rem;
}

.recap-icon {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.recap-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.recap-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.end-tech {
    margin-bottom: 2rem;
}

.end-tech h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
}

.end-contact {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.end-contact p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.end-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.end-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
}

/* ============================================================
   PAGINATION CONTROLS (bas)
   ============================================================ */
.pagination-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1000;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.pagination-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pagination-dot.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .slide {
        padding: 1.5rem 2rem;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid-2col,
    .features-grid-3col {
        grid-template-columns: 1fr;
    }

    .view-modes-demo {
        grid-template-columns: 1fr;
    }

    .filters-demo {
        grid-template-columns: 1fr;
    }

    .comparison-demo {
        grid-template-columns: repeat(2, 1fr);
    }

    .display-settings-demo {
        grid-template-columns: repeat(2, 1fr);
    }

    .week-planning-demo {
        grid-template-columns: repeat(3, 1fr);
    }

    .recap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solde-demo {
        grid-template-columns: 1fr;
    }

    .cover-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .presentation-nav {
        padding: 0 0.8rem;
    }

    .nav-links {
        display: none;
    }

    .slide {
        padding: 1.2rem 1rem;
    }

    .slide-number {
        font-size: 2rem;
    }

    .slide-title {
        font-size: 1.3rem;
    }

    .cover-title {
        font-size: 2rem;
    }

    .cover-features {
        gap: 1rem;
    }

    .cover-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stepper-demo {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .step-line-demo {
        display: none;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .status-badges-demo {
        flex-direction: column;
    }

    .auto-recharge-demo {
        flex-direction: column;
    }

    .recap-grid {
        grid-template-columns: 1fr 1fr;
    }

    .week-planning-demo {
        grid-template-columns: 1fr 1fr;
    }

    .end-title {
        font-size: 1.6rem;
    }
}

/* ============================================================
   COVER PAGE — Wide layout & header row
   ============================================================ */
.cover-content-wide {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 95%;
}

.cover-header-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.cover-header-left {
    flex: 1;
    text-align: left;
}

.cover-header-left .cover-title {
    text-align: left;
}

.cover-header-left .cover-icon-main {
    margin: 0 0 1.2rem;
}

.cover-header-left .cover-meta {
    justify-content: flex-start;
}

.cover-header-right {
    flex: 0 0 340px;
}

.cover-header-right .screenshot-container-cover {
    margin: 0;
}

/* ---- Modules section header ---- */
.cover-modules-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cover-modules-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.4rem;
}

.cover-modules-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
}

.cover-modules-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.cover-modules-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Cover recap grid (conclusion style + screenshots) ---- */
.cover-recap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.cover-recap-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cover-recap-item:hover {
    background: var(--accent-light);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.2);
}

.cover-recap-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.cover-recap-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    pointer-events: none;
}

.cover-recap-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cover-recap-item:hover .cover-recap-img img {
    transform: scale(1.05);
}

.cover-recap-body {
    padding: 0.7rem 0.8rem 0.8rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cover-recap-num {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    opacity: 0.6;
}

.cover-recap-icon {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.cover-recap-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cover-recap-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1;
}

.cover-recap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.cover-recap-tag {
    font-size: 0.58rem;
    font-weight: 500;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(102, 126, 234, 0.15);
    white-space: nowrap;
}

/* ---- Cover footer (tech badges + CTA) ---- */
.cover-footer-section {
    text-align: center;
}

.cover-tech-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

/* ---- Responsive cover grid ---- */
@media (max-width: 1024px) {
    .cover-recap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cover-header-row {
        flex-direction: column;
        text-align: center;
    }

    .cover-header-left {
        text-align: center;
    }

    .cover-header-left .cover-title {
        text-align: center;
    }

    .cover-header-left .cover-icon-main {
        margin: 0 auto 1.2rem;
    }

    .cover-header-left .cover-meta {
        justify-content: center;
    }

    .cover-header-right {
        flex: unset;
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .cover-recap-grid {
        grid-template-columns: 1fr;
    }

    .cover-content-wide {
        width: 100%;
    }
}

/* ============================================================
   SCREENSHOT CONTAINER
   ============================================================ */
.screenshot-container {
    margin: 1.5rem 0 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.15);
    position: relative;
}

.screenshot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    z-index: 2;
}

.screenshot-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.screenshot-header .dot-red,
.screenshot-header .dot-yellow,
.screenshot-header .dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.screenshot-header .dot-red {
    background: #e74c3c;
}

.screenshot-header .dot-yellow {
    background: #f39c12;
}

.screenshot-header .dot-green {
    background: #2ecc71;
}

.screenshot-header .screenshot-title {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.screenshot-body {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.screenshot-body img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-container:hover .screenshot-body img {
    transform: scale(1.01);
}

.screenshot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(102, 126, 234, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.screenshot-label i {
    color: #667eea;
}

.screenshot-container-cover {
    max-width: 600px;
    margin: 1.5rem auto 2rem;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {

    .presentation-nav,
    .pagination-controls {
        display: none !important;
    }

    .slides-container {
        position: static;
        overflow: visible;
    }

    .slide {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        page-break-after: always;
        height: auto;
        min-height: 100vh;
    }

    body {
        background: #fff;
        color: #333;
        overflow: visible;
    }

    .slide-number {
        color: #667eea;
        -webkit-text-fill-color: #667eea;
    }

    .slide-title {
        color: #222;
    }
}