:root {
    --primary-blue: #e83e8c;
    --header-blue: #d92f83;
    --sidebar-active: linear-gradient(100deg, #d92f83 0%, #f06aa8 100%);
    --bg-main: #fff6fa;
    --bg-card: #ffffff;
    --text-dark: #382334;
    --text-muted: #866879;
    --border-soft: #f2dce7;
    --discord-blurple: #5865F2;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-card: 0 8px 26px rgba(157, 48, 101, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
}

.topbar {
    background: linear-gradient(110deg, #bd236e 0%, #e83e8c 55%, #f47eae 100%);
    color: #fff;
    min-height: 64px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.search-bar { flex: 1; max-width: 380px; margin: 0 12px; }
.search-bar input {
    width: 100%;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    font-size: 0.9rem;
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.88rem; font-weight: 600; }

.pill-badge {
    background: rgba(255,255,255,0.18);
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
}

.app-layout { display: flex; min-height: calc(100vh - 64px); }

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--border-soft);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.nav-item:hover { background: #fff0f6; color: var(--header-blue); }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-item.protect-btn { background: #e3f2fd; border: 1px solid #f2bfd5; color: #9d245d; }
.nav-item.admin-global-btn { background: #ede9fe; border: 1px solid #ddd6fe; color: #5b21b6; }

.sidebar-section-label {
    margin-top: 12px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #d92f83;
}

.badge-new {
    background: #d92f83;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.main-content { flex: 1; padding: 24px 28px; max-width: 1340px; }

.hero-banner {
    background: linear-gradient(120deg, #ffffff 0%, #fff0f6 65%, #fbd8e8 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.hero-text h1 { font-size: 1.9rem; color: #67264a; margin-bottom: 8px; }
.hero-text p { font-size: 1rem; color: var(--text-muted); margin-bottom: 14px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary { background: var(--header-blue); color: #fff; }
.btn-discord { background: var(--discord-blurple); color: #fff; }
.btn-outline { background: #fff; color: var(--header-blue); border: 1px solid #f2bfd5; }
.btn-danger { background: #dc2626; color: #fff; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.action-card { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--text-dark); }

.fictive-banner {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    color: #92400e;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

.error-1002-box {
    background: #fef2f2;
    border: 2px solid #dc2626;
    color: #991b1b;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; }
th { background: #fff0f6; color: #9d245d; font-weight: 700; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.88rem; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 0.92rem; }

@media (max-width: 900px) {
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .grid-2-1 { grid-template-columns: 1fr; }
    .hero-banner { flex-direction: column; text-align: center; }
}


/* WEBCDI — identité visuelle rose, éditée par WebHostaria */
:root {
    --header-blue: #d92f83;
    --sidebar-active: linear-gradient(100deg, #c92775 0%, #ed5b9c 100%);
    --bg-main: #fff7fa;
    --border-soft: #f1dce6;
    --text-dark: #382334;
    --text-muted: #806879;
    --shadow-card: 0 8px 26px rgba(157, 48, 101, .08);
}
.topbar { background: linear-gradient(110deg, #ad1f63 0%, #d92f83 58%, #f06aa5 100%); }
.nav-item:hover { background: #fff0f6; color: #c92775; }
.nav-item.protect-btn { background: #fff0f6; border-color: #f4c7dc; color: #9d245d; }
.nav-item.admin-global-btn { background: #f8eafa; border-color: #ead0ed; color: #813b83; }
.sidebar-section-label { color: #c92775; }
.badge-new { background: #c92775; }
.hero-banner { background: linear-gradient(125deg, #fff 0%, #fff0f6 62%, #fbd8e8 100%); }
th { background: #fff0f6; color: #9d245d; }
.form-control:focus, .search-bar input:focus { outline: 3px solid rgba(217,47,131,.16); border-color: #d92f83; }
.brand span:first-child { filter: drop-shadow(0 2px 3px rgba(80,0,40,.2)); }


/* =========================================================
   WEBCDI — Design system officiel / by WebHostaria
   ========================================================= */
:root {
    --brand-pink: #d92f83;
    --brand-hot: #ef168f;
    --brand-soft: #fff0f7;
    --brand-blush: #fbd8e8;
    --brand-ink: #382334;
    --brand-muted: #806879;
    --header-blue: var(--brand-pink);
    --sidebar-active: linear-gradient(110deg, #c92775, #ed5b9c);
    --bg-main: #fff7fa;
    --bg-card: #ffffff;
    --text-dark: var(--brand-ink);
    --text-muted: var(--brand-muted);
    --border-soft: #f1dce6;
    --shadow-card: 0 12px 32px rgba(157, 48, 101, .09);
}
html { scroll-behavior: smooth; }
body { background: radial-gradient(ellipse at 10% 0%, #fff 0%, #fff7fa 52%, #fff2f8 100%); }
.topbar {
    background: linear-gradient(110deg, #9f1c5a 0%, #c92775 48%, #ed5b9c 100%);
    min-height: 76px;
    padding: 9px clamp(14px, 3vw, 32px);
    box-shadow: 0 7px 24px rgba(130, 23, 76, .18);
}
.brand { gap: 9px; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.96); }
.brand-wordmark { font-weight: 900; letter-spacing: -.04em; }
.app-layout { min-height: calc(100vh - 76px); }
.sidebar {
    width: 268px;
    padding: 22px 15px;
    background: rgba(255,255,255,.94);
    border-right: 1px solid #f1dce6;
    box-shadow: 5px 0 22px rgba(130,23,76,.025);
}
.nav-item { padding: 11px 14px; transition: background .18s ease, transform .18s ease, color .18s ease; }
.nav-item:hover { transform: translateX(2px); background: #fff0f6; color: #b51e68; }
.nav-item.active { box-shadow: 0 5px 14px rgba(201,39,117,.2); }
.sidebar-section-label { letter-spacing: .07em; }
.main-content { width: 100%; padding: clamp(16px, 2.5vw, 32px); }
.hero-banner {
    position: relative; overflow: hidden;
    background: linear-gradient(125deg, #fff 0%, #fff4f9 52%, #f9d5e7 100%);
    border: 1px solid #f2d3e2;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(157,48,101,.09);
}
.hero-banner:after {
    content: ""; position: absolute; width: 240px; height: 240px; right: -100px; top: -125px;
    border: 28px solid rgba(217,47,131,.08); border-radius: 50%; pointer-events: none;
}
.hero-text h1 { color: #742449; letter-spacing: -.035em; }
.card {
    border: 1px solid #f1dce6;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(157,48,101,.055);
    transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(157,48,101,.12); }
.btn { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 5px 14px rgba(157,48,101,.14); }
.btn-primary { background: linear-gradient(110deg, #bd236e, #e83e8c); }
.btn-outline { color: #ad2368; border-color: #efc3d9; }
th { background: #fff0f6; color: #9d245d; }
.form-control { border-color: #ead4df; background: #fff; }
.form-control:focus, .search-bar input:focus { outline: 3px solid rgba(217,47,131,.16); border-color: #d92f83; }
.brand-wordmark { color: #fff; }
.sidebar-partner { margin: 12px 5px 8px; padding: 12px; border-radius: 15px; background: #fff5fa; border: 1px solid #f4d8e6; text-align: center; }
.sidebar-partner img { width: 76px; height: 76px; object-fit: contain; display: block; margin: 0 auto 5px; }
.sidebar-partner span { display: block; color: #93647c; font-size: .68rem; letter-spacing: .04em; }
.site-footer { margin: 34px 0 0; padding: 22px 0 4px; border-top: 1px solid #f0dce6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: #806879; font-size: .82rem; }
.site-footer strong { color: #c92775; }
.site-footer img { width: min(250px, 100%); height: auto; object-fit: contain; border-radius: 9px; }
.partner-banner { margin: 0 0 26px; border-radius: 20px; overflow: hidden; background: #080719; box-shadow: 0 12px 30px rgba(50,0,50,.14); }
.partner-banner img { display: block; width: 100%; height: auto; }
.partner-caption { padding: 10px 16px; text-align: center; color: #fff; background: linear-gradient(90deg,#24102c,#a21b70,#24102c); font-size: .86rem; letter-spacing: .04em; }
.partner-caption strong { color: #ff9cdb; }
.presentation-mark { width: min(240px, 32vw); min-width: 150px; flex: 0 0 auto; }
.presentation-mark img { width: 100%; height: auto; display: block; }
.auth-logo { display:block; width: min(170px, 55%); height:auto; object-fit:contain; margin:0 auto 8px; }
@media (max-width: 900px) {
    .topbar { position: relative; }
    .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
    .sidebar-partner { display:none; }
    .main-content { padding: 16px; }
    .site-footer { justify-content:center; text-align:center; }
}
@media (max-width: 560px) {
    .brand img { width: 40px; height: 40px; }
    .brand-wordmark { font-size: 1.15rem; }
    .search-bar { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
    .topbar-right { font-size: .78rem; }
    .partner-caption { font-size: .75rem; }
}

.dashboard-brand-mark { width: min(190px, 28vw); flex: 0 0 auto; position: relative; z-index: 1; }
.dashboard-brand-mark img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 18px rgba(157,48,101,.13)); }
@media (max-width: 900px) { .dashboard-brand-mark { width: 150px; } }
