:root{
  --mect-primary:#082b57;
  --mect-accent:#08a66b;
  --mect-bg:#f4f9fd;
  --mect-ink:#08254a;
  --mect-muted:#64748b;
  --mect-line:#dce8f3;
  --mect-shadow:0 24px 70px rgba(8,43,87,.10);
  --mect-radius:28px;
}
.mect-app{font-family:Inter,Arial,sans-serif;color:var(--mect-ink);background:linear-gradient(120deg,#f2fbf7,#f7fbff);padding:42px 18px;min-height:100vh}
.mect-app *{box-sizing:border-box}
.mect-hero,.mect-stats,.mect-dashboard{width:min(1320px,100%);margin-left:auto;margin-right:auto}
.mect-hero{display:grid;grid-template-columns:1.18fr .82fr;gap:26px;align-items:center;background:radial-gradient(circle at 85% 20%,rgba(8,166,107,.22),transparent 30%),linear-gradient(135deg,#061f44 0%,#082b57 58%,#076b67 100%);border-radius:34px;padding:48px;color:#fff;box-shadow:var(--mect-shadow);overflow:hidden;position:relative}
.mect-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.08),transparent 45%)}
.mect-hero>*{position:relative}
.mect-kicker{display:inline-flex;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.14);font-weight:950;font-size:12px;letter-spacing:.06em}
.mect-hero h1{font-size:clamp(40px,5vw,72px);line-height:1;margin:18px 0 16px;color:#fff;letter-spacing:-.045em}
.mect-hero p{font-size:18px;line-height:1.58;color:rgba(255,255,255,.88);max-width:760px}
.mect-hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.mect-btn{border:0;border-radius:16px;padding:13px 20px;font-weight:950;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s transform,.18s box-shadow}
.mect-btn:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(0,0,0,.14)}
.mect-primary{background:linear-gradient(135deg,var(--mect-primary),var(--mect-accent));color:#fff}
.mect-secondary{background:#fff;color:var(--mect-primary)}
.mect-light{background:#f7fbff;color:var(--mect-primary);border:1px solid var(--mect-line)}
.mect-hero-card{display:grid;place-items:center}
.mect-mini-profile{width:min(360px,100%);height:430px;background:rgba(255,255,255,.94);border-radius:30px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.20);display:grid;grid-template-rows:90px 34px 1fr;gap:14px}
.mect-mini-profile span{width:86px;height:86px;border-radius:50%;background:linear-gradient(135deg,var(--mect-primary),var(--mect-accent))}
.mect-mini-profile b{width:75%;height:22px;border-radius:8px;background:#092852}
.mect-mini-profile i{display:block;height:10px;border-radius:999px;background:#dce8f3}
.mect-mini-profile i:nth-of-type(1){width:92%}
.mect-mini-profile i:nth-of-type(2){width:70%}
.mect-mini-profile em{display:block;border-radius:18px;background:linear-gradient(180deg,#eef6fb,#fff);border:1px solid #e5edf5}
.mect-demo-alert{width:min(1320px,100%);margin:18px auto 0;background:#fff8e8;border:1px solid #f8d88a;color:#7c4a03;border-radius:18px;padding:14px 18px;font-weight:800}
.mect-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:20px}
.mect-stats div{background:#fff;border:1px solid var(--mect-line);border-radius:22px;padding:22px;box-shadow:0 14px 40px rgba(8,43,87,.06)}
.mect-stats strong{display:block;font-size:32px;color:var(--mect-primary);line-height:1}
.mect-stats span{display:block;color:var(--mect-muted);font-weight:800;margin-top:6px}
.mect-dashboard{display:grid;grid-template-columns:320px minmax(0,1fr);gap:22px;margin-top:22px;align-items:start}
.mect-filter-card,.mect-results{background:rgba(255,255,255,.92);border:1px solid var(--mect-line);border-radius:var(--mect-radius);box-shadow:var(--mect-shadow)}
.mect-filter-card{padding:24px;position:sticky;top:24px}
.mect-filter-card h2,.mect-results h2{margin:0;color:var(--mect-primary);font-size:28px;letter-spacing:-.03em}
.mect-filter-card p,.mect-results-head p{color:var(--mect-muted);margin:6px 0 18px}
.mect-filter-card label{display:block;margin:14px 0 7px;font-weight:950;color:var(--mect-primary)}
.mect-filter-card input,.mect-filter-card select{width:100%;min-height:48px;border:1px solid var(--mect-line);border-radius:14px;background:#f8fbff;padding:0 14px;color:var(--mect-ink);font-weight:750}
.mect-filter-card button{width:100%;margin-top:18px}
.mect-results{padding:24px}
.mect-results-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.mect-view-note{background:#eefaf5;color:var(--mect-accent);font-weight:950;border-radius:999px;padding:9px 14px}
.mect-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.mect-card{border:1px solid var(--mect-line);border-radius:24px;background:#fff;padding:18px;box-shadow:0 12px 30px rgba(8,43,87,.06);display:flex;flex-direction:column;gap:14px}
.mect-card-top{display:flex;gap:14px;align-items:center}
.mect-avatar{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,var(--mect-primary),var(--mect-accent));color:#fff;font-size:26px;font-weight:950;overflow:hidden;flex:0 0 auto}
.mect-avatar img{width:100%;height:100%;object-fit:cover}
.mect-card h3{margin:0;font-size:22px;color:var(--mect-primary)}
.mect-card-top p{margin:4px 0 0;color:var(--mect-muted);font-weight:850}
.mect-tags,.mect-skills{display:flex;gap:8px;flex-wrap:wrap}
.mect-tags span{background:#eef6fb;color:#12345b;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}
.mect-skills span{background:#eefaf5;color:#087d55;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}
.mect-summary{color:#42526b;line-height:1.48;margin:0}
.mect-score-row{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.mect-score-row div{border-left:5px solid var(--mect-accent);background:#f8fbff;border-radius:16px;padding:12px}
.mect-score-row strong{display:block;color:var(--mect-primary);font-size:20px}
.mect-score-row span{display:block;color:var(--mect-muted);font-size:12px;font-weight:900}
.mect-empty{background:#fff;border:1px dashed var(--mect-line);border-radius:20px;padding:30px;text-align:center;color:var(--mect-muted);font-weight:900;margin-top:20px}
.mect-modal{position:fixed;inset:0;background:rgba(3,18,39,.66);backdrop-filter:blur(8px);z-index:999999;padding:30px;overflow:auto}
.mect-modal-card{width:min(860px,96vw);margin:30px auto;background:#fff;border-radius:30px;box-shadow:0 30px 90px rgba(0,0,0,.28);padding:30px;position:relative}
.mect-close{position:absolute;right:18px;top:18px;width:46px;height:46px;border-radius:50%;border:0;background:#082b57;color:#fff;font-size:26px;cursor:pointer}
.mect-profile-head{display:flex;gap:18px;align-items:center;margin-bottom:18px}
.mect-profile-head .mect-avatar{width:82px;height:82px;border-radius:26px}
.mect-profile-head h2{margin:0;font-size:34px;color:var(--mect-primary)}
.mect-profile-head p{margin:6px 0 0;color:var(--mect-muted);font-weight:850}
.mect-profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0}
.mect-info{background:#f8fbff;border:1px solid var(--mect-line);border-radius:18px;padding:15px}
.mect-info strong{display:block;color:var(--mect-primary);margin-bottom:4px}
.mect-info span{color:#42526b}
@media(max-width:1050px){
  .mect-hero,.mect-dashboard{grid-template-columns:1fr}
  .mect-filter-card{position:relative;top:auto}
  .mect-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .mect-app{padding:24px 12px}
  .mect-hero{padding:28px;border-radius:24px}
  .mect-stats{grid-template-columns:1fr 1fr}
  .mect-results-head{display:block}
  .mect-profile-grid{grid-template-columns:1fr}
}

/* === CVThèque v1.1.1 : lisibilité du bandeau === */
.mect-hero{
  background:
    linear-gradient(90deg,rgba(2,17,38,.84),rgba(2,17,38,.54)),
    radial-gradient(circle at 85% 20%,rgba(8,166,107,.24),transparent 30%),
    linear-gradient(135deg,#061f44 0%,#082b57 58%,#076b67 100%)!important;
}
.mect-hero h1{
  color:#ffffff!important;
  text-shadow:0 3px 18px rgba(0,0,0,.38)!important;
  font-weight:950!important;
}
.mect-hero p{
  color:rgba(255,255,255,.94)!important;
  text-shadow:0 2px 12px rgba(0,0,0,.24)!important;
}
.mect-kicker{
  background:rgba(255,255,255,.22)!important;
  color:#ffffff!important;
  border:1px solid rgba(255,255,255,.28)!important;
}
