/* ═══════════════════════════════════════════
   INSCRIPTION MODAL — Stand-Up Academy
   Modal partagé chargé sur toutes les pages publiques.
   Toute la collecte se fait dans localStorage `sua_inscriptions`
   et est lue par le back-office (admin.html).
   ═══════════════════════════════════════════ */

.sm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}
.sm-overlay[hidden] { display: none; }

.sm-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sm-overlay.is-open {
    pointer-events: auto;
}

.sm-overlay.is-open .sm-overlay-bg {
    opacity: 1;
}

.sm-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px 36px 30px;
    background:
        radial-gradient(600px 400px at 80% -10%, rgba(240, 122, 26, 0.18), transparent 70%),
        linear-gradient(180deg, #1a0a00 0%, #0a0400 100%);
    border: 1px solid rgba(240, 122, 26, 0.4);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(240, 122, 26, 0.18);
    color: #f0ece4;
    transform: translateY(40px) scale(0.97);
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.sm-overlay.is-open .sm-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.sm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #c5bdae;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.sm-close:hover {
    color: #fff;
    background: rgba(240, 122, 26, 0.18);
    border-color: rgba(240, 122, 26, 0.5);
}

.sm-summary {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(240, 122, 26, 0.2);
}

.sm-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(240, 122, 26, 0.14);
    border: 1px solid rgba(240, 122, 26, 0.4);
    color: #fbb56a;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}

.sm-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    color: #fff;
    letter-spacing: 1.2px;
    margin: 0 0 6px;
    line-height: 1.05;
}

.sm-price {
    font-size: 0.95rem;
    color: #f07a1a;
    font-weight: 600;
    margin: 0 0 12px;
}

.sm-blurb {
    font-size: 0.88rem;
    color: #b9b1a1;
    line-height: 1.55;
    margin: 0;
}

.sm-blurb strong { color: #fff; }

.sm-form { display: flex; flex-direction: column; gap: 14px; }

.sm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sm-field > span {
    font-size: 0.78rem;
    color: #c5bdae;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sm-field > span em {
    color: #f07a1a;
    font-style: normal;
}

.sm-field > span small {
    color: #8a8278;
    font-weight: 400;
    text-transform: none;
    margin-left: 4px;
}

.sm-field input,
.sm-field select,
.sm-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 122, 26, 0.22);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sm-field input:focus,
.sm-field select:focus,
.sm-field textarea:focus {
    outline: none;
    border-color: #f07a1a;
    background: rgba(255, 255, 255, 0.06);
}

.sm-field input.is-error,
.sm-field select.is-error,
.sm-field textarea.is-error {
    border-color: #ff5040;
    background: rgba(255, 80, 64, 0.06);
}

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

.sm-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f07a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.sm-field select option {
    background: #1a0a00;
    color: #fff;
}

.sm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
}

.sm-check input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #f07a1a;
    cursor: pointer;
}

.sm-check span {
    font-size: 0.82rem;
    color: #b9b1a1;
    line-height: 1.5;
}

.sm-check span em {
    color: #f07a1a;
    font-style: normal;
}

.sm-check input.is-error {
    outline: 2px solid #ff5040;
    outline-offset: 2px;
}

.sm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.sm-note {
    font-size: 0.74rem;
    color: #8a8278;
    line-height: 1.5;
    margin: 4px 0 0;
}

.sm-note strong { color: #f07a1a; }

/* ─── Boutons ─── */

.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.sm-btn-primary {
    background: linear-gradient(135deg, #f07a1a, #f14000);
    color: #fff;
    box-shadow: 0 8px 24px rgba(240, 122, 26, 0.35);
}

.sm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(240, 122, 26, 0.5);
}

.sm-btn-ghost {
    background: transparent;
    color: #f07a1a;
    border-color: rgba(240, 122, 26, 0.4);
}

.sm-btn-ghost:hover {
    background: rgba(240, 122, 26, 0.1);
    border-color: #f07a1a;
}

/* ─── Toast ─── */

.sm-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(20, 10, 0, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 122, 26, 0.5);
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(240, 122, 26, 0.18);
    max-width: 420px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f0ece4;
}

.sm-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sm-toast[hidden] { display: none; }

.sm-toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f07a1a, #f14000);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.sm-toast-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sm-toast-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.sm-toast-text span {
    font-size: 0.85rem;
    color: #c5bdae;
    line-height: 1.45;
}

.sm-toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #8a8278;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.sm-toast-close:hover { color: #fff; }

/* ─── Responsive ─── */

@media (max-width: 540px) {
    .sm-overlay { padding: 12px; }
    .sm-panel { padding: 28px 22px 24px; }
    .sm-row { grid-template-columns: 1fr; }
    .sm-actions { flex-direction: column-reverse; }
    .sm-actions .sm-btn { width: 100%; }
    .sm-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
