/* Minecraft | La Papeterie : theme sombre du site, vert Minecraft en accent. */
:root {
    --mc-bg: #090b12;
    --mc-surface: #111521;
    --mc-surface-2: #171b29;
    --mc-line: #272d3d;
    --mc-text: #f4f6fb;
    --mc-muted: #9aa4b8;
    --mc-green: #3a9d55;
    --mc-green-hover: #46b464;
    --mc-green-soft: #8fe0a3;
    --mc-gold: #f0c05a;
    --mc-red: #ff8f8f;
}

/* ---------- En-tete de section (aussi utilise par les pages d'administration) ---------- */
.mc-subnav { position: relative; z-index: 5; border-bottom: 1px solid #1d2230; background: rgba(12, 15, 22, 0.94); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.mc-subnav-inner { width: min(1180px, calc(100% - 32px)); height: 62px; display: flex; align-items: center; gap: 24px; margin: 0 auto; }
.mc-subnav-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-size: 18px; font-weight: 800; text-decoration: none !important; }
.mc-subnav-brand img { width: 30px; height: 30px; border-radius: 7px; image-rendering: pixelated; }
.mc-subnav-tabs { min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mc-subnav-tabs::-webkit-scrollbar { display: none; }
.mc-subnav-tabs a { flex: 0 0 auto; height: 62px; display: inline-flex; align-items: center; padding: 0 14px; border-bottom: 3px solid transparent; color: #aab3c5 !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.mc-subnav-tabs a:hover { color: #fff !important; }
.mc-subnav-tabs a.is-active { border-bottom-color: var(--mc-green); color: #fff !important; }

/* ---------- Pages publiques ---------- */
body.mc-page { min-height: 100vh; margin: 0; color: var(--mc-text); background: radial-gradient(circle at 0 0, rgba(58, 157, 85, 0.14), transparent 38rem), var(--mc-bg); background-attachment: fixed; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
body.mc-page *, body.mc-page *::before, body.mc-page *::after { box-sizing: border-box; }
body.mc-page [hidden] { display: none !important; }
.mc-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 60px; }
.mc-page h1, .mc-page h2, .mc-page h3 { margin: 0; letter-spacing: 0; line-height: 1.15; }
.mc-page p { margin: 0; }
.mc-page a { color: var(--mc-green-soft); }
.mc-eyebrow { margin: 0 0 8px !important; color: var(--mc-green-soft); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mc-muted { color: var(--mc-muted); }
.mc-section { margin-top: 34px; }
.mc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mc-section-head h2 { font-size: 21px; }
.mc-section-head p { color: var(--mc-muted); font-size: 14px; }

/* Boutons */
.mc-btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--mc-line); border-radius: 9px; color: #edf0f7 !important; background: #151926; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.mc-btn:hover { border-color: #66718b; background: #1b2030; }
.mc-btn-primary { border-color: var(--mc-green); color: #fff !important; background: var(--mc-green); }
.mc-btn-primary:hover { border-color: var(--mc-green-hover); background: var(--mc-green-hover); transform: translateY(-1px); }
.mc-btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.mc-btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.mc-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Alertes */
.mc-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #2f5d49; border-radius: 9px; color: #b9f0d0; background: #152b22; font-weight: 600; }
.mc-alert.is-error { border-color: #703641; color: #ffbdc6; background: #321a20; }

/* Panneaux */
.mc-panel { padding: 22px; border: 1px solid var(--mc-line); border-radius: 12px; background: var(--mc-surface); }
.mc-panel h2 { font-size: 18px; }

/* ---------- Accueil Minecraft ---------- */
.mc-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 22px; align-items: stretch; }
.mc-hero-main { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 34px; border: 1px solid #24402d; border-radius: 14px; background: radial-gradient(circle at 100% 0, rgba(58, 157, 85, 0.3), transparent 55%), linear-gradient(135deg, #12201a, #0f141d 70%); }
.mc-hero-main::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 230px; height: 230px; background: url('/Minecraft/Images/icon.png') center / cover; image-rendering: pixelated; opacity: 0.12; transform: rotate(-12deg); border-radius: 30px; }
.mc-hero-main > * { position: relative; z-index: 1; }
.mc-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.mc-hero-lead { max-width: 560px; color: #b6c2d6; font-size: 16px; }
.mc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.mc-player { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--mc-line); border-radius: 14px; background: var(--mc-surface); }
.mc-player-id { display: flex; align-items: center; gap: 14px; }
.mc-player-id strong { display: block; font-size: 20px; }
.mc-player-id small { color: var(--mc-muted); font-size: 13px; }
.mc-player-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mc-player-stats div { padding: 12px; border: 1px solid var(--mc-line); border-radius: 10px; background: #0f131d; }
.mc-player-stats strong { display: block; font-size: 22px; }
.mc-player-stats span { color: var(--mc-muted); font-size: 12px; }
.mc-player-guest { display: grid; gap: 12px; color: var(--mc-muted); }

/* Tete de skin : visage 8x8 + chapeau, decoupes dans la texture 64x64 */
.mc-head { --skin: url('/Minecraft/Images/defaultskin.png'); --size: 56px; position: relative; width: var(--size); height: var(--size); flex: 0 0 auto; display: inline-block; overflow: hidden; border-radius: 8px; background-image: var(--skin); background-size: calc(var(--size) * 8) calc(var(--size) * 8); background-position: calc(var(--size) * -1) calc(var(--size) * -1); image-rendering: pixelated; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.mc-head span { position: absolute; inset: 0; background-image: var(--skin); background-size: inherit; background-position: calc(var(--size) * -5) calc(var(--size) * -1); image-rendering: pixelated; }
.mc-head-sm { --size: 32px; border-radius: 6px; }
.mc-head-lg { --size: 72px; border-radius: 10px; }

/* Etapes */
.mc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: mc-step; }
.mc-steps li { position: relative; display: grid; gap: 6px; padding: 18px 18px 18px 64px; border: 1px solid var(--mc-line); border-radius: 12px; background: var(--mc-surface); counter-increment: mc-step; }
.mc-steps li::before { content: counter(mc-step); position: absolute; top: 18px; left: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--mc-green); font-weight: 800; }
.mc-steps strong { font-size: 15px; }
.mc-steps span { color: var(--mc-muted); font-size: 14px; }
.mc-steps a { font-weight: 700; }

/* Serveurs */
.mc-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.mc-server { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--mc-line); border-radius: 14px; background: var(--mc-surface); transition: border-color 0.15s, transform 0.15s; }
.mc-server:hover { border-color: #3c4a5e; transform: translateY(-2px); }
.mc-server-banner { position: relative; height: 150px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--bg, linear-gradient(135deg, #1d3a26, #111521)); background-size: cover; background-position: center; }
.mc-server-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 11, 18, 0.05), rgba(17, 21, 33, 0.95)); }
.mc-server-banner > * { position: relative; }
.mc-server-banner h3 { font-size: 24px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.mc-server-body { flex: 1; display: grid; gap: 14px; padding: 16px; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-chip { min-height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--mc-line); border-radius: 13px; color: #c9d0dd; background: #0f131d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mc-chip.is-ok { border-color: #2f5d3a; color: var(--mc-green-soft); background: #13241a; }
.mc-chip.is-wait { border-color: #6b5521; color: var(--mc-gold); background: #2a2212; }
.mc-chip.is-lock { border-color: #6a2f39; color: var(--mc-red); background: #2a161b; }
.mc-status { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mc-status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #5d6678; }
.mc-status.is-online .mc-status-dot { background: #46d36c; box-shadow: 0 0 0 4px rgba(70, 211, 108, 0.18); }
.mc-status.is-offline .mc-status-dot { background: #e26776; }
.mc-status.is-loading .mc-status-dot { animation: mc-pulse 1s ease-in-out infinite; }
@keyframes mc-pulse { 50% { opacity: 0.3; } }
.mc-status-bar { flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: #222838; }
.mc-status-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--mc-green); transition: width 0.4s; }
.mc-address { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 1px dashed #333b4f; border-radius: 9px; background: #0d1018; }
.mc-address code { min-width: 0; flex: 1; overflow: hidden; color: #d5dbe6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mc-server-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--mc-line); background: #0f131d; }
.mc-server-foot p { color: var(--mc-muted); font-size: 13px; }
.mc-server-foot form { margin: 0; }

/* News + amis */
.mc-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.mc-news { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.mc-news li { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--mc-line); border-radius: 10px; background: #0f131d; }
.mc-news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mc-news-head strong { font-size: 15px; }
.mc-news-head small { color: var(--mc-muted); font-size: 12px; white-space: nowrap; }
.mc-news-content { color: #c6cde0; font-size: 14px; }
.mc-friends { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.mc-friends li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 9px; }
.mc-friends li:hover { background: #171c29; }
.mc-friends-text { min-width: 0; flex: 1; display: grid; }
.mc-friends-text strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.mc-friends-text small { color: var(--mc-muted); font-size: 12px; }
.mc-empty { margin-top: 12px; color: var(--mc-muted); font-size: 14px; }

/* ---------- Profil ---------- */
.mc-profile { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.mc-skin-card { position: sticky; top: 16px; display: grid; gap: 14px; padding: 22px; border: 1px solid var(--mc-line); border-radius: 14px; background: var(--mc-surface); text-align: center; }
.mc-skin-card h2 { font-size: 22px; }
.mc-skin-card .mc-muted { font-size: 13px; }
.mc-skin-stage { position: relative; min-height: 330px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--mc-line); border-radius: 12px; background: radial-gradient(circle at 50% 28%, rgba(58, 157, 85, 0.25), transparent 62%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 28px), #0d1018; perspective: 900px; }
.mc-skin-stage::after { content: ""; position: absolute; bottom: 26px; left: 50%; width: 120px; height: 16px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); filter: blur(6px); transform: translateX(-50%); }
.mc-skin-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.mc-uuid { overflow-wrap: anywhere; color: #7f899d; font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.mc-form { display: grid; gap: 18px; }
.mc-field { display: grid; gap: 8px; }
.mc-field label, .mc-field .mc-label { color: #d5dbe6; font-size: 14px; font-weight: 700; }
.mc-field small { color: var(--mc-muted); font-size: 13px; }
.mc-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--mc-line); border-radius: 9px; outline: none; color: var(--mc-text); background: #0d1018; font: inherit; font-size: 16px; }
.mc-input:focus { border-color: var(--mc-green); box-shadow: 0 0 0 3px rgba(58, 157, 85, 0.22); }
.mc-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed #333b4f; border-radius: 12px; background: #0d1018; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.mc-drop:hover, .mc-drop.is-dragging { border-color: var(--mc-green); background: #101a14; }
.mc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mc-drop-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #1a2a20; font-size: 22px; }
.mc-drop strong { display: block; font-size: 15px; }
.mc-drop small { color: var(--mc-muted); font-size: 13px; }
.mc-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc-info-list { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.mc-info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--mc-line); font-size: 14px; }
.mc-info-list li:last-child { border-bottom: 0; }
.mc-info-list span { color: var(--mc-muted); }
.mc-info-list strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }

/* Skin en 3D (reprend l'apercu existant) */
.skin-avatar { --skin: none; --px: 7px; position: relative; z-index: 1; width: 150px; height: 300px; transform-style: preserve-3d; transform: rotateX(-8deg) rotateY(-18deg); animation: skinTurn 6s ease-in-out infinite; }
.skin-part { position: absolute; background-image: var(--skin); background-size: calc(64 * var(--px)) calc(64 * var(--px)); image-rendering: pixelated; box-shadow: inset -12px -10px 0 rgba(0, 0, 0, 0.12); transform-style: preserve-3d; }
.skin-part::before, .skin-part::after { content: ""; position: absolute; background-image: var(--skin); background-size: calc(64 * var(--px)) calc(64 * var(--px)); image-rendering: pixelated; filter: brightness(0.82); }
.skin-part::before { inset: 0 auto 0 100%; width: 18px; transform-origin: left center; transform: rotateY(90deg); background-position: inherit; }
.skin-part::after { inset: auto 0 100% 0; height: 18px; transform-origin: bottom center; transform: rotateX(90deg); background-position: inherit; filter: brightness(1.08); }
.skin-head { left: 47px; top: 0; width: calc(8 * var(--px)); height: calc(8 * var(--px)); background-position: calc(-8 * var(--px)) calc(-8 * var(--px)); }
.skin-body { left: 47px; top: 62px; width: calc(8 * var(--px)); height: calc(12 * var(--px)); background-position: calc(-20 * var(--px)) calc(-20 * var(--px)); }
.skin-arm-left, .skin-arm-right { top: 62px; width: calc(4 * var(--px)); height: calc(12 * var(--px)); background-position: calc(-44 * var(--px)) calc(-20 * var(--px)); }
.skin-arm-left { left: 15px; transform: rotateZ(4deg); }
.skin-arm-right { left: 105px; transform: rotateZ(-4deg); }
.skin-leg-left, .skin-leg-right { top: 150px; width: calc(4 * var(--px)); height: calc(12 * var(--px)); background-position: calc(-4 * var(--px)) calc(-20 * var(--px)); }
.skin-leg-left { left: 47px; }
.skin-leg-right { left: 78px; }
@keyframes skinTurn { 0%, 100% { transform: rotateX(-8deg) rotateY(-22deg); } 50% { transform: rotateX(-5deg) rotateY(20deg); } }

/* ---------- Launcher ---------- */
.mc-download { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 18px; align-items: stretch; }
.mc-download-main { display: grid; gap: 16px; align-content: center; padding: 34px; border: 1px solid #24402d; border-radius: 14px; background: radial-gradient(circle at 100% 0, rgba(58, 157, 85, 0.28), transparent 55%), linear-gradient(135deg, #12201a, #0f141d 70%); }
.mc-download-main h1 { font-size: clamp(30px, 4vw, 42px); }
.mc-download-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-download-note { color: var(--mc-muted); font-size: 13px; }
.mc-faq { display: grid; gap: 10px; }
.mc-faq details { border: 1px solid var(--mc-line); border-radius: 10px; background: var(--mc-surface); }
.mc-faq summary { padding: 14px 16px; font-weight: 700; cursor: pointer; }
.mc-faq details p { padding: 0 16px 14px; color: #c6cde0; font-size: 14px; }

/* Toast */
.mc-toast { position: fixed; left: 50%; bottom: 22px; z-index: 1000; padding: 11px 16px; border: 1px solid #3b455d; border-radius: 9px; color: #f4f6fb; background: #1b2131; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 0.2s, transform 0.2s; }
.mc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .mc-hero, .mc-columns, .mc-profile, .mc-download { grid-template-columns: 1fr; }
    .mc-steps { grid-template-columns: 1fr; }
    .mc-skin-card { position: static; }
}
@media (max-width: 620px) {
    .mc-main { padding-top: 18px; }
    .mc-subnav-inner { height: 54px; gap: 12px; }
    .mc-subnav-brand span { display: none; }
    .mc-subnav-tabs a { height: 54px; padding: 0 11px; font-size: 14px; }
    .mc-hero-main, .mc-download-main { padding: 24px 20px; }
    .mc-hero-actions .mc-btn { flex: 1 1 auto; }
    .mc-servers { grid-template-columns: 1fr; }
    .mc-server-foot { flex-direction: column; align-items: stretch; }
    .mc-server-foot .mc-btn { width: 100%; }
    .mc-section-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .skin-avatar, .mc-status.is-loading .mc-status-dot { animation: none; }
    .mc-server, .mc-btn { transition: none; }
}

/* ---------- Administration ---------- */
.mca-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mca-head h1 { font-size: clamp(28px, 3.4vw, 36px); }
.mca-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mca-tabs { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; border-bottom: 1px solid var(--mc-line); scrollbar-width: none; }
.mca-tabs::-webkit-scrollbar { display: none; }
.mca-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 3px solid transparent; color: #aab3c5 !important; font-size: 15px; font-weight: 700; text-decoration: none !important; }
.mca-tabs a:hover { color: #fff !important; }
.mca-tabs a.is-active { border-bottom-color: var(--mc-green); color: #fff !important; }
.mca-badge { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 11px; color: #1b1405; background: var(--mc-gold); font-size: 12px; font-weight: 800; }

.mca-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mca-stat { position: relative; display: grid; gap: 2px; padding: 18px; border: 1px solid var(--mc-line); border-radius: 12px; color: var(--mc-text) !important; background: var(--mc-surface); text-decoration: none !important; }
a.mca-stat:hover { border-color: #3c4a5e; }
.mca-stat strong { font-size: 30px; line-height: 1.1; }
.mca-stat strong small { color: var(--mc-muted); font-size: 16px; font-weight: 600; }
.mca-stat > span:last-child { color: var(--mc-muted); font-size: 13px; }
.mca-stat-icon { position: absolute; top: 16px; right: 16px; font-size: 22px; opacity: 0.85; }
.mca-stat.is-alert { border-color: #6b5521; background: linear-gradient(180deg, rgba(240, 192, 90, 0.12), transparent 70%), var(--mc-surface); }
.mca-stat.is-alert strong { color: var(--mc-gold); }

.mca-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mca-columns + .mc-panel, .mc-panel + .mca-columns, .mca-content > .mc-panel + .mc-panel { margin-top: 16px; }
.mca-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mca-panel-head h2 { font-size: 18px; }
.mca-lead { margin: 6px 0 16px !important; font-size: 14px; }
.mca-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 10px; border: 1px dashed #333b4f; border-radius: 10px; color: var(--mc-muted); text-align: center; font-size: 14px; }
.mca-empty > span { font-size: 26px; }
.mca-list { display: grid; margin: 0; padding: 0; list-style: none; }
.mca-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--mc-line); }
.mca-list li:last-child { border-bottom: 0; }
.mca-list form { margin: 0; }
.mca-list-text { min-width: 0; flex: 1; display: grid; gap: 4px; }
.mca-list-text strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.mca-list-text small { color: var(--mc-muted); font-size: 12px; }
.mca-list-text small b { color: #d5dbe6; }
.mca-inline-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mca-server-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #dff7e6; background: linear-gradient(135deg, #2c7a43, #1b3f28); font-size: 16px; font-weight: 800; }
.mca-server-icon-lg { width: 54px; height: 54px; border-radius: 12px; font-size: 24px; }
.mca-btn-danger { border-color: #6a2f39 !important; color: #ffb3bd !important; background: #2a161b !important; }
.mca-btn-danger:hover { border-color: #e26776 !important; color: #fff !important; background: #4a1a25 !important; }

/* Serveurs : liste a gauche + contenu */
.mca-split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.mca-server-nav { position: sticky; top: 16px; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--mc-line); border-radius: 12px; background: var(--mc-surface); }
.mca-side-label { margin: 2px 6px 6px !important; color: var(--mc-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mca-server-link { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: 9px; color: var(--mc-text) !important; text-decoration: none !important; }
.mca-server-link:hover { background: #171c29; }
.mca-server-link.is-active { border-color: #2f5d3a; background: #13241a; }
.mca-server-link .mca-list-text strong { font-size: 14px; }
.mca-server-add { margin-top: 6px; border-top: 1px solid var(--mc-line); border-radius: 0 0 9px 9px; padding-top: 12px; }
.mca-server-add .mca-server-icon { color: var(--mc-green-soft); background: #13241a; font-size: 20px; }
.mca-content { min-width: 0; }
.mca-server-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid #24402d; border-radius: 12px; background: radial-gradient(circle at 100% 0, rgba(58, 157, 85, 0.22), transparent 55%), var(--mc-surface); }
.mca-server-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mca-server-title h2 { font-size: 24px; overflow-wrap: anywhere; }
.mca-server-title p { font-size: 14px; }
.mca-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.mca-toggles form { margin: 0; }
.mca-toggle { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 1px solid var(--mc-line); border-radius: 10px; color: var(--mc-text); background: #0f131d; font: inherit; text-align: left; cursor: pointer; }
.mca-toggle:hover { border-color: #3c4a5e; }
.mca-toggle > span:last-child { display: grid; }
.mca-toggle strong { font-size: 14px; }
.mca-toggle small { color: var(--mc-muted); font-size: 12px; }
.mca-switch-ui { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border-radius: 11px; background: #3a4255; transition: background 0.15s; }
.mca-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.mca-toggle.is-on .mca-switch-ui, .mca-switch input:checked + .mca-switch-ui { background: var(--mc-green); }
.mca-toggle.is-on .mca-switch-ui::after, .mca-switch input:checked + .mca-switch-ui::after { transform: translateX(16px); }
.mca-switch { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.mca-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mca-switch input:focus-visible + .mca-switch-ui { outline: 2px solid #fff; outline-offset: 2px; }
.mca-switch > span:last-child { display: grid; }
.mca-switch strong { font-size: 14px; }
.mca-switch small { color: var(--mc-muted); font-size: 13px; }
.mca-anchors { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.mca-anchors a { padding: 6px 12px; border: 1px solid var(--mc-line); border-radius: 16px; color: #c9d0dd !important; background: #0f131d; font-size: 13px; font-weight: 700; text-decoration: none !important; }
.mca-anchors a:hover { border-color: var(--mc-green); color: #fff !important; }
.mca-pending { margin-bottom: 16px; border-color: #6b5521; background: linear-gradient(180deg, rgba(240, 192, 90, 0.08), transparent 60%), var(--mc-surface); }
.mc-panel { scroll-margin-top: 16px; }
.mca-filter { height: 40px; margin-bottom: 8px; font-size: 14px; }
.mca-pick { max-height: 360px; overflow-y: auto; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mca-pick label { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.mca-pick label:hover { background: #171c29; }
.mca-pick label:has(input:checked) { border-color: #2f5d3a; background: #13241a; }
.mca-pick input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--mc-green); }
.mca-pick-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mc-line); font-size: 14px; }
.mca-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.mca-fieldset legend { margin-bottom: 10px; color: var(--mc-green-soft); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.mca-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mca-grid-status { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 110px; }
select.mc-input { appearance: auto; }
.mca-textarea { height: auto; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; resize: vertical; }
.mca-bg { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.mca-bg-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--mc-line); border-radius: 10px; }
.mca-bg-empty { display: grid; place-items: center; color: var(--mc-muted); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px), #0d1018; font-size: 13px; }
.mca-bg-actions { display: grid; gap: 10px; }
.mca-check { display: inline-flex; align-items: center; gap: 8px; color: #d5dbe6; font-size: 14px; cursor: pointer; }
.mca-check input { accent-color: var(--mc-red); }
.mca-advanced { border: 1px solid var(--mc-line); border-radius: 10px; background: #0f131d; }
.mca-advanced summary { padding: 12px 14px; font-weight: 700; cursor: pointer; }
.mca-advanced-body { display: grid; gap: 16px; padding: 4px 14px 16px; }
.mca-danger { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-color: #4b2630; }
.mca-danger p { margin-top: 4px !important; font-size: 14px; }
.mca-danger form { margin: 0; }

/* News */
.mca-news-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mca-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--mc-line); border-bottom: 0; border-radius: 9px 9px 0 0; background: #151926; }
.mca-tool { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid #2f3648; border-radius: 7px; color: #e6e9f2; background: #0f131d; font: inherit; font-weight: 800; cursor: pointer; }
.mca-tool:hover, .mca-tool:focus-visible { border-color: #66718b; }
.mca-tool.is-active { border-color: var(--mc-green); color: var(--mc-green-soft); background: #13241a; }
.mca-tool-color { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; height: 32px; border: 1px solid #2f3648; border-radius: 7px; background: #0f131d; color: var(--mc-muted); font-size: 12px; cursor: pointer; }
.mca-tool-color input { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.mca-tool-sep { width: 1px; height: 22px; background: #2f3648; }
.mca-editor { min-height: 200px; max-height: 420px; overflow: auto; padding: 14px; border: 1px solid var(--mc-line); border-radius: 0 0 9px 9px; color: var(--mc-text); background: #0d1018; line-height: 1.55; outline: none; }
.mca-editor:focus { border-color: var(--mc-green); box-shadow: 0 0 0 3px rgba(58, 157, 85, 0.22); }
.mca-editor:empty::before { content: attr(data-placeholder); color: #6d778b; }
.mca-news-item { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--mc-line); border-radius: 10px; background: #0f131d; }
.mca-news-item.is-pinned { border-color: #6b5521; }
.mca-news-item + .mca-news-item { margin-top: 10px; }
.mca-news-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mca-news-top strong { font-size: 16px; }
.mca-news-top small { display: block; color: var(--mc-muted); font-size: 12px; }
.mca-news-body { color: #c6cde0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.mca-news-body p { margin: 0 0 6px; }
.mca-news-body a { color: var(--mc-green-soft); }

@media (max-width: 1020px) {
    .mca-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mca-columns, .mca-news-layout { grid-template-columns: 1fr; }
    .mca-split { grid-template-columns: 1fr; }
    .mca-server-nav { position: static; display: flex; overflow-x: auto; padding: 8px; }
    .mca-side-label { display: none; }
    .mca-server-link { flex: 0 0 auto; }
    .mca-server-add { margin-top: 0; padding-top: 8px; border-top: 0; border-radius: 9px; }
}
@media (max-width: 620px) {
    .mca-grid-3, .mca-grid-status, .mca-bg { grid-template-columns: 1fr; }
    .mca-stats { gap: 10px; }
    .mca-stat { padding: 14px; }
    .mca-stat strong { font-size: 24px; }
    .mca-list li { flex-wrap: wrap; }
    .mca-inline-actions { width: 100%; padding-left: 44px; }
    .mca-head-actions { width: 100%; }
    .mca-head-actions .mc-btn { flex: 1 1 auto; }
}
.mc-page .mc-alert { margin: 0 0 18px; }

/* Barres de defilement discretes */
.mc-page textarea, .mca-pick, .mca-editor { }
.mc-page textarea::-webkit-scrollbar, .mca-pick::-webkit-scrollbar, .mca-editor::-webkit-scrollbar { width: 8px; }
.mc-page textarea::-webkit-scrollbar-thumb, .mca-pick::-webkit-scrollbar-thumb, .mca-editor::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #2f6b42 padding-box; }
.mc-page textarea::-webkit-scrollbar-thumb:hover, .mca-pick::-webkit-scrollbar-thumb:hover, .mca-editor::-webkit-scrollbar-thumb:hover { background: #46b464 padding-box; }
.mc-page textarea::-webkit-scrollbar-track, .mca-pick::-webkit-scrollbar-track, .mca-editor::-webkit-scrollbar-track { background: transparent; }
.mca-hint { display: block; margin-top: 5px; color: #8a93a6; font-size: 12px; line-height: 1.4; }

/* Amis : ce qu'ils font (envoye par le Y&S Launcher) */
.mc-friends-summary { margin-top: 6px !important; color: var(--mc-muted); font-size: 13px; }
.mc-friends-head { position: relative; flex: 0 0 auto; display: inline-flex; }
.mc-friends-head i { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border: 2px solid var(--mc-surface); border-radius: 50%; background: #5d6678; }
.mc-friends li.is-playing .mc-friends-head i { background: var(--mc-green-hover); box-shadow: 0 0 0 3px rgba(70, 180, 100, 0.25); }
.mc-friends li.is-launcher .mc-friends-head i { background: var(--mc-gold); }
.mc-friends li.is-site .mc-friends-head i { background: #46d36c; }
.mc-friends li.is-playing small { color: var(--mc-green-soft); font-weight: 700; }
.mc-friends li.is-launcher small { color: var(--mc-gold); }
.mc-friends li.is-offline { opacity: 0.72; }

/* Telechargement : un fichier par systeme */
.mc-download-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mc-download-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--mc-line); border-radius: 10px; background: rgba(15, 19, 29, 0.75); }
.mc-download-list li.is-current { border-color: var(--mc-green); }
.mc-download-list span { display: grid; }
.mc-download-list strong { font-size: 14px; }
.mc-download-list small { color: var(--mc-muted); font-size: 12px; }
.mc-download-note code { padding: 1px 5px; border-radius: 4px; background: #0d1018; font-size: 12px; }
