/* COP1 — Design System v2 */

/* ── FONT ─────────────────────────────────────────────── */
@font-face {
    font-family: 'HankenGrotesk';
    src: url('/static/fonts/HankenGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

/* ── TOKENS ───────────────────────────────────────────── */
:root {
    --coral:           #df5f4d;
    --coral-dark:      #c94f3e;
    --coral-glow:      rgba(223, 95, 77, 0.15);
    --coral-shadow:    rgba(223, 95, 77, 0.30);

    --cream:           #faf8f5;
    --white:           #ffffff;
    --surface-soft:    #f5f3ef;
    --surface-hover:   #f0ede8;

    --navy:            #1a3a4a;
    --navy-deep:       #0d2030;

    --charcoal:        #1e2329;
    --body-text:       #374151;
    --muted:           #6b7280;
    --hairline:        #e5e7eb;
    --hairline-soft:   #f3f4f6;

    --success:         #16a34a;
    --warning:         #d97706;
    --danger:          #dc2626;
    --info:            #2563eb;

    /* shadows */
    --shadow-card:     0 2px 16px rgba(0, 0, 0, 0.07);
    --shadow-hover:    0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-cta:      0 4px 16px rgba(223, 95, 77, 0.30);
    --shadow-focus:    0 0 0 3px rgba(223, 95, 77, 0.15);

    /* radius */
    --radius-xl:       20px;
    --radius-lg:       16px;
    --radius-md:       12px;
    --radius-sm:       8px;
    --radius-pill:     9999px;

    /* legacy compat */
    --cop1-coral:        #df5f4d;
    --cop1-coral-dark:   #c94f3e;
    --cop1-coral-light:  #f4a69b;
    --cop1-cream:        #faf8f5;
    --cop1-cream-dark:   #f0ede8;
    --cop1-charcoal:     #1e2329;
}

/* ── BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--cream);
    font-family: 'HankenGrotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--body-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--charcoal);
    font-weight: 700;
    letter-spacing: -0.3px;
    font-family: 'HankenGrotesk', sans-serif;
}

.cop1-page-title,
.page-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--charcoal);
    line-height: 1.2;
}

.cop1-page-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 2px;
}

.cop1-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

/* ── NAVBAR ───────────────────────────────────────────── */
.navbar-cop1 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    padding: 10px 0;
}

.navbar-cop1 .navbar-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-cop1 .navbar-brand img {
    height: 26px;
    width: auto;
}

.navbar-cop1 .nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.navbar-cop1 .nav-link:hover,
.navbar-cop1 .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-cop1 .nav-link i { margin-right: 5px; }

.navbar-cop1 .dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 6px;
}

.navbar-cop1 .dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 8px 12px;
    transition: background 0.1s;
}

.navbar-cop1 .dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--charcoal);
}

.navbar-cop1 .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.navbar-cop1 .form-control::placeholder { color: rgba(255, 255, 255, 0.45); }

.navbar-cop1 .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--coral);
    box-shadow: 0 0 0 2px var(--coral-glow);
    color: #fff;
}

/* ── CARDS ────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    background: var(--white);
    overflow: hidden;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--hairline-soft);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--hairline-soft);
    padding: 12px 20px;
}

/* card interactive (liens, blocs cliquables) */
.card-lift {
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.card-lift:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* ── STAT CARDS ───────────────────────────────────────── */
.cop1-stat {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 20px 20px 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    height: 100%;
}

.cop1-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral) 0%, var(--coral-dark) 100%);
}

.cop1-stat:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.cop1-stat__number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--charcoal);
    letter-spacing: -1.5px;
}

.cop1-stat__number span.unit {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.7;
    margin-left: 1px;
}

.cop1-stat__label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 6px;
}

