:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a40;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-orange: #f15a24;
    --accent-teal: #1a5c5c;
    --accent-teal-light: #2d8a8a;
    --border: #2a3548;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo { display: flex; align-items: baseline; gap: 8px; }
.logo-fan {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-teal-light);
    letter-spacing: -0.5px;
}
.logo-premium {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-orange);
    font-style: italic;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-badge {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.search-bar {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 12px;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus { outline: none; border-color: var(--accent-orange); }

.search-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 16px;
    cursor: pointer;
    font-size: 1.1rem;
}

.main-nav {
    display: flex;
    gap: 8px;
    padding: 8px 24px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-pill:hover { background: var(--bg-card); }
.nav-pill.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.sub-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px 12px;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow-x: auto;
}

.sub-nav a { color: var(--text-secondary); }
.sub-nav a:hover { color: var(--accent-orange); }
.sub-nav span { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}
.btn-primary:hover { background: #d94e1f; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-xs { padding: 4px 8px; font-size: 0.75rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Main content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
    min-width: 0;
    overflow-x: clip;
}

/* Hero */
.hero {
    margin: -24px -24px 32px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--bg-primary) 60%);
    padding: 40px 24px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-text h1 em {
    display: block;
    font-style: italic;
    color: var(--accent-orange);
    font-size: 2.2rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 16px 0;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: 700%;
    object-fit: cover;
}

/* Sections */
.section { margin-bottom: 48px; }
.section-alt { background: var(--bg-secondary); margin: 0 -24px; padding: 48px 24px; }

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-header p { color: var(--text-secondary); }

/* Event cards grid - guichet.com style */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-orange);
}

.card-organizer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.organizer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    overflow: hidden;
    flex-shrink: 0;
}

.organizer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.organizer-avatar.large {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.card-image-link { display: block; }

.card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--accent-teal);
    position: relative;
}

.card-image[style*="default"] {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-orange));
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning { background: var(--warning); color: #000; }
.badge-soldout { background: var(--error); color: white; }
.badge-pending { background: rgba(100, 116, 139, 0.9); color: white; }

.card-body { padding: 16px; }

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-title a:hover { color: var(--accent-orange); }

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.card-tickets { margin-bottom: 8px; }

.tickets-available {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.tickets-available.soldout { color: var(--error); }
.tickets-available.tickets-pending { color: var(--text-secondary); }

.card-inventory-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.inv-tag {
    font-size: 0.7rem;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-muted);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.soldout-text { color: var(--error); }

/* Tarifs */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.tarif-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.tarif-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.tarif-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.tarif-desc { font-size: 0.8rem; color: var(--text-muted); }

.tarif-special { border-color: var(--accent-teal-light); }

.order-steps {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.6;
}

.order-steps li { margin-bottom: 8px; }

.commande-success-card {
    max-width: 520px;
    margin: 40px auto;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* Commande page */
.commande-page { max-width: 1000px; margin: 0 auto; }

.commande-header { margin-bottom: 32px; }

.back-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 16px;
}
.back-link:hover { color: var(--accent-orange); }

.commande-pos-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.commande-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.commande-form-section,
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.commande-form .form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.price-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 20px 0;
}

.price-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-line.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-line.total span:last-child { color: var(--accent-orange); }

.info-card { margin-bottom: 16px; }
.info-card h3 { font-size: 1rem; margin-bottom: 12px; }

.stock-list, .info-list {
    list-style: none;
}

.stock-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.stock-list li.soldout { color: var(--error); opacity: 0.7; }

.info-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success { background: rgba(34,197,94,0.15); border: 1px solid var(--success); color: var(--success); }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid var(--error); color: var(--error); }

/* Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 0;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-header { text-align: center; margin-bottom: 24px; }
.login-header h1 { font-size: 1.8rem; margin-bottom: 4px; }
.login-header p { color: var(--text-secondary); }

.login-form .form-group { margin-bottom: 16px; }

.login-help {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-help a { color: var(--accent-orange); }

/* Dashboard */
.dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-header h1 { font-size: 1.8rem; }
.dashboard-pos { color: var(--text-secondary); }

.notif-badge {
    background: var(--accent-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
    min-width: 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.stat-card.highlight {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, rgba(241,90,36,0.1), var(--bg-card));
}

.stat-card--paid {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(34,197,94,0.12), var(--bg-card));
}

.stat-card--paid .stat-icon {
    color: var(--success);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.dashboard-panel.full-width {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}

.dashboard-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.panel-subtitle {
    font-size: 0.95rem;
    margin: 20px 0 12px;
    color: var(--text-secondary);
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.panel-header-row h2 { margin: 0; border: none; padding: 0; }

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 4px;
    overscroll-behavior-x: contain;
}

.table-responsive .data-table {
    width: max-content;
    min-width: 100%;
}

.data-table {
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: auto;
}

.data-table th,
.data-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
}

.data-table .total-row td {
    border-top: 2px solid var(--border);
    font-size: 0.95rem;
}

.text-warning { color: var(--warning); font-weight: 600; }

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form select,
.inline-form input {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.sell-form .form-group { margin-bottom: 12px; }

.sell-form select,
.sell-form input {
    max-width: 100%;
}

.notif-list { max-height: 400px; overflow-y: auto; }

.notif-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.85rem;
    position: relative;
}

.notif-item.unread {
    background: rgba(241,90,36,0.1);
    border-left: 3px solid var(--accent-orange);
}

.notif-item.read {
    background: var(--bg-secondary);
    opacity: 0.7;
}

.notif-item small { color: var(--text-muted); }

.notif-read-form { margin-top: 4px; }

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 40px 24px 20px;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-links a,
.footer-links p {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-links a:hover { color: var(--accent-orange); }

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Setup wizard */
.setup-page {
    display: flex;
    justify-content: center;
    padding: 24px 12px 40px;
    min-height: 60vh;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.setup-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
}

.setup-card-wide { max-width: 720px; }

.setup-header { text-align: center; margin-bottom: 32px; }
.setup-header h1 { font-size: 1.6rem; margin-bottom: 4px; }
.setup-header p { color: var(--text-secondary); }

.step-indicator-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 28px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 12px;
    max-width: 100%;
}

