@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --neon-blue: #00d4ff;
    --neon-green: #39ff14;
    --neon-purple: #bc13fe;
    --neon-orange: #ff8c00;
    --neon-yellow: #f4ea10;
    --primary-neon: var(--neon-blue);
    --bg-dark: #050713;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body.theme-blue { --primary-neon: var(--neon-blue); }
body.theme-green { --primary-neon: var(--neon-green); }
body.theme-purple { --primary-neon: var(--neon-purple); }
body.theme-orange { --primary-neon: var(--neon-orange); }

* { box-sizing: border-box; }
body { margin: 0; padding: 0; min-height: 100vh; font-family: 'Oxanium', sans-serif; color: white; background-color: var(--bg-dark); overflow-x: hidden; display: flex; flex-direction: column; }
p, span, label, input, select { font-family: 'Inter', sans-serif; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--primary-neon); border-radius: 10px; }

.site-bg { position: fixed; inset: 0; z-index: -3; background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('../assets/fond.jpg') center/cover no-repeat; pointer-events: none; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .1; z-index: -2; background-size: 42px 42px; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); }

/* TOPBAR */
.topbar { width: 100%; height: 80px; box-sizing: border-box; z-index: 950; display: flex; align-items: center; justify-content: flex-end; padding: 0 3%; position: fixed; top: 0; left: 0; background: rgba(10, 12, 20, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.nav-bubble { position: absolute; left: 3%; top: 0; pointer-events: auto; width: 140px; height: 120px; background: rgba(15, 15, 15, 0.95); border-radius: 0 0 70px 70px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; border: 1px solid var(--glass-border); border-top: none; cursor: default; }
.nav-logo { width: 95px; filter: drop-shadow(0 0 15px var(--primary-neon)); }
.nav-tools-group { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.05); padding: 8px 20px; border-radius: 50px; border: 1px solid var(--glass-border); }
.btn-outline-neon { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: white; padding: 10px 20px; border-radius: 20px; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 8px; font-family: 'Oxanium', sans-serif; cursor: pointer; }
.btn-outline-neon:hover { border-color: var(--primary-neon); color: var(--primary-neon); box-shadow: 0 0 15px rgba(var(--primary-neon), 0.3); }
.datetime-widget { display: flex; flex-direction: column; align-items: flex-end; padding-left: 15px; border-left: 1px solid var(--glass-border); }
#current-date { font-size: 0.65rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
#current-time { font-size: 1rem; font-weight: 800; color: white; text-shadow: 0 0 8px var(--primary-neon); font-family: 'Oxanium', sans-serif; }

.container { width: 100%; max-width: 1400px; margin: 120px auto 40px auto; padding: 0 20px; flex-grow: 1; display: flex; flex-direction: column; gap: 30px; }

.header-section { text-align: center; }
.page-title { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; margin: 0 0 10px 0; letter-spacing: 2px; }
.text-highlight { color: var(--primary-neon); text-shadow: 0 0 15px rgba(var(--primary-neon), 0.5); }
.page-subtitle { font-size: 1.1rem; color: #ccc; margin: 0; }

.glass-panel { background: var(--glass-bg); backdrop-filter: blur(20px); border-radius: 20px; border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); padding: 40px; }

.recruitment-layout { display: flex; gap: 30px; align-items: flex-start; }
.sidebar-panel { width: 380px; flex-shrink: 0; padding: 30px; }
.panel-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-top: 0; margin-bottom: 25px; border-bottom: 1px solid var(--glass-border); padding-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--primary-neon); }

/* FORMULAIRE & RADIOS */
.radio-group { display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,0.3); padding: 15px; border-radius: 10px; border: 1px solid var(--glass-border); }
.radio-group label { font-size: 0.9rem; font-weight: 600; text-transform: none; display: flex; align-items: center; gap: 10px; color: white; cursor: pointer; }
.radio-group input[type="radio"] { cursor: pointer; accent-color: var(--primary-neon); width: 18px; height: 18px; margin: 0; }

.modern-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: #ccc; }

.input-neon { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: white; padding: 12px 15px; border-radius: 10px; font-size: 0.95rem; transition: 0.3s; outline: none; width: 100%; }
.input-neon:focus { border-color: var(--primary-neon); box-shadow: 0 0 10px rgba(var(--primary-neon), 0.2); background: rgba(255, 255, 255, 0.08); }
.input-neon option { background: var(--bg-dark); color: white; }
.input-icon-wrapper { position: relative; width: 100%; }
.input-icon-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #5865F2; font-size: 1.1rem; }

/* CHECKBOXES VALORANT */
.agents-grid { display: flex; flex-direction: column; gap: 15px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 10px; border: 1px solid var(--glass-border); max-height: 250px; overflow-y: auto; }
.agent-category { display: flex; flex-direction: column; gap: 8px; }
.agent-category h4 { margin: 0 0 5px 0; font-size: 0.85rem; color: var(--primary-neon); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; font-family: 'Oxanium', sans-serif; text-transform: uppercase; }
.agent-category label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #eee; cursor: pointer; font-family: 'Inter', sans-serif; text-transform: none; }
.agent-category input[type="checkbox"] { accent-color: var(--primary-neon); cursor: pointer; width: 16px; height: 16px; }

