/* ═══════════════════════════════════════════════════════════════════════════
   IMMOLEAD – Styles principaux
   Palette : Bleu marine #0D1B2A, Bleu vif #2563EB, Vert #10B981, Gris #F8FAFC
═══════════════════════════════════════════════════════════════════════════ */

:root {
  --il-blue:      #2563EB;
  --il-blue-dk:   #1D4ED8;
  --il-navy:      #0D1B2A;
  --il-green:     #10B981;
  --il-orange:    #F59E0B;
  --il-red:       #EF4444;
  --il-bg:        #F8FAFC;
  --il-card:      #FFFFFF;
  --il-border:    #E2E8F0;
  --il-text:      #1E293B;
  --il-muted:     #64748B;
  --il-radius:    10px;
  --il-shadow:    0 2px 12px rgba(0,0,0,0.08);
  --il-shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

/* ── Reset local ─────────────────────────────────────────────────────────── */
.il-form-wrapper *, .il-dashboard * {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════════════════
   FORMULAIRE PUBLIC
══════════════════════════════════════════════════════════════════════════ */

.il-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--il-text);
}

/* Étapes progress */
.il-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background: var(--il-border);
  border-radius: 50px;
  padding: 4px;
}

.il-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--il-muted);
  transition: all .25s;
  cursor: default;
}

.il-step--active {
  background: var(--il-blue);
  color: #fff;
  font-weight: 600;
}

.il-step--done {
  background: var(--il-green);
  color: #fff;
}

.il-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .il-step__label { display: none; }
  .il-step { padding: 10px; }
}

/* Formulaire */
.il-form {
  background: var(--il-card);
  border-radius: var(--il-radius);
  box-shadow: var(--il-shadow);
  padding: 36px;
}

@media (max-width: 560px) {
  .il-form { padding: 24px 18px; }
}

.il-form__step--hidden { display: none !important; }

.il-form__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--il-navy);
  margin: 0 0 6px;
}