.step-indicator-row::-webkit-scrollbar { display: none; }

.step-indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
}

.step-indicator-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}

.step-indicator-item.active .step-indicator-circle {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

.step-indicator-item.completed .step-indicator-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-indicator-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.step-indicator-item.active .step-indicator-label { color: var(--accent-orange); font-weight: 600; }
.step-indicator-item.completed .step-indicator-label { color: var(--success); }

.step-indicator-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 20px;
    max-width: 50px;
    margin-bottom: 20px;
}

.step-indicator-line.completed { background: var(--success); }

.setup-step-content h2 { font-size: 1.2rem; margin-bottom: 8px; }
.setup-desc { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9rem; }
.setup-form .form-group { margin-bottom: 16px; }
.setup-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.setup-actions-back {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.setup-actions-finish .btn-primary { min-width: 220px; }

.setup-info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.setup-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.setup-info-icon { display: block; margin-bottom: 8px; }
.setup-info-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.setup-info-card p { font-size: 0.85rem; color: var(--text-secondary); }

.setup-finish { text-align: center; }
.setup-finish-icon { margin-bottom: 16px; }
.setup-finish-summary { margin: 24px 0; }
.setup-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
}

.setup-input:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.text-highlight { color: var(--accent-teal-light); }

/* Stock cards (step 3) */
.setup-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.setup-cat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.setup-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.setup-cat-header h3 { font-size: 1rem; margin-bottom: 2px; }
.setup-cat-price { font-size: 0.85rem; color: var(--accent-teal-light); font-weight: 600; }

.setup-cat-stats-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.setup-cat-stats-inline strong { color: var(--text-primary); }

.setup-remise-section { margin-top: 4px; }

.setup-remise-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.setup-remise-lines { margin-bottom: 10px; }

.setup-remise-line {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.setup-remise-line:last-child { border-bottom: none; }

.setup-remise-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.setup-remise-fields .form-group { margin-bottom: 0; }
.setup-remise-fields label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; display: block; }

.btn-remove-remise {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-remise:hover { color: var(--error); border-color: var(--error); }

.btn-add-remise { width: 100%; margin-top: 4px; min-height: 44px; }

/* Finish recap */
.setup-finish-cats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.setup-finish-cat {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.setup-finish-cat-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.setup-finish-cat-stats { font-size: 0.85rem; color: var(--text-secondary); }

.setup-finish-remise-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.setup-finish-remise-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 12px;
    border-left: 2px solid var(--accent-orange);
    margin-bottom: 4px;
}

.setup-stock-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.setup-ca-line { margin-bottom: 16px; }

.setup-summary-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.setup-summary-item.highlight {
    border-color: var(--accent-orange);
    background: rgba(241,90,36,0.1);
}

.setup-summary-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.setup-summary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Allocations banner */
.allocations-banner {
    background: linear-gradient(135deg, rgba(241,90,36,0.15), var(--bg-card));
    border: 1px solid var(--accent-orange);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.allocations-banner h2 { font-size: 1.1rem; margin-bottom: 8px; }
.allocations-banner > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

.allocations-list { display: flex; flex-direction: column; gap: 12px; }

.allocation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.allocation-info small { display: block; color: var(--text-muted); margin-top: 2px; }

.panel-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: -8px 0 16px;
}

.text-muted { color: var(--text-muted); }

.card-visit-hint {
    font-size: 0.85rem;
    color: var(--accent-teal-light);
    font-weight: 500;
}

/* Admin */
.admin-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(34,197,94,0.2); color: var(--success); }
.badge-pending { background: rgba(245,158,11,0.2); color: var(--warning); }

.allocate-form .form-group { margin-bottom: 12px; }

.allocate-quick-fill {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.allocate-quick-fill label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.allocate-quick-fill-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.allocate-quick-fill-row input {
    flex: 1;
    max-width: 140px;
}

.allocate-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 16px;
}

.allocate-categories-title {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 4px;
}

.allocate-qty-row label {
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.allocate-qty-row input {
    width: 100%;
}

.allocate-total {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: rgba(42, 133, 255, 0.08);
    border: 1px solid rgba(42, 133, 255, 0.2);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.allocate-total strong {
    color: var(--accent-teal-light);
    font-size: 1.1rem;
}

.clear-stock-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.clear-stock-block h3 {
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.clear-stock-form {
    max-width: 360px;
}

.inventory-filter-form select {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.reset-panel {
    margin-top: 24px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.06);
}

.reset-checklist {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reset-checklist li { margin-bottom: 6px; }

.reset-checklist code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.reset-form { max-width: 360px; }

.reset-confirm-input {
    font-family: monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#gestion-utilisateurs {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

#gestion-invitations {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.stats-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 20px;
}

.invitations-grid {
    margin-top: 8px;
}

.invitation-input-name {
    width: 100%;
    min-width: 120px;
    max-width: 220px;
}

.invitation-input-qty {
    width: 100%;
    max-width: 72px;
}

.data-table--invitations th,
.data-table--invitations td {
    white-space: nowrap;
}

.data-table--invitations .invitation-input-name {
    min-width: 120px;
    max-width: 160px;
}

.invitations-by-category {
    margin-bottom: 20px;
}

.invitations-by-category-title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.invitations-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.invitation-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

.invitation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vente-cancel-form {
    display: inline-flex;
}

.vente-pay-form {
    display: inline-flex;
}

.vente-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vente-row--payee {
    background: rgba(34, 197, 94, 0.04);
}

.ventes-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ventes-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: min(100%, 280px);
}

.ventes-search-form input[type="search"] {
    flex: 1;
    min-width: 180px;
    max-width: 420px;
}

.ventes-list-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.ventes-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.ventes-pagination-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ventes-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.ventes-page-link:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.ventes-page-link.is-active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
}

.data-table--ventes .vente-cancel-form .btn,
.data-table--ventes .vente-pay-form .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ventes-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ventes-search-form {
        width: 100%;
    }

    .ventes-search-form input[type="search"] {
        max-width: none;
        width: 100%;
    }

    .ventes-list-meta {
        text-align: center;
    }
}

.invitation-edit-form,
.invitation-delete-form {
    display: inline-flex;
}

.invitation-create-form .form-group { margin-bottom: 12px; }

@media (max-width: 768px) {
    #gestion-invitations .data-table--invitations tbody tr {
        display: block;
        padding: 14px;
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }

    #gestion-invitations .data-table--invitations tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        border: none;
    }

    #gestion-invitations .data-table--invitations tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    #gestion-invitations .data-table--invitations thead {
        display: none;
    }

    #gestion-invitations .invitation-input-name {
        max-width: none;
        flex: 1;
    }

    #gestion-invitations .data-table--invitations tbody td[data-label="Nom"],
    #gestion-invitations .data-table--invitations tbody td[data-label="Total"],
    #gestion-invitations .data-table--invitations tbody td[data-label="Modifié le"],
    #gestion-invitations .data-table--invitations tbody td[data-label="Actions"] {
        border-top: 1px solid var(--border);
        margin-top: 4px;
        padding-top: 12px;
    }

    #gestion-invitations .invitation-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #gestion-invitations .invitation-actions form {
        width: 100%;
    }

    #gestion-invitations .invitation-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.users-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.users-lists {
    min-width: 0;
    max-width: 100%;
}

