/* FA42 — style.css — UI brutaliste premium studio creatif */

:root {
  --fa42-black: #0D0D0D;
  --fa42-white: #F5F2ED;
  --fa42-red:   #E63946;  /* rouge NoBlackBox */
  --fa42-blue:  #1A56DB;  /* export Word */
  --fa42-grey:  #2A2A2A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--fa42-white);
  color: var(--fa42-black);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
}

/* --- Header --- */
.fa42-header {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 24px;
  border-bottom: 2px solid var(--fa42-black);
  background: var(--fa42-white);
}
.fa42-header .logo {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 26px; letter-spacing: -0.5px; text-transform: uppercase;
}
.fa42-header .logo .dot { color: var(--fa42-red); }
.fa42-header .tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--fa42-grey);
  border: 2px solid var(--fa42-black); padding: 2px 8px;
}

/* --- Layout trois colonnes --- */
.fa42-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 63px);
}
.col { padding: 20px; border-right: 2px solid var(--fa42-black); }
.col:last-child { border-right: 0; }
.col h2 {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--fa42-black);
}

/* --- Colonne gauche : navigation agents --- */
.agents { display: flex; flex-direction: column; gap: 10px; }
.agent-btn {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px;
  text-align: left; cursor: pointer;
  background: var(--fa42-white); color: var(--fa42-black);
  border: 2px solid var(--fa42-black); border-radius: 0;
  padding: 12px 12px;
  box-shadow: 4px 4px 0 var(--fa42-black);
  transition: transform .06s ease, box-shadow .06s ease, background .06s ease;
}
.agent-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fa42-black); }
.agent-btn.active { background: var(--fa42-black); color: var(--fa42-white); }

/* --- Colonne centre : saisie --- */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; color: var(--fa42-grey);
}
textarea, input[type="text"], select {
  width: 100%; font-family: "Inter", sans-serif; font-size: 14px;
  background: #fff; color: var(--fa42-black);
  border: 2px solid var(--fa42-black); border-radius: 0; padding: 10px;
}
textarea:focus, input:focus, select:focus { outline: 3px solid var(--fa42-red); outline-offset: 0; }
textarea.big { min-height: 160px; resize: vertical; }
textarea.mid { min-height: 80px; resize: vertical; }

.run-btn {
  font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 15px;
  text-transform: uppercase; cursor: pointer;
  background: var(--fa42-black); color: var(--fa42-white);
  border: 2px solid var(--fa42-black); border-radius: 0;
  padding: 14px 20px; width: 100%;
  box-shadow: 4px 4px 0 var(--fa42-red);
  transition: transform .06s ease, box-shadow .06s ease;
}
.run-btn:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--fa42-red); }
.run-btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Colonne droite : previsualisation --- */
.preview {
  border: 2px solid var(--fa42-black); background: #fff; min-height: 300px;
  padding: 18px; box-shadow: 4px 4px 0 var(--fa42-grey);
}
.preview h3 {
  font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 18px;
  border-left: 6px solid var(--fa42-red); padding-left: 10px; margin-bottom: 12px;
}
.preview .corps { white-space: pre-wrap; font-size: 14px; }
.preview .faq-intro { font-size: 14px; color: var(--fa42-black); margin-bottom: 14px; }
.preview .faq-list { font-size: 14px; }
.preview .faq-q { margin: 14px 0 2px; border-left: 4px solid var(--fa42-red); padding-left: 8px; }
.preview .faq-q strong { font-weight: 700; }
.preview .faq-r { margin: 0 0 4px 12px; color: #222; }
.preview .meta {
  margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--fa42-grey);
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--fa42-grey);
}
.placeholder { color: var(--fa42-grey); font-style: italic; }

/* --- Export : boutons distincts, jamais fusionnes --- */
.export-bar { display: flex; gap: 14px; margin-top: 18px; }
.export-btn {
  font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 13px;
  text-transform: uppercase; cursor: pointer; color: #fff;
  border: 2px solid var(--fa42-black); border-radius: 0; padding: 12px 16px; flex: 1;
  box-shadow: 4px 4px 0 var(--fa42-black);
  transition: transform .06s ease, box-shadow .06s ease;
}
.export-btn:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--fa42-black); }
.export-btn.pdf  { background: var(--fa42-red); }
.export-btn.word { background: var(--fa42-blue); }
.export-btn:disabled { opacity: .45; cursor: not-allowed; }

.validate-note {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--fa42-grey);
  margin-top: 8px;
}
.status {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; margin-top: 10px; min-height: 16px;
}
.status.err { color: var(--fa42-red); }

/* --- Responsive : desktop prioritaire --- */
@media (max-width: 1100px) {
  .fa42-grid { grid-template-columns: 1fr; }
  .col { border-right: 0; border-bottom: 2px solid var(--fa42-black); }
}

/* --- Agent Analyse critique (Claude) — distinct des 7 agents Groq --- */
.fa42-agent--claude {
  background-color: #7B2FBE;
  color: #F5F2ED;
  border: 2px solid #7B2FBE;
}

.fa42-agent--claude:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.fa42-agent-subtitle {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.8;
}

/* Formulaire de saisie de cle quand le quota Anthropic est epuise. */
#fa42-quota-form { margin-top: 14px; padding: 12px; border: 2px dashed #7B2FBE; }
#fa42-quota-form input { width: 100%; margin: 8px 0; font-family: "IBM Plex Mono", monospace; }
#fa42-cle-status { margin-top: 8px; font-size: 12px; }

/* Rendu de l'analyse critique Claude + bouton Copier. */
.preview .analyse { font-size: 14px; line-height: 1.5; }
.preview .analyse ul { margin: 6px 0 6px 18px; }
.btn-copier { margin-top: 10px; }
