/* Styles propres au module antennes (complètent /social.css).
   Accueille aussi les compléments d'Explorer (.ex-*), des notifications (.nt-*) et de la colonne de droite (.cd-*). */

/* ───────── focus visible (clavier) ───────── */
:is(.an, .ex, .nt, .cd) :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px;
}
:is(.an, .ex, .nt, .cd) .m-carte:focus-visible { outline-offset: 3px; border-radius: var(--r3); }

/* ───────── cartes de découverte ───────── */
.m-carte .c-pied svg { width: 14px; height: 14px; flex: none; }
.m-carte .c-corps b .m-badge { margin-left: 4px; }
.an-sq { height: 196px; border-radius: var(--r3); border: 1px solid var(--s-trait);
  background: linear-gradient(100deg, var(--s-surface) 40%, var(--s-surface2) 50%, var(--s-surface) 60%) 0 0 / 300% 100%; animation: ondule 1.4s linear infinite; }
.an-creer-carte { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 196px; border-radius: var(--r3);
  border: 1.5px dashed var(--s-trait-fort); background: none; color: var(--s-texte2); font: 650 14.5px var(--f-texte); }
.an-creer-carte svg { width: 30px; height: 30px; color: var(--accent-txt); }
.an-creer-carte:hover { background: var(--s-surface); color: var(--s-texte); }

/* ───────── page d'une antenne ───────── */
.an-page-tete { position: relative; }
.an .m-identite .haut-id .m-ligne { gap: 8px; }
.an .m-ib.on { color: var(--accent-txt); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.an-sujets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.an-sujets a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--s-surface2); color: var(--s-texte2);
  font: 600 12.5px var(--f-texte); text-decoration: none; }
.an-sujets a:hover { color: var(--s-texte); }
.an-sujets a::before { content: "#"; opacity: .55; margin-right: 1px; }
.an-ferme { margin: 18px 16px; padding: 22px 18px; border-radius: var(--r3); border: 1px dashed var(--s-trait-fort); text-align: center; }
.an-ferme svg { width: 34px; height: 34px; color: var(--s-doux); }
.an-ferme h3 { font: 800 19px var(--f-titre); letter-spacing: -.02em; margin: 8px 0 4px; }
.an-ferme p { margin: 0; color: var(--s-doux); line-height: 1.45; }
.an-barre-admin { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px; padding: 10px 12px; border-radius: var(--r2);
  background: color-mix(in srgb, var(--accent) 8%, var(--s-surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--s-trait)); font-size: 13.5px; }
.an-barre-admin svg { width: 18px; height: 18px; color: var(--accent-txt); flex: none; }
.an-barre-admin span { flex: 1; min-width: 0; }

