/* Mundia — Observatoire. Reprend la palette de l'accueil (mx-*). */
.mo{--mo-texte:#0f2233;--mo-gris:#5b6b7a;--mo-trait:#e2ecf1;--mo-teinte:#f3f8fa;--mo-vert:#0d9488;--mo-orange:#d97706;display:grid;gap:1.6rem}
.mo h3{font-size:clamp(1.3rem,2vw,1.6rem)!important;letter-spacing:-.025em;margin:0 0 .35rem!important;color:var(--mo-texte)}
.mo p{margin:0}
.mo-vide{color:var(--mo-gris);padding:1rem 0}

/* En-tête de vue et choix du pays */
.mo-tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem 2rem;padding-bottom:.4rem}
.mo-tete__sur{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#0f766e}
.mo .mo-tete__nom{font-size:clamp(2rem,4.5vw,3rem)!important;font-weight:750;letter-spacing:-.045em;line-height:1.05;margin:.2rem 0 0!important;color:var(--mo-texte)}
.mo-changer{display:inline-flex;align-items:center;gap:.55rem;font:inherit;font-size:.92rem;font-weight:600;color:#0f766e;background:#fff;border:1px solid #cfe2ea;border-radius:999px;padding:.55rem 1rem .55rem .65rem;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.mo-changer:hover{border-color:#2dd4bf;box-shadow:0 0 0 4px rgba(45,212,191,.15)}
.mo-changer[hidden]{display:none}
.mo-changer span{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#a7f3d0,#2dd4bf 45%,#0284c7)}
.mo-avis{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:.8rem 1rem;font-size:.92rem}
.mo-section-tete{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;margin-bottom:-.6rem}
.mo-section-tete--detail{margin-top:1.4rem;padding-top:1.6rem;border-top:1px solid #d5e5ec}
.mo-section-tete h3{margin:0!important}
.mo-source{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;font-weight:600;color:#0f766e;background:#e6f7f4;border-radius:999px;padding:.3rem .75rem}
.mo-source::before{content:"";width:6px;height:6px;border-radius:50%;background:#14b8a6}
.mo-intro{color:var(--mo-gris);font-size:.95rem;max-width:46rem;margin-top:-.4rem!important}
.mo-kpi__rang{font-size:.8rem;font-weight:600;color:#0f766e;margin-top:.15rem!important}
.mo-bloc--note p{color:var(--mo-gris);max-width:46rem;margin-top:.4rem}
.mo-bloc--note a{color:#0f766e;font-weight:600}
.mo-ligne--ref{stroke-dasharray:6 5;stroke-width:2;animation:none;stroke-dashoffset:0;opacity:.7}

/* Chiffres clés */
.mo-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}
.mo-kpi{background:#fff;border:1px solid var(--mo-trait);border-radius:20px;padding:1.3rem 1.3rem 1.2rem;box-shadow:0 18px 40px -32px rgba(6,21,34,.5)}
.mo-kpi__nom{font-size:.85rem;font-weight:600;color:var(--mo-gris);letter-spacing:.01em}
.mo-kpi__val{font-size:clamp(1.9rem,3vw,2.4rem);font-weight:700;letter-spacing:-.04em;line-height:1.1;margin:.3rem 0 .2rem!important;color:var(--mo-texte)}
.mo-kpi--ok .mo-kpi__val{background:linear-gradient(90deg,#0f766e,#0284c7);-webkit-background-clip:text;background-clip:text;color:transparent}
.mo-kpi__det{font-size:.82rem;color:var(--mo-gris)}
.mo-hausse{color:var(--mo-vert);font-weight:600}
.mo-baisse{color:#e11d48;font-weight:600}
.mo-jauge{position:relative;height:6px;border-radius:6px;background:var(--mo-teinte);margin-top:.9rem}
.mo-jauge span{position:absolute;inset:0 auto 0 0;border-radius:6px;background:linear-gradient(90deg,#2dd4bf,#38bdf8)}
.mo-kpi:not(.mo-kpi--ok) .mo-jauge span{background:linear-gradient(90deg,#fbbf24,#f59e0b)}
.mo-jauge i{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--mo-texte);border-radius:2px}

/* Blocs */
.mo-bloc{background:#fff;border:1px solid var(--mo-trait);border-radius:24px;padding:clamp(1.2rem,3vw,2rem);box-shadow:0 24px 60px -45px rgba(6,21,34,.55)}
.mo-bloc__tete{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:1rem 2rem;margin-bottom:1.2rem}
.mo-bloc__tete p{color:var(--mo-gris);font-size:.95rem;max-width:40rem}
.mo-legende{display:flex;flex-wrap:wrap;gap:.45rem}
.mo-puce{display:inline-flex;align-items:center;gap:.45rem;font:inherit;font-size:.83rem;font-weight:600;padding:.4rem .8rem;border-radius:999px;border:1px solid var(--mo-trait);background:#fff;color:var(--mo-texte);cursor:pointer;transition:opacity .2s,background .2s}
.mo-puce i{width:10px;height:10px;border-radius:50%}
.mo-puce[aria-pressed=false]{opacity:.45;background:var(--mo-teinte)}
.mo-puce:hover{border-color:#b6d5df}

/* Courbes */
.mo-courbe,.mo-detail__courbe{position:relative}
.mo-svg{width:100%;height:auto;display:block;overflow:visible}
.mo-grille{stroke:#e8f0f4;stroke-width:1}
.mo-axe{font-size:12px;fill:#8796a4;font-family:inherit}
.mo-axe--obj{fill:#0f766e;font-weight:600}
.mo-objectif{stroke:#0f766e;stroke-width:1.4;stroke-dasharray:5 5;opacity:.7}
.mo-ligne{fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:2000;stroke-dashoffset:2000;animation:mo-trace 1.6s cubic-bezier(.3,.7,.2,1) forwards}
@keyframes mo-trace{to{stroke-dashoffset:0}}
.mo-point{stroke:#fff;stroke-width:1.5}
.mo-curseur{stroke:#94a3b8;stroke-width:1;stroke-dasharray:3 3;opacity:0;pointer-events:none}
.mo-bulle{position:absolute;top:0;transform:translateX(-50%);min-width:170px;background:rgba(6,21,34,.94);color:#fff;border-radius:12px;padding:.6rem .75rem;font-size:.8rem;line-height:1.5;pointer-events:none;opacity:0;transition:opacity .15s;box-shadow:0 14px 30px -12px rgba(0,0,0,.5);z-index:2}
.mo-bulle strong{display:block;font-size:.85rem;margin-bottom:.2rem}
.mo-bulle span{display:flex;align-items:center;gap:.4rem}
.mo-bulle i{width:8px;height:8px;border-radius:50%;flex:none}
.mo-bulle b{margin-left:auto;padding-left:.8rem}

/* Classement des départements */
.mo-outils{display:flex;flex-wrap:wrap;gap:.6rem}
.mo-outils select,.mo-outils input{font:inherit;font-size:.92rem;padding:.6rem .9rem;border-radius:12px;border:1px solid var(--mo-trait);background:#fff;color:var(--mo-texte);min-width:0}
.mo-outils select{max-width:100%}
.mo-outils input{width:220px}
.mo-outils :focus{outline:2px solid #2dd4bf;outline-offset:1px}
.mo-resume{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:1.2rem}
.mo-resume div{background:var(--mo-teinte);border-radius:14px;padding:.8rem 1rem}
.mo-resume b{display:block;font-size:1.25rem;letter-spacing:-.02em;color:var(--mo-texte)}
.mo-resume span{font-size:.8rem;color:var(--mo-gris)}
.mo-barres{list-style:none;margin:0;padding:0;display:grid;gap:.25rem}
.mo-barre button{all:unset;box-sizing:border-box;width:100%;display:grid;grid-template-columns:2.2rem minmax(8rem,14rem) 1fr 4.6rem;align-items:center;gap:.8rem;padding:.45rem .6rem;border-radius:10px;cursor:pointer;transition:background .15s}
.mo-barre button:hover,.mo-barre button:focus-visible{background:var(--mo-teinte)}
.mo-barre__rang{font-size:.8rem;color:#8796a4;text-align:right;font-variant-numeric:tabular-nums}
.mo-barre__nom{font-size:.92rem;color:var(--mo-texte);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mo-barre__nom small{color:#8796a4;margin-left:.2rem}
.mo-barre__piste{position:relative;height:10px;border-radius:10px;background:var(--mo-teinte)}
.mo-barre__piste::after{content:"";position:absolute;left:var(--obj);top:-4px;bottom:-4px;width:2px;background:#0f766e;opacity:.55;border-radius:2px}
.mo-barre__piste span{position:absolute;inset:0 auto 0 0;border-radius:10px;background:linear-gradient(90deg,#fcd34d,#f59e0b);transition:width .6s cubic-bezier(.3,.7,.2,1)}
.mo-barre--ok .mo-barre__piste span{background:linear-gradient(90deg,#2dd4bf,#38bdf8)}
.mo-barre__val{font-size:.92rem;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;color:var(--mo-texte)}
.mo-saut{text-align:center;padding:.4rem 0}
.mo-saut button{font:inherit;font-size:.85rem;font-weight:600;color:#0f766e;background:none;border:1px dashed #b6d5df;border-radius:999px;padding:.45rem 1rem;cursor:pointer}
.mo-detail{margin-top:1.2rem;border-top:1px solid var(--mo-trait);padding-top:1.2rem}
.mo-detail__tete{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}
.mo-detail h4{margin:0;font-size:1.1rem}
.mo-detail h4 small{color:#8796a4;font-weight:500}
.mo-fermer{font:inherit;font-size:1.4rem;line-height:1;width:2rem;height:2rem;border-radius:50%;border:1px solid var(--mo-trait);background:#fff;cursor:pointer;color:var(--mo-gris)}

/* Sources */
.mo-sources{font-size:.9rem;color:var(--mo-gris);padding:0 .2rem}
.mo-sources h3{font-size:1.05rem!important}
.mo-sources ul{margin:.4rem 0 .8rem;padding-left:1.1rem}
.mo-sources li{margin:.25rem 0}
.mo-sources a{color:#0f766e}

/* Tableau sans JavaScript */
.mo-tableau{width:100%;border-collapse:collapse;font-size:.88rem}
.mo-tableau th,.mo-tableau td{padding:.4rem .5rem;border-bottom:1px solid var(--mo-trait);text-align:right}
.mo-tableau th:first-child,.mo-tableau td:first-child{text-align:left}

@media (max-width:700px){
  .mo-resume{grid-template-columns:1fr 1fr}
  .mo-barre button{grid-template-columns:1.6rem minmax(0,1fr) 3.8rem;row-gap:.3rem;gap:.3rem .6rem}
  .mo-barre__piste{grid-column:2/4;grid-row:2}
  .mo-outils,.mo-outils select,.mo-outils input{width:100%}
  .mo-axe{font-size:13px}
  .mo-kpi{padding:1rem}
  .mo-legende{gap:.35rem}
}
@media (prefers-reduced-motion:reduce){.mo-ligne{animation:none;stroke-dashoffset:0}}
.mo .mo-tete__nom{display:flex;align-items:center;gap:.9rem}
.mo-tete__drapeau{display:block;flex:none;width:48px!important;height:36px!important;object-fit:cover;border-radius:6px!important;box-shadow:0 0 0 1px rgba(6,21,34,.12),0 6px 16px -8px rgba(6,21,34,.45)!important}
.mo-barre__nom .mx-drapeau{--w:20px;--h:15px;margin-right:.5rem;vertical-align:-2px}
@media (max-width:600px){.mo-tete__drapeau{width:38px!important;height:28.5px!important}}

/* 0.4.0 : thèmes, unités, cibles */
.mo-themes{display:flex;gap:.4rem;overflow-x:auto;scrollbar-width:none;margin-top:-.4rem;padding:.25rem;background:var(--mo-teinte);border:1px solid var(--mo-trait);border-radius:999px;width:max-content;max-width:100%}
.mo-themes::-webkit-scrollbar{display:none}
.mo-themes a{flex:none;font-size:.9rem;font-weight:600;color:var(--mo-gris);text-decoration:none!important;padding:.5rem 1rem;border-radius:999px;transition:background .15s,color .15s}
.mo-themes a:hover{color:var(--mo-texte);background:#fff}
.mo-themes a[aria-current]{color:#fff;background:linear-gradient(90deg,#0f766e,#0284c7);box-shadow:0 6px 16px -8px rgba(2,132,199,.7)}
.mo-kpi__unite{font-size:.78rem;color:var(--mo-gris);margin:-.1rem 0 .3rem!important}
.mo-kpi__cible{font-size:.8rem;font-weight:600;color:var(--mo-orange);margin-top:.6rem!important;padding-top:.6rem;border-top:1px solid var(--mo-trait)}
.mo-kpi__cible--ok{color:#0f766e}
.mo-barres--sans-obj .mo-barre__piste::after{display:none}
.mo-barre--neutre .mo-barre__piste span{background:linear-gradient(90deg,#2dd4bf,#38bdf8)}
.mo-barre__nom small{white-space:nowrap}
@media (max-width:600px){.mo-themes{border-radius:16px;width:100%}.mo-themes a{padding:.45rem .8rem;font-size:.85rem}}

/* Annuaire des pays : un lien par pays, lisible sans script. */
.mo-annuaire{background:#fff;border:1px solid var(--mo-trait);border-radius:24px;padding:clamp(1.2rem,3vw,2rem);font-size:.92rem}
.mo-annuaire h3{font-size:1.05rem!important;margin:0 0 .7rem}
.mo-annuaire h4{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--mo-gris);margin:1.1rem 0 .5rem}
.mo-annuaire summary{cursor:pointer;font-weight:700;color:var(--mo-texte);padding:.3rem 0}
.mo-annuaire h3+.mo-annuaire__liste{margin-bottom:1rem}
.mo-annuaire__liste{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));gap:.15rem .9rem}
.mo-annuaire__liste a{display:block;padding:.3rem 0;color:#0f766e;text-decoration:none;overflow-wrap:anywhere}
.mo-annuaire__liste a:hover{text-decoration:underline}