.il-form__subtitle {
  color: var(--il-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.il-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.il-form__row .il-form__field--sm {
  max-width: 140px;
}

@media (max-width: 560px) {
  .il-form__row { grid-template-columns: 1fr; }
  .il-form__row .il-form__field--sm { max-width: 100%; }
}

.il-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.il-form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--il-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.il-req { color: var(--il-red); }

.il-form__field input,
.il-form__field select,
.il-form__field textarea {
  border: 1.5px solid var(--il-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--il-text);
  background: var(--il-bg);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.il-form__field input:focus,
.il-form__field select:focus,
.il-form__field textarea:focus {
  outline: none;
  border-color: var(--il-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}

.il-form__field input.il-error,
.il-form__field select.il-error {
  border-color: var(--il-red);
}

.il-form__field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.il-form__field--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.il-form__field--checkbox label {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--il-muted);
}

/* Estimateur mensualité */
.il-estimator {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.il-estimator__icon { font-size: 1.4rem; }
.il-estimator__text { font-size: 0.9rem; color: #1E40AF; }
.il-estimator__text strong { font-size: 1.1rem; }

/* Navigation */
.il-form__nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--il-border);
}

/* Succès */
.il-form__success {
  text-align: center;
  padding: 40px 20px;
}

.il-success-icon { font-size: 3.5rem; margin-bottom: 12px; }
.il-form__success h2 { font-size: 1.6rem; color: var(--il-green); margin: 0 0 8px; }
.il-form__success p { color: var(--il-muted); }
.il-success-sub { font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════════════════════════════════════ */

.il-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.il-btn--primary {
  background: var(--il-blue);
  color: #fff;
}

.il-btn--primary:hover {
  background: var(--il-blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}

.il-btn--ghost {
  background: transparent;
  border-color: var(--il-border);
  color: var(--il-text);
}

.il-btn--ghost:hover { background: var(--il-bg); }

.il-btn--sm { padding: 7px 14px; font-size: 0.82rem; }

.il-btn--danger { background: var(--il-red); color: #fff; }
.il-btn--success { background: var(--il-green); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   NOTICES
══════════════════════════════════════════════════════════════════════════ */

.il-notice {
  padding: 16px 20px;
  border-radius: var(--il-radius);
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.il-notice--warning { background: #FEF3C7; border: 1px solid #FCD34D; color: #92400E; }
.il-notice--error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.il-notice--success { background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }

.il-notice--cta {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  flex-wrap: wrap;
}

.il-notice__icon { font-size: 1.8rem; }

/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD COURTIER
══════════════════════════════════════════════════════════════════════════ */

.il-dashboard {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--il-text);
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.il-dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.il-dash__welcome h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  color: var(--il-navy);
}

.il-dash__welcome p {
  margin: 0;
  color: var(--il-muted);
  font-size: 0.9rem;
}

.il-dash__credits {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--il-card);
  border: 1.5px solid var(--il-border);
  border-radius: var(--il-radius);
  padding: 14px 20px;
  box-shadow: var(--il-shadow);
}

.il-dash__credits--empty { border-color: var(--il-orange); }

.il-cred__icon { font-size: 1.8rem; }
.il-cred__num  { font-size: 1.6rem; font-weight: 800; color: var(--il-blue); line-height: 1; }
.il-cred__label { font-size: 0.78rem; color: var(--il-muted); margin-top: 2px; }

/* Tabs */
.il-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--il-border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.il-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--il-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .2s, border-color .2s;
}

.il-tab:hover { color: var(--il-blue); }

.il-tab--active {
  color: var(--il-blue);
  border-bottom-color: var(--il-blue);
}

.il-tab__badge {
  background: var(--il-blue);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
}

.il-tab-panel { display: none; }
.il-tab-panel--active { display: block; }

/* Filtres */
.il-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.il-filter { display: flex; flex-direction: column; gap: 5px; }

.il-filter label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--il-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.il-filter select,
.il-filter input {
  border: 1.5px solid var(--il-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
  min-width: 180px;
}

.il-filter select:focus,
.il-filter input:focus {
  outline: none;
  border-color: var(--il-blue);
}

/* Grille leads disponibles */
.il-leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.il-lead-card {
  background: var(--il-card);
  border: 1.5px solid var(--il-border);
  border-radius: var(--il-radius);
  padding: 20px;
  box-shadow: var(--il-shadow);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}

.il-lead-card:hover {
  box-shadow: var(--il-shadow-lg);
  transform: translateY(-2px);
}

.il-lead-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #DCFCE7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.il-lead-card__amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--il-navy);
  margin: 0 0 4px;
}

.il-lead-card__location {
  font-size: 0.88rem;
  color: var(--il-muted);
  margin: 0 0 12px;
}

.il-lead-card__location strong { color: var(--il-text); }

.il-lead-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.il-tag {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.il-lead-card__date {
  font-size: 0.78rem;
  color: var(--il-muted);
  margin-bottom: 14px;
}

.il-lead-card__footer {
  display: flex;
  justify-content: flex-end;
}

/* Table mes leads achetés */
.il-leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.il-leads-table th {
  background: var(--il-bg);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--il-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--il-border);
}

.il-leads-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--il-border);
  vertical-align: middle;
}

.il-leads-table tr:hover td { background: #F8FAFC; }

.il-leads-table .il-btn { white-space: nowrap; }

/* Profil */
.il-profile-card {
  background: var(--il-card);
  border-radius: var(--il-radius);
  padding: 28px;
  box-shadow: var(--il-shadow);
  max-width: 800px;
}

.il-profile-card h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--il-navy);
}

.il-profile-card hr { border: none; border-top: 1px solid var(--il-border); margin: 24px 0; }

.il-profile-info { display: grid; gap: 8px; margin-bottom: 16px; font-size: 0.95rem; }

.il-help { color: var(--il-muted); font-size: 0.85rem; margin: 0 0 14px; }

.il-dept-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--il-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.il-dept-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 3px 0;
}

.il-save-msg { margin-left: 12px; color: var(--il-green); font-size: 0.85rem; font-weight: 600; }

.il-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.il-orders-table th, .il-orders-table td {
  padding: 8px 12px;
  border: 1px solid var(--il-border);
  text-align: left;
}
.il-orders-table th { background: var(--il-bg); font-weight: 700; }

/* Loading / empty */
.il-loading {
  text-align: center;
  padding: 48px;
  color: var(--il-muted);
  font-size: 1rem;
}

.il-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--il-muted);
}
.il-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.il-empty h3 { margin: 0 0 8px; color: var(--il-text); }

/* Pagination */
.il-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.il-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--il-border);
  background: var(--il-card);
  color: var(--il-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.il-page-btn:hover { border-color: var(--il-blue); color: var(--il-blue); }
.il-page-btn--active { background: var(--il-blue); border-color: var(--il-blue); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════════════════════ */

.il-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99990;
  align-items: center;
  justify-content: center;
}

.il-modal--open { display: flex; }

.il-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.65);
  backdrop-filter: blur(4px);
}