.users-lists .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.users-add-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.users-add-card h3,
.users-lists h3 {
    font-size: 1rem;
    margin: 0 0 14px;
}

.users-lists h3:not(:first-child) {
    margin-top: 24px;
}

.user-create-form .form-group { margin-bottom: 12px; }

.password-reset-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.password-reset-form input[type="password"] {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
}

.pos-delete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.delete-confirm-input {
    flex: 1;
    min-width: 100px;
    max-width: 140px;
    font-family: monospace;
    font-size: 0.85rem;
    text-transform: lowercase;
}

.data-table--users code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.user-create-form .pos-only.hidden { display: none; }

/* Gestion utilisateurs — mobile : cartes au lieu du tableau large */
@media (max-width: 768px) {
    #gestion-utilisateurs {
        padding: 16px;
    }

    .users-add-card {
        padding: 16px;
    }

    .user-create-form .btn-primary {
        width: 100%;
    }

    .data-table--users {
        min-width: 0 !important;
    }

    .data-table--users thead {
        display: none;
    }

    .data-table--users tbody tr {
        display: block;
        margin-bottom: 12px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--border);
        border-radius: var(--radius);
    }

    .data-table--users tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        white-space: normal;
        word-break: break-word;
    }

    .data-table--users tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        margin-bottom: 4px;
    }

    .data-table--users tbody td:last-child {
        padding-top: 10px;
        margin-top: 4px;
        border-top: 1px solid var(--border);
    }

    .data-table--users .password-reset-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .data-table--users .password-reset-form input[type="password"] {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .data-table--users .password-reset-form .btn {
        width: 100%;
        justify-content: center;
    }

    .data-table--users .pos-delete-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .data-table--users .delete-confirm-input {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .data-table--users .pos-delete-form .btn {
        width: 100%;
        justify-content: center;
    }

    .users-lists .table-responsive {
        overflow-x: visible;
    }
}

/* Bootstrap Icons */
.bi-lg { font-size: 1.35rem; }

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.icon-text .bi {
    flex-shrink: 0;
    line-height: 1;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal-light);
}

.stat-icon .bi {
    font-size: 1.75rem;
}

.stat-card.highlight .stat-icon {
    color: var(--accent-orange);
}

.nav-pill .bi {
    font-size: 1rem;
}

.search-btn .bi {
    font-size: 1.1rem;
}

.menu-toggle .bi {
    pointer-events: none;
}

.setup-info-icon .bi,
.setup-finish-icon .bi {
    font-size: 2rem;
    color: var(--accent-orange);
}

.setup-finish-icon .bi {
    font-size: 3rem;
}

.step-indicator-circle .bi {
    font-size: 0.9rem;
}

.btn-remove-remise .bi {
    font-size: 1.1rem;
}

.admin-badge .bi,
.allocations-banner h2 .bi {
    font-size: 1rem;
}

.status-ok { color: var(--success); }
.status-pending { color: var(--warning); }

.footer-links .icon-text {
    margin-bottom: 6px;
}

.hero-info .icon-text,
.card-meta .icon-text {
    gap: 0.5rem;
}

.tickets-available .bi {
    color: inherit;
}

/* ==========================================================================
   RESPONSIVE — all pages (must stay at end of file)
   ========================================================================== */