.cop1-stat--danger::before {
    background: linear-gradient(90deg, var(--danger) 0%, #b91c1c 100%);
}

.cop1-stat--danger .cop1-stat__number { color: #991b1b; }
.cop1-stat--danger .cop1-stat__label  { color: #b91c1c; }

.cop1-stat--success::before {
    background: linear-gradient(90deg, var(--success) 0%, #15803d 100%);
}

.cop1-stat--success .cop1-stat__number { color: #166534; }

.cop1-stat--warning::before {
    background: linear-gradient(90deg, var(--warning) 0%, #b45309 100%);
}

/* ── LIST GROUP ───────────────────────────────────────── */
.list-group-item {
    border-color: var(--hairline-soft);
    padding: 14px 20px;
    font-size: 0.875rem;
    color: var(--body-text);
}

.list-group-item-action {
    transition: background 0.1s ease;
}

.list-group-item-action:hover {
    background: var(--surface-hover);
    color: var(--charcoal);
}

.list-group-item .fw-semibold {
    font-size: 0.875rem;
    color: var(--charcoal);
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
    font-family: 'HankenGrotesk', sans-serif;
    font-weight: 600;
}

.btn-cop1 {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
    border: none;
    color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-cta);
    transition: all 0.15s ease;
}

.btn-cop1:hover {
    background: linear-gradient(135deg, var(--coral-dark) 0%, #b03d2d 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(223, 95, 77, 0.40);
    transform: translateY(-1px);
}

.btn-cop1:active { transform: translateY(0); }

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger {
    border-radius: var(--radius-sm);
}

.btn-sm {
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    padding: 5px 12px;
}

/* ── BADGES ───────────────────────────────────────────── */
.badge {
    font-family: 'HankenGrotesk', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.badge-coral {
    background: var(--coral-glow);
    color: var(--coral);
}

.badge-success-soft {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.badge-warning-soft {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.badge-danger-soft {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.badge-info-soft {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.badge-muted {
    background: var(--hairline-soft);
    color: var(--muted);
}

/* ── FORMS ────────────────────────────────────────────── */
.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--hairline);
    background: var(--white);
    color: var(--charcoal);
    font-family: 'HankenGrotesk', sans-serif;
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--coral);
    box-shadow: var(--shadow-focus);
    outline: none;
    background: var(--white);
}

.form-control::placeholder { color: var(--muted); opacity: 0.55; }

textarea.form-control { resize: vertical; }

/* ── TABLES ───────────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    font-size: 0.875rem;
}

.table th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    border-bottom: 1.5px solid var(--hairline);
    padding: 10px 14px;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hairline-soft);
    color: var(--body-text);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--surface-hover);
    cursor: pointer;
}

.table-responsive { border-radius: var(--radius-md); overflow: hidden; }

/* ── ALERTS ───────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 14px 18px;
}

/* ── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.breadcrumb-item a { color: var(--muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--coral); }
.breadcrumb-item.active { color: var(--charcoal); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--hairline); }

/* ── SEMANTIC HELPERS ─────────────────────────────────── */
.text-cop1   { color: var(--coral) !important; }
.text-muted  { color: var(--muted) !important; }
.bg-cop1     { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%) !important; }
.bg-cop1-dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%) !important; }
.border-cop1 { border-color: var(--coral) !important; }

/* ── LINKS ────────────────────────────────────────────── */
a { color: var(--coral); }
a:hover { color: var(--coral-dark); }

/* ── DL DETAILS ───────────────────────────────────────── */
dl.row dt {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

dl.row dd {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

/* ── PAGINATION ───────────────────────────────────────── */
.page-link {
    color: var(--coral);
    border-radius: var(--radius-sm) !important;
    border: none;
    margin: 0 2px;
    font-family: 'HankenGrotesk', sans-serif;
    font-weight: 500;
    transition: background 0.1s;
}

.page-item.active .page-link {
    background-color: var(--coral);
    border-color: var(--coral);
}

.page-link:hover {
    background: var(--surface-soft);
    color: var(--coral-dark);
}

/* ── SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(223, 95, 77, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(223, 95, 77, 0.45); }

/* ── FOCUS ACCESSIBILITY ──────────────────────────────── */
:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* ── MISC ─────────────────────────────────────────────── */
.border-start.border-4.border-cop1 {
    border-left-width: 4px !important;
    border-left-color: var(--coral) !important;
}

/* Spinner coral */
.spinner-border-cop1 { color: var(--coral); }

/* ══════════════════════════════════════════════════════
   MOBILE PORTALS — shared header + bottom nav
   ══════════════════════════════════════════════════════ */

/* ── Header mobile ───────────────────────────────────── */
.portal-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.portal-header__logo { height: 24px; width: auto; }

.portal-header__brand {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-header__label {
    font-size: 0.72rem;
    font-weight: 400;
    opacity: 0.5;
    letter-spacing: 0.2px;
}

.portal-header__user {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ── Bottom nav mobile ───────────────────────────────── */
.portal-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: 64px;
}

.portal-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 6px 4px;
    gap: 3px;
    transition: color 0.15s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.portal-nav__item i {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.portal-nav__item.active { color: var(--coral); }
.portal-nav__item.active i { transform: scale(1.1); }
.portal-nav__item.active::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--coral);
    border-radius: 0 0 4px 4px;
}
.portal-nav__item:hover { color: var(--coral-dark); }

/* Page needs bottom padding when portal-nav is present */
.has-portal-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0) + 16px); }

/* ── Feedback dev banner ─────────────────────────────── */
.feedback-banner {
    background: linear-gradient(90deg, #e0f2fe 0%, #f0fdf4 100%);
    border: 1px solid #7dd3fc;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #0369a1;
    margin-bottom: 1rem;
}
.feedback-banner a { color: #0369a1; font-weight: 600; text-decoration: none; }
.feedback-banner a:hover { text-decoration: underline; }
.feedback-banner__close {
    margin-left: auto;
    background: none;
    border: none;
    color: #7dd3fc;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
}
.feedback-banner__close:hover { color: #0369a1; }

/* ══════════════════════════════════════════════════════
   EMPTY STATES
   ══════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state__icon,
.empty-state-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #fff5f3 0%, #ffeae7 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--coral);
}

.empty-state__img {
    width: 72px; height: 72px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    opacity: 0.7;
}

.empty-state__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.empty-state__text {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════
   TOASTS — custom (override Bootstrap)
   ══════════════════════════════════════════════════════ */

.toast-container { z-index: 9999; }

.toast {
    border: none !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14) !important;
    font-family: 'HankenGrotesk', sans-serif;
    font-size: 0.875rem;
    min-width: 280px;
}

.toast-header {
    border-bottom: 1px solid var(--hairline-soft) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    font-weight: 600;
}

/* ── Flash alerts upgrade ────────────────────────────── */
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #16a34a !important;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626 !important;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #d97706 !important;
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #2563eb !important;
}

/* ══════════════════════════════════════════════════════
   FORM SUBMIT LOADING STATE
   ══════════════════════════════════════════════════════ */

.btn[data-loading]::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════
   PAGE TRANSITION — fade
   ══════════════════════════════════════════════════════ */

.page-fade {
    animation: pageFadeIn 0.18s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   BRAND COMPONENTS — mobile portals
   ══════════════════════════════════════════════════════ */

/* Welcome card coral */
.welcome-card {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--coral-shadow);
    color: #fff;
}
.welcome-card::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 200px; height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.welcome-card::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 150px; height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
.welcome-card > * { position: relative; z-index: 1; }

/* Avatar */
.avatar {
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; border-radius: 10px; font-size: 0.7rem; }
.avatar-md  { width: 40px; height: 40px; border-radius: 12px; font-size: 0.85rem; }
.avatar-lg  { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }
.avatar-xl  { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; }
.avatar-coral    { background: var(--coral); }
.avatar-navy     { background: var(--navy); }
.avatar-success  { background: var(--success); }
.avatar-muted    { background: #d4d4d8; }

/* Date chip */
.date-chip {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #fff5f3 0%, #ffeae7 100%);
    border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    line-height: 1; flex-shrink: 0;
}
.date-chip__month {
    font-size: 0.55rem;
    color: var(--coral);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.date-chip__day {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--charcoal);
}

/* Stat chip (mobile cards) */
.stat-chip {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.15s, transform 0.15s;
}
.stat-chip:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.stat-chip__icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #fff5f3 0%, #ffeae7 100%);
    color: var(--coral);
}
.stat-chip__value { font-weight: 700; font-size: 1rem; color: var(--charcoal); }
.stat-chip__label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 2px;
}

/* Info row (profile, detail) */
.info-row {
    display: flex; align-items: center;
    padding: 14px 16px;
}
.info-row + .info-row { border-top: 1px solid var(--hairline-soft); }
.info-row__icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #fff5f3 0%, #ffeae7 100%);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--coral);
    font-size: 0.95rem;
    margin-right: 14px;
    flex-shrink: 0;
}
.info-row__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 1px;
}
.info-row__value { font-weight: 500; font-size: 0.9rem; color: var(--charcoal); }

/* Section header (mobile) */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.section-header__title {
    font-weight: 700; font-size: 0.95rem;
    color: var(--charcoal); letter-spacing: -0.02em;
}
.section-header__link {
    font-size: 0.8rem; font-weight: 600;
    color: var(--coral); text-decoration: none;
    display: flex; align-items: center; gap: 3px;
}
.section-header__link:hover { color: var(--coral-dark); }

/* Card distribution (mobile, accent gauche) */
.card-distrib {
    position: relative;
    transition: box-shadow 0.15s, transform 0.15s;
}
.card-distrib::before {
    content: '';
    position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 3px;
    background: var(--coral);
    border-radius: 0 3px 3px 0;
}
.card-distrib:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--muted); font-size: 0.8rem; font-weight: 500;
    text-decoration: none; transition: color 0.15s;
}
.back-link:hover { color: var(--charcoal); }