.il-modal__box {
  position: relative;
  z-index: 1;
  background: var(--il-card);
  border-radius: 14px;
  box-shadow: var(--il-shadow-lg);
  padding: 32px;
  width: min(680px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  animation: il-slide-up .25s ease;
}

.il-modal__box--sm { max-width: 420px; }

@keyframes il-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.il-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--il-bg);
  border: 1px solid var(--il-border);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--il-muted);
  transition: background .15s;
}

.il-modal__close:hover { background: var(--il-border); }

.il-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Détail lead dans la modal */
.il-lead-detail__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--il-border);
}

.il-lead-detail__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--il-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.il-lead-detail__name { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; }
.il-lead-detail__date { font-size: 0.82rem; color: var(--il-muted); }

.il-lead-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .il-lead-detail__grid { grid-template-columns: 1fr; }
}

.il-lead-detail__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--il-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.il-lead-detail__field span {
  font-size: 0.95rem;
  color: var(--il-text);
  font-weight: 500;
}

.il-lead-contact {
  background: #EFF6FF;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.il-lead-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--il-blue);
  text-decoration: none;
  font-size: 0.95rem;
}

.il-lead-contact a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════════════════════════ */

.il-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}

@media (max-width: 800px) {
  .il-admin-stats { grid-template-columns: 1fr 1fr; }
}

.il-admin-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.il-admin-stat--accent { border-color: var(--il-blue); }

.il-admin-stat__num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--il-blue);
}

.il-admin-stat__label {
  font-size: 0.82rem;
  color: var(--il-muted);
  margin-top: 4px;
}

.il-admin-shortcodes, .il-admin-export {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ANNUAIRE PUBLIC
══════════════════════════════════════════════════════════════════════════ */

.il-annuaire {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--il-text);
  max-width: 1100px;
  margin: 0 auto;
}

.il-ann__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.il-ann__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--il-navy);
  margin: 0 0 6px;
}

.il-ann__subtitle {
  color: var(--il-muted);
  margin: 0;
  font-size: 0.95rem;
}

.il-ann__stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.il-ann__stat {
  text-align: center;
  background: var(--il-card);
  border: 1.5px solid var(--il-border);
  border-radius: var(--il-radius);
  padding: 12px 20px;
  box-shadow: var(--il-shadow);
}

.il-ann__stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--il-blue);
  line-height: 1;
}

.il-ann__stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--il-muted);
  margin-top: 4px;
}

.il-ann__filters {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* Grille courtiers */
.il-ann__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Card courtier */
.il-broker-card {
  background: var(--il-card);
  border: 1.5px solid var(--il-border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--il-shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.il-broker-card:hover {
  box-shadow: var(--il-shadow-lg);
  transform: translateY(-3px);
  border-color: var(--il-blue);
}

.il-broker-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.il-broker-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--il-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  border: 2px solid var(--il-border);
}

.il-broker-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.il-broker-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--il-navy);
}

.il-broker-card__company {
  font-size: 0.82rem;
  color: var(--il-muted);
  margin: 0;
}

.il-broker-card__location {
  font-size: 0.82rem;
  color: var(--il-muted);
}

.il-broker-card__bio {
  font-size: 0.85rem;
  color: var(--il-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.il-broker-card__depts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.il-dept-pill {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid #BFDBFE;
}

.il-broker-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--il-border);
}

.il-broker-card__certs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.il-cert-badge {
  background: #F0FDF4;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #BBF7D0;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROFIL COURTIER PUBLIC
══════════════════════════════════════════════════════════════════════════ */

.il-profil-card {
  background: var(--il-card);
  border-radius: 14px;
  box-shadow: var(--il-shadow-lg);
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--il-text);
}

.il-profil__header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-bottom: 1px solid var(--il-border);
  flex-wrap: wrap;
}

.il-profil__avatar { flex-shrink: 0; }

.il-profil__photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.il-profil__initials {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--il-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.il-profil__identity { flex: 1; }

.il-profil__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--il-navy);
}

.il-profil__company,
.il-profil__location {
  font-size: 0.9rem;
  color: #1E40AF;
  margin: 0 0 5px;
}

