/*
 * LES ORGANISATIONS (lot 396, 28 octobre 2026, organisations lot 1) : la page publique
 * (/o/<adresse>) et le formulaire « Créer ton organisation », d'après la maquette
 * « Organisation, séries et éditions » (planches « Page de l'organisation » et « Créer
 * son organisation »). Page : public/organisation.html ; rendu : public/js/organisation-vue.mjs.
 * Préfixe « og- » pour ne rien croiser d'autre (discussion.css est chargé partout, lot 394).
 */
.og { display: grid; gap: 26px; }
.og-tete { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px 22px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: end; --bn-pad: 18px; --bn-pad-h: 22px; --bn-rayon: 18px; --bn-fond: var(--surface); --bn-chev: 52px; }
.og-logo { width: 112px; height: 112px; border-radius: 24px; background: #3a2350 center/cover no-repeat; display: grid; place-items: center;
  font-weight: 800; font-size: 32px; color: var(--text); flex: none; overflow: hidden; }
.og-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-id { display: grid; gap: 8px; min-width: 0; }
.og-fil { font-size: 13px; color: var(--muted); }
.og-fil a { color: var(--muted); }
.og-fil a:hover { color: var(--yellow); }
.og-id h1 { margin: 0; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.05; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; text-wrap: balance; overflow-wrap: anywhere; }
.og-reconnue { font-size: 12px; font-weight: 800; letter-spacing: .05em; padding: 5px 10px; border-radius: 99px; background: rgba(47,232,138,.14);
  color: #8ff0bd; border: 1px solid rgba(47,232,138,.4); }
.og-presentation { margin: 0; font-size: 15px; color: var(--body); max-width: 68ch; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.og-liens { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.og-liens a, .og-liens button { font: inherit; font-size: 13.5px; font-weight: 700; background: var(--surface2); color: var(--text); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 10px 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.og-liens a:hover, .og-liens button:hover { color: var(--text); background: #2e2542; }
.og-liens .og-discord { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; }
.og-liens .og-discord:hover { background: var(--accent-dark); color: #fff; }
/* 15 novembre 2026 : les liens en icônes (icones-reseaux.mjs), comme les réseaux de la fiche joueur.
   Discord garde son texte, son icône devant ; site, X et Bluesky : un bouton rond de 40 px. */
.og-liens .og-discord { display: inline-flex; align-items: center; gap: 8px; }
.og-liens .og-discord .rs-ico { width: 20px; height: 15px; flex: none; }
.og-liens .og-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 999px; box-sizing: border-box; }
.og-liens .og-ico .rs-ico { width: 18px; height: 18px; display: block; }
.og-liens .og-ico.site { color: var(--cyan); }
.og-liens .og-ico.x { color: var(--text); }
.og-liens .og-ico.bluesky { color: #4aa3ff; border-color: rgba(74,163,255,.45); }

.og-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.og-chiffres div { padding: 14px 18px; display: grid; gap: 2px; }
.og-chiffres b { font-size: 24px; font-variant-numeric: tabular-nums; }
.og-chiffres span { font-size: 13px; color: var(--muted); }

.og-section { display: grid; gap: 14px; }
.og-section > h2 { margin: 0; font-size: 21px; }
.og-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.og-carte { color: var(--text); background: var(--surface); border: 1px solid var(--panel-border); border-radius: 14px; padding: 16px;
  display: grid; gap: 6px; align-content: start; text-decoration: none; min-width: 0; }
.og-carte:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.og-carte .etat { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.og-carte b { font-size: 17px; overflow-wrap: anywhere; }
.og-carte .det { font-size: 13px; color: var(--body); }
.og-carte .det.muet { color: var(--muted); }
.og-porte { padding: 0; overflow: hidden; }
.og-porte .haut { display: flex; align-items: center; gap: 12px; padding: 14px 14px 0; }
.og-porte .vignette { width: 46px; height: 46px; border-radius: 12px; background: #2b2a3a center/cover no-repeat; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; overflow: hidden; }
/* Le logo de la série tient dans sa vignette (sinon l'image garde sa taille d'origine). */
.og-porte .vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-porte .bas { padding: 0 14px 14px; display: grid; gap: 5px; }
.og-pastille { justify-self: start; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--body); }

.og-deux { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.og-palmares { display: grid; gap: 10px; }
.og-palmares a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; color: var(--text); text-decoration: none; }
.og-palmares a:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.og-palmares .date { color: var(--muted); }
.og-palmares .vainqueur { color: var(--yellow); font-weight: 700; text-align: right; }
.og-equipe { display: flex; flex-wrap: wrap; gap: 10px; }
.og-membre { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 99px; background: var(--surface); border: 1px solid var(--panel-border); font-size: 13px; }
.og-membre .ini { width: 28px; height: 28px; border-radius: 50%; background: #2b3550; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.og-membre .role { color: var(--muted); }
.og-vide { padding: 18px; border: 1px dashed rgba(255,255,255,.16); border-radius: 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.og-vide b { color: var(--text); }

/* Le formulaire « Créer ton organisation » (et « Modifier le profil »). */
.og-form { width: min(600px, 100%); margin: 0 auto; background: var(--surface); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px;
  box-sizing: border-box; display: grid; gap: 15px; }
.og-form .kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ff7ab8; }
.og-form h1 { margin: 2px 0 0; font-size: 21px; }
.og-form p.intro { margin: 0; font-size: 13px; color: var(--body); line-height: 1.55; }
.og-champ { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.og-champ .compte { font-weight: 600; }
.og-champ input, .og-champ textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 10px 12px; color-scheme: dark; width: 100%; box-sizing: border-box; }
.og-champ textarea { resize: vertical; min-height: 84px; }

/* Lot 572 : le type d'organisation. Le badge (page, Pilotage ; mêmes couleurs que l'annuaire, rubriques.css)… */
.og-type { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 99px; padding: 3px 9px; border: 1px solid; vertical-align: middle; }
.og-type-competition { color: #ff7ab3; background: rgba(255,79,154,.12); border-color: rgba(255,79,154,.35); }
.og-type-artistique { color: #c9a4ff; background: rgba(169,112,255,.12); border-color: rgba(169,112,255,.35); }
.og-type-communautaire { color: #5ff0f0; background: rgba(18,224,224,.10); border-color: rgba(18,224,224,.35); }
/* … et le choix dans le formulaire : trois cartes (une colonne sur téléphone). */
.og-types { border: 0; padding: 0; margin: 0; }
.og-types legend { padding: 0; margin-bottom: 6px; }
.og-types-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.og-type-choix { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--body); cursor: pointer; }
.og-type-choix b { font-size: 14px; color: var(--text); }
.og-type-choix.on { border-color: var(--cyan, #12e0e0); box-shadow: 0 0 0 1px var(--cyan, #12e0e0) inset; background: rgba(18,224,224,.05); }
.og-type-choix:has(input:disabled) { cursor: default; opacity: .75; }
/* Le bouton radio garde sa taille (le .og-champ input général lui donnait 100 % de large : son
   anneau de focus devenait une ellipse sur toute la carte) ; le focus se voit sur la carte. */
.og-champ .og-type-choix input { width: 16px; height: 16px; min-height: 0; flex: none; padding: 0; margin: 0 0 2px; border: 0; border-radius: 50%;
  background: none; accent-color: var(--cyan, #12e0e0); outline: none; }
.og-type-choix:has(input:focus-visible) { outline: 2px solid var(--cyan, #12e0e0); outline-offset: 2px; }
@media (max-width: 700px) { .og-types-liste { grid-template-columns: minmax(0, 1fr); } }
.og-champ input:focus, .og-champ textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
/* Lot 572 bis : le bouton radio du type n'a pas d'anneau à lui (la règle ci-dessus le lui donnait,
   même au clic) ; au clavier, c'est la carte entière qui s'entoure (.og-type-choix:has(...)). */
.og-champ .og-type-choix input:focus { outline: none; }
.og-adresse { display: flex; align-items: center; background: var(--bg); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 0 12px; font-size: 14px; color: var(--muted); }
.og-adresse input { border: 0; background: transparent; padding: 10px 2px; flex: 1; min-width: 0; outline: none; }
.og-adresse:focus-within { outline: 2px solid var(--cyan); outline-offset: 1px; }
.og-etat-adresse { font-size: 12px; font-weight: 700; min-height: 1em; }
.og-etat-adresse.ok { color: var(--win); }
.og-etat-adresse.ko { color: #ff8f8f; }
.og-erreur { font-size: 12px; font-weight: 700; color: #ff8f8f; }
.og-visuel { display: flex; gap: 14px; align-items: center; }
.og-visuel .og-logo { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; border: 2px dashed rgba(18,224,224,.5); background-color: transparent; }
.og-visuel .og-logo.plein { border: 0; }
.og-visuel .act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.og-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.og-liens-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.og-boutons { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .og-tete { grid-template-columns: auto minmax(0, 1fr); }
  .og-liens { grid-column: 1 / -1; justify-content: flex-start; }
  .og-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-deux { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .og-tete { grid-template-columns: minmax(0, 1fr); padding: 16px; --bn-pad: 16px; --bn-pad-h: 16px; }
  .og-logo { width: 84px; height: 84px; border-radius: 20px; font-size: 26px; }
  .og-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .og-grille, .og-liens-champs { grid-template-columns: minmax(0, 1fr); }
  .og-form { padding: 18px; }
}

/* Lot 397 : l'invitation sur la page publique, et le Pilotage (planches « Pilotage de
   l'organisation » et « Membres et droits »). */
.og-invitation { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px;
  background: #22142a; border: 1px solid rgba(255,47,146,.45); }
.og-invitation > div { display: grid; gap: 4px; min-width: 0; flex: 1 1 320px; }
.og-invitation span { font-size: 13px; color: var(--body); line-height: 1.5; }
.og-invitation .act { display: flex; gap: 8px; }

.og-pil { gap: 20px; }
.og-pil-tete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.og-logo.petit { width: 56px; height: 56px; border-radius: 14px; font-size: 18px; }
.og-pil-tete .id { flex: 1 1 220px; display: grid; gap: 3px; min-width: 0; }
.og-pil-tete h1 { margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.og-pil-tete .id span { font-size: 13px; color: var(--muted); }
.og-bascule { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.og-bascule a { font-size: 13px; font-weight: 700; border-radius: 9px; padding: 8px 14px; color: var(--muted); text-decoration: none; }
.og-bascule a[aria-current] { background: var(--accent); color: #fff; font-weight: 800; }
.og-pil-corps { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.og-pil-menu { display: grid; gap: 3px; font-size: 14px; position: sticky; top: calc(var(--hauteur-nav, 65px) + 12px); }
.og-pil-menu a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--body); font-weight: 600; text-decoration: none; }
.og-pil-menu a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.og-pil-menu a[aria-current] { background: #22142a; color: var(--text); font-weight: 800; }
.og-pil-menu a span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.og-pil-main { display: grid; gap: 18px; min-width: 0; }
.og-pil-main .og-section > h2 { font-size: 17px; }
.og-msg { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; background: rgba(47,232,138,.1); border: 1px solid rgba(47,232,138,.35); color: #8ff0bd; }
.og-msg.ko { background: rgba(255,92,92,.1); border-color: rgba(255,92,92,.35); color: #ff9b9b; }
.og-alerte { color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 13px 14px; display: grid; gap: 4px; }
.og-alerte.attention { border-color: rgba(255,225,77,.45); }
.og-alerte:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.og-alerte .ou { font-size: 12px; color: var(--muted); }
.og-alerte b { font-size: 14.5px; }
.og-alerte .lien { font-size: 12.5px; color: var(--cyan); }

/* Les tableaux : en-tête collant (règle de Dimitri pour tous les tableaux de Splatelo). */
.og-table { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.og-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.og-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.og-table td { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--body); }
.og-table td b { color: var(--text); }
.og-table td.n { font-variant-numeric: tabular-nums; }
.og-table td.act { text-align: right; font-weight: 700; white-space: nowrap; }
/* 1er novembre 2026 : brouillons et tournois cachés dans « Séries et tournois ». */
.og-table .og-sous { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.og-table td.n .og-sous { white-space: nowrap; }
.og-table tr.og-brouillon td b { color: #d6d0ea; }
.og-table .tn-badge { vertical-align: 1px; margin-left: 4px; }
.og-table .fe-lien.og-lien-danger { color: #ff9aa8; font-weight: 700; font-size: inherit; text-decoration: none; }
.og-table .fe-lien.og-lien-danger:hover { text-decoration: underline; }
/* La confirmation dans la ligne passe à la ligne au lieu de déborder du tableau. */
.og-table td.act:has(.og-confirme) { white-space: normal; min-width: 220px; }
.og-table td.act .og-confirme { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.og-matrice th:not(:first-child), .og-matrice td.c { text-align: center; }
.og-matrice td.oui { color: #8ff0bd; font-weight: 700; }
.og-matrice td.non { color: var(--muted); }
.og-matrice td.serie { color: var(--cyan); }
.og-matrice td.edition { color: var(--yellow); }
.og-matrice td.lecture { color: var(--body); }

/* Les membres, puis « Qui peut quoi » dessous : côte à côte, le tableau à six colonnes était trop serré. */
.og-membres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.og-membres .og-liste, .og-membres .og-ajout { max-width: 640px; }
.og-matrice td:first-child { min-width: 200px; }
.og-liste { display: grid; gap: 8px; }
.og-membre-ligne { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.og-membre-ligne.attente { border-style: dashed; }
.og-membre-ligne .ini, .og-resultats .ini { width: 36px; height: 36px; border-radius: 50%; background: #2b3550; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.og-membre-ligne .qui { flex: 1 1 140px; display: grid; min-width: 0; }
.og-membre-ligne .qui b { font-size: 14.5px; overflow-wrap: anywhere; }
.og-membre-ligne small { font-size: 12px; color: var(--muted); }
.og-membre-ligne select { font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid rgba(255,255,255,.16); border-radius: 9px; padding: 7px 9px; color-scheme: dark; }
.og-role { font-size: 13px; font-weight: 700; color: var(--body); }
.og-confirme { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text); }
.og-ajout { display: grid; gap: 10px; }
.og-choix-role { display: inline-flex; gap: 6px; }
.og-choix-role button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--body); cursor: pointer; }
.og-choix-role button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.og-resultats { display: grid; gap: 6px; }
.og-resultats button { font: inherit; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid rgba(255,255,255,.12); color: var(--text); cursor: pointer; text-align: left; }
.og-resultats button:hover { border-color: var(--cyan); }
.og-resultats img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.og-resultats button > span:not(.ini):not(.plus) { flex: 1; display: grid; min-width: 0; }
.og-resultats small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.og-resultats .plus { font-size: 12.5px; font-weight: 800; color: var(--cyan); }
.og-cascade { background: #22142a; border: 1px solid rgba(255,47,146,.45); border-radius: 12px; padding: 13px 15px; font-size: 13px; line-height: 1.55; color: var(--body); }
.og-cascade b { color: var(--text); }
.og-cartes-profil { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.og-carte-profil { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.og-carte-profil span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.og-danger { padding: 14px; border-radius: 12px; border: 1px dashed rgba(255,92,92,.4); }
.og-danger h2 { color: #ff9b9b; }
.og-journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.og-journal li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--body); }
.og-journal time { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .og-pil-corps { grid-template-columns: minmax(0, 1fr); }
  .og-pil-menu { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .og-pil-menu a { flex: none; gap: 8px; border: 1px solid var(--line); }
  .og-journal li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Lot 398 : ranger l'existant (panneau de la planche « Créer son organisation »). */
.og-titre-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.og-titre-actions h2 { margin: 0; font-size: 17px; }
.og-boutons-tete { display: flex; flex-wrap: wrap; gap: 8px; }
.og-ranger { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid rgba(255,255,255,.12); max-width: 640px; }
.og-ranger > div > b { font-size: 15px; }
.og-ranger .og-note { margin: 4px 0 0; }
.og-cases { display: grid; gap: 8px; }
.og-case { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); background: var(--bg); cursor: pointer; }
.og-case.coche { border-color: var(--accent); }
.og-case.grise { opacity: .55; cursor: not-allowed; }
.og-case input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.og-case span { display: grid; gap: 2px; min-width: 0; }
.og-case b { font-size: 14.5px; overflow-wrap: anywhere; }
.og-case small { font-size: 12px; color: var(--muted); }
.og-cascade.petit { background: var(--bg); border-color: var(--line); font-size: 12.5px; }

/* ══════════ Lot 576 : les projets d'une organisation artistique (préfixe opj-, « pj- » est déjà pris par le placement des joueurs dans tournois.css) ══════════
   Maquette « Projets d'une organisation artistique ». La page : organisation-projets.mjs,
   le rendu : projets-vue.mjs. La fenêtre en grand reprend .oo-* (style.css). */
.og-projets { display: grid; gap: 28px; }
.og-projets:empty { display: none; }
.opj-page .muet, .og-projets .muet, .opj-boite .muet { color: var(--muted); font-size: 12.5px; }
.opj-titre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.opj-titre h2 { margin: 0; font-size: 21px; }
.opj-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.opj-carte { color: var(--text); background: var(--surface); border: 1px solid var(--panel-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.opj-carte:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
/* La couverture : une grande image à gauche, deux petites à droite. */
.opj-cover { height: 150px; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #0f0c18; }
.opj-cover > :first-child { grid-row: span 2; }
.opj-cover img, .opj-cover span { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; background: #1d1729; }
.opj-cover.vide { display: grid; place-items: center; grid-template-columns: 1fr; font-size: 34px; font-weight: 800; color: #c9a4ff; background: linear-gradient(135deg, #2a1f40, #15111f); }
.opj-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.opj-corps b { font-size: 16px; overflow-wrap: anywhere; }
.opj-genre { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 99px; padding: 2px 8px; border: 1px solid #352c47; color: #c9c3dd; }
.opj-etat { font-size: 11.5px; font-weight: 800; }
.opj-etat.ouvert { color: #2fe88a; }
.opj-etat.termine { color: var(--muted); }
.opj-qui { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opj-avs { display: flex; }
.opj-av { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; color: #0d0a14; flex: none; }
.opj-avs .opj-av { border: 2px solid var(--surface); margin-left: -6px; width: 24px; height: 24px; }
.opj-avs .opj-av:first-child { margin-left: 0; }
.opj-artistes { display: flex; flex-wrap: wrap; gap: 18px; }
.opj-artiste { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; color: var(--text); text-align: center; font-size: 13px; }
.opj-artiste b { overflow-wrap: anywhere; }
/* 18 novembre 2026 : l'avatar d'une personne ou d'un artiste couvre ses initiales (qui restent dessous si l'image manque). */
.og-membre .ini, .og-membre-ligne .ini, .opj-av, .opj-rond { position: relative; overflow: hidden; }
.og-membre .ini > img, .og-membre-ligne .ini > img, .opj-av > img, .opj-rond > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.opj-rond { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #0d0a14; font-size: 18px; }

/* La page d'un projet */
.opj-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.opj-tete-g { display: flex; flex-direction: column; gap: 8px; max-width: 760px; min-width: 0; }
.opj-tete h1 { margin: 0; font-size: 30px; overflow-wrap: anywhere; }
.opj-ligne { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.opj-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 340px; }
.opj-invit { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: rgba(169,112,255,.1); border: 1px solid rgba(169,112,255,.35); font-size: 13.5px; line-height: 1.5; }
.opj-invit.fini { background: var(--surface); border-color: var(--panel-border); color: var(--muted); }
.opj-filtres { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.opj-pil { font: inherit; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 7px 12px; border: 1px solid #352c47; background: transparent; color: #c9c3dd; cursor: pointer; min-height: 36px; }
.opj-pil.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* La galerie : des colonnes, chaque image garde ses proportions (comme la maquette). */
.opj-galerie { columns: 4 220px; column-gap: 14px; }
.opj-oeuvre { break-inside: avoid; margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--panel-border); }
.opj-img { display: block; width: 100%; padding: 0; border: 0; background: #0f0c18; cursor: zoom-in; }
.opj-img img { display: block; width: 100%; height: auto; }
.opj-oeuvre figcaption { padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.opj-oeuvre figcaption b { overflow-wrap: anywhere; }
.opj-par { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.opj-par .opj-av { width: 20px; height: 20px; }
.opj-outils { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.opj-lien { font: inherit; font-size: 12px; background: none; border: 0; padding: 4px 0; color: var(--cyan, #12e0e0); cursor: pointer; }
.opj-lien:disabled { color: var(--muted); cursor: default; }
.opj-msg { padding: 10px 14px; border-radius: 12px; background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.35); font-size: 13.5px; }
.opj-msg.ok { background: rgba(47,232,138,.1); border-color: rgba(47,232,138,.35); }
.opj-pilotage { padding: 18px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.16); }
.opj-pil-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.opj-bloc { display: grid; gap: 8px; }
.opj-bloc p { margin: 0; line-height: 1.55; }
.opj-bloc > .tn-bt { justify-self: start; }
.opj-liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opj-liens li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.opj-url { flex: 1 1 320px; min-width: 0; font: inherit; font-size: 12.5px; padding: 9px 10px; border-radius: 10px; border: 1px solid #352c47; background: #0f0c18; color: var(--text); }

/* Les fenêtres (nouveau projet, modifier, ma participation) */
.opj-dlg { margin: auto; inset: 0; border: 0; padding: 0; background: transparent; max-width: min(760px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); overflow: auto; color: var(--text); }
.opj-dlg::backdrop { background: rgba(13,10,20,.82); }
.opj-boite p { margin: 0; line-height: 1.5; }
.opj-boite { background: #15111f; border: 1px solid #2a2338; border-radius: 18px; padding: 20px 22px; display: grid; gap: 14px; }
.opj-boite-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.opj-boite-tete b { font-size: 18px; overflow-wrap: anywhere; }
.opj-boite-bas { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.opj-boite input:not([type=checkbox]):not([type=file]), .opj-boite textarea { font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid #352c47; background: #0f0c18; color: var(--text); width: 100%; box-sizing: border-box; }
.opj-err { color: #ff8a8a; font-size: 12px; font-weight: 600; }
.opj-case { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.opj-case input { accent-color: var(--accent); width: 18px; height: 18px; }
.opj-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.opj-mes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.opj-mini { font: inherit; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; display: flex; flex-direction: column; background: #0f0c18; color: var(--text); cursor: pointer; text-align: left; }
.opj-mini.on { border-color: var(--accent); }
.opj-mini:disabled { opacity: .45; cursor: not-allowed; }
.opj-mini img { width: 100%; height: 110px; object-fit: cover; display: block; }
.opj-mini small { padding: 6px 8px; font-size: 12px; overflow-wrap: anywhere; }
.opj-depot { position: relative; border: 2px dashed #352c47; border-radius: 14px; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; cursor: pointer; }
.opj-depot img { max-height: 260px; max-width: 100%; border-radius: 10px; }
.opj-depot:focus-within { border-color: var(--accent); }
/* Le champ fichier couvre toute la zone (clic ou dépôt), sans se voir. */
.opj-fichier { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.opj-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 860px) {
  .opj-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opj-mes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .opj-grille, .opj-deux { grid-template-columns: minmax(0, 1fr); }
  .opj-mes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opj-action { align-items: stretch; max-width: none; width: 100%; }
  .opj-tete h1 { font-size: 24px; }
  .opj-boite { padding: 16px; }
}
