/* ==========================================================================
   AMP Conseils — thème Bootstrap 5.3 (v1.0, 1er octobre 2026)
   À charger APRÈS bootstrap.min.css et amp-tokens.css.
   ========================================================================== */

:root,
[data-bs-theme="light"] {
  --bs-primary: #1E2C6B;
  --bs-primary-rgb: 30, 44, 107;
  --bs-primary-text-emphasis: #121A40;
  --bs-primary-bg-subtle: #E8EAF0;
  --bs-primary-border-subtle: #A5ABC4;

  --bs-secondary: #666666;
  --bs-secondary-rgb: 102, 102, 102;

  --bs-success: #2E7D32;
  --bs-success-rgb: 46, 125, 50;
  --bs-success-bg-subtle: #E8F5E9;

  --bs-warning: #EB602A;
  --bs-warning-rgb: 235, 96, 42;
  --bs-warning-text-emphasis: #8D3A19;
  --bs-warning-bg-subtle: #FDEFEA;
  --bs-warning-border-subtle: #F7BFAA;

  --bs-danger: #C62828;
  --bs-danger-rgb: 198, 40, 40;
  --bs-danger-bg-subtle: #FDECEA;

  --bs-info: #3550A0;
  --bs-info-rgb: 53, 80, 160;
  --bs-info-bg-subtle: #E8EAF0;

  --bs-body-color: #212529;
  --bs-body-bg: #FFFFFF;
  --bs-tertiary-bg: #F0F2F6;
  --bs-border-color: #DEE2E6;
  --bs-link-color: #1E2C6B;
  --bs-link-color-rgb: 30, 44, 107;
  --bs-link-hover-color: #3550A0;
  --bs-link-hover-color-rgb: 53, 80, 160;
  --bs-focus-ring-color: rgba(30, 44, 107, .25);
  --bs-border-radius: 6px;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Titres */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: #1E2C6B; font-weight: 700; }

/* Boutons */
.btn { --bs-btn-border-radius: 6px; font-weight: 600; }
.btn-primary {
  --bs-btn-bg: #1E2C6B; --bs-btn-border-color: #1E2C6B;
  --bs-btn-hover-bg: #182356; --bs-btn-hover-border-color: #182356;
  --bs-btn-active-bg: #121A40; --bs-btn-active-border-color: #121A40;
  --bs-btn-disabled-bg: #A5ABC4; --bs-btn-disabled-border-color: #A5ABC4;
}
.btn-outline-primary {
  --bs-btn-color: #1E2C6B; --bs-btn-border-color: #1E2C6B;
  --bs-btn-hover-bg: #1E2C6B; --bs-btn-hover-border-color: #1E2C6B;
  --bs-btn-active-bg: #182356;
}
/* Bouton d'action orange (contraste conforme en taille normale) */
.btn-amp-orange {
  --bs-btn-color: #fff; --bs-btn-bg: #BC4D22; --bs-btn-border-color: #BC4D22;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #8D3A19; --bs-btn-hover-border-color: #8D3A19;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #8D3A19; --bs-btn-active-border-color: #8D3A19;
}
.btn-pilule { --bs-btn-border-radius: 100px; }

/* Champs de saisie (style MyApp) */
.form-control, .form-select {
  border-color: #1E2C6B;
  border-radius: 30px;
  padding-left: 1rem;
}
.form-control:focus, .form-select:focus {
  border-color: #1E2C6B;
  box-shadow: 0 0 0 .25rem rgba(30, 44, 107, .25);
}
textarea.form-control { border-radius: 14px; }
.form-label { font-weight: 600; font-size: .875rem; }
.form-check-input:checked { background-color: #1E2C6B; border-color: #1E2C6B; }

/* Cartes */
.card {
  --bs-card-border-radius: 10px;
  --bs-card-border-color: #DEE2E6;
  box-shadow: 0 1px 3px rgba(30, 44, 107, .08), 0 1px 2px rgba(30, 44, 107, .04);
}

/* Tableaux */
.table { --bs-table-hover-bg: #E8EAF0; }
.table > thead th { background: #F0F2F6; color: #1E2C6B; font-weight: 700; border-bottom-width: 1px; }

/* Badges */
.badge { border-radius: 6px; font-weight: 600; }

/* Barre latérale d'application (structure MyApp) */
.amp-sidebar { background: #1E2C6B; color: #fff; min-height: 100vh; }
.amp-sidebar .nav-link { color: rgba(255, 255, 255, .85); border-left: 3px solid transparent; }
.amp-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.amp-sidebar .nav-link.active { color: #fff; border-left-color: #EB602A; background: rgba(255, 255, 255, .1); }

/* Avatars à initiales */
.amp-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: #1E2C6B; color: #fff; font-size: .75rem; font-weight: 700;
}

/* Liens */
a { text-decoration-color: rgba(30, 44, 107, .35); text-underline-offset: 2px; }
.text-amp-orange { color: #BC4D22 !important; }