.btn-submit-neon { background: rgba(var(--primary-neon), 0.1); border: 1px solid var(--primary-neon); color: var(--primary-neon); padding: 15px; border-radius: 10px; font-weight: 800; text-transform: uppercase; font-size: 1rem; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; }
.btn-submit-neon:hover { background: var(--primary-neon); color: #000; box-shadow: 0 0 20px rgba(var(--primary-neon), 0.4); }

.form-message { font-size: 0.9rem; text-align: center; font-weight: 600; min-height: 20px; }
.msg-success { color: var(--neon-green); }
.msg-error { color: var(--neon-orange); }

.recruitment-main { flex-grow: 1; padding: 30px; display: flex; flex-direction: column; gap: 25px; }
.filters-bar { display: flex; gap: 15px; background: rgba(0, 0, 0, 0.3); padding: 15px; border-radius: 12px; border: 1px solid var(--glass-border); flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 10px; flex-grow: 1; min-width: 180px; }
.filter-group i { color: var(--primary-neon); }
.filter-input { flex-grow: 1; padding: 10px 15px; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.post-card { background: rgba(10, 10, 15, 0.8); border: 1px solid var(--glass-border); border-top: 4px solid var(--primary-neon); border-radius: 12px; padding: 20px; transition: 0.3s; display: flex; flex-direction: column; gap: 15px; position: relative; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); border-color: var(--primary-neon); }

.badge-type { display: inline-block; padding: 4px 10px; border-radius: 15px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; font-family: 'Inter', sans-serif; margin-bottom: 5px; }
.badge-joueur { background: rgba(0, 212, 255, 0.15); border: 1px solid var(--neon-blue); color: var(--neon-blue); }
.badge-equipe { background: rgba(255, 140, 0, 0.15); border: 1px solid var(--neon-orange); color: var(--neon-orange); }

.admin-checkbox-container { display: none; position: absolute; top: 15px; right: 15px; z-index: 10; }
body.admin-mode .admin-checkbox-container { display: block; }
body.admin-mode .post-card { border: 1px dashed rgba(255, 51, 51, 0.5); }
body.admin-mode .post-time { margin-right: 25px; } 

.admin-checkbox { width: 22px; height: 22px; cursor: pointer; accent-color: #ff3333; }

.post-header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.post-identity { display: flex; flex-direction: column; }
.post-pseudo { font-size: 1.2rem; font-weight: 900; color: white; margin: 0; }
.post-game { font-size: 0.8rem; color: var(--primary-neon); text-transform: uppercase; font-weight: 700; margin-top: 3px; }
.post-time { font-size: 0.75rem; color: #888; }
.post-details { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.detail-row { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.03); padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; }
.detail-row i { color: #ccc; width: 15px; text-align: center; }
.detail-row span { font-weight: 600; line-height: 1.2; }

.btn-discord { background: #5865F2; color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.2s; text-decoration: none; width: 100%; font-family: 'Inter', sans-serif; }
.btn-discord:hover { background: #4752C4; transform: scale(1.02); }

.empty-state { text-align: center; padding: 40px; color: #aaa; grid-column: 1 / -1; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px dashed rgba(255,255,255,0.1); }

/* FENETRE MODALE CUSTOM (Pop-up) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); z-index: 2000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { max-width: 450px; width: 90%; padding: 30px; text-align: center; display: flex; flex-direction: column; gap: 20px; animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes modalPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-content h3 { font-size: 1.5rem; font-family: 'Oxanium', sans-serif; text-transform: uppercase; color: var(--primary-neon); margin: 0; }
.modal-content p { font-family: 'Inter', sans-serif; font-size: 1rem; color: #ccc; margin: 0; line-height: 1.5; }
.modal-actions { display: flex; justify-content: center; gap: 15px; margin-top: 10px; }

.toast-notification { position: fixed; bottom: 30px; right: 30px; background: var(--primary-neon); color: #000; padding: 15px 25px; border-radius: 8px; font-weight: 800; box-shadow: 0 5px 15px rgba(0,0,0,0.5); z-index: 1000; transform: translateY(100px); opacity: 0; transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.toast-notification.show { transform: translateY(0); opacity: 1; }

.glass-footer { background: var(--glass-bg); backdrop-filter: blur(20px); width: calc(100% - 40px); max-width: 1400px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid var(--glass-border); border-radius: 50px; margin: 0 auto 20px auto; box-shadow: 0 10px 30px rgba(0,0,0,0.5); padding: 10px 5%; }
.copyright-text { color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; text-transform: uppercase; }

@media (max-width: 1024px) {
    .recruitment-layout { flex-direction: column; }
    .sidebar-panel { width: 100%; }
}
@media (max-width: 900px) {
    .topbar { position: relative; height: auto; padding: 15px; justify-content: center; flex-direction: column; gap: 15px; align-items: center; }
    .nav-bubble { display: none; }
    .nav-tools-group { margin-top: 0; width: 100%; justify-content: center; border-radius: 20px; flex-wrap: wrap; }
    .datetime-widget { border-left: none; padding-left: 0; align-items: center; width: 100%; }
    .container { margin-top: 20px; }
}