/* Identité visuelle alignée sur GDTF Finder. Tous les styles restent dans MA3-search. */
.ma3-search {
  display: grid;
  grid-template-columns: minmax(280px, 33%) minmax(0, 1fr);
  gap: 18px;
  max-width: 1400px;
  min-height: 560px;
  margin: 20px auto;
  padding: 18px;
  box-sizing: border-box;
  color: #eef2f7;
  background: #0b0d10;
  border-radius: 14px;
  font: 16px/1.55 system-ui, sans-serif;
}
.ma3-search * { box-sizing: border-box; }
.ma3-side { min-width: 0; }
.ma3-form {
  padding: 18px 18px 20px;
  margin: 0 0 20px;
  background: #202225;
  border: 1px solid #3b4650;
  border-left: 5px solid #8b6ee8;
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  overflow: hidden;
}
.ma3-form label { display: block; color: #ad96f3; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
.ma3-form label:first-child {
  margin: -18px -18px 17px;
  padding: 13px 14px;
  background: #090a0c;
  color: #fff;
  border-bottom: 2px solid #8b6ee8;
  font-size: 16px;
  text-align: center;
}
.ma3-controls { display: flex; align-items: stretch; gap: 9px; margin-bottom: 17px; }
.ma3-controls input, .ma3-form select {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  -webkit-appearance: auto;
  appearance: auto;
}
.ma3-controls input { flex: 1; }
.ma3-controls input::placeholder { color: #64748b; opacity: 1; }
.ma3-controls input:focus, .ma3-form select:focus {
  color: #111827;
  background: #fff;
  border-color: #2589d8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,137,216,.2);
}
.ma3-form select option { background: #fff; color: #111827; }
.ma3-controls button, .ma3-more {
  min-height: 46px;
  padding: 9px 17px;
  border: 0;
  border-radius: 6px;
  background: #2271b1;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.ma3-controls button:hover, .ma3-more:hover { background: #135e96; color: #fff; }
.ma3-controls button:focus-visible, .ma3-more:focus-visible, .ma3-result:focus-visible, .ma3-article a:focus-visible { outline: 3px solid #4ea3ff; outline-offset: 2px; }
.ma3-status {
  margin: 0;
  padding: 12px 16px 13px;
  border: 1px solid #70482d;
  border-left: 5px solid #f08a3c;
  border-bottom: 2px solid #f08a3c;
  border-radius: 10px 10px 0 0;
  background: #090a0c;
  color: #f08a3c;
  font-size: 14px;
  font-weight: 600;
}
.ma3-status::before { content: 'RÉSULTATS'; display: block; margin-bottom: 5px; color: #fff; font-size: 16px; font-weight: 700; text-align: center; letter-spacing: .5px; }
.ma3-results {
  min-height: 90px;
  max-height: 660px;
  padding: 12px;
  overflow-y: auto;
  border: 1px solid #70482d;
  border-top: 0;
  border-left: 5px solid #f08a3c;
  border-radius: 0 0 11px 11px;
  background: #202225;
  scrollbar-color: #647386 #151719;
}
.ma3-result {
  display: block;
  width: 100%;
  padding: 13px 15px;
  margin: 0 0 8px;
  border: 1px solid #414b57;
  border-radius: 8px;
  background: #2b2b2b;
  color: #f3f6fa;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.ma3-result:last-child { margin-bottom: 0; }
.ma3-result:hover, .ma3-result:focus { background: #35404b; border-color: #6983a0; color: #fff; }
.ma3-result.ma3-selected { background: #25394c; border-color: #4ea3ff; box-shadow: inset 4px 0 0 #4ea3ff; color: #fff; }
.ma3-result strong { display: block; margin: 0; font-weight: 700; line-height: 1.4; }
.ma3-more { display: block; width: 100%; margin: 12px 0 0; }
.ma3-more:disabled { opacity: .55; cursor: wait; }
.ma3-article {
  min-width: 0;
  height: min(76vh,900px);
  min-height: 400px;
  padding: 22px 25px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: #647386 #151719;
  border: 1px solid #3b4650;
  border-left: 5px solid #2589d8;
  border-radius: 11px;
  background: #202225;
  color: #eef2f7;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
.ma3-article h2 { margin: 0 0 20px; padding-bottom: 11px; border-bottom: 2px solid #2589d8; color: #fff; }
.ma3-article h3, .ma3-article h4 { color: #fff; }
.ma3-article p, .ma3-article li, .ma3-article figcaption { color: #eef2f7; }
.ma3-article a, .ma3-article a[data-ma3-id] { color: #72bbff; text-decoration: underline; cursor: pointer; }
.ma3-article a:hover { color: #b7dcff; }
.ma3-article img { display: block; max-width: 100%; height: auto; margin: 18px 0 4px; border-radius: 6px; }
.ma3-article figcaption { margin: 0 0 16px; font-size: .9em; font-style: italic; color: #b8c4d1; }
.ma3-article li { margin-left: 1.4em; list-style: disc; }
.ma3-article[dir=rtl] li { margin-left: 0; margin-right: 1.4em; }
.ma3-article mark, .ma3-article kbd, .ma3-article code { padding: 0 3px; background: #d9d9d9; color: #111827; border-radius: 2px; }
.ma3-article strong, .ma3-article b { font-weight: 700; color: #fff; }
.ma3-warning { color: #ffad72 !important; font-size: .88em; }
@media (max-width:700px) {
  .ma3-search { grid-template-columns: minmax(0,1fr); gap: 0; padding: 10px; border-radius: 10px; }
  .ma3-side { display: contents; }
  .ma3-form { order: 1; margin-bottom: 17px; }
  .ma3-status { order: 2; }
  .ma3-results { order: 3; max-height: 360px; margin-bottom: 17px; }
  .ma3-article { order: 4; height: 65vh; min-height: 280px; padding: 18px; scroll-margin-top: 12px; }
  .ma3-controls { flex-wrap: wrap; }
  .ma3-controls input { flex-basis: 180px; }
  .ma3-controls button { flex: 0 0 auto; }
}
