/* Les murs d'équipe (MUR-02, paquet P27 — ch. 7 §5 ter) : l'Équipe OSÉ·CLAT, la Team, les Directes, les groupes équipe.
   Les quatre niveaux du cahier de Marine gardent leur couleur, prise dans les jetons du réseau (jamais une valeur en dur) :
   l'Équipe = secondaire, la Team = primaire, les Directes = rose, un groupe équipe = accent. */
.wall-list { display: flex; flex-direction: column; gap: .5rem; }
.wall-list-title { margin: 1rem 0 .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-muted); }
.wall-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; background: var(--brand-surface); border: 1px solid var(--brand-line); border-left: 5px solid var(--wall-tone, var(--brand-line)); border-radius: var(--brand-radius-card); box-shadow: var(--brand-shadow-card); color: inherit; text-decoration: none; }
.wall-row:hover { background: var(--brand-surface-soft); }
.wall-row .wall-text { flex: 1; min-width: 0; }
.wall-row .wall-text b { display: block; font-size: .9rem; color: var(--brand-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-row .wall-text > span { display: block; font-size: .74rem; color: var(--brand-muted); }
.wall-row.is-readonly { opacity: .75; }
.wall-row.is-archive { border-left-style: dashed; box-shadow: none; }

.wall-equipe { --wall-tone: var(--brand-secondary); }
.wall-team { --wall-tone: var(--brand-primary); }
.wall-directes { --wall-tone: var(--brand-rose); }
.wall-groupe { --wall-tone: var(--brand-accent); }

.wall-badge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--wall-tone, var(--brand-line)); color: var(--brand-on-dark); font-family: var(--brand-font-display); font-size: 1rem; }
/* La photo d'un mur (MUR-06) prend la place de l'initiale, recadrée en rond. */
.wall-photo { object-fit: cover; background: var(--brand-surface-soft); }
.wall-unread { flex-shrink: 0; min-width: 1.5rem; padding: .1rem .45rem; border-radius: var(--brand-radius-pill); background: var(--brand-accent); color: var(--brand-on-accent); font-size: .72rem; font-weight: 700; text-align: center; }
.wall-role { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: var(--brand-radius-pill); background: var(--brand-surface-soft); color: var(--brand-secondary); font-size: .64rem; font-weight: 700; vertical-align: middle; }

/* L'en-tête d'un mur : sa photo (ou son initiale), son nom, son animatrice et son effectif, la charte en une ligne. */
.wall-head { display: flex; align-items: center; gap: .75rem; padding: .8rem; margin-bottom: .6rem; background: var(--brand-surface); border: 1px solid var(--brand-line); border-top: 5px solid var(--wall-tone, var(--brand-line)); border-radius: var(--brand-radius-card); box-shadow: var(--brand-shadow-card); }
.wall-head .wall-badge { width: 54px; height: 54px; font-size: 1.3rem; }
.wall-head h2 { margin: 0; font-size: 1.05rem; color: var(--brand-secondary); overflow-wrap: anywhere; }
.wall-head .wall-meta { font-size: .74rem; color: var(--brand-muted); }
.wall-charter { margin: 0 0 .6rem; padding: .4rem .7rem; border-radius: var(--brand-radius-pill); background: var(--brand-surface-soft); font-size: .72rem; color: var(--brand-muted); }
.wall-charter a { color: var(--brand-secondary); font-weight: 700; }
/* La charte se déplie sur place (MUR-05) : la ligne reste celle de la maquette, « Relire la charte » ouvre le texte. */
details.wall-charter { border-radius: var(--brand-radius-card); }
details.wall-charter > summary { list-style: none; cursor: pointer; }
details.wall-charter > summary::-webkit-details-marker { display: none; }
.wall-charter-link { color: var(--brand-secondary); font-weight: 700; text-decoration: underline; }

/* La liste des personnes à inviter (l'animatrice d'une Team), et les invitées. */
.wall-people .row-item + .row-item { border-top: 1px solid var(--brand-line-soft); }

/* Le menu « ⋯ » d'une carte, montré ouvert dans la maquette de la modération (P27-05) : il reste dans le flux. */
.wall-menu-preview .post-menu-list { position: static; margin-top: .4rem; box-shadow: none; }

/* MUR-12 : l'événement du planning partagé dans un message — le titre et le jour (vers la fiche), « Je m'inscris » en un clic. */
.post-event { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .45rem; padding: .5rem .65rem; border-radius: 12px; background: var(--brand-surface-soft); border: 1px solid var(--brand-line); }
.post-event-head { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none; font-size: .8rem; }
.post-event-head b { color: var(--brand-secondary); overflow-wrap: anywhere; }
.post-event-head small { color: var(--brand-muted); font-size: .68rem; }
.post-event-state { font-size: .72rem; color: var(--brand-secondary); }

/* MUR-12 : l'aperçu du message à transférer garde ses retours à la ligne. */
.wall-transfer-text { white-space: pre-line; overflow-wrap: anywhere; }

/* MUR-13 : chercher dans un mur — le champ et son bouton sur une ligne ; le mot trouvé surligné aux couleurs de la marque. */
.wall-search { display: flex; gap: .5rem; }
.wall-search .form-control { flex: 1; min-width: 0; }
.wall-search-hit { padding: 0 .1em; border-radius: 3px; background: var(--brand-accent-light); color: inherit; }
/* Le bandeau des résultats, amené à l'écran après « Chercher » (wall_search.js) : il passe sous la barre fixe du haut, pas dessous. */
[data-wall-search-term] { scroll-margin-top: 4.5rem; }

/* Le hero d'un mur (MUR-14, components/wall_hero) : le hero bleu des autres pages, sur le modèle du fil de la messagerie —
   la pastille du mur à gauche (un liseré clair la détache du fond), le nom, ce qu'il réunit, « 👥 n personnes › ». */
.wall-hero { display: flex; align-items: center; gap: .85rem; }
/* Sur le fond sombre, la teinte du niveau s'éclaircit d'un ton (le bleu nuit d'une Team se fondrait dans le hero) ; une photo garde la sienne. */
.wall-hero .wall-badge { width: 54px; height: 54px; font-size: 1.3rem; background: color-mix(in srgb, var(--wall-tone, var(--brand-line)) 65%, white); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.wall-hero .wall-photo { background: var(--brand-surface-soft); }
.wall-hero .wall-hero-text { flex: 1; min-width: 0; }
.wall-hero h1 { font-size: 1.5rem; margin: .15rem 0 .2rem; overflow-wrap: anywhere; }
.wall-hero .hero-sub { margin: 0; max-width: none; }
.wall-hero .hero-sub + .hero-sub { margin-top: .15rem; }
.wall-hero .wall-hero-members { color: var(--brand-on-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.wall-hero .wall-hero-members:hover, .wall-hero .wall-hero-members:focus-visible { text-decoration: underline; }

/* La photo d'un mur dans « Animer » (repasse de MUR-14) : la pastille grand format dans la zone de dépôt, le crayon par-dessus. */
.photo-drop .wall-badge { width: 96px; height: 96px; font-size: 2.2rem; }
