:root {
    --ember-orange: #ff5a1f;
    --ember-orange-soft: #ff7a1a;
    --ember-orange-deep: #d9480f;
    --ember-glow: rgba(255, 90, 31, 0.4);
    --bronze: var(--ember-orange);
    --bronze-glow: var(--ember-glow);
}

/* Description :
   Surcharge légère du thème pour coller à l'identité EMBER RP.
   Cette feuille passe après le CSS buildé pour personnaliser le rendu sans le casser. */
body {
    background-color: #050505;
}

.text-bronze,
[class*="text-bronze"] {
    color: var(--ember-orange) !important;
}

.border-bronze,
[class*="border-bronze"] {
    border-color: color-mix(in srgb, var(--ember-orange) 45%, transparent) !important;
}

.bg-bronze,
[class*="bg-bronze/"] {
    background-color: var(--ember-orange) !important;
}

.btn-bronze {
    color: #fff !important;
    background: linear-gradient(135deg, var(--ember-orange-deep) 0%, var(--ember-orange) 45%, var(--ember-orange-soft) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--ember-orange) 55%, #ffffff 10%) !important;
    box-shadow: 0 12px 30px -16px var(--ember-glow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
}

.btn-bronze:hover {
    filter: brightness(1.08);
    box-shadow: 0 18px 36px -16px rgba(255, 90, 31, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
}

.logo-ember {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    line-height: 1;
}

.logo-ember--compact {
    gap: 0.1rem;
}

.logo-ember__name {
    font-family: "Syncopate", sans-serif;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: #f3f4f6;
    text-shadow: 0 0 18px rgba(255, 90, 31, 0.12);
}

.logo-ember__tag {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.62em;
    text-transform: uppercase;
    color: var(--ember-orange);
}

.logo-ember__ring {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 90, 31, 0.85);
    box-shadow: 0 0 24px rgba(255, 90, 31, 0.22);
    position: relative;
    flex: 0 0 auto;
}

.logo-ember__ring::before,
.logo-ember__ring::after {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 9999px 9999px 45% 45%;
    background: linear-gradient(180deg, var(--ember-orange-soft), var(--ember-orange-deep));
    clip-path: polygon(50% 0%, 68% 26%, 60% 58%, 78% 100%, 50% 76%, 22% 100%, 40% 58%, 32% 26%);
    filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.3));
}

.logo-ember__ring::after {
    inset: 0.9rem 1.02rem 0.85rem 1.02rem;
    background: #070707;
    clip-path: polygon(50% 6%, 66% 28%, 57% 58%, 71% 91%, 50% 72%, 29% 91%, 43% 58%, 34% 28%);
}

.logo-ember-ligne {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-ember-lien {
    min-width: 0;
}

.logo-ember-lien:hover .logo-ember__ring {
    box-shadow: 0 0 34px rgba(255, 90, 31, 0.36);
}

.logo-hero {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-image-header {
    height: 2.8rem;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 18px rgba(255, 90, 31, 0.16));
}

.logo-image-mobile {
    height: 3rem;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 18px rgba(255, 90, 31, 0.16));
}

.logo-image-hero {
    width: min(28rem, 72vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 40px rgba(255, 90, 31, 0.18));
}

.logo-hero-panel {
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 90, 31, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: 0 24px 60px -28px rgba(255, 90, 31, 0.28);
    backdrop-filter: blur(16px);
}

.logo-image-inline {
    width: min(10rem, 65vw);
    height: auto;
    display: block;
    margin-inline: auto;
    filter: drop-shadow(0 10px 26px rgba(255, 90, 31, 0.14));
}

.logo-hero .logo-ember__ring {
    width: 7rem;
    height: 7rem;
    border-width: 3px;
}

.logo-hero .logo-ember__name {
    font-size: clamp(2rem, 4vw, 4.4rem);
    letter-spacing: 0.32em;
}

.logo-hero .logo-ember__tag {
    font-size: 0.95rem;
    letter-spacing: 0.85em;
}

.brand-slogan {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.is-disabled-social {
    opacity: 0.28;
    pointer-events: none;
    filter: grayscale(1);
}

.hero-ember-overlay {
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 90, 31, 0.18), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(255, 90, 31, 0.1), transparent 35%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.7));
}

.hero-ember-section {
    min-height: 100svh;
}

.hero-ember-content {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-top: clamp(7rem, 12vh, 8.5rem);
    padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.hero-ember-title {
    line-height: 0.95;
    text-wrap: balance;
}

.hero-ember-description {
    line-height: 1.75;
    text-wrap: pretty;
}

.hero-ember-actions {
    row-gap: 0.85rem;
}

.hero-scroll-indicator {
    padding-bottom: clamp(1.5rem, 4vh, 2.75rem);
}

@media (max-height: 760px) {
    .hero-ember-content {
        padding-top: 6.5rem;
        padding-bottom: 2rem;
    }

    .logo-image-hero {
        width: min(22rem, 58vw);
    }

    .brand-slogan {
        font-size: 0.78rem;
        letter-spacing: 0.14em;
    }

    .hero-ember-description {
        max-width: 38rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-scroll-indicator {
        padding-bottom: 1.2rem;
    }
}

@media (max-height: 640px) {
    .hero-scroll-indicator span {
        font-size: 0.65rem;
        letter-spacing: 0.28em;
    }
}

.ember-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(14px);
}

.ember-card:hover {
    border-color: rgba(255, 90, 31, 0.34);
}

.wl-tab {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.54);
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.wl-tab.is-active {
    color: #fff;
    border-color: rgba(255, 90, 31, 0.34);
    background: rgba(255, 90, 31, 0.12);
}

.wl-progress-fill {
    width: 25%;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--ember-orange-deep), var(--ember-orange-soft));
    box-shadow: 0 0 18px rgba(255, 90, 31, 0.35);
    transition: width 0.25s ease;
}

