/*
Theme Name: AstraShield Console
Theme URI: https://astrashield.fr
Author: AstraShield
Description: Thème privé et minimal conçu pour l'application Astra Social Manager.
Version: 1.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: astrashield-console
*/

:root {
  --ast-bg: #f5f6fa;
  --ast-surface: #ffffff;
  --ast-ink: #171d2d;
  --ast-muted: #687086;
  --ast-line: #e4e8f0;
  --ast-brand: #6546d7;
  --ast-brand-dark: #17162d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ast-bg);
  color: var(--ast-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ast-brand); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute!important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto!important;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 12px 16px;
  z-index: 100000;
  background: #fff;
  border-radius: 8px;
}
.ast-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 22, 45, .96);
  color: #fff;
  backdrop-filter: blur(12px);
}
.ast-header-inner,
.ast-site-main,
.ast-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.ast-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ast-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-weight: 780;
}
.ast-logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #8a70ff, #533bc1);
  font-size: 12px;
}
.ast-nav { display: flex; align-items: center; gap: 18px; }
.ast-nav a { color: #d5d2e5; text-decoration: none; font-size: 14px; }
.ast-nav a:hover, .ast-nav a:focus-visible { color: #fff; }
.ast-site-main { min-height: calc(100vh - 145px); padding-block: 60px; }
.ast-article {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(25px, 5vw, 54px);
  background: var(--ast-surface);
  border: 1px solid var(--ast-line);
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(23, 29, 45, .05);
}
.ast-article h1 { margin-top: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.ast-article-content { color: #384156; line-height: 1.72; }
.ast-site-footer { border-top: 1px solid var(--ast-line); color: var(--ast-muted); }
.ast-footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.ast-empty { text-align: center; padding-block: 80px; }
.ast-empty h1 { font-size: clamp(42px, 10vw, 92px); margin: 0; color: var(--ast-brand); }

/* L'application possède sa propre navigation : le thème s'efface complètement. */
body.asm-app-page .ast-site-header,
body.asm-app-page .ast-site-footer { display: none; }
body.asm-app-page .ast-site-main { width: 100%; min-height: 100vh; padding: 0; }
body.asm-app-page.admin-bar .asm-sidebar { top: 32px; height: calc(100vh - 32px); }

/* Accueil privé : porte d'entrée vers la console sociale. */
body.ast-login-page { background: #17162d; }
body.ast-login-page .ast-site-header,
body.ast-login-page .ast-site-footer { display: none; }
body.ast-login-page .ast-site-main { width: 100%; min-height: 100vh; padding: 0; }
.ast-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
  min-height: 100vh;
  background: #f5f6fa;
}
.ast-login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 22%, rgba(141, 116, 255, .28), transparent 28%),
    linear-gradient(145deg, #17162d 0%, #29204d 55%, #5036ad 100%);
  color: #fff;
}
.ast-login-showcase::before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018);
}
.ast-login-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}
.ast-login-brand > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #a18dff, #6845df);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  font-size: 11px;
}
.ast-login-message { position: relative; z-index: 2; max-width: 720px; margin-top: auto; }
.ast-login-eyebrow { margin: 0 0 13px; color: #a98fff; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.ast-login-showcase .ast-login-eyebrow { color: #c7bbff; }
.ast-login-message h1 { max-width: 720px; margin: 0; font-size: clamp(46px, 6vw, 88px); line-height: .98; letter-spacing: -.065em; }
.ast-login-message > p:last-child { max-width: 620px; margin: 25px 0 0; color: #d4d0e8; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.65; }
.ast-login-social-scene { position: relative; z-index: 2; width: 300px; height: 150px; margin: 35px 0 22px; }
.ast-login-orbit { position: absolute; left: 20px; top: 8px; width: 265px; height: 125px; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; transform: rotate(-5deg); }
.ast-login-core { position: absolute; left: 120px; top: 43px; display: grid; place-items: center; width: 63px; height: 63px; border-radius: 21px; background: #fff; color: #6546d7; box-shadow: 0 16px 35px rgba(0,0,0,.26); font-weight: 900; transform: rotate(-4deg); }
.ast-login-network { position: absolute; display: grid; place-items: center; width: 57px; height: 57px; border-radius: 18px; background: #fff; box-shadow: 0 13px 28px rgba(0,0,0,.28); }
.ast-login-network svg { width: 30px; height: 30px; fill: currentColor; }
.ast-login-network.is-linkedin { left: 8px; top: 64px; color: #087f9c; transform: rotate(-8deg); }
.ast-login-network.is-instagram { left: 203px; top: 0; color: #ed5a26; transform: rotate(8deg); }
.ast-login-network.is-facebook { right: 0; bottom: 8px; color: #175cd3; transform: rotate(-4deg); }
.ast-login-signature { position: relative; z-index: 2; margin: 0; color: #aaa5c3; font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.ast-login-panel { display: grid; place-items: center; min-height: 100vh; padding: clamp(24px, 5vw, 70px); background: radial-gradient(circle at 50% 30%, #fff 0%, #f5f6fa 62%); }
.ast-login-card { width: min(100%, 440px); padding: clamp(28px, 4vw, 46px); border: 1px solid #e2e6ef; border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: 0 24px 70px rgba(23, 29, 45, .11); }
.ast-login-card h2 { margin: 0 0 10px; color: #171d2d; font-size: clamp(30px, 4vw, 43px); line-height: 1.06; letter-spacing: -.05em; }
.ast-login-card > p:not(.ast-login-eyebrow):not(.ast-login-security) { margin: 0 0 28px; color: #697386; font-size: 14px; line-height: 1.55; }
.ast-login-card form { display: grid; gap: 17px; margin-top: 28px; }
.ast-login-card form p { margin: 0; }
.ast-login-card label { display: grid; gap: 7px; color: #384156; font-size: 12px; font-weight: 720; }
.ast-login-card .input { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #d8dde7; border-radius: 12px; outline: 0; background: #fff; color: #171d2d; transition: border-color .18s ease, box-shadow .18s ease; }
.ast-login-card .input:focus { border-color: #7558d8; box-shadow: 0 0 0 4px rgba(105,65,198,.12); }
.ast-login-card .login-remember label { display: inline-flex; grid-auto-flow: column; align-items: center; justify-content: start; gap: 8px; font-weight: 600; }
.ast-login-card .login-remember input { width: 17px; height: 17px; accent-color: #6941c6; }
.ast-login-card .login-submit { margin-top: 3px; }
.ast-login-card #ast-login-submit,
.ast-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #7456dc, #5738c2);
  box-shadow: 0 13px 25px rgba(105,65,198,.25);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.ast-login-card #ast-login-submit:hover,
.ast-login-card #ast-login-submit:focus-visible,
.ast-login-submit:hover,
.ast-login-submit:focus-visible { background: linear-gradient(135deg, #6546d7, #4428a2); color: #fff; }
.ast-login-forgot,.ast-login-secondary { display: block; margin-top: 17px; color: #6546d7; text-align: center; font-size: 11px; font-weight: 700; }
.ast-login-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #eceef3; color: #8a92a3; font-size: 9px; }
.ast-login-security span { color: #35ad79; }
.ast-login-welcome-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 25px; border-radius: 18px; background: #e9f9f1; color: #168457; font-size: 25px; font-weight: 900; }

@media (max-width: 900px) {
  .ast-login-shell { grid-template-columns: 1fr; }
  .ast-login-showcase { min-height: 470px; padding-bottom: 35px; }
  .ast-login-message { margin-top: 80px; }
  .ast-login-message h1 { max-width: 680px; font-size: clamp(43px, 9vw, 70px); }
  .ast-login-social-scene { position: absolute; right: 20px; bottom: 0; opacity: .35; }
  .ast-login-panel { min-height: auto; padding-block: 55px; }
}

@media (max-width: 560px) {
  .ast-login-showcase { min-height: 410px; padding: 25px 22px; }
  .ast-login-message { margin-top: 70px; }
  .ast-login-message h1 { font-size: 43px; }
  .ast-login-message > p:last-child { font-size: 14px; }
  .ast-login-social-scene,.ast-login-signature { display: none; }
  .ast-login-panel { padding: 18px 13px 35px; }
  .ast-login-card { padding: 29px 23px; border-radius: 21px; }
}

@media (max-width: 782px) {
  body.asm-app-page.admin-bar .asm-sidebar { top: 46px; height: auto; }
  .ast-header-inner { min-height: 64px; }
  .ast-nav { gap: 12px; }
  .ast-footer-inner { align-items: flex-start; flex-direction: column; padding-block: 22px; }
}