/* Search input */
.search-input { position: relative; }
.search-input i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted); font-size: 0.9rem; pointer-events: none;
}
.search-input .form-control {
    padding-left: 40px;
    border-radius: var(--radius-pill);
}

/* Progress track */
.progress-track {
    height: 3px; background: rgba(0, 0, 0, 0.08);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}
.progress-fill {
    height: 100%; background: var(--success);
    transition: width 0.3s ease;
}

/* ══════════════════════════════════════════════════════
   LOGIN — portal auth card
   ══════════════════════════════════════════════════════ */

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 24px;
}

/* Blob décoratif en fond */
.auth-wrap::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(223, 95, 77, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-wrap::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(223, 95, 77, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.10);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.auth-card__logo {
    height: 44px; width: auto;
    display: block; margin: 0 auto 24px;
}

.auth-card__icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem; color: #fff;
    box-shadow: var(--shadow-cta);
}

.auth-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--charcoal);
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 28px;
}

.auth-card__sent-icon {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════
   DECORATIVE BRAND ASSETS
   ══════════════════════════════════════════════════════ */

/* Blob décor COP1 (image PNG positionnée en absolu) */
.brand-decor {
    position: absolute;
    pointer-events: none;
    user-select: none;
    opacity: 0.08;
}
.brand-decor--tl { top: -40px; left: -40px; width: 180px; transform: rotate(180deg); }
.brand-decor--br { bottom: -40px; right: -40px; width: 180px; }
.brand-decor--tr { top: -20px; right: -30px; width: 140px; opacity: 0.06; }

/* Points déco (coins de section) */
.brand-points {
    position: absolute;
    pointer-events: none;
    user-select: none;
    width: 100px;
    opacity: 0.15;
}
.brand-points--tl { top: -10px; left: -10px; }
.brand-points--br { bottom: -10px; right: -10px; transform: rotate(180deg); }

/* Billet / carte QR */
.billet-wrap {
    max-width: 360px;
    margin: 0 auto;
}

.billet-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.billet-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    padding: 28px 24px 20px;
    position: relative;
    overflow: hidden;
}

