﻿/* ========================================
   FAN-RH — Design V2 Aurora
   Fichier : plugins/zeud/zeud.css
   Encodage : UTF-8 BOM
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #06091a; min-height: 100vh; overflow-x: hidden; position: relative;
}

/* === FOND DYNAMIQUE === */
#fanBg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.fan-aurora {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.38;
    animation: fanAuroraMove var(--d, 18s) ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes fanAuroraMove {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(28px, -18px) scale(1.07); }
    100% { transform: translate(-14px, 14px) scale(0.96); }
}

.fan-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(102,126,234,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102,126,234,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: fanGridScroll 20s linear infinite;
    will-change: background-position;
}
@keyframes fanGridScroll { to { background-position: 44px 44px; } }

/* Radar */
.fan-radar { position: absolute; top: 6%; right: 4%; width: 110px; height: 110px; opacity: .14; z-index: 1; }
.fan-radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #23d5ab; }
.fan-radar-inner { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid #23d5ab; }
.fan-radar-sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(35,213,171,.45) 10%, transparent 10%);
    animation: fanRadarSpin 3s linear infinite; will-change: transform;
}
@keyframes fanRadarSpin { to { transform: rotate(360deg); } }
.fan-radar-dot {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: #23d5ab; animation: fanRadarDot 3s ease-in-out infinite;
}
.fan-radar-dot:nth-child(4) { top: 28%; left: 62%; animation-delay: .5s; }
.fan-radar-dot:nth-child(5) { top: 64%; left: 34%; animation-delay: 1.3s; }
@keyframes fanRadarDot {
    0%, 100% { opacity: 0; transform: scale(0); }
    50%       { opacity: 1; transform: scale(1); }
}

/* === LOADING === */
.fan-loading {
    position: fixed; inset: 0; background: rgba(6,9,26,.93);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; backdrop-filter: blur(4px);
    transition: opacity .4s ease;
}
.fan-loading.hidden { opacity: 0; pointer-events: none; }
.fan-spinner { width: 68px; height: 68px; position: relative; }
.fan-spinner > div {
    position: absolute; width: 100%; height: 100%;
    border: 3px solid transparent; border-radius: 50%;
    animation: fanSpin 1.5s cubic-bezier(.68,-.55,.265,1.55) infinite;
}
.fan-spinner > div:nth-child(1) { border-top-color: #667eea; }
.fan-spinner > div:nth-child(2) { border-top-color: #f093fb; animation-delay: .15s; }
.fan-spinner > div:nth-child(3) { border-top-color: #23d5ab; animation-delay: .3s; }
@keyframes fanSpin { to { transform: rotate(360deg); } }

/* === CENTRAGE === */
.fan-center {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
}

/* === CARTE === */
.fan-card {
    position: relative; width: 100%; max-width: 430px;
    animation: fanCardIn .9s cubic-bezier(.34,1.56,.64,1) both;
    transform-style: preserve-3d;
}
@keyframes fanCardIn {
    from { opacity: 0; transform: translateY(36px) scale(.88); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Bordure dégradée rotative — @property (Chrome 85+, Safari 16.4+) */
@property --fanAngle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.fan-card-border {
    position: absolute; inset: -2px; border-radius: 32px; z-index: -1;
    background: conic-gradient(from var(--fanAngle), #667eea, #23d5ab, #f093fb, #e73c7e, #667eea);
    animation: fanBorderSpin 5s linear infinite;
}
@keyframes fanBorderSpin { to { --fanAngle: 360deg; } }

/* Fallback navigateurs sans @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .fan-card-border {
        background: linear-gradient(135deg, #667eea, #f093fb, #23d5ab, #e73c7e);
        animation: none;
    }
}

/* Intérieur carte */
.fan-card-inner {
    position: relative;
    background: rgba(6,9,26,.84);
    backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    border-radius: 30px; padding: 38px 36px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31,38,135,.4);
}
.fan-card-inner::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,.04), transparent);
    animation: fanShimmer 6s infinite; pointer-events: none; z-index: 0;
}
@keyframes fanShimmer {
    0%   { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%)  translateY(100%)  rotate(45deg); }
}

/* Reflet holographique */
.fan-holo {
    position: absolute; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,147,251,.1), transparent 70%);
    pointer-events: none; transform: translate(-50%,-50%);
    transition: left .08s ease, top .08s ease; z-index: 0;
}

/* === LOGO === */
.fan-logo-wrap { display: flex; justify-content: center; margin-bottom: 14px; position: relative; z-index: 1; }
.fan-logo-orbit {
    position: relative; width: 98px; height: 98px;
    animation: fanLogoFloat 3s ease-in-out infinite; will-change: transform;
}
@keyframes fanLogoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.fan-logo-orbit::before, .fan-logo-orbit::after {
    content: ''; position: absolute; border-radius: 50%;
    border: 1.5px solid transparent;
    animation: fanOrbit 3s linear infinite; will-change: transform;
}
.fan-logo-orbit::before {
    inset: -9px;
    border-top-color: rgba(102,126,234,.8); border-right-color: rgba(102,126,234,.8);
}
.fan-logo-orbit::after {
    inset: -19px;
    border-bottom-color: rgba(35,213,171,.7); border-left-color: rgba(240,147,251,.7);
    animation-duration: 6s; animation-direction: reverse;
}
@keyframes fanOrbit { to { transform: rotate(360deg); } }

