/* =========================================================
   Riyata Studio — Audit éditorial d'une page
   S'appuie sur /styles.css et /outils/tools.css.
   ========================================================= */

#copyTool [hidden] { display: none !important; }

.ce-result { display: grid; gap: var(--s-5); }

.ce-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 18px 20px;
  border: 1px solid var(--border-1);
  border-radius: 14px;
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%),
    var(--surface-1);
}
.ce-head-url { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); word-break: break-all; }
.ce-head-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.ce-global { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); line-height: 1; }
.ce-global strong { font-size: clamp(38px, 6vw, 56px); font-weight: 500; }
.ce-global span { font-size: 16px; color: var(--text-3); }
.ce-global.is-good strong { color: #22c55e; }
.ce-global.is-warn strong { color: #f59e0b; }
.ce-global.is-bad strong { color: #ef4444; }

.ce-axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.ce-axis {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  background: var(--surface-1);
}
.ce-axis-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ce-axis-head h3 { font-size: 14.5px; font-weight: 600; color: var(--text-0); }
.ce-axis-score { font-family: var(--font-mono); font-size: 15px; color: var(--text-2); }
.ce-axis.is-good .ce-axis-score { color: #22c55e; }
.ce-axis.is-warn .ce-axis-score { color: #f59e0b; }
.ce-axis.is-bad .ce-axis-score { color: #ef4444; }

.ce-bar { height: 4px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.ce-bar-fill { height: 100%; border-radius: inherit; background: var(--accent); }
.ce-axis.is-good .ce-bar-fill { background: #22c55e; }
.ce-axis.is-warn .ce-bar-fill { background: #f59e0b; }
.ce-axis.is-bad .ce-bar-fill { background: #ef4444; }

.ce-notes { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0; }
.ce-notes li { font-size: 13px; line-height: 1.55; color: var(--text-2); padding-left: 13px; position: relative; }
.ce-notes li::before {
  content: "";
  position: absolute; left: 2px; top: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-3);
}
.ce-ok { font-size: 13px; color: var(--text-3); }

.ce-block {
  padding: 20px 22px;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  background: var(--surface-1);
}
.ce-block h2 { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; text-transform: none; }
.ce-block > ul { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.ce-block > ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-1);
}
.ce-block > ul li::before {
  content: "";
  position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.ce-current-line { font-size: 14px; color: var(--text-2); margin-bottom: 14px; display: grid; gap: 3px; }
.ce-label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }

.ce-rewrites { display: grid; gap: 12px; }
.ce-rewrite {
  display: grid; gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  background: var(--surface-2);
}
.ce-rewrite-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ce-rewrite p { font-size: 15px; line-height: 1.6; color: var(--text-0); }

.ce-facts { display: flex; flex-wrap: wrap; gap: 8px; }