.billet-hero::before {
    content: '';
    position: absolute;
    top: -60%; right: -20%;
    width: 200px; height: 200px;
    background: rgba(223, 95, 77, 0.18);
    border-radius: 50%;
}

.billet-hero__logo { height: 28px; width: auto; margin-bottom: 12px; }
.billet-hero__name { font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.billet-hero__sub { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 2px; }

.billet-body { padding: 24px; }

.billet-qr {
    background: var(--white);
    border: 3px solid var(--hairline-soft);
    border-radius: var(--radius-md);
    padding: 12px;
    display: inline-block;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

.billet-qr img { width: 160px; height: 160px; display: block; }

.billet-perforation {
    border-top: 2px dashed var(--hairline);
    margin: 0 -24px 20px;
    position: relative;
}
.billet-perforation::before,
.billet-perforation::after {
    content: '';
    position: absolute; top: -10px;
    width: 20px; height: 20px;
    background: var(--cream);
    border-radius: 50%;
}
.billet-perforation::before { left: -10px; }
.billet-perforation::after  { right: -10px; }

.billet-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.billet-info-item__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 2px;
}

.billet-info-item__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* ══════════════════════════════════════════════════════
   GESTION — lists & detail pages
   ══════════════════════════════════════════════════════ */

/* Page header row */
.cop1-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

/* Detail fiche — info grid */
.fiche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.fiche-item__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 3px;
}

.fiche-item__value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}