.wl-panel {
    display: block;
}

.wl-field {
    display: block;
}

.wl-field > span {
    display: block;
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.wl-field input,
.wl-field textarea,
.wl-field select {
    width: 100%;
    border-radius: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wl-field textarea {
    resize: vertical;
    min-height: 7rem;
}

.wl-field input::placeholder,
.wl-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.wl-field input:focus,
.wl-field textarea:focus,
.wl-field select:focus {
    border-color: rgba(255, 90, 31, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.12);
}

.wl-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.wl-checkbox input {
    margin-top: 0.2rem;
    accent-color: var(--ember-orange);
}

.wl-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.wl-secondary:disabled {
    opacity: 0.35;
}

.wl-feedback {
    margin-bottom: 1.25rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.wl-feedback.is-info {
    border-color: rgba(255, 90, 31, 0.22);
    background: rgba(255, 90, 31, 0.08);
}

.wl-feedback.is-success {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(16, 185, 129, 0.12);
}

.wl-feedback.is-error {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.wl-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wl-resume-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wl-resume-row > span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.wl-resume-row > strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    word-break: break-word;
}

.reglement-link {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: 0.9rem;
    color: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.reglement-link:hover {
    color: #fff;
    border-color: rgba(255, 90, 31, 0.3);
    background: rgba(255, 90, 31, 0.08);
}

.reglement-item {
    position: relative;
    padding-left: 1.1rem;
}

.reglement-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 9999px;
    background: var(--ember-orange);
    box-shadow: 0 0 14px rgba(255, 90, 31, 0.35);
}

.admin-auth-feedback,
.admin-panel-feedback {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.92rem;
}

.admin-bootstrap-card,
.admin-session-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    color: rgba(255, 255, 255, 0.78);
}

.admin-panel-feedback.is-info,
.admin-auth-feedback.is-info {
    border-color: rgba(255, 90, 31, 0.22);
    background: rgba(255, 90, 31, 0.08);
}

.admin-panel-feedback.is-success,
.admin-auth-feedback.is-success {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(16, 185, 129, 0.12);
}

.admin-panel-feedback.is-error,
.admin-auth-feedback.is-error {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.admin-stat-card,
.admin-mini-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(14px);
    border-radius: 1.2rem;
    padding: 1rem 1.1rem;
}

.admin-stat-card span,
.admin-mini-card span {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.admin-stat-card strong {
    display: block;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.05em;
}

.admin-mini-card strong {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 700;
    word-break: break-word;
}

.admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-list {
    display: flex;
    flex-direction: column;
    max-height: 72vh;
    overflow-y: auto;
}

.admin-candidature-item {
    width: 100%;
    text-align: left;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.admin-candidature-item:hover,
.admin-candidature-item.is-active {
    background: rgba(255, 90, 31, 0.08);
}

.admin-candidature-item.is-active {
    border-left: 3px solid rgba(255, 90, 31, 0.8);
    padding-left: calc(1.1rem - 3px);
}

.admin-candidature-reference {
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    word-break: break-word;
}

.admin-candidature-pseudo {
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
}

.admin-candidature-meta {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-badge--recue,
.admin-badge--discord_envoye,
.admin-badge--en_attente {
    border-color: rgba(255, 90, 31, 0.25);
    background: rgba(255, 90, 31, 0.1);
}

.admin-badge--acceptee,
.admin-badge--discord {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.14);
}

.admin-badge--refusee,
.admin-badge--discord_echec,
.admin-badge--discord-off {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.admin-badge--a_relancer {
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(234, 179, 8, 0.12);
}

.admin-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.15rem;
    padding: 1.1rem;
}

.admin-detail-card p {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
    white-space: pre-wrap;
}

.admin-detail-label {
    color: var(--ember-orange);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-action-button {
    min-height: 3rem;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-staff-list {
    display: grid;
    gap: 0.8rem;
}

.admin-staff-user-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.admin-staff-user-item:hover,
.admin-staff-user-item.is-active {
    background: rgba(255, 90, 31, 0.08);
    border-color: rgba(255, 90, 31, 0.24);
}

.admin-staff-user-item strong,
.admin-staff-user-item span,
.admin-staff-user-item small {
    display: block;
}

.admin-staff-user-item strong {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.25rem;
}

.admin-staff-user-item span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.admin-staff-user-item small {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

.admin-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.76);
}

.admin-checkbox input {
    width: 1rem;
    height: 1rem;
}

.admin-empty-inline {
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.admin-history-list {
    display: grid;
    gap: 0.85rem;
}

.admin-history-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 0.95rem;
    padding: 0.9rem 1rem;
}

.admin-history-item strong {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.35rem;
}

.admin-history-item span {
    display: block;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
}

.admin-history-item p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-empty-state {
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

@media (max-width: 767px) {
    .admin-candidature-meta {
        flex-direction: column;
    }

    .admin-action-grid {
        grid-template-columns: 1fr;
    }
}