/* Tablet landscape / small desktop */
@media (max-width: 1200px) {
    .header-top,
    .search-bar,
    .main-nav,
    .sub-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-content {
        padding: 20px 16px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-text h1 { font-size: 2.2rem; }
    .hero-text h1 em { font-size: 1.6rem; }
    .hero-image img { height: 220px; }

    .section-header h2 { font-size: 1.5rem; }
    .section-alt { padding: 36px 16px; margin: 0 -16px; }

    .commande-layout { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .users-grid { grid-template-columns: 1fr; }
    .password-reset-form { flex-direction: column; align-items: stretch; }
    .password-reset-form input[type="password"] { max-width: none; width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .dashboard-header h1 { font-size: 1.5rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .header-badge { display: none; }

    .header-top {
        padding: 10px 12px;
        gap: 8px;
    }

    .logo-fan { font-size: 1.15rem; }
    .logo-premium { font-size: 0.95rem; }

    .header-actions {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .header-actions .btn-sm {
        padding: 8px 10px;
        font-size: 0.78rem;
        min-height: 40px;
    }

    .search-bar,
    .main-nav,
    .sub-nav {
        display: none;
    }

    .site-header.nav-open .search-bar,
    .site-header.nav-open .main-nav {
        display: flex;
    }

    .site-header.nav-open .search-bar {
        padding: 0 12px 10px;
    }

    .site-header.nav-open .main-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px 12px;
        overflow: visible;
    }

    .site-header.nav-open .nav-pill {
        justify-content: center;
        min-height: 44px;
    }

    .search-bar input {
        font-size: 16px;
        min-height: 44px;
    }

    .search-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .main-content { padding: 16px 12px; }

    .hero {
        margin: -16px -12px 24px;
        padding: 28px 16px;
    }

    .hero-text h1 { font-size: 1.85rem; }
    .hero-text h1 em { font-size: 1.35rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-info { font-size: 0.88rem; }

    .section { margin-bottom: 32px; }
    .section-alt { margin: 0 -12px; padding: 32px 12px; }

    .events-grid { grid-template-columns: 1fr; }
    .tarifs-grid { grid-template-columns: repeat(2, 1fr); }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-footer .btn { width: 100%; min-height: 44px; }

    .form-row { grid-template-columns: 1fr; }

    .form-group input,
    .form-group select,
    .commande-form input,
    .commande-form select {
        font-size: 16px;
        min-height: 44px;
    }

    .btn { min-height: 44px; }

    .login-page { padding: 24px 0; min-height: 50vh; }
    .login-card {
        padding: 28px 20px;
        max-width: 100%;
        margin: 0;
    }

    .login-header h1 { font-size: 1.5rem; }
    .login-form input { font-size: 16px; min-height: 48px; }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-header h1 { font-size: 1.35rem; }
    .notif-badge,
    .admin-badge { align-self: flex-start; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card { padding: 14px 12px; gap: 10px; }
    .stat-icon { font-size: 1.5rem; }
    .stat-value { font-size: 1.1rem; word-break: break-word; }
    .stat-label { font-size: 0.75rem; }

    .dashboard-panel {
        padding: 16px 14px;
    }

    .data-table { font-size: 0.78rem; }
    .data-table th,
    .data-table td { padding: 8px 6px; }

    .data-table--ventes th:first-child,
    .data-table--ventes td:first-child {
        max-width: 120px;
        white-space: normal;
        word-break: break-word;
    }

    .allocations-banner { padding: 16px 14px; }
    .allocation-item {
        flex-direction: column;
        align-items: stretch;
    }

    .allocation-item .btn {
        width: 100%;
        min-height: 44px;
    }

    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-form select,
    .inline-form input,
    .inline-form .btn {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .sell-form input,
    .sell-form select,
    .allocate-form input,
    .allocate-form select {
        font-size: 16px;
        min-height: 44px;
        width: 100%;
    }

    .allocate-categories {
        grid-template-columns: 1fr;
    }

    .allocate-quick-fill-row {
        flex-direction: column;
        align-items: stretch;
    }

    .allocate-quick-fill-row input {
        max-width: none;
        width: 100%;
    }

    .inventory-filter-form {
        width: 100%;
    }

    .inventory-filter-form select {
        width: 100%;
        min-width: 0;
    }

    .panel-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .clear-stock-form {
        max-width: none;
    }

    .notif-list { max-height: 280px; }

    .site-footer {
        padding: 32px 16px 16px;
        margin-top: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Setup wizard */
    .setup-page { padding: 12px 0 32px; }
    .setup-card { padding: 18px 14px; border-radius: var(--radius-sm); }
    .setup-header { margin-bottom: 20px; }
    .setup-header h1 { font-size: 1.2rem; }
    .setup-step-content h2 { font-size: 1rem; }
    .setup-desc { font-size: 0.84rem; margin-bottom: 16px; }
    .setup-actions { flex-direction: column-reverse; gap: 10px; }
    .setup-actions .btn { width: 100%; min-height: 48px; }
    .setup-stock-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
    .setup-summary-item { padding: 12px 10px; }
    .setup-summary-value { font-size: 1.25rem; }
    .setup-summary-label { font-size: 0.68rem; }
    .setup-cat-card { padding: 14px 12px; }
    .setup-cat-header { flex-direction: column; gap: 8px; }
    .setup-cat-stats-inline {
        text-align: left;
        flex-direction: row;
        gap: 16px;
        width: 100%;
    }
    .setup-remise-fields { grid-template-columns: 1fr; gap: 8px; }
    .setup-remise-line { flex-wrap: wrap; align-items: stretch; }
    .btn-remove-remise { width: 100%; height: 40px; margin-top: 4px; }
    .btn-add-remise { min-height: 48px; }

    .step-indicator-line { min-width: 12px; max-width: 24px; margin-bottom: 18px; }
    .step-indicator-item { min-width: 56px; flex-shrink: 0; }
    .step-indicator-label { font-size: 0.6rem; max-width: 56px; line-height: 1.2; }
    .step-indicator-circle { width: 30px; height: 30px; font-size: 0.75rem; }
}

/* Small phones */
@media (max-width: 400px) {
    .logo-fan { font-size: 1rem; }
    .logo-premium { font-size: 0.85rem; }

    .header-actions .btn-outline,
    .header-actions .btn-ghost {
        padding: 8px;
        font-size: 0.72rem;
    }

    .tarifs-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .setup-stock-summary { grid-template-columns: 1fr; }

    .hero-text h1 { font-size: 1.6rem; }
    .hero-text h1 em { font-size: 1.15rem; }

    .card-inventory-mini { gap: 6px; }
    .inv-tag { font-size: 0.65rem; }
}

/* Desktop enhancements */
@media (min-width: 600px) {
    .setup-stock-summary { grid-template-columns: repeat(4, 1fr); }
    .setup-finish-cat-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .menu-toggle { display: none !important; }
}

/* ——— Backoffice POS MVC + billets QR ——— */
.pos-backoffice-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pos-backoffice-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pos-backoffice-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: #fff;
}

.pos-backoffice-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-card {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    max-width: 520px;
    margin: 0 auto 24px;
}

.ticket-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.ticket-card-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius);
}

.ticket-card-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0;
}

.ticket-card-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ticket-serial {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.ticket-card-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scan-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.scan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.qr-reader {
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
}

.scan-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.scan-result--ok {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.scan-result--error {
    border-color: #ef4444;
    background: rgb(255, 0, 0);
}

.scan-result-icon {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.scan-result-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin-top: 12px;
}

.scan-result-details dt {
    font-weight: 600;
    color: var(--text-muted);
}

.verify-page {
    display: flex;
    justify-content: center;
    padding: 32px 16px;
}

.verify-card {
    max-width: 420px;
    width: 100%;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.verify-details {
    text-align: left;
    margin: 20px 0;
}

.verify-details dt {
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
}

.scan-page--wedge {
    max-width: 720px;
}

.scan-wedge-panel {
    background: var(--surface, #fff);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.scan-wedge-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.scan-wedge-input {
    width: 100%;
    font-size: 1.75rem;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.06em;
    padding: 16px 18px;
    border: 3px solid var(--accent-orange, #f97316);
    border-radius: var(--radius);
    text-align: center;
    box-sizing: border-box;
}

.scan-wedge-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.scan-camera-fallback {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.scan-camera-fallback summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.ticket-barcode-wrap {
    margin-top: 12px;
}

.ticket-barcode {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 6px 0;
}

@media (max-width: 768px) {
    .scan-grid {
        grid-template-columns: 1fr;
    }
}

/* v3 Billetterie — creative / GSAP-inspired */
.page-home {
    --fz-font-display: 'Syne', 'Inter', sans-serif;
    --fz-space: 20px;
    --theme-primary: #f15a24;
    --theme-primary-rgb: 241, 90, 36;
    --theme-bg-soft: #fff8f5;
    --theme-text-on: #ffffff;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --accent-orange: #f15a24;
    --accent-teal: #0d6e6e;
    --accent-teal-light: #0f8a8a;
    --fz-glow: rgba(241, 90, 36, 0.35);
    transition: background-color 0.45s ease;
}

/* Thème dynamique selon catégorie choisie */
.page-home[data-ticket-theme="public"] {
    --theme-primary: #b91c1c;
    --theme-primary-rgb: 185, 28, 28;
    --theme-bg-soft: #fef2f2;
    --accent-orange: #b91c1c;
}

.page-home[data-ticket-theme="premium"] {
    --theme-primary: #0f766e;
    --theme-primary-rgb: 15, 118, 110;
    --theme-bg-soft: #f0fdfa;
    --accent-orange: #0f766e;
}

.page-home[data-ticket-theme="vip"] {
    --theme-primary: #171717;
    --theme-primary-rgb: 23, 23, 23;
    --theme-bg-soft: #f5f5f5;
    --accent-orange: #171717;
}

.page-home[data-ticket-theme="vip_snack"] {
    --theme-primary: #1c1917;
    --theme-primary-rgb: 28, 25, 23;
    --theme-bg-soft: #fafaf9;
    --accent-orange: #b45309;
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) {
    background: var(--theme-bg-soft);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-bg {
    background: linear-gradient(165deg, var(--theme-bg-soft) 0%, #ffffff 50%, var(--theme-bg-soft) 100%);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-orb--1 {
    background: rgba(var(--theme-primary-rgb), 0.18);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-wizard-card {
    border-color: rgba(var(--theme-primary-rgb), 0.25);
    box-shadow: 0 12px 40px rgba(var(--theme-primary-rgb), 0.12);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-steps-item.is-active .fz-steps-num,
.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .btn-primary {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-recap-mini {
    border-left: 4px solid var(--theme-primary);
    background: var(--theme-bg-soft);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-recap-full {
    border-color: rgba(var(--theme-primary-rgb), 0.2);
    background: var(--theme-bg-soft);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-recap-row--total strong,
.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-total strong,
.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-selected-price {
    color: var(--theme-primary);
}

.page-home[data-ticket-theme]:not([data-ticket-theme=""]) .fz-section-head h2 em {
    color: var(--theme-primary);
}

.page-home .menu-toggle { display: none !important; }

.page-home .site-header--home,
.page-home .site-header {
    border-bottom: none;
}

.fz-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.fz-lang-btn {
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.fz-lang-btn.is-active {
    background: var(--theme-primary);
    color: #fff;
}

/* Home header — flags + FIFA logo */
.header-top--home {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 16px 12px;
}

.header-home-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-home-side--left { justify-content: flex-start; }
.header-home-side--right { justify-content: flex-end; }

.header-fifa-logo {
    display: flex;
    justify-content: center;
    line-height: 0;
}

.header-fifa-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
}

.fz-lang-btn--flag {
    min-width: 0;
    width: 44px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fz-lang-btn--flag img {
    display: block;
    width: 32px;
    height: auto;
    border-radius: 2px;
}

.fz-lang-btn--flag.is-active {
    background: #fff;
    color: inherit;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 1px var(--theme-primary);
}

.header-home-admin {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
}

.page-home.is-rtl {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
}

.page-home.is-rtl .fz-hero-cta-title,
.page-home.is-rtl .fz-section-head h2 {
    font-family: 'Noto Sans Arabic', 'Syne', sans-serif;
}

.page-home.is-rtl .fz-hero-cta-wrap {
    flex-direction: row-reverse;
}

.page-home.is-rtl .fz-hero-cta-inner {
    text-align: right;
    align-items: flex-end;
}

.page-home.is-rtl .fz-eyebrow {
    letter-spacing: 0;
    text-transform: none;
    width: 100%;
}

.page-home.is-rtl .fz-hero-cta-title,
.page-home.is-rtl .fz-hero-cta-sub {
    width: 100%;
}

.page-home.is-rtl .fz-cta-main {
    flex-direction: row-reverse;
}

.page-home.is-rtl .fz-section-head {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.page-home.is-rtl .fz-btn-next .bi-arrow-right,
.page-home.is-rtl .fz-btn-back .bi-arrow-left,
.page-home.is-rtl #toStep2 .bi-arrow-right,
.page-home.is-rtl #toStep3 .bi-arrow-right {
    transform: scaleX(-1);
}

.page-home.is-rtl .fz-recap-mini {
    border-left: none;
    border-right: 4px solid var(--theme-primary);
}

.page-home.is-rtl .fz-screen-label {
    border-left: none;
    border-right: 3px solid var(--accent-teal-light);
}

.page-home.is-rtl .fz-passenger-row {
    flex-direction: row-reverse;
}

.page-home.is-rtl .fz-passenger-info {
    text-align: right;
}

.page-home.is-rtl .fz-step-actions--split {
    flex-direction: row-reverse;
}

.page-home.is-rtl .fz-recap-row {
    flex-direction: row-reverse;
    text-align: right;
}

.page-home.is-rtl .fz-total-row,
.page-home.is-rtl .fz-total {
    flex-direction: row-reverse;
}

.page-home.is-rtl .fz-ticket-physical {
    direction: ltr;
    text-align: left;
}

.page-home.is-rtl .success-card {
    text-align: right;
}

.page-home.is-rtl .success-total {
    direction: rtl;
}

.page-home.is-rtl .icon-text {
    flex-direction: row-reverse;
}

.page-home.is-rtl .site-footer {
    direction: rtl;
}

.page-home.is-rtl .footer-grid {
    direction: rtl;
}

.page-home.is-rtl .footer-brand,
.page-home.is-rtl .footer-links,
.page-home.is-rtl .footer-bottom {
    text-align: right;
}

.page-home.is-rtl .footer-brand .logo {
    display: flex;
    justify-content: flex-end;
}

.page-home.is-rtl .footer-links .icon-text {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.page-home.is-rtl .footer-brand p,
.page-home.is-rtl .footer-links p,
.page-home.is-rtl .footer-links a {
    text-align: right;
}

.page-home.is-rtl .footer-bottom {
    text-align: center;
}

.page-home .main-content { overflow-x: clip; }

.fz-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(165deg, #ffffff 0%, #f0f4fa 45%, #e8f0f8 100%);
    pointer-events: none;
}

.fz-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.fz-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.fz-orb--1 { width: 420px; height: 420px; background: rgba(241, 90, 36, 0.12); top: -8%; left: -5%; }
.fz-orb--2 { width: 360px; height: 360px; background: rgba(15, 118, 110, 0.12); bottom: 10%; right: -5%; }

/* Hero CTA compact */
.fz-hero-cta {
    min-height: auto;
    padding: 56px 24px;
    position: relative;
}

.fz-hero-cta-wrap {
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
}

.fz-hero-cta-inner {
    flex: 1 1 420px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--fz-space);
    text-align: left;
}

.fz-hero-cta-inner > * {
    margin: 0;
}

.fz-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.fz-hero-visual {
    flex: 1 1 380px;
    max-width: 480px;
    width: 100%;
}

.fz-hero-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border);
    background: #fff;
}

.fz-hero-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

@media (max-width: 768px) {
    .fz-hero-frame img {
        aspect-ratio: unset;
    }
}

.fz-hero-cta-title {
    font-family: var(--fz-font-display);
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
}

.fz-hero-cta-title span {
    display: block;
    font-size: 0.55em;
    color: var(--theme-primary);
    font-style: italic;
    margin-top: 6px;
}

.fz-hero-cta-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.fz-hero-event {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(234, 88, 12, 0.04));
    border: 1px solid rgba(234, 88, 12, 0.25);
}

.fz-hero-match {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #c2410c;
    text-transform: uppercase;
}

.fz-hero-date {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fz-hero-schedule {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.fz-hero-schedule-sep {
    opacity: 0.5;
}

.page-home.is-rtl .fz-hero-event {
    text-align: right;
}

.page-home.is-rtl .fz-hero-schedule {
    justify-content: flex-end;
}

.fz-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--theme-primary);
    color: var(--theme-text-on);
    border: none;
    box-shadow: 0 8px 28px rgba(var(--theme-primary-rgb), 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.35s;
}

.fz-cta-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(var(--theme-primary-rgb), 0.45);
    color: #000;
}

.fz-order { padding: 56px 24px 80px; position: relative; }

.fz-order-inner { max-width: 1400px; margin: 0 auto; }

.fz-section-head {
    display: flex;
    flex-direction: column;
    gap: var(--fz-space);
    margin-bottom: 40px;
    max-width: 640px;
}

.fz-section-head h2 {
    font-family: var(--fz-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0;
}

.fz-section-head h2 em { color: var(--accent-orange); font-style: normal; }
.fz-section-head p { color: var(--text-secondary); font-size: 1.05rem; margin: 0; }

.fz-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Wizard réservation */
.fz-wizard { max-width: 720px; margin: 0 auto; width: 100%; padding: 0 4px; }

.fz-step-lead {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fz-step-lead em { color: var(--text-muted); font-style: normal; font-size: 0.85rem; display: block; margin-top: 6px; }

.fz-passenger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.fz-passenger-info {
    flex: 1;
    min-width: 140px;
}

.fz-passenger-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.fz-passenger-info > span:not(.fz-line-price) {
    font-size: 0.8rem;
    color: var(--accent-teal-light);
    font-weight: 600;
}

.fz-line-price {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.fz-passenger-row .fz-qty {
    flex-shrink: 0;
    min-width: 130px;
}

.fz-total-summary {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
}

.fz-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.fz-total-row strong { font-size: 1.1rem; }

.fz-step-error {
    color: var(--error);
    font-size: 0.88rem;
    text-align: center;
    margin-top: 12px;
}

.fz-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.fz-steps-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.fz-steps-item.is-active,
.fz-steps-item.is-done { opacity: 1; }

.fz-steps-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--fz-font-display);
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.fz-steps-item.is-active .fz-steps-num {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 0 20px var(--fz-glow);
}

.fz-steps-item.is-done .fz-steps-num {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: #fff;
}

.fz-steps-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.fz-wizard-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px 32px;
    box-shadow: var(--shadow);
    opacity: 1;
    visibility: visible;
}

.fz-step-panel {
    opacity: 1;
    visibility: visible;
}

.fz-step-panel[hidden] {
    display: none !important;
}

.fz-step-panel.is-active {
    display: block;
}

.fz-step-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 16px 0 8px;
}

.fz-step-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.fz-step-actions--split {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fz-step-actions .btn { min-width: 140px; }

.fz-recap-mini,
.fz-recap-full {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.fz-recap-full { display: flex; flex-direction: column; gap: 10px; }

.fz-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.fz-recap-row span { color: var(--text-muted); }

.fz-recap-row--total {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}

.fz-recap-row--total strong {
    font-family: var(--fz-font-display);
    font-size: 1.35rem;
    color: var(--accent-orange);
}

.fz-wizard .form-group { margin-bottom: 16px; }

.fz-wizard .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.fz-wizard .form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 1rem;
}

.fz-field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fz-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fz-type-option { cursor: pointer; }

.fz-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fz-type-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    min-height: 72px;
    justify-content: center;
}

.fz-type-card strong { font-size: 0.82rem; color: var(--text-primary); }
.fz-type-card small { font-size: 0.72rem; color: var(--text-muted); line-height: 1.3; }

.fz-type-option input:checked + .fz-type-card {
    border-color: var(--accent-orange);
    background: #fff8f5;
    box-shadow: 0 0 0 3px rgba(232, 78, 15, 0.12);
}

.fz-type-option input:focus-visible + .fz-type-card {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .fz-type-grid { grid-template-columns: 1fr; }
}

.fz-wizard .form-group input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.2);
}

.fz-order-limit-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
}

.fz-recaptcha-wrap {
    margin-bottom: 20px;
}

.fz-recaptcha-wrap .g-recaptcha {
    transform-origin: 0 0;
}

.fz-captcha-error {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--error);
    font-weight: 600;
}

.fz-field-hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.fz-step-panel .fz-step-error:not([hidden]) {
    display: block;
}

@media (max-width: 400px) {
    .fz-recaptcha-wrap .g-recaptcha {
        transform: scale(0.92);
    }
}

.fz-screen-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(45,138,138,0.2), transparent);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-teal-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.fz-screen-icon { font-size: 1.25rem; color: var(--accent-teal-light); }

.fz-ticket-list { display: flex; flex-direction: column; gap: 16px; }

/* Billet physique — style ticket imprimé */
.fz-ticket-physical {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 140px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.fz-ticket-main {
    flex: 1;
    padding: 16px 18px;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.fz-ticket-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.fz-ticket-event {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fz-ticket-lieu { font-size: 0.6rem; opacity: 0.85; }

.fz-ticket-cat-label {
    font-family: var(--fz-font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.fz-ticket-physical h3 {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.fz-ticket-physical .fz-ticket-place {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
    color: inherit;
}

.fz-ticket-price-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 4px;
    width: fit-content;
}

.fz-ticket-stub {
    width: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
}

.fz-stub-perf {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 4px,
        rgba(255, 255, 255, 0.5) 4px,
        rgba(255, 255, 255, 0.5) 8px
    );
}

.fz-stub-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px;
    text-align: center;
}

.fz-stub-inner i { font-size: 1.4rem; }
.fz-stub-inner small { opacity: 0.75; font-size: 0.55rem; }

.fz-stub-icons-duo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
}

.fz-stub-icons-duo i { font-size: 1.25rem; }

.fz-icon-burger {
    display: block;
    flex-shrink: 0;
}

.fz-ticket--vip_snack .fz-stub-inner {
    gap: 3px;
}

/* Couleurs par catégorie (billets physiques) */
.fz-ticket--public .fz-ticket-main,
.fz-ticket--public .fz-ticket-stub { background: linear-gradient(135deg, #9f1239 0%, #b91c1c 50%, #991b1b 100%); }

.fz-ticket--premium .fz-ticket-main,
.fz-ticket--premium .fz-ticket-stub { background: linear-gradient(135deg, #0d5c56 0%, #0f766e 50%, #115e59 100%); }

.fz-ticket--vip .fz-ticket-main,
.fz-ticket--vip .fz-ticket-stub { background: linear-gradient(135deg, #0a0a0a 0%, #171717 50%, #262626 100%); }

.fz-ticket--vip_snack .fz-ticket-main,
.fz-ticket--vip_snack .fz-ticket-stub { background: linear-gradient(135deg, #1c1917 0%, #292524 40%, #78350f 100%); }

.fz-ticket-physical:not(.is-soldout):hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.fz-ticket-physical.is-selected {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--theme-primary), 0 16px 40px rgba(0, 0, 0, 0.25);
    outline: none;
}

.fz-ticket-physical.is-soldout {
    opacity: 0.5;
    filter: grayscale(0.6);
    cursor: not-allowed;
}

.fz-ticket-physical .fz-tag--sold {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.fz-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 20px;
}

.fz-tag--sold { background: rgba(239,68,68,0.2); color: var(--error); }

.fz-checkout-card {
    position: sticky;
    top: 100px;
    background: rgba(26, 34, 53, 0.92);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.fz-checkout-glow {
    position: absolute;
    top: -40%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: var(--fz-glow);
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.fz-checkout-card h2 {
    font-family: var(--fz-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.fz-checkout-lead {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 20px;
    position: relative;
}

.fz-selected {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    position: relative;
}

.fz-selected-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.fz-selected-price {
    display: block;
    color: var(--accent-orange);
    font-weight: 700;
    margin-top: 4px;
}

.fz-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.fz-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.fz-qty-btn:hover { background: var(--bg-card-hover); }

.fz-qty input {
    flex: 1;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 0;
}

.fz-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    margin-bottom: 8px;
    border-block: 1px solid var(--border);
    font-size: 1rem;
}

.fz-total strong {
    font-family: var(--fz-font-display);
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.fz-submit {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.page-home .site-header {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.page-home .header-top:not(.header-top--home) {
    justify-content: center;
    padding-bottom: 14px;
}

.page-home .logo { margin: 0 auto; }

.page-home .header-top--home {
    justify-content: unset;
    padding-bottom: 12px;
}

.page-home .header-actions {
    position: absolute;
    right: 16px;
    top: 12px;
}

.page-home .header-top--home + .header-actions,
.page-home .header-top--home .header-actions {
    position: static;
}

.page-home .btn-outline {
    border-color: var(--border);
    color: var(--text-primary);
}

.page-home .btn-ghost {
    color: var(--text-secondary);
}

.page-home .site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.page-home .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
}

@media (max-width: 900px) {
    .page-home .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .page-home .site-footer {
        padding: 32px 16px 16px;
        margin-top: 32px;
    }

    .page-home .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-home .footer-brand p {
        font-size: 0.88rem;
        line-height: 1.55;
    }
}

@media (max-width: 1024px) {
    .fz-hero-cta-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .fz-hero-cta-inner {
        max-width: none;
        text-align: center;
        align-items: center;
        gap: 12px;
    }

    .page-home.is-rtl .fz-hero-cta-inner {
        text-align: center;
        align-items: center;
    }

    .page-home.is-rtl .fz-hero-cta-wrap {
        flex-direction: column;
    }

    .page-home.is-rtl .fz-eyebrow,
    .page-home.is-rtl .fz-hero-cta-title,
    .page-home.is-rtl .fz-hero-cta-sub,
    .page-home.is-rtl .fz-hero-event {
        text-align: center;
        align-items: center;
    }

    .page-home.is-rtl .fz-hero-schedule {
        justify-content: center;
    }

    .fz-hero-visual {
        max-width: 520px;
        margin: 0;
        order: 2;
        padding-top: 0;
        flex: none;
    }

    .fz-hero-cta-inner { order: 1; }

    .fz-hero-frame img {
        max-height: 240px;
        aspect-ratio: auto;
    }

    .fz-order { padding: 40px 16px 72px; }
}

@media (max-width: 768px) {
    .header-top--home {
        padding: 8px 12px 10px;
        gap: 8px;
    }

    .header-fifa-logo img {
        width: 46px;
        height: 46px;
    }

    .fz-hero-cta {
        padding: 20px 16px 12px;
    }

    .fz-hero-cta-wrap {
        gap: 0;
    }

    .fz-hero-cta-inner {
        gap: 10px;
    }

    .fz-hero-visual {
        margin-top: 40px;
    }

    .fz-hero-frame {
        margin: 0 auto;
    }

    .fz-hero-frame img {
        max-height: 470px;
        width: 100%;
    }

    .page-home.is-rtl .fz-hero-cta-inner {
        text-align: right;
        align-items: flex-end;
    }

    .page-home.is-rtl .fz-eyebrow,
    .page-home.is-rtl .fz-hero-cta-title,
    .page-home.is-rtl .fz-hero-cta-sub,
    .page-home.is-rtl .fz-hero-event {
        text-align: right;
        width: 100%;
    }

    .page-home.is-rtl .fz-hero-schedule {
        justify-content: flex-end;
    }

    .page-home.is-rtl .fz-section-head {
        text-align: right;
        width: 100%;
    }

    .page-home .header-actions {
        right: 12px;
        top: 10px;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .fz-ticket-physical { min-height: 120px; }
    .fz-ticket-stub { width: 56px; }
    .fz-ticket-cat-label { font-size: 0.95rem; }
    .fz-ticket-main { padding: 12px 14px; }
    .fz-hero-frame { border-radius: 12px; }
    .fz-cta-main { width: 100%; justify-content: center; padding: 16px 24px; }
    .page-home.is-rtl .fz-cta-main { justify-content: center; }
    .fz-zone-bar { height: 44px; width: 6px; }
    .fz-ticket-body { padding: 14px 12px; }
    .fz-ticket-price { font-size: 1.25rem; }
    .fz-steps-label { font-size: 0.6rem; }
    .fz-steps-num { width: 32px; height: 32px; font-size: 0.85rem; }
    .fz-step-actions--split { flex-direction: column-reverse; }
    .fz-step-actions--split .btn { width: 100%; min-width: 0; }
    .fz-wizard-card { padding: 20px 16px 24px; border-radius: 16px; }
    .fz-passenger-row { flex-direction: column; align-items: stretch; }
    .fz-passenger-row .fz-qty { width: 100%; }
    .fz-qty-btn { min-height: 48px; min-width: 48px; }
    .header-top { padding: 10px 16px; }
    .main-nav { padding: 0 16px 10px; overflow-x: auto; }
    .fz-title { font-size: 2.4rem; }
    .fz-section-head h2 { font-size: 1.75rem; }
    .fz-hero-cta-inner{ flex: 1 1 252px;}
}

.success-page { display: flex; justify-content: center; padding: 60px 24px; }

.success-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 480px;
    text-align: center;
}

.success-icon { color: var(--success); margin-bottom: 16px; }
.success-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

.success-total { font-weight: 700; color: var(--accent-orange); }
.success-serial-hint { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; }

.success-serials {
    margin: 20px 0 24px;
    padding: 16px 18px;
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: 12px;
    text-align: left;
}

.success-serial-label {
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.success-serial-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.success-serial-list code {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.page-home.is-rtl .success-serials { text-align: right; }

.delivery-serials {
    font-size: 0.9rem;
    margin: 8px 0 0;
    word-break: break-word;
}

.delivery-serials code {
    font-size: 0.85rem;
}

.delivery-contact-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.delivery-wa-btn {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.delivery-wa-btn:hover {
    background: #1ebe57 !important;
    border-color: #1ebe57 !important;
    color: #fff !important;
}

.code-badge.serial-list,
.serial-list {
    font-size: 0.8rem;
    word-break: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 220px;
}

.admin-page, .delivery-page { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-stats { margin-bottom: 32px; }

.admin-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.table-wrap { overflow-x: auto; }
.table-scroll { max-height: 520px; overflow: auto; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.data-table th, .data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.inline-form { display: inline-flex; gap: 6px; align-items: center; }

.input-sm {
    width: 80px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.admin-inline-form input, .admin-inline-form select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.code-badge {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.notif-list { list-style: none; }
.notif-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

.badge-success { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.badge-info { background: rgba(45, 138, 138, 0.2); color: var(--accent-teal-light); }

.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 420px;
}

.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

.delivery-lead { color: var(--text-secondary); margin-bottom: 24px; }

.delivery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.delivery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.delivery-card-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.delivery-id { font-weight: 700; color: var(--accent-orange); }
.delivery-phone a { font-size: 1.1rem; font-weight: 600; }
.delivery-total { font-size: 1.2rem; font-weight: 700; margin: 8px 0 16px; }
.delivery-actions { display: flex; gap: 8px; }

.composition-cell { min-width: 180px; }
.data-table td.num { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.comp-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.comp-badge--adult {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.comp-badge--plus10 {
    background: rgba(234, 88, 12, 0.15);
    color: #c2410c;
}

.comp-badge--moins10 {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.comp-badge--muted {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.delivery-composition {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 6px;
}

.delivery-composition-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.delivery-composition-total {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.empty-state { text-align: center; padding: 60px; color: var(--text-muted); }
.stat-value.accent { color: var(--accent-orange); }

@media (max-width: 960px) {
    .order-grid { grid-template-columns: 1fr; }
    .order-form-card { position: static; }
}
