/* ═══════════════════════════════════════════════════
   AFDIAG — Espace Délégué Frontend
   ═══════════════════════════════════════════════════ */

:root {
    --del-blue:     #274C5B;
    --del-blue-l:   #e8eff3;
    --del-green:    #00843D;
    --del-red:      #E30613;
    --del-orange:   #f57c00;
    --del-gray-50:  #f9f9fb;
    --del-gray-100: #f0f0f2;
    --del-gray-200: #e2e2e6;
    --del-gray-400: #9ca3af;
    --del-gray-600: #50575e;
    --del-gray-800: #1d2327;
    --del-radius:   10px;
    --del-shadow:   0 2px 12px rgba(0,0,0,.08);
    --del-shadow-lg:0 8px 32px rgba(0,0,0,.14);
    --del-font:     'Segoe UI', system-ui, Arial, sans-serif;
}

.afdiag-del-wrap { font-family: var(--del-font); color: var(--del-gray-800); }
.afdiag-del-wrap * { box-sizing: border-box; }

/* ── CONNEXION ── */
.afdiag-del-login-wrap {
    display: flex; justify-content: center; padding: 40px 16px;
}
.afdiag-del-login-card {
    background: #fff; border-radius: var(--del-radius); box-shadow: var(--del-shadow-lg);
    width: 100%; max-width: 460px; overflow: hidden;
}
.afdiag-del-login-header {
    background: var(--del-blue); color: #fff;
    padding: 36px 32px 28px; text-align: center;
}
.afdiag-del-login-icon { font-size: 48px; margin-bottom: 12px; }
.afdiag-del-login-header h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #fff; }
.afdiag-del-login-header p  { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }
.afdiag-del-login-form { padding: 28px 32px 32px; }
.afdiag-del-field { margin-bottom: 18px; }
.afdiag-del-field label { display: block; font-size: 13px; font-weight: 600; color: var(--del-gray-600); margin-bottom: 6px; }
.afdiag-del-field input[type=text],
.afdiag-del-field input[type=password],
.afdiag-del-field input[type=email] {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--del-gray-200);
    border-radius: 7px; font-size: 15px; transition: border-color .2s;
}
.afdiag-del-field input:focus { outline: none; border-color: var(--del-blue); box-shadow: 0 0 0 3px rgba(39,76,91,.1); }
.afdiag-del-pwd-wrap { position: relative; }
.afdiag-del-pwd-wrap input { padding-right: 42px; }
.afdiag-del-pwd-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px;
}
.afdiag-del-field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.afdiag-del-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--del-gray-600); cursor: pointer; }
.afdiag-del-lost-pwd { font-size: 13px; color: var(--del-blue); text-decoration: none; }
.afdiag-del-lost-pwd:hover { text-decoration: underline; }
.afdiag-del-login-note { font-size: 12px; color: var(--del-gray-400); text-align: center; margin-top: 16px; line-height: 1.6; }
.afdiag-del-login-note a { color: var(--del-blue); }
.afdiag-del-alert { padding: 12px 16px; border-radius: 7px; font-size: 14px; margin: 0 32px 16px; }
.afdiag-del-alert-error { background: #fce6e7; color: var(--del-red); border-left: 3px solid var(--del-red); }

/* Accès refusé */
.afdiag-del-access-denied {
    text-align: center; padding: 60px 20px; background: var(--del-gray-50);
    border-radius: var(--del-radius); border: 1px solid var(--del-gray-200);
}
.afdiag-del-denied-icon { font-size: 56px; margin-bottom: 16px; }
.afdiag-del-access-denied h2 { font-size: 22px; margin-bottom: 10px; }
.afdiag-del-access-denied p  { color: var(--del-gray-600); line-height: 1.7; }

/* ── HEADER DASHBOARD ── */
.afdiag-del-header {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--del-blue); border-radius: var(--del-radius);
    padding: 20px 28px; margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.afdiag-del-header-left { display: flex; align-items: center; gap: 16px; }
.afdiag-del-avatar { font-size: 36px; flex-shrink: 0; }
.afdiag-del-title { margin: 0; font-size: 22px; font-weight: 800; color: #fff; }
.afdiag-del-subtitle { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.78); }
.afdiag-del-subtitle strong { color: #fff; }

/* ── STATS ── */
.afdiag-del-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px;
}
.afdiag-del-stat {
    background: #fff; border: 1px solid var(--del-gray-200); border-radius: var(--del-radius);
    padding: 18px 20px; text-align: center; box-shadow: var(--del-shadow);
}
.afdiag-del-stat-num  { display: block; font-size: 32px; font-weight: 900; color: var(--del-blue); line-height: 1; }
.afdiag-del-stat-label { display: block; font-size: 12px; color: var(--del-gray-600); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ── ONGLETS ── */
.afdiag-del-tabs {
    display: flex; gap: 4px; border-bottom: 2px solid var(--del-gray-200);
    margin-bottom: 24px; overflow-x: auto;
}
.afdiag-del-tab {
    padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--del-gray-600);
    text-decoration: none; border-radius: 8px 8px 0 0; border: 2px solid transparent;
    border-bottom: none; white-space: nowrap; transition: all .2s; display: flex; align-items: center; gap: 6px;
}
.afdiag-del-tab:hover { color: var(--del-blue); background: var(--del-blue-l); }
.afdiag-del-tab.active {
    color: var(--del-blue); background: #fff;
    border-color: var(--del-gray-200); margin-bottom: -2px;
}
.afdiag-del-tab-badge {
    background: var(--del-blue); color: #fff; border-radius: 20px;
    padding: 1px 7px; font-size: 11px; font-weight: 700;
}

/* ── TOOLBAR ── */
.afdiag-del-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.afdiag-del-toolbar h2 { margin: 0; font-size: 20px; font-weight: 700; }

/* ── BOUTONS ── */
.afdiag-del-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 7px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: all .18s; text-decoration: none; white-space: nowrap;
}
.afdiag-del-btn-primary { background: var(--del-blue); color: #fff; }
.afdiag-del-btn-primary:hover { background: #1a3442; color: #fff; }
.afdiag-del-btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.afdiag-del-btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.afdiag-del-btn-danger { background: #fce6e7; color: var(--del-red); }
.afdiag-del-btn-danger:hover { background: var(--del-red); color: #fff; }
.afdiag-del-btn-sm { padding: 7px 12px; font-size: 13px; }
.afdiag-del-btn-full { width: 100%; }
.afdiag-del-btn-export { background: var(--del-green); color: #fff; }
.afdiag-del-btn-export:hover { background: #006830; color: #fff; }
.afdiag-del-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── LISTE ÉVÉNEMENTS ── */
.afdiag-del-evt-list { display: flex; flex-direction: column; gap: 10px; }
.afdiag-del-evt-row {
    display: grid; grid-template-columns: 60px 1fr auto auto;
    gap: 16px; align-items: center; background: #fff;
    border: 1px solid var(--del-gray-200); border-radius: var(--del-radius);
    padding: 14px 18px; box-shadow: var(--del-shadow); transition: box-shadow .2s;
}
.afdiag-del-evt-row:hover { box-shadow: var(--del-shadow-lg); }
.afdiag-del-evt-date-col { text-align: center; flex-shrink: 0; }
.afdiag-del-evt-day { display: block; font-size: 22px; font-weight: 900; color: var(--del-blue); line-height: 1; }
.afdiag-del-evt-month { display: block; font-size: 11px; text-transform: uppercase; color: var(--del-gray-400); }
.afdiag-del-evt-titre { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.afdiag-del-evt-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--del-gray-600); }
.afdiag-del-evt-badges, .afdiag-del-evt-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }

/* ── STEPPER — ÉTAPES DE VALIDATION ── */
.afdiag-del-stepper { display: flex; align-items: flex-start; gap: 0; margin-top: 10px; }
.afdiag-del-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 56px; }
.afdiag-del-step-dot {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; line-height: 1;
    background: var(--del-gray-100); color: var(--del-gray-400);
    border: 2px solid transparent; box-sizing: border-box;
}
.afdiag-del-step-dot.is-done    { background: var(--del-green); color: #fff; }
.afdiag-del-step-dot.is-current { background: #fff; color: var(--del-blue); border-color: var(--del-blue); box-shadow: 0 0 0 3px var(--del-blue-l); }
.afdiag-del-step-dot.is-refuse  { background: var(--del-red); color: #fff; }
.afdiag-del-step-label { font-size: 10px; color: var(--del-gray-400); font-weight: 600; text-align: center; line-height: 1.2; }
.afdiag-del-step-label.is-active { color: var(--del-blue); }
.afdiag-del-step-line { width: 22px; height: 2px; background: var(--del-gray-200); flex-shrink: 0; margin-top: 9px; }
.afdiag-del-step-line.is-done { background: var(--del-green); }

/* ── BOUTONS D'ACTION ÉVÉNEMENT (icône + libellé) ── */
.afdiag-del-btn-action { padding: 7px 13px; font-size: 12.5px; font-weight: 700; gap: 5px; }
.afdiag-del-btn-edit         { background: var(--del-blue-l); color: var(--del-blue); }
.afdiag-del-btn-edit:hover   { background: var(--del-blue); color: #fff; }
.afdiag-del-btn-participants { background: var(--del-gray-100); color: var(--del-gray-600); }
.afdiag-del-btn-participants:hover { background: var(--del-gray-200); color: var(--del-gray-800); }
.afdiag-del-btn-notify       { background: #fff3e0; color: var(--del-orange); }
.afdiag-del-btn-notify:hover { background: var(--del-orange); color: #fff; }

/* ── BADGES ── */
.afdiag-del-badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.afdiag-del-badge-publie     { background: #d7f0de; color: #1a6b2e; }
.afdiag-del-badge-brouillon  { background: #fff3cd; color: #856404; }
.afdiag-del-badge-annule     { background: #fce6e7; color: var(--del-red); }
.afdiag-del-badge-confirme   { background: #d7f0de; color: #1a6b2e; }
.afdiag-del-badge-en_attente_paiement { background: #fff3cd; color: #856404; }
.afdiag-del-badge-pay-paye   { background: #d7f0de; color: #1a6b2e; }
.afdiag-del-badge-pay-gratuit{ background: #e8eff3; color: var(--del-blue); }
.afdiag-del-badge-pay-pending{ background: #fff3cd; color: #856404; }
.afdiag-del-badge-consent    { background: #d7f0de; color: #1a6b2e; }
.afdiag-del-badge-droit-image { font-size: 11px; }
.afdiag-del-badge-droit-oui  { background: #d7f0de; color: #1a6b2e; }
.afdiag-del-badge-droit-non  { background: #fce6e7; color: var(--del-red); }
.afdiag-del-badge-notif      { background: #e8eff3; color: var(--del-blue); }
.afdiag-del-badge-unsub      { background: #fef3e2; color: var(--del-orange); }

/* ── PARTICIPANTS ── */
.afdiag-del-evt-selector {
    display: flex; align-items: center; gap: 12px; background: var(--del-gray-50);
    border: 1px solid var(--del-gray-200); border-radius: 8px; padding: 14px 18px; margin-bottom: 16px;
}
.afdiag-del-evt-selector label { font-weight: 600; font-size: 14px; white-space: nowrap; }
.afdiag-del-select-wrap { flex: 1; }
.afdiag-del-select-wrap select { width: 100%; padding: 8px 12px; border: 1.5px solid var(--del-gray-200); border-radius: 6px; font-size: 14px; }
.afdiag-del-evt-recap {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    padding: 12px 16px; background: var(--del-blue-l); border-radius: 8px;
    font-size: 14px; margin-bottom: 16px;
}
.afdiag-del-evt-recap strong { font-size: 15px; font-weight: 700; color: var(--del-blue); flex: 1; min-width: 200px; }
.afdiag-del-count { font-weight: 700; color: var(--del-blue); }
.afdiag-del-participants-toolbar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.afdiag-del-search { flex: 1; padding: 9px 14px; border: 1.5px solid var(--del-gray-200); border-radius: 7px; font-size: 14px; }
.afdiag-del-participants-list { display: flex; flex-direction: column; gap: 8px; }
.afdiag-del-part-card {
    display: grid; grid-template-columns: 32px 1fr auto;
    gap: 14px; align-items: start; background: #fff;
    border: 1px solid var(--del-gray-200); border-radius: 9px; padding: 14px 16px;
}
.afdiag-del-part-num { font-size: 12px; color: var(--del-gray-400); font-weight: 600; padding-top: 3px; text-align: right; }
.afdiag-del-part-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.afdiag-del-part-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--del-gray-600); margin-bottom: 6px; }
.afdiag-del-part-accs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.afdiag-del-acc-tag { background: var(--del-gray-100); border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.afdiag-del-part-status { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex-shrink: 0; }
.afdiag-del-montant { font-size: 14px; font-weight: 700; color: var(--del-green); }
.afdiag-del-participants-footer { padding: 14px 0; font-size: 14px; color: var(--del-gray-600); border-top: 1px solid var(--del-gray-200); margin-top: 12px; }

/* ── ADHÉRENTS ── */
.afdiag-del-adherents-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.afdiag-del-adherents-count { margin: 0; font-size: 14px; color: var(--del-gray-600); }
.afdiag-del-adherents-list { display: flex; flex-direction: column; gap: 8px; }
.afdiag-del-adh-card {
    display: grid; grid-template-columns: 46px 1fr auto;
    gap: 14px; align-items: center; background: #fff;
    border: 1px solid var(--del-gray-200); border-radius: 9px; padding: 12px 16px;
}
.afdiag-del-adh-avatar {
    width: 46px; height: 46px; border-radius: 50%; background: var(--del-blue);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.afdiag-del-adh-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.afdiag-del-adh-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--del-gray-600); }
.afdiag-del-adh-badges { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex-shrink: 0; }

/* ── NOTICE ── */
.afdiag-del-notice-info {
    background: var(--del-blue-l); border-left: 4px solid var(--del-blue);
    padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 14px;
    color: var(--del-gray-600); margin-bottom: 18px; line-height: 1.6;
}
.afdiag-del-notice {
    padding: 14px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
    line-height: 1.5; margin-bottom: 20px; border: 1.5px solid transparent;
    display: flex; align-items: flex-start; gap: 10px;
}
.afdiag-del-notice--success {
    background: #f0fdf4; border-color: #4caf50; color: #1b5e20;
}
.afdiag-del-notice--error {
    background: #fff5f5; border-color: #e53935; color: #b71c1c;
}

/* ── EMPTY ── */
.afdiag-del-empty { text-align: center; padding: 48px 20px; background: var(--del-gray-50); border-radius: var(--del-radius); border: 1px dashed var(--del-gray-200); }
.afdiag-del-empty-icon { font-size: 48px; margin-bottom: 12px; }
.afdiag-del-empty p { color: var(--del-gray-600); margin: 0 0 16px; }

/* ── MODAL ── */
.afdiag-del-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 30px 16px; overflow-y: auto;
}
.afdiag-del-overlay { position: fixed; inset: 0; background: rgba(15,25,32,.6); backdrop-filter: blur(2px); z-index: 99998; }
.afdiag-del-modal-inner {
    background: #fff; border-radius: var(--del-radius);
    width: 100%; max-width: 680px; z-index: 99999;
    box-shadow: var(--del-shadow-lg); position: relative;
}
.afdiag-del-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--del-blue); padding: 18px 24px;
    border-radius: var(--del-radius) var(--del-radius) 0 0;
}
.afdiag-del-modal-header h2 { margin: 0; color: #fff; font-size: 18px; }
.afdiag-del-modal-close { background: none; border: none; color: rgba(255,255,255,.8); font-size: 26px; cursor: pointer; padding: 0; line-height: 1; }
.afdiag-del-modal-close:hover { color: #fff; }
.afdiag-del-modal-body { padding: 28px 28px 24px; }

/* ── FORMULAIRE ÉVÉNEMENT ── */
.afdiag-del-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.afdiag-del-field-full { grid-column: 1 / -1; }
.afdiag-del-field label { display: block; font-size: 13px; font-weight: 600; color: var(--del-gray-600); margin-bottom: 5px; }
.req { color: var(--del-red); }
.afdiag-del-field input[type=text],
.afdiag-del-field input[type=number],
.afdiag-del-field input[type=datetime-local],
.afdiag-del-field select,
.afdiag-del-field textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid var(--del-gray-200);
    border-radius: 7px; font-size: 14px; font-family: inherit; transition: border-color .2s;
}
/* Masquer les flèches spinner sur le champ prix uniquement */
#del-evt-prix::-webkit-outer-spin-button,
#del-evt-prix::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#del-evt-prix { -moz-appearance: textfield; }
.afdiag-del-field input:focus,
.afdiag-del-field select:focus,
.afdiag-del-field textarea:focus { outline: none; border-color: var(--del-blue); box-shadow: 0 0 0 3px rgba(39,76,91,.08); }
.afdiag-del-field textarea { resize: vertical; min-height: 90px; }
.afdiag-del-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.afdiag-del-toggle-label input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.afdiag-del-hint { font-size: 12px; color: var(--del-gray-400); margin: 5px 0 0; }
.afdiag-del-form-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--del-gray-200); flex-wrap: wrap; }
#afdiag-del-form-msg { font-size: 13px; }
#afdiag-del-form-msg.del-msg-ok  { color: var(--del-green); }
#afdiag-del-form-msg.del-msg-err { color: var(--del-red); }

/* ── MODAL CONFIRMATION ── */
.afdiag-del-confirm {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.afdiag-del-confirm-inner {
    position: relative; background: #fff; border-radius: 18px;
    width: 100%; max-width: 420px; padding: 42px 32px 28px;
    text-align: center; overflow: hidden;
    box-shadow: 0 24px 60px rgba(20,30,40,.28);
    animation: afdiagPop .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes afdiagPop {
    from { transform: scale(.92) translateY(12px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.afdiag-del-confirm-topbar {
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--del-blue), var(--del-red));
}
.afdiag-del-confirm-x {
    position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; font-size: 20px; line-height: 1;
    color: var(--del-gray-400); cursor: pointer; border-radius: 50%; transition: all .15s;
}
.afdiag-del-confirm-x:hover { background: var(--del-gray-100); color: var(--del-gray-800); }
.afdiag-del-confirm-icon-wrap {
    width: 72px; height: 72px; border-radius: 50%; background: var(--del-blue-l);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.afdiag-del-confirm-icon-wrap.tone-danger  { background: #fce6e7; }
.afdiag-del-confirm-icon-wrap.tone-send    { background: #fff3e0; }
.afdiag-del-confirm-icon-wrap.tone-success { background: #e8f5e9; }
.afdiag-del-confirm-icon  { font-size: 34px; line-height: 1; }
.afdiag-del-confirm-title { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: var(--del-gray-800); }
.afdiag-del-confirm-msg   { margin: 0 0 26px; font-size: 14.5px; color: var(--del-gray-600); line-height: 1.65; }
.afdiag-del-confirm-msg strong { color: var(--del-gray-800); }
.afdiag-del-confirm-hint    { display: block; margin-top: 10px; font-size: 12px; color: var(--del-gray-400); }
.afdiag-del-confirm-warning { display: block; margin-top: 10px; font-size: 12px; color: var(--del-red); font-weight: 600; }
.afdiag-del-confirm-actions { display: flex; gap: 10px; }
.afdiag-del-confirm-actions .afdiag-del-btn { flex: 1; justify-content: center; padding: 12px 18px; border-radius: 10px; font-size: 14px; }
.afdiag-del-btn-outline { background: #fff; color: var(--del-gray-600); border: 1.5px solid var(--del-gray-200); }
.afdiag-del-btn-outline:hover { background: var(--del-gray-50); border-color: var(--del-gray-400); }
.afdiag-del-btn-send { background: var(--del-orange); color: #fff; }
.afdiag-del-btn-send:hover { background: #c25e00; color: #fff; }
.afdiag-del-btn-success { background: #388e3c; color: #fff; }
.afdiag-del-btn-success:hover { background: #2e7d32; color: #fff; }

/* ── TOAST ── */
.afdiag-del-toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 100001; display: flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 12px; font-size: 14px; font-weight: 600;
    box-shadow: 0 14px 40px rgba(0,0,0,.22); max-width: 92vw; text-align: left;
}
.afdiag-del-toast-ok  { background: #1a6b2e; color: #fff; }
.afdiag-del-toast-err { background: var(--del-red); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .afdiag-del-stats { grid-template-columns: repeat(2, 1fr); }
    .afdiag-del-evt-row { grid-template-columns: 50px 1fr; }
    .afdiag-del-evt-badges, .afdiag-del-evt-actions { grid-column: 2; }
    .afdiag-del-part-card { grid-template-columns: 24px 1fr; }
    .afdiag-del-part-status { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .afdiag-del-adh-card { grid-template-columns: 40px 1fr; }
    .afdiag-del-adh-badges { grid-column: 2; flex-direction: row; }
    .afdiag-del-form-grid { grid-template-columns: 1fr; }
    .afdiag-del-field-full { grid-column: 1; }
    .afdiag-del-header { flex-direction: column; align-items: flex-start; }
    .afdiag-del-tabs { gap: 2px; }
    .afdiag-del-tab { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
    .afdiag-del-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .afdiag-del-stat-num { font-size: 26px; }
    .afdiag-del-login-form { padding: 20px 20px 24px; }
    .afdiag-del-login-header { padding: 28px 20px 22px; }
    .afdiag-del-alert { margin: 0 20px 14px; }
    .afdiag-del-btn-action { padding: 6px 10px; font-size: 12px; }
    .afdiag-del-confirm-actions { flex-direction: column-reverse; }
}

/* ── PHOTO ÉVÉNEMENT (formulaire délégué) ── */
.afdiag-del-photo-wrap {
    border: 2px dashed var(--del-gray-200);
    border-radius: var(--del-radius);
    overflow: hidden;
    background: var(--del-gray-50);
}
.afdiag-del-photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    cursor: pointer;
    text-align: center;
    transition: background .2s;
}
.afdiag-del-photo-label:hover { background: var(--del-blue-l); }
.afdiag-del-photo-icon { font-size: 32px; }
.afdiag-del-photo-label span { font-size: 14px; color: var(--del-gray-600); line-height: 1.5; }
.afdiag-del-photo-label small { font-size: 12px; color: var(--del-gray-400); }
.afdiag-del-photo-preview {
    position: relative;
}
.afdiag-del-photo-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}
.afdiag-del-photo-remove {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px; height: 28px;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: background .18s;
}
.afdiag-del-photo-remove:hover { background: rgba(0,0,0,.8); }

/* ── MINIATURE DANS LA LISTE DES ÉVÉNEMENTS ── */
.afdiag-del-evt-thumb {
    width: 60px; height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.afdiag-del-evt-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ── PAGINATION ── */
.afdiag-del-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 20px 0 6px;
}
.afdiag-del-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--del-gray-200);
    background: #fff;
    color: var(--del-gray-600);
    transition: all .18s;
}
.afdiag-del-page-btn:hover {
    border-color: var(--del-blue);
    color: var(--del-blue);
    background: var(--del-blue-l);
}
.afdiag-del-page-current {
    background: var(--del-blue);
    color: #fff;
    border-color: var(--del-blue);
    cursor: default;
}
.afdiag-del-page-current:hover {
    background: var(--del-blue);
    color: #fff;
}
.afdiag-del-page-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}
.afdiag-del-page-ellipsis {
    color: var(--del-gray-400);
    font-size: 14px;
    padding: 0 4px;
}
.afdiag-del-pagination-info {
    font-size: 12px;
    color: var(--del-gray-400);
    margin: 0 0 16px;
}
