/**
 * wordcloud_views.css — les styles du moteur de presentations du nuage de mots.
 *
 * Ils accompagnent js/wordcloud_views.js, qui cree les elements .ec-*. Ils
 * vivaient dans un <style> de admin/wordcloud_live.php ; la page publique
 * nuage-de-mots.php a besoin des memes, et deux copies auraient diverge au
 * premier correctif. Une seule source, chargee des deux cotes.
 *
 * Deplace tel quel le 05/10/2026, sans reecriture : le rendu du back-office
 * doit rester identique.
 */

/* Les présentations (js/wordcloud_views.js) */
.ec-zone { position: relative; overflow: hidden; }
.ec-nuage { height: 100%; box-sizing: border-box; padding: 22px 26px; display: flex; flex-wrap: wrap; align-content: center; align-items: baseline;
            justify-content: center; overflow: hidden; }
/* L'écart entre les mots suit la taille de CHAQUE mot (em du mot, pas du cadre). */
.ec-mot { margin: 0 .2em; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; white-space: nowrap; }
.ec-plus { align-self: center; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-size: .9rem; font-weight: 700; color: #5C6B64; }
.ec-canvas { display: block; width: 100%; height: 100%; }
.ec-classement { height: 100%; box-sizing: border-box; padding: 18px 26px; display: flex; flex-direction: column; justify-content: center; gap: .7em; }
.ec-ligne { display: flex; align-items: center; gap: .9em; }
.ec-rang { flex: none; width: 1.8em; height: 1.8em; border-radius: 50%; background: #EDF1EF; color: #3F5048; display: grid; place-items: center;
           font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; font-size: .8em; }
.ec-corps { flex: 1; min-width: 0; }
.ec-tete { display: flex; justify-content: space-between; gap: 12px; margin-bottom: .3em; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; color: #1F2A24; }
.ec-l-mot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-l-n { font-variant-numeric: tabular-nums; }
.ec-barre { height: .55em; border-radius: 999px; background: #EDF1EF; overflow: hidden; }
.ec-barre i { display: block; height: 100%; border-radius: 999px; }
.ec-classement .ec-plus { margin: .2em 0 0; }
.ec-bulles { position: absolute; inset: 0; }
.ec-bulle { position: absolute; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
            color: #fff; text-align: center; overflow: hidden; box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .12); }
.ec-b-mot { padding: 0 .3em; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: 1.05; white-space: nowrap; }
.ec-b-n { margin-top: .15em; font-weight: 700; opacity: .9; font-variant-numeric: tabular-nums; }
/* Post-it */
.ec-postits { height: 100%; box-sizing: border-box; padding: 22px; display: grid; justify-content: center; align-content: center; }
.ec-postit-case { display: grid; place-items: center; }
.ec-postit { position: relative; box-sizing: border-box; padding: 12px; display: grid; place-items: center; text-align: center; border-radius: 4px;
             box-shadow: 0 10px 18px rgba(16, 42, 30, .14), 0 2px 4px rgba(16, 42, 30, .08); }
.ec-postit::before { content: ''; position: absolute; top: -7px; left: 50%; width: 38%; height: 14px; transform: translateX(-50%);
                     background: rgba(255, 255, 255, .6); border-radius: 2px; }
.ec-postit-mot { max-width: 100%; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: 1.1; color: #1F2A24; overflow-wrap: anywhere; }
.ec-postit-n { position: absolute; right: 9px; bottom: 6px; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; color: rgba(31, 42, 36, .6); font-variant-numeric: tabular-nums; }
/* Mosaïque */
.ec-mosaique { position: absolute; inset: 0; }
.ec-tuile { position: absolute; box-sizing: border-box; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
            overflow: hidden; color: #fff; text-align: center; }
.ec-tuile-mot { font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: 1.05; white-space: nowrap; }
.ec-tuile-n { margin-top: .25em; font-weight: 700; opacity: .9; font-variant-numeric: tabular-nums; }
/* Tuile haute et étroite : le mot se lit de bas en haut. */
.ec-tuile-mot.is-vertical { writing-mode: vertical-rl; transform: rotate(180deg); }
/* Mots dont la tuile est trop petite : repris en bas de la mosaïque. */
.ec-mosaique .ec-aussi { position: absolute; left: 14px; right: 14px; bottom: 6px; margin: 0; }
/* Orbites */
.ec-orbites { position: absolute; inset: 0; }
.ec-orbites-fond { position: absolute; inset: 0; }
.ec-orbites-fond ellipse { fill: none; stroke: #D5E3DB; stroke-width: 1.5; stroke-dasharray: 4 6; }
.ec-orbite-mot { position: absolute; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: 1.15; white-space: nowrap; }
/* Podium */
.ec-podium { height: 100%; box-sizing: border-box; padding: 18px 24px 16px; display: flex; flex-direction: column; }
.ec-marches { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.ec-marche-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ec-marche-mot { max-width: 100%; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.ec-marche { width: 100%; box-sizing: border-box; padding-top: 10px; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; color: #fff; }
.ec-marche-rang { font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: 1; }
.ec-marche-n { margin-top: 4px; font-weight: 700; opacity: .92; font-variant-numeric: tabular-nums; }
.ec-aussi { flex: none; box-sizing: border-box; margin-top: 10px; padding-top: 8px; border-top: 1px solid #E3EFE9; display: flex; flex-wrap: wrap;
            align-content: center; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.ec-aussi-titre { margin-right: 4px; font-weight: 800; color: #4B5A53; }
.ec-aussi-mot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #F1F5F2; font-weight: 700; color: #1F2A24; white-space: nowrap; }
.ec-aussi-dot { width: 8px; height: 8px; border-radius: 50%; }
/* Affiche */
.ec-affiche { height: 100%; box-sizing: border-box; padding: 20px 32px; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; }
.ec-aff-ligne { max-width: 100%; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; line-height: .98; letter-spacing: -.01em; white-space: nowrap; text-align: center; }
.ec-aff-n { margin-left: .25em; font-size: .22em; font-weight: 700; vertical-align: super; opacity: .7; }
/* Colonnes */
.ec-colonnes { height: 100%; box-sizing: border-box; padding: 20px; display: flex; align-items: flex-end; justify-content: center; }
.ec-col { height: 100%; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ec-col-n { flex: none; height: 24px; line-height: 24px; font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; font-size: .9rem; color: #1F2A24; font-variant-numeric: tabular-nums; }
.ec-col-barre { flex: none; width: 100%; border-radius: 8px 8px 0 0; }
.ec-col-mot { flex: none; height: 34px; line-height: 34px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
              font-family: var(--font-title, 'Plus Jakarta Sans', sans-serif); font-weight: 800; color: #1F2A24; }
.ec-nouveau { animation: ec-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes ec-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
