/* MOIT Hosting Control Panel — identité du site : en-tête bleu nuit, barre en dégradé, cartes blanches en relief,
   icônes dans des pastilles de couleur par famille d'outils. */
:root {
  --night: #0b1220;
  --night-2: #111c38;
  --bg: #eef2f8;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f6f8fc;
  --accent: #2563eb;
  --accent-2: #06b6d4;
  --accent-hover: #1d4ed8;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #e11d48;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --grad: linear-gradient(110deg, #1e3a8a 0%, #2563eb 45%, #0891b2 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Plus Jakarta Sans", Inter, system-ui, 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(--night); color: #e2e8f0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { color: #fff; }
.logo img { width: 44px; height: 44px; filter: drop-shadow(0 6px 16px rgba(37, 99, 235, .45)); }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.logo small { font-size: 13px; font-weight: 500; color: #93c5fd; letter-spacing: .02em; }
.top-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.top-links .row1, .top-links .row2 { display: flex; align-items: center; gap: 20px; }
.top-links a, .menu summary { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; cursor: pointer; color: #cbd5e1; }
.top-links a:hover, .menu summary:hover { color: #fff; }
.top-links .row2 { font-size: 12.5px; }
.top-links .muted { color: #94a3b8; }
.top-links i { font-size: 18px; }
.menu { position: relative; }
.menu summary { list-style: none; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.menu summary::-webkit-details-marker { display: none; }
.menu > div { position: absolute; right: 0; top: calc(100% + 10px); background: var(--card); border-radius: 12px; box-shadow: 0 18px 48px rgba(15, 23, 42, .28); min-width: 200px; z-index: 20; padding: 6px; }
.menu > div a, .menu > div button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 12px; color: var(--text); background: none; border: 0; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.menu > div a:hover, .menu > div button:hover { background: var(--soft); color: var(--text); }
.menu > div a[aria-current] { font-weight: 700; color: var(--accent); }
.menu form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

/* ---------- Barre de navigation ---------- */
.bar { background: var(--grad); box-shadow: 0 10px 30px -12px rgba(37, 99, 235, .6); position: sticky; top: 0; z-index: 15; }
.bar-in { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px; max-width: 1440px; margin: 0 auto; padding: 6px 12px; }
.bar a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .88); padding: 9px 14px; font-size: 14px; font-weight: 600; border-radius: 10px; transition: background .15s; }
.bar a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.bar a[aria-current] { background: #fff; color: var(--accent); box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .4); }
.bar i { font-size: 18px; }
.search { display: flex; align-items: center; gap: 6px; color: #fff; margin-left: 10px; padding: 0 12px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.search i { font-size: 17px; }
.search input { width: 170px; border: 0; background: transparent; color: #fff; font: 14px "Plus Jakarta Sans", sans-serif; outline: none; box-shadow: none; height: auto; padding: 0; }
.search input::placeholder { color: rgba(255, 255, 255, .7); }

/* ---------- Mise en page ---------- */
.wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; padding: 26px 24px 10px; max-width: 1440px; width: 100%; margin: 0 auto; align-items: start; }
.wrap.wide { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
.side { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 22px; position: sticky; top: 76px; }
.who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8); }
.who div { display: flex; flex-direction: column; min-width: 0; }
.who small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side h2 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.side h2 + p { margin: 0 0 22px; font-size: 14px; line-height: 1.9; }
.gauge { margin-bottom: 14px; font-size: 13px; }
.gauge span { display: flex; justify-content: space-between; gap: 8px; }
.gauge span b { font-weight: 600; }
.gauge span em { font-style: normal; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.gauge i { display: block; height: 7px; background: #e8edf5; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.gauge i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2563eb, #06b6d4); }
.gauge i.warm b { background: linear-gradient(90deg, #f59e0b, #f97316); }
.gauge i.hot b { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.main { min-width: 0; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px 24px; margin-top: auto; }

/* ---------- Bandeau d'accueil ---------- */
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 26px 28px; margin-bottom: 22px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1d4ed8 0%, #0f1b4d 45%, var(--night) 100%); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, .45), transparent 65%); pointer-events: none; }
.hero .hello { margin: 0 0 4px; color: #bfdbfe; font-size: 14px; }
.hero h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero .sub { margin: 6px 0 0; color: #cbd5e1; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); }
.quick { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 112px; padding: 14px 8px; border-radius: 14px; color: #fff; font-size: 12.5px; font-weight: 600; text-align: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); transition: transform .15s, background .15s; }
.quick a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); color: #fff; }
.quick i { font-size: 28px; color: #fff; }


/* ---------- Cartes d'outils ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px 22px; flex: 1 1 100%; min-width: 0; }
.card.half { flex: 1 1 calc(50% - 11px); }
.card h2 { font-weight: 700; font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.card h2::before { content: ""; width: 6px; height: 20px; border-radius: 4px; background: var(--tone, var(--accent)); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px 14px; text-align: center; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.3; border-radius: 14px; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.tile:hover { background: var(--soft); border-color: var(--line); transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(15, 23, 42, .35); color: var(--text); }
/* Icônes pleines blanches sur pastille en dégradé, à la manière des icônes d'applications. */
.chip { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--tone-a, #60a5fa), var(--tone-b, #1d4ed8));
  box-shadow: 0 10px 20px -10px var(--tone-b, #1d4ed8), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s; }
.chip i { font-size: 28px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18)); }
.tile:hover .chip { transform: scale(1.06) rotate(-3deg); }
.tone-blue { --tone: #2563eb; --tone-a: #60a5fa; --tone-b: #1d4ed8; }
.tone-violet { --tone: #7c3aed; --tone-a: #a78bfa; --tone-b: #6d28d9; }
.tone-teal { --tone: #0d9488; --tone-a: #2dd4bf; --tone-b: #0f766e; }
.tone-amber { --tone: #d97706; --tone-a: #fbbf24; --tone-b: #ea580c; }
.tone-rose { --tone: #e11d48; --tone-a: #fb7185; --tone-b: #be123c; }

/* ---------- Outils intégrés ---------- */
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tool-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; font-weight: 800; }
.tool-head .chip { width: 44px; height: 44px; border-radius: 12px; }
.tool-head .chip i { font-size: 24px; }
.tool-frame { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: calc(100vh - 190px); min-height: 520px; }
.tool-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tool-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-weight: 600; background: var(--card); }
.tool-loading span { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #dbe5ff; border-top-color: var(--accent); animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* ---------- Pages natives ---------- */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h1 { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; margin: 0; }
.card-head h1 i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(145deg, #60a5fa, #1d4ed8); box-shadow: 0 10px 20px -10px #1d4ed8; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); }
.card-head .back { box-shadow: none; background: var(--soft); }
.inline-form { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px; }
.inline-form h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.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; font-weight: 600; }
input, select { height: 40px; border: 1px solid #cfd8e6; border-radius: 10px; padding: 6px 12px; font: 14.5px "Plus Jakarta Sans", sans-serif; color: var(--text); background: #fff; outline: none; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.joined { display: inline-flex; align-items: stretch; }
.joined > * { border-radius: 0; }
.joined > :first-child { border-radius: 10px 0 0 10px; }
.joined > :last-child { border-radius: 0 10px 10px 0; }
.joined > * + * { margin-left: -1px; }
.joined span { display: grid; place-items: center; padding: 0 12px; background: #eef2f8; border: 1px solid #cfd8e6; color: #475569; font-size: 14px; }
.joined.small input { width: 90px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; font: 600 14.5px "Plus Jakarta Sans", sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .9); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid #cfd8e6; box-shadow: none; }
.btn.ghost:hover { background: #eef4ff; color: var(--accent-hover); }
.joined .btn.ghost { border-radius: 0 10px 10px 0; }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #fecdd6; box-shadow: none; padding: 0 12px; }
.btn.danger:hover { background: #fff1f3; }
.btn.wide { width: 100%; }
.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.list th { text-align: left; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); padding: 10px 12px; }
.list td { border-bottom: 1px solid #eef2f7; padding: 12px; vertical-align: middle; }
.list tr:hover td { background: #fafcff; }
.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-radius: 12px; box-shadow: 0 18px 40px rgba(15, 23, 42, .22); padding: 10px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #eef2f8; font-size: 12.5px; font-weight: 600; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; white-space: normal; }
.flash { padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; border-left: 4px solid var(--ok); background: #ecfdf5; font-weight: 500; }
.flash.err { border-color: var(--danger); background: #fff1f3; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card + .card { margin-top: 22px; }
.cards .card + .card { margin-top: 0; }

/* ---------- Connexion ---------- */
.page-login { background: radial-gradient(120% 80% at 50% 0%, #13235a 0%, var(--night) 60%); color: #e2e8f0; }
.mosaic { position: absolute; inset: 0 0 auto; height: 136px; display: grid; grid-template-columns: repeat(auto-fill, 34px); grid-auto-rows: 34px; overflow: hidden; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.mosaic i { display: block; }
.login-brand { position: relative; display: flex; justify-content: center; padding: 120px 16px 0; }
.login-brand img { height: 40px; width: auto; }
.login { position: relative; display: flex; justify-content: center; gap: 28px; padding: 34px 16px 0; }
.lcard { background: var(--card); color: var(--text); width: 420px; padding: 30px 30px 32px; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.lcard h1, .lcard h2 { font-weight: 800; text-transform: uppercase; text-align: center; margin: 0 0 26px; font-size: 20px; letter-spacing: .02em; }
.lcard h2.small { font-size: 16px; margin-bottom: 16px; }
.group { display: flex; margin-bottom: 14px; }
.group span { width: 50px; flex: none; display: grid; place-items: center; background: #eef2f8; border: 1px solid #cfd8e6; border-right: 0; border-radius: 10px 0 0 10px; font-size: 18px; color: #475569; }
.group input { flex: 1; height: 44px; font-size: 15px; border-radius: 0 10px 10px 0; }
.lcard .btn.wide { height: 46px; font-size: 15.5px; }
.forgot { text-align: right; margin-top: 10px; font-size: 14px; }
.lcard .lead-in { margin: -12px 0 20px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lcard .lead-in .ph { font-size: 18px; vertical-align: -3px; }
.lcard .reset-hint { margin: -4px 0 16px; }
.lcard .reset-help { margin-top: 18px; text-align: center; }
.sub { text-align: center; margin: 30px 0 6px; font-size: 17px; font-weight: 700; }
.client { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.news { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; align-items: center; }
.badge { background: linear-gradient(90deg, #10b981, #06b6d4); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.news p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14.5px; color: #334155; }
.lcard hr { border: 0; border-bottom: 1px solid var(--line); margin: 22px 0; }
.help { display: flex; gap: 22px; align-items: center; justify-content: center; }
.help > i { font-size: 64px; color: var(--accent); }
.help ul { list-style: none; margin: 0; padding: 0; line-height: 1.8; font-size: 14.5px; }
.lfoot { text-align: center; color: #94a3b8; font-size: 13px; padding: 40px 16px 20px; margin-top: auto; }
.langs { display: flex; justify-content: center; gap: 14px; margin-bottom: 6px; }
.langs a { color: #94a3b8; }
.langs a[aria-current] { color: #fff; 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: 38px; height: 38px; }
  .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; position: static; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 22px; }
  .quick a { width: calc(50% - 5px); }
  .quick { width: 100%; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .list thead { display: none; }
  .list tr { display: block; border-bottom: 1px solid #eef2f7; 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; }
  .tool-frame { height: calc(100vh - 230px); }
}

/* ---------- Changement d'offre ---------- */
.up-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #f59e0b, #ea580c); }
.up-link:hover { color: #fff; filter: brightness(1.08); }
.gauge-up { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 12px; font-weight: 700; color: #ea580c; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.plan { position: relative; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; }
.plan.current { border-color: #cfd8e6; }
.plan.reco { border-color: var(--accent); box-shadow: 0 24px 48px -20px rgba(37, 99, 235, .55); }
.plan h2 { margin: 0; font-size: 20px; font-weight: 800; }
.price { margin: 0; color: var(--muted); }
.price b { font-size: 30px; color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; flex: 1; }
.plan li { display: flex; align-items: center; gap: 8px; }
.plan li i { color: var(--accent); font-size: 18px; }
.ribbon { position: absolute; top: -12px; right: 18px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); }
.btn.static { cursor: default; transform: none; }
.up-hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; }
.warmup { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; left: -9999px; }

/* ---------- Gestionnaire de fichiers ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; }
.crumbs a:hover { background: #e6eeff; }
.crumbs .sep { color: #94a3b8; font-size: 12px; }
.crumbs-plain { margin: -8px 0 12px; }
.fm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.fm-count { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.dropzone { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; margin-bottom: 16px; border: 2px dashed #c7d4ea; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone i { font-size: 26px; color: var(--accent); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.on { border-color: var(--accent); background: #eef4ff; color: var(--accent); }
.dropzone.sending { border-style: solid; border-color: var(--accent); background: #eef4ff; pointer-events: none; }
.dropzone.sending span::after { content: " …"; }
.fm-name { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); word-break: break-all; }
a.fm-name:hover { color: var(--accent); }
.chip.sm { width: 34px; height: 34px; border-radius: 10px; flex: none; box-shadow: 0 6px 12px -8px var(--tone-b, #1d4ed8); }
.chip.sm i { font-size: 17px; }
.fm-list td { padding-top: 8px; padding-bottom: 8px; }
.kebab { position: relative; display: inline-block; }
.kebab summary { list-style: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #475569; font-size: 20px; }
.kebab summary::-webkit-details-marker { display: none; }
.kebab summary:hover, .kebab[open] summary { background: var(--soft); }
.kebab > div { position: absolute; right: 0; top: calc(100% + 4px); z-index: 12; min-width: 200px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(15, 23, 42, .22); text-align: left; }
.kebab > div a, .kebab > div button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: 500 14px "Plus Jakarta Sans", sans-serif; color: var(--text); cursor: pointer; text-align: left; }
.kebab > div a:hover, .kebab > div button:hover { background: var(--soft); color: var(--text); }
.kebab > div .danger { color: var(--danger); }
.kebab > div form { margin: 0; }
.kebab i { font-size: 18px; }
/* Boîtes de dialogue */
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .5); }
.dlg::backdrop { background: rgba(11, 18, 32, .55); backdrop-filter: blur(3px); }
.dlg form { padding: 22px; display: grid; gap: 14px; }
.dlg h3 { margin: 0; font-size: 18px; font-weight: 800; }
.dlg label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }
.filepick { position: relative; place-items: center; gap: 8px !important; padding: 26px; border: 2px dashed #c7d4ea; border-radius: 14px; cursor: pointer; text-align: center; }
.filepick i { font-size: 34px; color: var(--accent); }
.filepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Éditeur */
.editor-form { display: grid; gap: 12px; }
.editor-form textarea { width: 100%; min-height: calc(100vh - 360px); resize: vertical; padding: 16px 18px; border: 0; border-radius: 14px; background: #0f172a; color: #e2e8f0; font: 13.5px/1.6 ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace; tab-size: 4; outline: none; box-shadow: inset 0 0 0 1px #1e293b; }
.editor-form textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.editor-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.editor-bar .muted { margin-right: auto; font-size: 13px; font-family: ui-monospace, monospace; }

/* ---------- Zone DNS et PHP ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--text); }
.tabs a[aria-current] { background: var(--grad); color: #fff; border-color: transparent; }
.fields .grow { flex: 1 1 240px; }
.btn.sm { height: 34px; padding: 0 10px; }
.dns-val { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; word-break: break-all; max-width: 520px; }
.pill.type-a, .pill.type-aaaa { background: #e6eeff; color: #1d4ed8; }
.pill.type-cname { background: #f0e9ff; color: #6d28d9; }
.pill.type-mx { background: #e0f7f4; color: #0f766e; }
.pill.type-txt { background: #fff3dc; color: #b45309; }
.pill.type-srv, .pill.type-caa, .pill.type-ns { background: #eef2f8; color: #475569; }
.tech { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.tech summary { cursor: pointer; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; list-style: none; }
.tech summary::-webkit-details-marker { display: none; }
.tech[open] summary i { transform: rotate(90deg); }
.php-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.php-head p { margin: 0; }
.php-ver { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px !important; }
.php-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.versions { display: flex; flex-wrap: wrap; gap: 8px; }
.ver { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ver input { position: absolute; opacity: 0; }
.ver b { font-size: 15px; }
.ver small { color: var(--ok); font-weight: 700; font-size: 11px; }
.ver:has(input:checked) { border-color: var(--accent); background: #eef4ff; }
.ini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ini { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.ini span { display: flex; flex-direction: column; }
.ini code { font-size: 11.5px; color: var(--muted); }
.ini input, .ini select { width: 110px; }
.ver small.new { color: var(--accent); }

/* Sauvegardes */
.bk-full { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.bk-full h2 { margin: 0 0 4px; }
.bk-full p { margin: 0; max-width: 640px; }
.bk-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.bk-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.bk-row > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bk-row b { overflow: hidden; text-overflow: ellipsis; }
.bk-restore { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.bk-restore .fields { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.bk-restore input[type=file] { flex: 1; min-width: 0; }
.list .actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.list .actions { white-space: nowrap; }
.list .actions form { display: inline; }
.bk-grid > .card { margin: 0; }

/* Changement d'offre : récapitulatif à confirmer */
.up-confirm { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; display: grid; gap: 16px; border: 2px solid var(--accent); }
.up-confirm h2 { margin: 0; font-size: 19px; font-weight: 800; }
.up-route { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.up-route > div { display: grid; gap: 2px; min-width: 130px; padding: 12px 16px; border-radius: 14px; background: rgba(29, 78, 216, .06); }
.up-route > div.to { background: rgba(29, 78, 216, .14); }
.up-route small { font-size: 12px; opacity: .7; }
.up-route b { font-size: 18px; }
.up-route span { font-size: 13px; opacity: .8; }
.up-route > i { font-size: 22px; color: var(--accent); }
.up-route .diff { margin-left: auto; }
.up-confirm label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.up-confirm textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid #cfd8e6; resize: vertical; }
.up-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.up-pending { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; background: #fff7e6; color: #7a4b00; font-weight: 600; }
.up-pending i { font-size: 20px; }
@media (max-width: 600px) { .up-route .diff { margin-left: 0; } .up-route > i { transform: rotate(90deg); } }

/* Outils natifs (vue commune) */
.natif-intro { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 18px; }
.natif-fields { align-items: flex-end; }
.natif-field { display: grid; gap: 5px; min-width: 130px; }
.natif-field.wide { flex: 1 1 320px; }
.natif-field > small { font-size: 12px; font-weight: 600; opacity: .75; }
.natif-field .joined { display: flex; align-items: stretch; }
.natif-field .joined > input, .natif-field .joined > select, .natif-field .joined > textarea { flex: 1; min-width: 0; }
.natif-field textarea { font: inherit; padding: 9px 11px; border-radius: 10px; border: 1px solid #cfd8e6; resize: vertical; width: 100%; }
.natif-field input[type="number"] { width: 90px; }
label.check { display: flex; align-items: center; gap: 8px; flex-basis: 100%; font-size: 14px; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
td.strong { font-weight: 600; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.app-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; transition: transform .15s, border-color .15s; }
.app-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.app-tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(29, 78, 216, .2); }
.app-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; color: #fff; font-size: 16px; background: linear-gradient(135deg, hsl(var(--h) 70% 50%), hsl(calc(var(--h) + 40) 70% 40%)); }
.pill.err { background: #fde8e8; color: #b42318; }
.up-pending { flex-wrap: wrap; } .up-pending .btn { margin-left: auto; }

/* Bandeau d'échéance (hébergement, domaine), toujours visible en haut */
.echeance { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 10px 20px;
  background: #fef3c7; color: #92400e; border-bottom: 1px solid #fcd34d; font-size: 14px; text-align: center; }
.echeance.late { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.echeance i { font-size: 18px; }
.echeance a { font-weight: 700; color: inherit; text-decoration: underline; }
