/* MOIT Hosting Control Panel — sobre et clair : en-tête blanc, barre anthracite, cartes blanches sur gris, un seul accent bleu. */
:root {
  --bg: #e6e6e6;
  --card: #fff;
  --text: #1f1f1f;
  --muted: #767676;
  --line: #d6d6d6;
  --soft: #f3f4f6;
  --bar: #33373d;
  --bar-line: #4a4f56;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #e8eefc;
  --ok: #16a34a;
  --warn: #b45309;
  --danger: #c62828;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 Ubuntu, "Helvetica Neue", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- En-tête ---------- */
.top { background: var(--card); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo img { width: 52px; height: 52px; }
.logo span { display: flex; flex-direction: column; line-height: 1.1; }
.logo b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.logo small { font-size: 19px; font-weight: 500; color: #3a3a3a; }
.top-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.top-links .row1, .top-links .row2 { display: flex; align-items: center; gap: 22px; }
.top-links a, .menu summary { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; color: var(--accent); }
.top-links .row2 { font-size: 13px; }
.top-links .row2 a { font-size: 15px; }
.top-links i { font-size: 18px; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu > div { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); min-width: 190px; z-index: 20; padding: 6px 0; }
.menu > div a, .menu > div button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 14px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.menu > div a:hover, .menu > div button:hover { background: var(--soft); }
.menu > div a[aria-current] { font-weight: 700; }
.menu form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

/* ---------- Barre de navigation ---------- */
.bar { background: var(--bar); border-bottom: 3px solid #23262b; }
.bar-in { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; }
.bar a { display: inline-flex; align-items: center; gap: 8px; color: #eef0f2; padding: 13px 14px; font-size: 14px; border-right: 1px solid var(--bar-line); }
.bar a:first-child { border-left: 1px solid var(--bar-line); }
.bar a:hover, .bar a[aria-current] { background: #3f444b; color: #fff; }
.bar a[aria-current] { box-shadow: inset 0 -3px 0 var(--accent); }
.bar i { font-size: 18px; }
.search { display: flex; align-items: center; gap: 6px; color: #eef0f2; padding: 0 12px; }
.search i { font-size: 18px; }
.search input { width: 170px; border: 0; border-bottom: 1px solid var(--bar-line); background: transparent; color: #fff; font: 14px Ubuntu, sans-serif; padding: 6px 2px; outline: none; }
.search input:focus { border-color: #9aa0a8; }
.search input::placeholder { color: #a9aeb5; }

/* ---------- Mise en page ---------- */
.wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; padding: 22px 10px 10px; max-width: 1440px; width: 100%; margin: 0 auto; align-items: start; }
.side { background: var(--card); border: 1px solid var(--line); padding: 18px 16px 20px; }
.side h2 { font-weight: 400; font-size: 21px; margin: 0 0 8px; }
.side h2 + p { margin: 0 0 22px; font-size: 15px; }
.gauge { margin-bottom: 14px; font-size: 13px; color: #3a3a3a; }
.gauge i { display: block; height: 7px; background: #d9d9d9; margin-top: 4px; max-width: 170px; }
.gauge i b { display: block; height: 100%; background: var(--ok); }
.gauge i.warm b { background: #f59e0b; }
.gauge i.hot b { background: var(--danger); }
.main { min-width: 0; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 18px 16px 22px; flex: 1 1 100%; min-width: 0; }
.card.half { flex: 1 1 calc(50% - 10px); }
.card h2 { font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 10px; text-align: center; color: var(--accent); font-size: 15px; line-height: 1.3; border-radius: 4px; transition: background .15s; }
.tile:hover { background: var(--accent-soft); color: var(--accent-hover); }
.tile i { font-size: 56px; color: #2b2f36; }
.tile i::before { color: var(--accent); opacity: .35; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px 22px; margin-top: auto; }

/* ---------- Pages d'outils ---------- */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h1 { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 26px; margin: 0; }
.card-head h1 i { font-size: 40px; color: #2b2f36; }
.card-head h1 i::before { color: var(--accent); opacity: .35; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.inline-form { background: var(--soft); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 18px; }
.inline-form h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.link { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
input, select { height: 38px; border: 1px solid #c4c4c4; padding: 6px 9px; font: 15px Ubuntu, sans-serif; color: var(--text); background: #fff; outline: none; box-shadow: inset 0 1px 2px rgba(10, 10, 10, .08); min-width: 0; }
input:focus, select:focus { border-color: #8a8a8a; box-shadow: 0 0 5px #cacaca; }
.joined { display: inline-flex; align-items: stretch; }
.joined > * + * { margin-left: -1px; }
.joined span { display: grid; place-items: center; padding: 0 10px; background: #eceef1; border: 1px solid #c4c4c4; color: #555; font-size: 14px; }
.joined.small input { width: 90px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 15px Ubuntu, sans-serif; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.ghost { background: #fff; color: var(--accent); border-color: #c4c4c4; }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn.danger { background: #fff; color: var(--danger); border-color: #e3b4b4; padding: 0 11px; }
.btn.danger:hover { background: #fdecec; }
.btn.wide { width: 100%; }
.list { width: 100%; border-collapse: collapse; font-size: 15px; }
.list th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid var(--line); padding: 8px 10px; }
.list td { border-bottom: 1px solid #ececec; padding: 10px; vertical-align: middle; }
.list tr:hover td { background: #fafafa; }
.right { text-align: right; }
.actions { white-space: nowrap; }
.actions > * { display: inline-block; vertical-align: middle; margin-left: 4px; }
.pop { position: relative; }
.pop summary { list-style: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 10px; }
.pill { display: inline-block; padding: 2px 9px; background: #eceef1; font-size: 13px; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; white-space: normal; }
.flash { padding: 11px 14px; margin-bottom: 16px; border-left: 4px solid var(--ok); background: #ecfdf3; }
.flash.err { border-color: var(--danger); background: #fdecec; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card + .card { margin-top: 20px; }
.cards .card + .card { margin-top: 0; }

/* ---------- Connexion ---------- */
.page-login { background: var(--bg); }
.mosaic { position: absolute; inset: 0 0 auto; height: 102px; display: grid; grid-template-columns: repeat(auto-fill, 34px); grid-auto-rows: 34px; overflow: hidden; }
.mosaic i { display: block; }
.login-brand { position: relative; display: flex; justify-content: center; padding: 128px 16px 0; }
.login-brand img { height: 38px; width: auto; }
.login { position: relative; display: flex; justify-content: center; gap: 32px; padding: 34px 16px 0; }
.lcard { background: var(--card); width: 418px; padding: 28px 29px 30px; }
.lcard h1, .lcard h2 { font-weight: 400; text-transform: uppercase; text-align: center; margin: 0 0 30px; font-size: 24px; line-height: 1.3; }
.lcard h2.small { font-size: 20px; margin-bottom: 18px; }
.group { display: flex; margin-bottom: 16px; }
.group span { width: 53px; flex: none; display: grid; place-items: center; background: var(--bg); border: 1px solid #cacaca; border-right: 0; font-size: 18px; }
.group input { flex: 1; height: 40px; font-size: 16px; }
.group input::placeholder { color: #b5b5b5; }
.lcard .btn.wide { height: 41px; border: 0; }
.forgot { text-align: right; margin-top: 10px; }
.sub { text-align: center; margin: 34px 0 6px; font-size: 20px; }
.client { text-align: center; color: var(--muted); font-size: 15px; margin: 0; }
.news { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: center; }
.badge { background: #3adb76; color: #0a0a0a; font-size: 13px; padding: 4px 8px; }
.news p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 16px; }
.lcard hr { border: 0; border-bottom: 1px solid #cacaca; margin: 20px 0; }
.help { display: flex; gap: 26px; align-items: center; justify-content: center; }
.help > i { font-size: 72px; color: #1f1f1f; }
.help ul { list-style: none; margin: 0; padding: 0; }
.lfoot { text-align: center; color: var(--muted); font-size: 14px; padding: 42px 16px 18px; margin-top: auto; }
.langs { display: flex; justify-content: center; gap: 14px; margin-bottom: 6px; }
.langs a { color: var(--muted); }
.langs a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Petits écrans ---------- */
@media (max-width: 1100px) {
  .card.half { flex-basis: 100%; }
}
@media (max-width: 860px) {
  .top { flex-wrap: wrap; padding: 10px 16px; }
  .logo img { width: 42px; height: 42px; }
  .logo b { font-size: 20px; }
  .logo small { font-size: 15px; }
  .top-links { align-items: flex-start; }
  .bar-in { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .bar a { white-space: nowrap; }
  .search { display: none; }
  .wrap { grid-template-columns: 1fr; padding: 16px; }
  .side { order: 2; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .tile i { font-size: 46px; }
  .list thead { display: none; }
  .list tr { display: block; border-bottom: 1px solid #ececec; padding: 8px 0; }
  .list td { display: block; border: 0; padding: 3px 4px; }
  .right { text-align: left; }
  .login { flex-direction: column; align-items: center; gap: 20px; }
  .lcard { width: 100%; max-width: 480px; padding: 24px 18px 26px; }
  .lcard h1, .lcard h2 { font-size: 21px; }
}