.il-profil__orias {
  font-size: 0.82rem;
  color: var(--il-muted);
  margin-top: 6px;
}

.il-profil__certs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.il-profil__score { flex-shrink: 0; text-align: center; }

.il-score-ring { display: inline-block; }

.il-score-bg   { stroke: #E2E8F0; }
.il-score-fill { stroke: var(--il-green); transition: stroke-dasharray .6s ease; }
.il-score-text { font-size: 10px; font-weight: 700; fill: var(--il-navy); font-family: system-ui, sans-serif; }

.il-score-label {
  font-size: 0.72rem;
  color: var(--il-muted);
  margin-top: 4px;
}

.il-profil__section {
  padding: 24px 32px;
  border-bottom: 1px solid var(--il-border);
}

.il-profil__section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--il-muted);
  margin: 0 0 14px;
}

.il-profil__section p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--il-text);
}

.il-profil__depts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.il-profil__contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .il-profil__contact-grid { grid-template-columns: 1fr; }
  .il-profil__header { flex-direction: column; }
}

.il-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--il-bg);
  border-radius: 10px;
  text-decoration: none;
  color: var(--il-text);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--il-border);
  transition: background .15s, border-color .15s;
}

.il-contact-item:hover { background: #EFF6FF; border-color: var(--il-blue); color: var(--il-blue); }
.il-contact-icon { font-size: 1.1rem; }

.il-profil__cta {
  padding: 24px 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   FORMULAIRE PROFIL (dashboard)
══════════════════════════════════════════════════════════════════════════ */

.il-profile-annuaire {
  max-width: 780px;
}

.il-ann-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--il-radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.il-ann-status--active  { background: #D1FAE5; border: 1px solid #6EE7B7; }
.il-ann-status--inactive { background: #FEF3C7; border: 1px solid #FCD34D; }

.il-ann-status__dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.il-ann-status--active  .il-ann-status__dot { background: var(--il-green); }
.il-ann-status--inactive .il-ann-status__dot { background: var(--il-orange); }

.il-ann-status__text { flex: 1; font-size: 0.9rem; }
.il-ann-status__text a { color: var(--il-blue); font-weight: 600; }

.il-score-bar-wrap { margin-bottom: 24px; }

.il-score-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--il-text);
}

.il-score-bar {
  height: 8px;
  background: var(--il-border);
  border-radius: 4px;
  overflow: hidden;
}

.il-score-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--il-blue), var(--il-green));
  border-radius: 4px;
  transition: width .6s ease;
}

.il-profile-form__section {
  background: var(--il-card);
  border: 1.5px solid var(--il-border);
  border-radius: var(--il-radius);
  padding: 22px;
  margin-bottom: 16px;
}

.il-profile-form__section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--il-navy);
  margin: 0 0 16px;
}

.il-photo-upload {
  display: flex;
  align-items: center;
  gap: 20px;
}

.il-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--il-border);
}

.il-photo-preview img {
  width: 100%; height: 100%; object-fit: cover;
}

.il-photo-placeholder {
  width: 100%; height: 100%;
  background: var(--il-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.il-cert-checkboxes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.il-cert-check {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.il-cert-check input { display: none; }
.il-cert-check input:checked + .il-cert-badge {
  background: #166534;
  color: white;
  border-color: #166534;
}

.il-profile-form__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE CONNEXION / INSCRIPTION CUSTOM
══════════════════════════════════════════════════════════════════════════ */

.il-auth-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.il-auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--il-card);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 1px solid var(--il-border);
}

/* Brand */
.il-auth-brand {
  text-align: center;
  padding: 32px 32px 20px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1e3a5f 100%);
}

.il-auth-brand img { max-height: 52px; width: auto; }

.il-auth-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.il-auth-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin: 6px 0 0;
}

/* Tabs */
.il-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--il-border);
}

.il-auth-tab {
  flex: 1;
  padding: 14px;
  background: var(--il-bg);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--il-muted);
  cursor: pointer;
  transition: all .2s;
  border-bottom: 3px solid transparent;
}

.il-auth-tab:hover { color: var(--il-blue); background: white; }

.il-auth-tab--active {
  background: white;
  color: var(--il-blue);
  border-bottom-color: var(--il-blue);
}

