/* ═══════════════════════════════════════════════════════════════════
   Start Sea — thème web (site public + panel)
   Néon noir / cyan / rose / jaune, cohérent avec le menu FiveM.
   Autonome : aucun build (pas de Vite/Tailwind requis).
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --cyan:   #2ee6ff;
    --pink:   #ff3fb4;
    --yellow: #ffd23f;
    --green:  #3cf59b;
    --orange: #ff5a2a;
    --bg-0:   #06070c;
    --bg-1:   #0b0e17;
    --bg-2:   #121727;
    --card:   rgba(18, 23, 39, 0.72);
    --line:   rgba(255, 255, 255, 0.08);
    --text:   #eef2f8;
    --dim:    #8f9bb3;
    --radius: 16px;
    --font:   'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --brush:  'Permanent Marker', var(--font);
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(120% 90% at 15% -10%, rgba(46, 230, 255, 0.12), transparent 55%),
        radial-gradient(120% 90% at 90% 0%, rgba(255, 63, 180, 0.12), transparent 55%),
        radial-gradient(80% 60% at 50% 110%, rgba(255, 210, 63, 0.05), transparent 60%),
        linear-gradient(180deg, var(--bg-1), var(--bg-0));
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar assortie au thème */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(46,230,255,.35), rgba(255,63,180,.35)); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--cyan), var(--pink)); }
::selection { background: rgba(46,230,255,.3); }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }

.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ── En-tête / navigation ── */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(6, 7, 12, 0.85), rgba(6, 7, 12, 0.2));
    border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--brush); font-size: 26px; letter-spacing: 1px; }
.brand .sea {
    background: linear-gradient(180deg, #baf4ff, var(--cyan));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--dim); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* ── Boutons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px; border: none; cursor: pointer;
    font-family: var(--font); font-weight: 700; font-size: 14px;
    color: #06121a; background: linear-gradient(90deg, var(--cyan), var(--pink));
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(46, 230, 255, .3); filter: brightness(1.06); color: #06121a; }
.btn.ghost { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn.danger { background: linear-gradient(90deg, var(--orange), var(--pink)); color: #fff; }
.btn.small { padding: 7px 14px; font-size: 12.5px; border-radius: 9px; }

/* ── Hero ── */
.hero { padding: 70px 0 40px; text-align: center; position: relative; }
.hero h1 {
    font-family: var(--brush); font-size: clamp(42px, 8vw, 86px);
    letter-spacing: 2px; line-height: 1; transform: rotate(-1.5deg);
    text-shadow: 0 6px 0 rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.5);
}
.hero h1 .sea {
    background: linear-gradient(180deg, #baf4ff, var(--cyan) 60%, #0e9cc9);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(46,230,255,.5));
}
.hero .sub { color: var(--dim); font-size: 18px; margin: 18px auto 0; max-width: 620px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* Badge statut serveur */
.status {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 18px; border-radius: 30px; margin-bottom: 22px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.dot.on  { background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }
.dot.off { background: var(--orange); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.status b { color: var(--cyan); }

/* ── Grilles & cartes ── */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(46,230,255,.22); }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card h3::after {
    content: ''; display: block; width: 42px; height: 3px; margin-top: 7px; border-radius: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
}
.card p.muted { color: var(--dim); font-size: 14px; line-height: 1.5; }

/* Petits champs numériques inline (tableaux de réglages) */
input.mini, select.mini {
    width: 86px; padding: 7px 10px; border-radius: 9px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text);
    font-family: var(--font); font-size: 13.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
input.mini:focus, select.mini:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,255,.12); }

/* ── Selects custom partout (fini le dropdown natif gris) ── */
select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-color: rgba(255,255,255,.05);
    border: 1px solid var(--line); border-radius: 10px;
    color: var(--text); font-family: var(--font); font-size: 13.5px;
    padding: 8px 32px 8px 12px; outline: none; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%232ee6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
    transition: border-color .2s, box-shadow .2s;
}
select:hover { border-color: rgba(46,230,255,.4); }
select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,255,.12); }
select option, select optgroup { background: #0b0e17; color: var(--text); }

/* ── Champs numériques : flèches natives supprimées, steppers custom − / + ── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; text-align: center; }

.num-step {
    display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
}
.num-btn {
    width: 26px; height: 26px; flex: 0 0 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--line);
    background: rgba(255,255,255,.06); color: var(--text);
    font-family: var(--font); font-size: 15px; font-weight: 800; line-height: 1;
    cursor: pointer; user-select: none; padding: 0;
    transition: border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.num-btn:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(46,230,255,.25); }
.num-btn:active { transform: scale(.9); }

/* Grille du déclencheur d'action (page Actions live) */
.trigger-grid {
    display: grid; gap: 12px; align-items: end;
    grid-template-columns: 2fr 1.6fr .8fr .8fr .8fr 1.2fr auto;
}
@media (max-width: 1100px) { .trigger-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .trigger-grid { grid-template-columns: 1fr; } }
.trigger-grid .field { margin-bottom: 0; }

code {
    background: rgba(46,230,255,.08); border: 1px solid rgba(46,230,255,.15);
    padding: 2px 7px; border-radius: 6px; font-size: 12.5px; color: var(--cyan);
}
code.copy:hover { border-color: var(--cyan); }

/* Corps des patch notes (rendu depuis le texte simple) */
.note-body p { color: var(--dim); font-size: inherit; line-height: 1.55; margin: 6px 0; }
.note-body ul { margin: 6px 0 6px 18px; }
.note-body li { color: var(--dim); line-height: 1.55; padding: 2px 0; }
.note-body li::marker { color: var(--cyan); }

.section { padding: 46px 0; scroll-margin-top: 84px; /* évite que la barre fixe masque les titres */ }
.section-title {
    font-family: var(--brush); font-size: 30px; text-align: center; margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--dim); margin-bottom: 30px; }

/* Stat card */
.stat { text-align: center; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--cyan); }
.stat .num.pink { color: var(--pink); }
.stat .num.yellow { color: var(--yellow); }
.stat .label { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Feature icon */
.feature .ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-size: 22px; margin-bottom: 12px;
    background: rgba(46,230,255,.12); border: 1px solid rgba(46,230,255,.25);
}

