/* ML Passerelle — Frontend Jeune — styles */
:root {
  --ml-bleu: #0B5FFF;
  --ml-bleu-fonce: #063e9e;
  --ml-vert: #1f9d55;
  --ml-rouge: #c0392b;
  --ml-gris-fond: #f4f6f9;
  --ml-gris-texte: #333;
  --ml-radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--ml-gris-fond);
  color: var(--ml-gris-texte);
  line-height: 1.5;
}

.ml-header {
  background: var(--ml-bleu);
  color: #fff;
  padding: 24px 16px;
  text-align: center;
}

.ml-header h1 { margin: 8px 0 4px; font-size: 1.6rem; }
.ml-subtitle { margin: 0; opacity: 0.9; font-size: 0.95rem; }
.ml-logo { max-height: 48px; }

main#app {
  max-width: 640px;
  margin: 24px auto;
  padding: 0 16px 48px;
}

.ml-card {
  background: #fff;
  border-radius: var(--ml-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ml-card h2 { margin-top: 0; color: var(--ml-bleu-fonce); }

.ml-hidden { display: none !important; }

label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 0.92rem; }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd3dc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.ml-radio, .ml-checkbox { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; }

fieldset { border: none; padding: 0; margin: 16px 0 0; }
fieldset legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; padding: 0; }

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
}

.ml-btn-primary { background: var(--ml-bleu); color: #fff; width: 100%; }
.ml-btn-primary:hover { background: var(--ml-bleu-fonce); }

.ml-btn-secondary { background: #e7edf7; color: var(--ml-bleu-fonce); }
.ml-btn-tertiary { background: #eee; color: #333; margin-left: 8px; }

.ml-error { color: var(--ml-rouge); font-weight: 600; min-height: 1.2em; margin-top: 10px; }
.ml-success { color: var(--ml-vert); font-weight: 600; margin-top: 10px; }
.ml-info { background: #eef4ff; border-radius: 6px; padding: 10px 12px; font-size: 0.92rem; }

.ml-pieces { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5e9ef; }
.ml-pieces select { width: auto; display: inline-block; margin-right: 8px; }
.ml-pieces input[type="file"] { display: inline-block; width: auto; }
#liste-pieces { list-style: none; padding: 0; margin: 12px 0; }
#liste-pieces li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }

.ml-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #667;
  padding: 16px;
}
