/* === style.css complet === */

/* Layout global */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f8fafc;
  color: #222;
  line-height: 1.5;
}

/* En-tête */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b4b6f;
  color: #fff;
  padding: 10px 16px;
}
.app-header .brand {
  font-weight: bold;
}
.app-header .actions .btn {
  margin-left: 8px;
}

.help-box {
  border: 2px solid #ff9900;
  background: #fff7e6;
  padding: 15px;
  margin: 15px 0;
  border-radius: 10px;
  line-height: 1.4;
}
.help-box h2 {
  color: #cc6600;
  margin-top: 0;
}
.help-box em {
  color: #a40000;
  font-weight: bold;
}
.hidden {
  display: none;
}


/* Boutons */
.btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #1976d2;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover {
  background: #125a9e;
}
.btn-danger {
  background: #c62828;
}
.btn-danger:hover {
  background: #8e0000;
}

/* Zone notice */
.notice {
  padding: 12px 16px;
  background: #eef6fb;
  border-bottom: 1px solid #c8e0ef;
}
.notice h1 {
  font-size: 18px;
  margin-top: 0;
}
.notice ul {
  margin: 0;
  padding-left: 20px;
}
.notice details {
  margin-top: 10px;
}
.notice details summary {
  cursor: pointer;
  font-weight: 600;
}

/* Zone drag & drop */
.drop-area {
  border: 2px dashed #1976d2;
  margin: 16px;
  border-radius: 10px;
  background: #f0f8fc;
  text-align: center;
  padding: 30px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.drop-area.dragover {
  background: #e1f2fb;
  border-color: #0b4b6f;
}
.drop-inner .icon {
  font-size: 40px;
  margin-bottom: 10px;
}
.drop-inner .title {
  font-weight: bold;
  margin-bottom: 4px;
}
.drop-inner .subtitle {
  font-size: 12px;
  color: #555;
}
.drop-area input[type="file"] {
  display: none;
}

/* Résultats */
.results {
  margin: 16px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.results h2 {
  margin-top: 0;
}

/* Résumé en haut */
#encartDiff {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fef9e7;
  border: 1px solid #f5c518;
}
#encartDiff.hidden {
  display: none;
}

/* Tests colorés */
.tests .test {
  padding: 8px 10px;
  border-radius: 6px;
  margin: 6px 0;
}
.test.ok {
  background: #e8f5e9;
  border: 1px solid #43a047;
  color: #1b5e20;
}
.test.warn {
  background: #fff8e1;
  border: 1px solid #fbc02d;
  color: #795548;
}
.test.fail {
  background: #ffebee;
  border: 1px solid #c62828;
  color: #b71c1c;
}
.test.neutral {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
}

/* Analyse détaillée */
#analyseContainer {
  margin-top: 12px;
  padding: 10px;
  background: #f7fafd;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
}

/* Accordéons entêtes / debug */
.headers-accordion {
  margin-top: 12px;
}
.headers-accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: #0b4b6f;
  padding: 6px 10px;
  background: #f0f8fc;
  border-radius: 8px;
  user-select: none;
}
.headers-accordion summary:hover {
  background: #e1f2fb;
}
.headers-accordion pre {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
}

/* Mail original */
.mail-original {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 16px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #111;
  max-height: 600px;
  overflow: auto;
  margin-top: 12px;
}
.mail-original a {
  pointer-events: none;
  cursor: default;
  color: #0645ad;
  text-decoration: underline;
}
.mail-original img {
  max-width: 100%;
  height: auto;
}

/* Pied de page */
.footer {
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: #555;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

/* Utilitaires */
.hidden {
  display: none;
}
