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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #111;
    min-height: 100vh;
    color: white;
}

/* ── Slideshow ─────────────────────────────────── */
.slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* ── Container ─────────────────────────────────── */
.container {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin: 48px auto;
    padding: 40px 36px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Typography ────────────────────────────────── */
h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
}

p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.event-info {
    text-align: left;
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 24px 0;
}

/* ── Links ─────────────────────────────────────── */
a {
    color: #ffd36b;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
a:hover { color: white; }

/* ── Form fields ───────────────────────────────── */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    min-height: 46px;
    transition: border-color 0.15s, background 0.15s;
    -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
}

.field textarea {
    min-height: 90px;
    resize: vertical;
}

/* number inputs — aligner le texte à gauche */
.field input[type=number] { text-align: left; }

/* ── Submit button ─────────────────────────────── */
.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 50px;
    transition: background 0.15s, transform 0.1s;
}
.btn-submit:hover  { background: #ff5252; }
.btn-submit:active { transform: scale(0.98); }

/* ── Error ─────────────────────────────────────── */
.error {
    background: rgba(255, 80, 80, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.4);
    color: #ffaaaa;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ── Success page ──────────────────────────────── */
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.success-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 620px) {
    .container {
        margin: 0;
        min-height: 100svh;
        border-radius: 0;
        border: none;
        padding: 32px 20px 40px;
    }
    h1 { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════════════
   ADMIN — info.php uniquement
══════════════════════════════════════════════════ */
.admin-container {
    position: relative;
    z-index: 2;
    max-width: 95vw;
    margin: 40px auto;
    padding: 32px 28px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.totals {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.total-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px 20px;
    text-align: center;
    min-width: 100px;
}
.total-card .val {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: #ffd36b;
}
.total-card .lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    background: rgba(255,255,255,0.04);
}

tbody tr { border-bottom: 1px solid rgba(255,255,255,0.07); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.05); }

td {
    padding: 11px 14px;
    vertical-align: middle;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-delete {
    font-family: inherit;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid rgba(255, 80, 80, 0.35);
    background: rgba(255, 80, 80, 0.12);
    color: #ff8080;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.btn-delete:hover { background: rgba(255,80,80,0.25); border-color: #ff5252; }

.btn-logout {
    display: inline-block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.15s;
}
.btn-logout:hover { color: white; }

/* Admin login form */
.admin-container .field input[type=password] {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: white;
    padding: 12px 14px;
    font-size: 1rem;
    width: 100%;
    min-height: 46px;
}
.admin-container .field input[type=password]:focus {
    outline: none;
    border-color: #ffd36b;
    background: rgba(255,255,255,0.15);
}
.admin-container button[type=submit] {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    background: #ffd36b;
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: opacity 0.15s;
}
.admin-container button[type=submit]:hover { opacity: 0.85; }