/* Flash message */
.il-auth-flash {
  margin: 16px 24px 0;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.il-auth-flash--error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.il-auth-flash--success { background: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }

/* Panels */
.il-auth-panel { display: none; padding: 24px 28px 28px; }
.il-auth-panel--active { display: block; }

/* Form fields */
.il-auth-form { display: flex; flex-direction: column; gap: 16px; }

.il-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 420px) {
  .il-auth-row { grid-template-columns: 1fr; }
  .il-auth-card { border-radius: 12px; }
  .il-auth-panel { padding: 20px 18px 24px; }
}

.il-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.il-auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--il-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.il-auth-forgot {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--il-blue);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}

.il-auth-forgot:hover { text-decoration: underline; }

.il-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.il-auth-input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.il-auth-input-wrap input {
  width: 100%;
  border: 1.5px solid var(--il-border);
  border-radius: 9px;
  padding: 11px 40px 11px 40px;
  font-size: 0.95rem;
  color: var(--il-text);
  background: var(--il-bg);
  transition: border-color .2s, box-shadow .2s;
}

.il-auth-input-wrap input:focus {
  outline: none;
  border-color: var(--il-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: white;
}

.il-auth-input-wrap input.il-error { border-color: var(--il-red); }

.il-auth-field > input {
  border: 1.5px solid var(--il-border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--il-text);
  background: var(--il-bg);
  transition: border-color .2s, box-shadow .2s;
}

.il-auth-field > input:focus {
  outline: none;
  border-color: var(--il-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: white;
}

.il-auth-toggle-pwd {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.5;
  padding: 4px;
  transition: opacity .15s;
}

.il-auth-toggle-pwd:hover { opacity: 1; }

/* Force mot de passe */
.il-pwd-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.il-pwd-bar {
  flex: 1;
  height: 5px;
  background: var(--il-border);
  border-radius: 3px;
  overflow: hidden;
}

.il-pwd-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width .3s, background .3s;
}

.il-pwd-label { font-size: 0.75rem; font-weight: 600; min-width: 60px; }

/* Checkbox */
.il-auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--il-muted);
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.il-auth-checkbox input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.il-auth-checkbox a { color: var(--il-blue); }

.il-auth-field--inline { flex-direction: row; align-items: center; }

.il-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--il-muted);
  cursor: pointer;
  font-weight: 400;
}

.il-auth-remember input { width: 15px; height: 15px; }

/* Bouton submit */
.il-auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--il-blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.il-auth-submit:hover {
  background: var(--il-blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.3);
}

.il-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Switch panel */
.il-auth-switch {
  text-align: center;
  font-size: 0.84rem;
  color: var(--il-muted);
  margin: 4px 0 0;
}

.il-auth-switch a { color: var(--il-blue); font-weight: 600; text-decoration: none; }
.il-auth-switch a:hover { text-decoration: underline; }

/* Perks inscription */
.il-auth-perks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--il-border);
  border-bottom: 1px solid var(--il-border);
  flex-wrap: wrap;
}

.il-auth-perk {
  font-size: 0.78rem;
  color: var(--il-muted);
  font-weight: 500;
}

/* Reset intro */
.il-auth-reset-intro {
  font-size: 0.9rem;
  color: var(--il-muted);
  margin: 0;
  line-height: 1.6;
}

.il-req { color: var(--il-red); font-weight: 700; }

/* ══ FORM HEADER (nouveau style mockup) ══════════════════════════════ */

.il-form-wrapper {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow: hidden;
  border: none !important;
}

.il-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.il-form-header__icon {
  width: 38px;
  height: 38px;
  background: #EFF6FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.il-form-header__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0D1B2A;
  line-height: 1.2;
}

.il-form-header__sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Barre de progression en dots */
.il-steps-dots {
  display: flex;
  gap: 6px;
  padding: 14px 24px 4px;
}

.il-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: background .3s;
}

.il-dot--active  { background: #2563EB; }
.il-dot--done    { background: #10B981; }

/* Labels étapes */
.il-steps-labels {
  display: flex;
  padding: 4px 24px 16px;
  gap: 0;
}

.il-step-label {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  transition: color .3s;
}

.il-step-label--active { color: #2563EB; }
.il-step-label--done   { color: #10B981; }

/* Formulaire dans la carte */
.il-form {
  padding: 8px 24px 20px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Bouton pleine largeur */
.il-btn--full { width: 100%; justify-content: center; }

/* Badge sécurité bas de formulaire */
.il-form-secure {
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Cacher le h2 "Votre projet immobilier" (remplacé par le header) */
.il-form__title {
  display: none !important;
}