.fan-logo-circle {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(102,126,234,.35);
}
.fan-logo-img {
    width: 70px; height: 70px; object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(102,126,234,.6));
    transition: filter .3s ease;
}
.fan-logo-circle:hover .fan-logo-img { filter: drop-shadow(0 0 18px rgba(102,126,234,.9)); }

/* === TITRE === */
.fan-title {
    font-size: 2.6rem; font-weight: 900; letter-spacing: 12px; text-transform: uppercase;
    text-align: center; margin-bottom: 5px; position: relative; z-index: 1;
    background: linear-gradient(135deg, #667eea, #f093fb, #23d5ab);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: fanTitleShine 2.5s ease-in-out infinite alternate, fanGlitch 9s steps(1) infinite;
    user-select: none;
}
@keyframes fanTitleShine { 0% { filter: brightness(1); } 100% { filter: brightness(1.3); } }
@keyframes fanGlitch {
    0%,93%,100% { text-shadow: none; transform: translate(0); }
    94% { text-shadow: 3px 0 #e73c7e, -3px 0 #23d5ab; transform: translate(2px,0); }
    96% { text-shadow: -2px 0 #f093fb, 2px 0 #667eea; transform: translate(-1px,0); }
    98% { text-shadow: 1px 0 #23d5ab; transform: translate(0); }
}
.fan-subtitle {
    text-align: center; color: rgba(255,255,255,.28); font-size: 9px;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 26px;
    position: relative; z-index: 1; user-select: none;
}

/* === BARRE DE BLOCAGE === */
.fan-lockout {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(231,60,126,.15); border: 1px solid rgba(231,60,126,.4);
    border-radius: 10px; margin-bottom: 16px;
    color: rgba(255,160,200,.9); font-size: 12px; font-weight: 500;
    position: relative; z-index: 1;
    animation: fanLockPulse 2s ease-in-out infinite;
}
.fan-lockout i { flex-shrink: 0; color: rgba(231,60,126,.8); animation: fanShieldRock 3s ease-in-out infinite; }
@keyframes fanShieldRock { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes fanLockPulse {
    0%,100% { box-shadow: 0 0 10px rgba(231,60,126,.2); }
    50%      { box-shadow: 0 0 20px rgba(231,60,126,.4); }
}

/* === INPUTS === */
.fan-input-group {
    position: relative; margin-bottom: 20px;
    animation: fanSlideIn .5s ease-out both; z-index: 1;
}
.fan-input-group:nth-of-type(1) { animation-delay: .1s; }
.fan-input-group:nth-of-type(2) { animation-delay: .2s; }
@keyframes fanSlideIn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.fan-input {
    width: 100%; padding: 14px 18px 14px 48px;
    background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.08);
    border-radius: 14px; color: #fff; font-size: 15px; font-family: inherit;
    outline: none; transition: all .35s ease;
    -webkit-appearance: none; appearance: none;
}
.fan-input:focus {
    background: rgba(102,126,234,.08); border-color: rgba(102,126,234,.55);
    box-shadow: 0 0 0 3px rgba(102,126,234,.1), 0 0 25px rgba(102,126,234,.2);
    transform: translateY(-1px);
}
.fan-input::placeholder { color: rgba(255,255,255,.25); }
.fan-input:disabled { opacity: .4; cursor: not-allowed; }
.fan-input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,.3); font-size: 16px; pointer-events: none;
    transition: all .3s ease;
}
.fan-input:focus ~ .fan-input-icon {
    color: #667eea; filter: drop-shadow(0 0 5px rgba(102,126,234,.6));
    transform: translateY(-50%) scale(1.1);
}

/* === CAPTCHA === */
.fan-captcha {
    position: relative; margin: 20px 0; padding: 16px;
    background: rgba(255,255,255,.03); border-radius: 18px;
    border: 1px solid rgba(255,255,255,.07); overflow: hidden;
    animation: fanScaleIn .5s ease-out .35s both; min-height: 110px; z-index: 1;
}
@keyframes fanScaleIn {
    from { transform: scale(.93); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.fan-captcha-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.75); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    z-index: 20; border-radius: 18px; opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
}
.fan-captcha-overlay.active { opacity: 1; pointer-events: all; }
.fan-captcha-overlay i { font-size: 24px; color: rgba(255,255,255,.5); }
.fan-captcha-overlay span { color: rgba(255,255,255,.38); font-size: 11px; text-align: center; }

.fan-captcha-content { transition: all .3s ease; }
.fan-captcha-title {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: rgba(255,255,255,.55); font-size: 10px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}

/* Slider */
.fan-slider-wrap {
    position: relative; height: 56px;
    background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(102,126,234,.08), rgba(118,75,162,.08));
    border-radius: 50px; overflow: hidden; border: 1px solid rgba(255,255,255,.07);
    touch-action: none; user-select: none; -webkit-user-select: none;
}
.fan-slider-fill {
    position: absolute; top: 0; left: 0; height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(102,126,234,.25), rgba(35,213,171,.15));
    border-radius: 50px; pointer-events: none;
}
.fan-slider-btn {
    position: absolute; width: 48px; height: 48px; top: 4px; left: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%; cursor: grab;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 18px rgba(102,126,234,.5), inset 0 0 10px rgba(255,255,255,.12);
    transition: box-shadow .3s ease; will-change: left;
    touch-action: none; user-select: none; -webkit-user-select: none;
}
.fan-slider-btn:hover:not(.fan-validated) {
    box-shadow: 0 6px 28px rgba(102,126,234,.7), inset 0 0 15px rgba(255,255,255,.2);
}
.fan-slider-btn:active { cursor: grabbing; }
.fan-slider-btn.fan-validated {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 18px rgba(40,167,69,.5); cursor: default;
}
.fan-slider-btn i {
    color: #fff; font-size: 20px; pointer-events: none; transition: all .3s ease;
}
.fan-slider-text {
    position: absolute; width: 100%; text-align: center;
    color: rgba(255,255,255,.35); font-size: 10px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; pointer-events: none;
    line-height: 56px; transition: all .3s ease;
}
.fan-slider-text.fan-validated { color: #20c997; }

/* === BADGE === */
.fan-badge {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 18px 0; padding: 12px;
    background: rgba(102,126,234,.1); border: 1px solid rgba(102,126,234,.2);
    border-radius: 14px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600;
    position: relative; overflow: hidden; z-index: 1;
    animation: fanSlideIn .5s ease-out .45s both;
}
.fan-badge::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
    animation: fanBadgeSweep 3s ease infinite;
}
@keyframes fanBadgeSweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.fan-badge i { font-size: 18px; color: #667eea; animation: fanFpulse 2s ease-in-out infinite; }
@keyframes fanFpulse {
    0%,100% { filter: drop-shadow(0 0 4px #667eea); }
    50%      { filter: drop-shadow(0 0 12px #667eea); }
}
.fan-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #20c997; box-shadow: 0 0 8px #20c997;
    animation: fanDotBlink 1.5s ease-in-out infinite;
}
@keyframes fanDotBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* === BOUTON === */
.fan-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none; border-radius: 14px; color: #fff;
    font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: relative; overflow: hidden; transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(102,126,234,.4);
    animation: fanSlideIn .5s ease-out .55s both; z-index: 1;
    -webkit-appearance: none;
}
.fan-btn-shine {
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: left .45s ease;
}
.fan-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(102,126,234,.6); }
.fan-btn:not(:disabled):hover .fan-btn-shine { left: 100%; }
.fan-btn:not(:disabled):active { transform: scale(.98) translateY(-1px); }
.fan-btn:disabled {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.18); box-shadow: none; cursor: not-allowed;
}

/* === SWEETALERT2 CUSTOM === */
.swal2-popup {
    font-family: inherit !important;
    border-radius: 20px !important;
    background: rgba(8,10,28,.97) !important;
    border: 1px solid rgba(102,126,234,.2) !important;
    box-shadow: 0 25px 60px rgba(0,0,0,.6) !important;
    backdrop-filter: blur(20px) !important;
    color: rgba(255,255,255,.85) !important;
}
.swal2-title { color: rgba(255,255,255,.95) !important; font-weight: 700 !important; font-size: 1.3rem !important; }
.swal2-html-container { color: rgba(255,255,255,.6) !important; font-size: .95rem !important; line-height: 1.6 !important; }
.swal2-confirm { border-radius: 10px !important; font-weight: 600 !important; letter-spacing: .5px !important; }
.swal2-cancel  { border-radius: 10px !important; font-weight: 600 !important; }
.swal2-icon { border-color: rgba(102,126,234,.3) !important; }
.swal2-container.swal2-top-end .swal2-popup { border-radius: 12px !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .fan-card-inner { padding: 28px 22px; }
    .fan-title { font-size: 1.8rem; letter-spacing: 7px; }
    .fan-input { font-size: 16px; padding: 12px 15px 12px 44px; }
    .fan-input-icon { font-size: 15px; }
    .fan-slider-btn { width: 52px; height: 52px; }
    .fan-slider-wrap { height: 62px; }
    .fan-btn { padding: 15px; font-size: 13px; }
    .fan-radar { display: none; }
}
@media (max-width: 480px) {
    .fan-card-inner { padding: 24px 18px; }
    .fan-title { font-size: 1.5rem; letter-spacing: 5px; }
    .fan-logo-img { width: 62px; height: 62px; }
    .fan-input-group { margin-bottom: 16px; }
}
@media (hover: none) and (pointer: coarse) {
    .fan-slider-btn { width: 54px; height: 54px; }
    .fan-slider-wrap { height: 64px; }
    .fan-input { font-size: 16px; }
    .fan-btn:not(:disabled):hover { transform: none; }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fan-card-inner { /* fine border on retina */ }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@media print { body { display: none !important; } }