/* ───────── administration ───────── */
.an-lpub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--s-trait); }
.an-lpub p { margin: 0; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-lpub p.sans { color: var(--s-doux); font-style: italic; }
.an-lpub .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 11px var(--f-mono); color: var(--s-doux); }
.an-lpub .act { display: flex; flex-wrap: wrap; gap: 6px; }
.an-ligne-p { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--s-trait); }
.an-ligne-p .m-flex { flex: 1; min-width: 0; }
.an-ligne-p b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-ligne-p small { display: block; color: var(--s-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-ligne-p .act { display: flex; gap: 6px; flex: none; }
.an-axe { display: flex; justify-content: space-between; padding: 6px 16px 0; font: 500 10px var(--f-mono); color: var(--s-doux); }
.an .m-barres { margin-top: 8px; }
.an .m-barres i { position: relative; }
.an .m-barres i:hover { opacity: 1; }
.an-tableau { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.an-tableau th { text-align: right; font: 600 10px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--s-doux); padding: 8px 6px; border-bottom: 1px solid var(--s-trait); }
.an-tableau th:first-child, .an-tableau td:first-child { text-align: left; padding-left: 16px; }
.an-tableau th:last-child, .an-tableau td:last-child { padding-right: 16px; }
.an-tableau td { padding: 10px 6px; border-bottom: 1px solid var(--s-trait); text-align: right; font-family: var(--f-mono); font-size: 12.5px; }
.an-tableau td:first-child { font-family: var(--f-texte); font-size: 13.5px; max-width: 0; width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-tableau td:first-child a { color: inherit; text-decoration: none; }

/* ───────── formulaire d'antenne ───────── */
.an-form { padding: 6px 16px 18px; }
.an-f-visuel { position: relative; margin: 8px 0 52px; }
.an-f-couv { position: relative; height: 128px; border-radius: var(--r3); overflow: hidden; background: var(--teinte, var(--s-surface3)); }
.an-f-couv img { width: 100%; height: 100%; object-fit: cover; }
.an-f-couv svg.trame { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(255 255 255 / .16); }
.an-f-couv .m-btn { position: absolute; right: 10px; bottom: 10px; background: rgb(0 0 0 / .55); color: #fff; }
.an-f-av { position: absolute; left: 16px; bottom: -42px; }
.an-f-av .m-mono-c { --t: 84px; box-shadow: 0 0 0 4px var(--s-fond); }
.an-f-av button { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--s-fond); background: var(--s-texte); color: var(--s-fond); display: grid; place-items: center; }
.an-f-av button svg { width: 16px; height: 16px; }
.an-slug { display: flex; align-items: stretch; border: 1px solid var(--s-trait); border-radius: 12px; background: var(--s-surface); overflow: hidden; }
.an-slug:focus-within { border-color: var(--s-texte2); }
.an-slug span { display: flex; align-items: center; padding: 0 0 0 12px; font: 500 12.5px var(--f-mono); color: var(--s-doux); white-space: nowrap; }
.an-slug input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 12px 11px 2px; color: var(--s-texte); font: 500 14px var(--f-mono); outline: none; }
.an-etat { font-size: 12.5px; margin: 5px 0 0; min-height: 17px; }
.an-etat.ok { color: var(--vert); } .an-etat.ko { color: var(--rouge); }
.an-form .m-teintes { padding: 4px 0 4px; }
.an-form .m-reglage { padding-left: 0; padding-right: 0; }

/* ───────── Explorer ───────── */
.ex-barre { padding: 4px 16px 10px; position: relative; }
.ex-barre .m-champ { height: 48px; font-size: 16px; padding-right: 44px; }
.ex-barre .ex-x { position: absolute; right: 22px; top: 9px; }
.ex-recents { margin: 0 16px 8px; border: 1px solid var(--s-trait); border-radius: var(--r2); overflow: hidden; }
.ex-recents header { display: flex; align-items: center; padding: 10px 12px 6px 14px; }
.ex-recents header .m-flex { flex: 1; }
.ex-recent { display: flex; align-items: center; gap: 4px; }
.ex-recent > button:first-child { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; background: none; border: 0; color: var(--s-texte); font: 500 14.5px var(--f-texte); text-align: left; }
.ex-recent > button:first-child svg { width: 17px; height: 17px; color: var(--s-doux); flex: none; }
.ex-recent > button:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-recent:hover { background: var(--s-surface); }
.ex-suivre { flex: none; }
.ex-suivre.on { background: transparent; border-color: var(--s-trait-fort); color: var(--s-texte); }
.ex-tag-tete { display: flex; align-items: center; gap: 14px; padding: 16px; }
.ex-tag-tete .rond { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-txt); font: 800 28px var(--f-titre); flex: none; }
.ex-tag-tete h2 { margin: 0; font: 800 24px/1.1 var(--f-titre); letter-spacing: -.03em; overflow-wrap: anywhere; }
.ex-tag-tete p { margin: 3px 0 0; color: var(--s-doux); font-size: 13.5px; }
.ex-tendances { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ex-tendances .m-tendance { border-bottom: 1px solid var(--s-trait); }
.ex-tendances .rang { float: right; font: 600 11px var(--f-mono); color: var(--s-doux); }
.ex-plus { display: block; width: calc(100% - 32px); margin: 4px 16px 10px; }

/* ───────── Notifications ───────── */
.nt .m-notif { cursor: pointer; transition: background var(--duree); }
.nt .m-notif:hover { background: var(--s-surface); }
.nt .m-notif.nonlue:hover { background: color-mix(in srgb, var(--accent) 10%, var(--s-surface)); }
.nt .m-notif .ico { color: var(--s-texte2); }
.nt .m-notif .ico.accent { color: var(--accent-txt); }
.nt .m-notif .ico.bleu { color: var(--bleu); }
.nt .m-notif .ico.vert { color: var(--vert); }
.nt .m-notif .ico.violet { color: var(--violet); }
.nt .m-notif .ico .r-ico, .nt .m-notif .ico .r-ico svg { width: 26px; height: 26px; display: block; }
.nt .m-notif .corps-n { min-width: 0; padding-right: 30px; }
.nt .m-notif a.nt-lien { color: inherit; text-decoration: none; }
.nt .m-notif a.nt-lien b { font-weight: 700; }
.nt .m-notif .nt-sup { position: absolute; right: 8px; top: 8px; opacity: 0; color: var(--s-doux); }
.nt .m-notif:hover .nt-sup, .nt .m-notif .nt-sup:focus-visible { opacity: 1; }
@media (hover: none) { .nt .m-notif .nt-sup { opacity: .7; } }
.nt-actions { display: flex; gap: 8px; margin-top: 10px; }
.nt-demandes { margin: 12px 16px 4px; }
.nt-demandes .an-ligne-p { padding-left: 14px; padding-right: 14px; }
.nt-demandes .an-ligne-p:last-child { border-bottom: 0; }
.nt-push { display: flex; align-items: center; gap: 12px; margin: 12px 16px 4px; padding: 12px 14px; border-radius: var(--r2); background: var(--s-surface); border: 1px solid var(--s-trait); }
.nt-push > svg { width: 24px; height: 24px; color: var(--accent-txt); flex: none; }
.nt-push .m-flex { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; }
.nt-push b { display: block; font-size: 14.5px; }
.nt-jour { padding: 16px 16px 6px; }

/* ───────── colonne de droite ───────── */
.cd { padding: 14px 0 30px; }
.cd .m-encadre .m-personne { padding: 9px 14px; }
.cd .m-encadre .m-personne .m-avatar { --t: 40px; }
.cd .m-encadre > a.cd-plus, .cd .m-encadre > button.cd-plus { display: block; padding: 12px 16px 14px; color: var(--accent-txt); font: 600 13.5px var(--f-texte); text-decoration: none; background: none; border: 0; text-align: left; width: 100%; }
.cd .m-encadre > a.cd-plus:hover { background: var(--s-surface); }
.cd-mini { display: flex; align-items: center; gap: 12px; padding: 9px 14px; text-decoration: none; color: inherit; }
.cd-mini:hover { background: var(--s-surface); }
.cd-mini .m-mono-c { --t: 40px; }
.cd-mini .m-flex { flex: 1; min-width: 0; }
.cd-mini b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.cd-mini small { display: block; font: 500 10.5px var(--f-mono); color: var(--s-doux); }
.cd-pied { padding: 4px 6px; font: 500 10.5px var(--f-mono); color: var(--s-doux); line-height: 1.7; }
.cd-pied a { color: inherit; text-decoration: none; margin-right: 10px; }
.cd-pied a:hover { color: var(--s-texte); }
.cd-sq { height: 120px; border-radius: var(--r3); margin-bottom: 14px;
  background: linear-gradient(100deg, var(--s-surface) 40%, var(--s-surface2) 50%, var(--s-surface) 60%) 0 0 / 300% 100%; animation: ondule 1.4s linear infinite; }

@media (prefers-reduced-motion: reduce) { .an-sq, .cd-sq { animation: none; } }
[data-mouvement="reduit"] .an-sq, [data-mouvement="reduit"] .cd-sq { animation: none; }
:is(.ex, .an, .cd) input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
