/* Cockpit SEO COM 64 - charte 2026 (tokens 07-design-tokens.md) */

/* ---------- Polices auto-hebergees (RGPD) : League Spartan + Quicksand ---------- */
/* League Spartan 600 */
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/league-spartan-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/league-spartan-latinext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* League Spartan 700 */
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/league-spartan-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/league-spartan-latinext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Quicksand 500 */
@font-face {
  font-family: "Quicksand"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/quicksand-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Quicksand"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/quicksand-latinext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Quicksand 600 */
@font-face {
  font-family: "Quicksand"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/quicksand-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Quicksand"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/quicksand-latinext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Quicksand 700 */
@font-face {
  font-family: "Quicksand"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/quicksand-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Quicksand"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/quicksand-latinext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --navy-950: #0F172A;
  --navy-900: #16163F;
  --navy-800: #1E2673;
  --navy-700: #2B436D;
  --blue-600: #0901FF;
  --blue-700: #0701CC;
  --icon-blue: #151A4F;
  --mauve-600: #4551BF;
  --gold-700: #8A5D06;
  --bg-main: #EEF1FD;
  --bg-light: #F3F7FE;
  --blue-pale: #E7F6FF;
  --grey-soft: #F3F3F3;
  --border-col: #D1DAE5;
  --success-600: #0E7A4A; --success-100: #DCF5E8;
  --warning-600: #8A5D06; --warning-100: #F4EDDE;
  --error-600: #C81E3C;   --error-100: #FDE4E9;
  --info-600: #0901FF;    --info-100: #F3F7FE;
  --surface-card: #FFFFFF;
  --text-strong: var(--navy-950);
  --text-body: var(--navy-900);
  --text-muted: var(--navy-700);
  /* Couleurs sur fond inverse navy (WCAG AA verifie sur #16163F) et placeholder (AA sur blanc) */
  --label-on-inverse: #8A96CC;   /* libelles de section sidebar - 5.99:1 sur navy */
  --dot-ok: #34D399;             /* pastille d'etat "connecte" (decor, sur navy) */
  --error-on-inverse: #FF8DA1;   /* texte/pastille d'erreur sur fond navy - 7.8:1 */
  --error-700: #A81830;          /* survol des actions danger (assombrissement de --error-600) */
  --placeholder: #64708F;        /* placeholders de champ - 4.93:1 sur blanc */
  --font-display: "League Spartan", "Trebuchet MS", Verdana, sans-serif;
  --font-body: "Quicksand", "Trebuchet MS", Verdana, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22,22,63,.06), 0 2px 8px rgba(22,22,63,.05);
  --shadow-md: 0 2px 6px rgba(22,22,63,.06), 0 12px 32px rgba(22,22,63,.10);
  --shadow-cta: 0 8px 24px rgba(9,1,255,.28);
  --shadow-lg: 0 4px 12px rgba(22,22,63,.08), 0 24px 64px rgba(22,22,63,.16);
  --focus-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--blue-600);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --duration-fast: 150ms;
}
@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.65; font-weight: 500;
  color: var(--text-body); background: var(--bg-main);
}
:focus-visible { outline: none; box-shadow: var(--focus-shadow); border-radius: 4px; }
.app { display: flex; min-height: 100vh; }
/* Bouton menu mobile et fond : masques sur desktop, actives sous 860px */
.nav-toggle { display: none; }
.nav-backdrop { display: none; }
/* ---------- Barre latérale ---------- */
.sidebar {
  width: 268px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--navy-900); color: #FFFFFF;
  display: flex; flex-direction: column; padding: 14px 14px 12px;
  overflow-y: auto;
}
.brand { padding: 10px 12px 16px; border-bottom: 1px solid rgba(255,255,255,.16); }
.brand-logo { display: block; width: 100%; max-width: 182px; height: auto; margin: 0 auto; }
.brand-sub {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: .06em; text-transform: uppercase; color: #FFFFFF;
  text-align: center; line-height: 1.1; margin-top: 10px;
}
.brand-sub span { color: #9AA8FF; }
.project-switcher { margin: 10px 12px 0; }
.project-switcher label {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--label-on-inverse); margin-bottom: 6px;
}
.project-switcher select {
  width: 100%; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.20);
  color: #FFFFFF; border-radius: var(--radius-sm); padding: 7px 12px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
}
.project-switcher select:focus { outline: none; box-shadow: 0 0 0 2px var(--navy-900), 0 0 0 4px #9AA8FF; }
.project-switcher option { color: var(--navy-900); background: #FFFFFF; }
.nav { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; border-radius: var(--radius-md);
  color: #B8C2DF; text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav a:hover { background: rgba(255,255,255,.08); color: #FFFFFF; }
.nav a.active { background: rgba(255,255,255,.12); color: #FFFFFF; }
.nav-sep {
  margin: 7px 14px 4px; font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--label-on-inverse);
}
.api-status { padding: 8px 12px 0; border-top: 1px solid rgba(255,255,255,.16); }
.api-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #B8C2DF; padding: 2px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot-ok); flex-shrink: 0; }
.dot.off { background: #8F94A9; }
.dot.err { background: var(--error-on-inverse); }
/* ---------- Zone principale ---------- */
main {
  flex: 1; min-width: 0; padding: 28px clamp(20px, 3.5vw, 48px) 0;
  display: flex; flex-direction: column;
}
main > section { flex-shrink: 0; }
.view-head { margin-bottom: 26px; }
.overline {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600);
}
h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--text-strong); margin-top: 6px;
}
.view-head p { margin-top: 10px; color: var(--text-muted); }
h2.card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  line-height: 1.15; letter-spacing: -0.01em; color: var(--text-strong);
}
/* ---------- Cartes et grilles ---------- */
.card {
  background: var(--surface-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px;
}
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px 24px; }
.stat .overline { color: var(--text-muted); font-size: 12px; }
.stat .value {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  letter-spacing: -0.02em; color: var(--text-strong); line-height: 1.1; margin-top: 8px;
}
.stat .hint { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.stat .hint.up { color: var(--success-600); font-weight: 600; }
.grid-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.module-card {
  background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; text-align: left;
  border: 0; cursor: pointer; font-family: inherit; font-size: inherit; color: inherit;
  transition: box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-card .icon {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--bg-light);
  color: var(--icon-blue); display: grid; place-items: center;
}
.module-card .icon svg { width: 22px; height: 22px; }
.module-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em; color: var(--text-strong);
}
.module-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.module-card .open { color: var(--blue-600); font-weight: 700; font-size: 15px; }
/* ---------- Boutons, champs, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  border-radius: var(--radius-pill); padding: 12px 24px;
  transition: background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.btn-primary { background: var(--blue-600); color: #FFFFFF; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--blue-700); }
.btn-secondary { background: #FFFFFF; color: var(--navy-900); border: 1.5px solid var(--border-col); }
.btn-secondary:hover { background: var(--bg-light); }
.btn-danger { background: var(--error-600); color: #FFFFFF; }
.btn-danger:hover { background: var(--error-700); }
.link-action.danger { color: var(--error-600); }
.link-action.danger:hover { color: var(--error-700); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--text-body); }
input[type="text"], input[type="password"], select {
  font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--text-body);
  background: #FFFFFF; border: 1.5px solid var(--border-col); border-radius: var(--radius-sm);
  padding: 11px 14px; min-width: 0;
}
input::placeholder { color: var(--placeholder); }
input:focus, select:focus { outline: none; box-shadow: var(--focus-shadow); border-color: var(--blue-600); }
.form-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 220px; }
.seg {
  display: inline-flex; flex-wrap: wrap; background: var(--bg-light);
  border-radius: var(--radius-pill); padding: 4px; gap: 4px; max-width: 100%;
}
.seg label {
  padding: 8px 18px; border-radius: var(--radius-pill); cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--text-muted);
}
.seg input { position: absolute; opacity: 0; }
.seg input:checked + label { background: var(--navy-900); color: #FFFFFF; }
.seg input:focus-visible + label { box-shadow: var(--focus-shadow); }
.cost-note { font-size: 13.5px; color: var(--text-muted); margin-top: 12px; }
.badge {
  display: inline-block; border-radius: var(--radius-pill); padding: 3px 12px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.b-success { color: var(--success-600); background: var(--success-100); }
.b-warning { color: var(--warning-600); background: var(--warning-100); }
.b-error   { color: var(--error-600);   background: var(--error-100); }
.b-info    { color: var(--info-600);    background: var(--info-100); }
.b-neutral { color: var(--navy-700);    background: var(--grey-soft); }
.b-mauve   { color: #FFFFFF;            background: var(--mauve-600); }
/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border-col); white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--border-col); font-size: 15.5px; vertical-align: middle; }
tbody tr:hover { background: var(--bg-light); }
td .kw, td.kw { font-weight: 700; color: var(--text-strong); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.link-action { color: var(--blue-600); font-weight: 700; text-decoration: none; font-size: 14.5px; cursor: pointer; background: none; border: 0; font-family: inherit; }
.link-action:hover { color: var(--blue-700); text-decoration: underline; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
/* ---------- Graphiques ---------- */
.spark { width: 96px; height: 28px; }
.spark polyline { fill: none; stroke: var(--blue-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark.flat polyline { stroke: var(--navy-700); }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 8px; }
.chart-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bars .bar i { display: block; width: 100%; max-width: 44px; background: var(--navy-800); border-radius: 8px 8px 4px 4px; }
.chart-bars .bar.hot i { background: var(--blue-600); }
.chart-bars .bar b { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.vis-bar { background: var(--bg-light); border-radius: var(--radius-pill); height: 10px; width: 140px; overflow: hidden; }
.vis-bar span { display: block; height: 100%; background: var(--blue-600); border-radius: var(--radius-pill); }
/* ---------- SERP ---------- */
.serp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.serp-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border-col); }
.serp-item:last-child { border-bottom: 0; }
.serp-pos {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg-light); color: var(--navy-900); font-family: var(--font-display);
  font-weight: 700; font-size: 16px; display: grid; place-items: center;
}
.serp-item.mine .serp-pos { background: var(--blue-600); color: #FFFFFF; }
.serp-body { flex: 1; min-width: 0; }
.serp-visit {
  align-self: center; flex-shrink: 0; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: var(--radius-sm);
  color: var(--blue-600); border: 1.5px solid var(--border-col);
  transition: background var(--duration-fast) var(--ease-out);
}
.serp-visit:hover { background: var(--bg-light); }
.serp-visit svg { width: 18px; height: 18px; }
.serp-title { font-weight: 700; font-size: 17px; color: var(--blue-600); line-height: 1.35; overflow-wrap: anywhere; }
.serp-url { font-size: 13.5px; color: var(--success-600); font-weight: 600; margin: 2px 0 4px; overflow-wrap: anywhere; }
.serp-meta { font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }
.mine-tag { margin-left: 8px; vertical-align: 2px; }
/* ---------- PAA ---------- */
details.paa { border: 1.5px solid var(--border-col); border-radius: var(--radius-md); margin-bottom: 12px; background: #FFFFFF; }
details.paa summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700;
  color: var(--text-strong); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.paa summary::after { content: "+"; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--blue-600); }
details.paa[open] summary::after { content: "–"; }
details.paa .paa-body { padding: 0 18px 14px; color: var(--text-muted); font-size: 15px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--bg-light); border: 1.5px solid var(--border-col); border-radius: var(--radius-pill);
  padding: 7px 16px; font-size: 14.5px; font-weight: 600; color: var(--text-body); cursor: pointer;
}
.chip b { color: var(--blue-600); font-weight: 700; }
.features { display: flex; flex-wrap: wrap; gap: 10px; }
/* ---------- Etats applicatifs ---------- */
.banner {
  border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px;
  font-size: 15px; font-weight: 600;
}
.banner.err  { color: var(--error-600); background: var(--error-100); }
.banner.warn { color: var(--warning-600); background: var(--warning-100); }
.banner.info { color: var(--info-600); background: var(--info-100); }
.empty { text-align: center; color: var(--text-muted); padding: 28px 16px; font-size: 15px; }
.loading { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 600; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--border-col); border-top-color: var(--blue-600);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
/* ---------- Divers ---------- */
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-col); }
.settings-line:last-child { border-bottom: 0; }
.settings-line .lab { font-weight: 700; color: var(--text-strong); }
.settings-line .val { color: var(--text-muted); font-size: 15px; display: flex; align-items: center; gap: 8px; }
footer.note {
  text-align: center; font-size: 13.5px; color: var(--text-muted);
  border-top: 1px solid var(--border-col);
  /* Collant : pousse en bas de l'ecran sur les pages courtes (margin auto)
     et reste visible au defilement sur les pages longues (sticky) */
  margin-top: auto; position: sticky; bottom: 0;
  background: var(--bg-main); padding: 10px 0 14px;
}
section[hidden] { display: none; }
/* ---------- Dialogue nouveau projet ---------- */
dialog {
  margin: auto; /* le reset global * { margin: 0 } annulait le centrage natif */
  border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg, var(--shadow-md));
  padding: 28px; width: min(480px, 92vw);
}
dialog::backdrop { background: rgba(15, 23, 42, .55); }
dialog h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: -0.02em; color: var(--text-strong); margin-bottom: 18px;
}
dialog .field { margin-bottom: 14px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
/* ---------- Page de connexion ---------- */
.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--navy-900); padding: 24px;
}
.login-card {
  background: var(--navy-900); text-align: center; max-width: 380px; width: 100%;
}
.login-card .brand-logo { margin: 0 auto 6px; max-width: 260px; }
.login-card .brand-sub { margin-bottom: 34px; }
.login-card input[type="password"] {
  width: 100%; text-align: center; font-size: 17px;
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.20); color: #FFFFFF;
}
.login-card input[type="password"]:focus { box-shadow: 0 0 0 2px var(--navy-900), 0 0 0 4px #9AA8FF; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 14px; }
.login-error { color: var(--error-on-inverse); font-weight: 600; font-size: 14.5px; margin-top: 12px; min-height: 22px; }
.form-error { color: var(--error-600); font-weight: 600; font-size: 14.5px; min-height: 22px; margin-top: 8px; }
.key-reveal {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-light); border: 1.5px solid var(--border-col);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.key-reveal code {
  flex: 1; font-size: 13.5px; overflow-wrap: anywhere; color: var(--text-strong);
}
td code.key-prefix { font-size: 13.5px; color: var(--text-muted); }
@media (max-width: 1080px) {
  .serp-grid, .two-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; z-index: 30; height: 100vh; width: 260px; transform: translateX(-100%);
    transition: transform var(--duration-fast) var(--ease-out); box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .nav-toggle {
    display: inline-grid; place-items: center; position: fixed; top: 12px; left: 12px; z-index: 40;
    width: 44px; height: 44px; border: 0; border-radius: var(--radius-md); cursor: pointer;
    background: var(--navy-900); color: #FFFFFF; box-shadow: var(--shadow-md);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-backdrop.show { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(15,23,42,.55); }
  main { padding-top: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}