/* ── Prix ── */
.price-card { text-align: center; border: 1px solid rgba(255,63,180,.35); position: relative; overflow: hidden; }
.price-card::before {
    content: ''; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--cyan), transparent 40%, transparent 60%, var(--pink));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.price { font-size: 52px; font-weight: 800; }
.price .cur { color: var(--pink); }
.price-list { list-style: none; margin: 18px 0; text-align: left; }
.price-list li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.price-list li b { color: var(--text); }
.price-list li::before { content: '✓ '; color: var(--green); font-weight: 800; }

/* ── Classement ── */
.board { list-style: none; }
.board li {
    display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
    padding: 10px 8px; border-bottom: 1px solid var(--line);
}
.board .rank { font-family: var(--brush); font-style: italic; color: var(--pink); font-size: 20px; text-align: right; }
.board li:nth-child(1) .rank { color: var(--yellow); }
.board .pname { font-weight: 600; }
.board .pname small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.board .wins b { color: #fff; font-size: 18px; }
.board .wins i { font-family: var(--brush); font-style: italic; color: var(--pink); margin-left: 5px; }

/* ── Formulaires ── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--dim); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 11px 14px; border-radius: 11px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text);
    font-family: var(--font); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46,230,255,.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: 12px 16px; border-radius: 11px; margin-bottom: 16px; font-size: 14px; }
.alert.ok  { background: rgba(60,245,155,.1); border: 1px solid rgba(60,245,155,.3); color: var(--green); }
.alert.err { background: rgba(255,90,42,.1); border: 1px solid rgba(255,90,42,.3); color: var(--orange); }

/* ── Footer ── */
.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--dim); text-align: center; font-size: 14px; margin-top: 40px; }
.footer .brand { font-size: 22px; margin-bottom: 8px; }

/* ═══════════════ PANEL ═══════════════ */
.panel { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.side .brand { font-size: 22px; margin-bottom: 26px; padding-left: 8px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav a {
    display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 11px;
    color: var(--dim); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s;
}
.side nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side nav a.active {
    background: linear-gradient(90deg, rgba(46,230,255,.16), rgba(255,63,180,.12));
    color: #fff; box-shadow: inset 2px 0 0 var(--cyan);
}
.side nav a .i { width: 20px; text-align: center; }
.side nav a svg.i {
    width: 18px; height: 18px; flex: 0 0 18px;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
    opacity: .85; transition: opacity .15s, filter .15s;
}
.side nav a:hover svg.i { opacity: 1; }
.side nav a.active svg.i {
    opacity: 1; color: var(--cyan);
    filter: drop-shadow(0 0 6px rgba(46, 230, 255, .55));
}
.side .sep { height: 1px; background: var(--line); margin: 14px 6px; }
.side nav .cat {
    display: block; padding: 14px 14px 5px; font-size: 10.5px; font-weight: 800;
    letter-spacing: 1.8px; text-transform: uppercase; color: var(--dim); opacity: .75;
}
.side nav .cat:first-child { padding-top: 4px; }

.main { padding: 26px 30px; overflow-x: hidden; }
.main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.main-head h1 { font-size: 24px; }
.main-head .who { color: var(--dim); font-size: 13.5px; }
.main-head .who b { color: var(--cyan); }

/* Tableaux */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
table.data tr:hover td { background: rgba(255,255,255,.02); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge.cyan   { background: rgba(46,230,255,.14); color: var(--cyan); }
.badge.pink   { background: rgba(255,63,180,.14); color: var(--pink); }
.badge.green  { background: rgba(60,245,155,.14); color: var(--green); }
.badge.yellow { background: rgba(255,210,63,.14); color: var(--yellow); }
.badge.orange { background: rgba(255,90,42,.14); color: var(--orange); }
.badge.gray   { background: rgba(255,255,255,.07); color: var(--dim); }

/* Filtres / barre d'outils */
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select {
    padding: 9px 13px; border-radius: 10px; background: rgba(255,255,255,.04);
    border: 1px solid var(--line); color: var(--text); font-family: var(--font); font-size: 14px; outline: none;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--dim); font-size: 13px; font-weight: 600; }
.chip.active { background: rgba(46,230,255,.14); border-color: var(--cyan); color: var(--cyan); }

.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; list-style: none; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.pagination .active span { background: var(--cyan); color: #06121a; border-color: var(--cyan); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 94vw); }
.login-card .brand { text-align: center; font-size: 30px; margin-bottom: 6px; }

/* Responsive */
@media (max-width: 900px) {
    .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
    .panel { grid-template-columns: 1fr; }
    .side { position: static; height: auto; display: none; }
    .nav-links { display: none; }
}
@media (max-width: 560px) {
    .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
}
