/* e-Enregistrement Immigration — composants de base. Requiert tokens/tokens.css */
body { margin: 0; background: var(--ee-fond); color: var(--ee-encre); font-family: var(--ee-font-body); font-size: var(--ee-fs-body); line-height: 1.5; }
h1, h2, h3, .ee-display { font-family: var(--ee-font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
h1 { font-size: var(--ee-fs-h1); } h2 { font-size: var(--ee-fs-h2); } h3 { font-size: var(--ee-fs-h3); font-weight: 700; }
.ee-mono { font-family: var(--ee-font-mono); font-weight: 600; letter-spacing: .04em; }
.ee-overline { font-size: var(--ee-fs-overline); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ee-ardoise); }
a { color: var(--ee-bleu); } a:hover { color: var(--ee-encre); }

/* Boutons */
.ee-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ee-button-h); padding: 0 22px; border-radius: var(--ee-radius-md); border: 1.5px solid transparent; font: 700 15px var(--ee-font-body); cursor: pointer; text-decoration: none; }
.ee-btn--lg { height: var(--ee-button-h-lg); font-size: 17px; border-radius: var(--ee-radius-lg); }
.ee-btn--primaire { background: var(--ee-bleu); color: #fff; }
.ee-btn--primaire:hover { background: var(--ee-encre); }
.ee-btn--secondaire { background: #fff; color: var(--ee-bleu); border-color: var(--ee-bleu); }
.ee-btn--danger { background: var(--ee-rouge); color: #fff; }
.ee-btn--danger-outline { background: #fff; color: var(--ee-rouge); border-color: var(--ee-rouge); }
.ee-btn--accent { background: var(--ee-or); color: var(--ee-encre); }
.ee-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ee-bleu); }

/* Champs */
.ee-field { display: flex; flex-direction: column; gap: 6px; }
.ee-label { font-size: var(--ee-fs-small); font-weight: 600; }
.ee-hint { font-size: var(--ee-fs-caption); color: var(--ee-ardoise); }
.ee-input, .ee-select { height: var(--ee-input-h); border-radius: var(--ee-radius-md); border: 1px solid var(--ee-trait-fort); padding: 0 14px; font: 16px var(--ee-font-body); color: var(--ee-encre); background: #fff; }
.ee-input:focus, .ee-select:focus { outline: none; border: 1.5px solid var(--ee-bleu); box-shadow: var(--ee-shadow-focus); }
.ee-input--mono { font-family: var(--ee-font-mono); }

/* Badges de statut : <span class="ee-badge ee-badge--regulier">Régulier</span> */
.ee-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--ee-radius-pill); font-size: 13px; font-weight: 700; }
.ee-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ee-badge--regulier   { background: var(--ee-statut-regulier-bg);   color: var(--ee-statut-regulier-text); }
.ee-badge--proche     { background: var(--ee-statut-proche-bg);     color: var(--ee-statut-proche-text); }
.ee-badge--expire     { background: var(--ee-statut-expire-bg);     color: var(--ee-statut-expire-text); }
.ee-badge--regularise { background: var(--ee-statut-regularise-bg); color: var(--ee-statut-regularise-text); }
.ee-badge--cloture    { background: var(--ee-statut-cloture-bg);    color: var(--ee-statut-cloture-text); }

/* Cartes, encadrés */
.ee-card { background: #fff; border: 1px solid var(--ee-trait); border-radius: var(--ee-radius-xl); padding: 20px; }
.ee-card--bleu { background: var(--ee-bleu); color: #fff; border: none; }
.ee-note { display: flex; gap: 10px; padding: 12px 14px; background: var(--ee-voile); border-radius: var(--ee-radius-lg); font-size: 14px; }

/* Filet tricolore — un seul par écran (en-tête ou haut de document) */
.ee-tricolore { display: flex; height: 4px; }
.ee-tricolore::before, .ee-tricolore::after, .ee-tricolore > i { content: ""; flex: 1; }
.ee-tricolore::before { background: var(--ee-bleu); } .ee-tricolore > i { background: var(--ee-or); } .ee-tricolore::after { background: var(--ee-rouge); }

/* Pastille d'icône */
.ee-icon-pill { width: 52px; height: 52px; border-radius: 50%; background: var(--ee-bleu); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ee-icon-pill--alerte { background: var(--ee-rouge); }

/* Tableau */
.ee-table-wrap { overflow-x: auto; }
.ee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ee-table th { background: var(--ee-fond); text-align: left; padding: 10px 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ee-ardoise); }
.ee-table td { padding: 12px 16px; border-top: 1px solid #E8EBF1; }
