/* charte.css — World Café IES UTTOP × France Travail.
   Direction : géométrique-énergique institutionnel. Motif parallélogramme + palette
   multicolore UTTOP (qui code aussi les 7 tables), fond papier chaud, bandeau arc-en-ciel,
   cartes vivantes à entrée animée. KISSES : variables CSS, polices système, zéro dépendance.
   Les custom properties :root sont héritées dans les Shadow DOM des <sis-wc-*>. */

:root {
  /* couleurs marque */
  --wc-navy:       #0C3C60;
  --wc-navy-deep:  #07294a;
  --wc-green:      #3DBE8B;
  --wc-green-ink:  #1f8a5f;
  --wc-yellow:     #F4C20D;
  --wc-indigo:     #4A5BD4;
  --wc-teal:       #1FA98F;
  --wc-pink:       #EC6FB0;
  --wc-violet:     #7A5BD4;

  /* couleurs par table (id 1→7) */
  --wc-t1: #3DBE8B; --wc-t2: #4A5BD4; --wc-t3: #1FA98F;
  --wc-t4: #F4C20D; --wc-t5: #EC6FB0; --wc-t6: #0C3C60; --wc-t7: #7A5BD4;

  /* surfaces — papier chaud, pas gris froid */
  --wc-bg:        #FBF8F2;
  --wc-card:      #ffffff;
  --wc-ink:       #14304a;
  --wc-ink-soft:  #687c8c;
  --wc-line:      #ece6da;
  --wc-shadow:    0 10px 30px -12px rgba(12,60,96,.22);
  --wc-shadow-sm: 0 4px 14px -6px rgba(12,60,96,.18);
  --wc-radius:    20px;
  --wc-radius-sm: 12px;

  /* dégradé arc-en-ciel de marque (bandeau) */
  --wc-rainbow: linear-gradient(90deg, var(--wc-green) 0%, var(--wc-teal) 22%, var(--wc-yellow) 45%, var(--wc-pink) 70%, var(--wc-indigo) 100%);

  --wc-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* l'attribut [hidden] doit l'emporter sur les display:flex des classes (bannière, sous-header) */
[hidden] { display: none !important; }

/* html en navy profond → la zone de la barre d'état iOS (safe-area haute) reste sombre */
html { background-color: var(--wc-navy-deep); }
body {
  margin: 0;
  font-family: var(--wc-font);
  color: var(--wc-ink);
  -webkit-font-smoothing: antialiased;
  background-color: var(--wc-bg);
  /* atmosphère : taches de couleur diffuses, motif géométrique léger */
  background-image:
    radial-gradient(38vw 38vw at 88% -6%, rgba(74,91,212,.10), transparent 60%),
    radial-gradient(34vw 34vw at -8% 4%, rgba(61,190,139,.12), transparent 60%),
    radial-gradient(40vw 40vw at 50% 116%, rgba(236,111,176,.08), transparent 60%);
  background-attachment: fixed;
}

/* ----- bandeau d'en-tête ----- */
.wc-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(120deg, var(--wc-navy-deep), var(--wc-navy) 60%, #0f4a76);
  color: #fff;
  padding: calc(16px + env(safe-area-inset-top)) 20px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 6px 22px -10px rgba(7,41,74,.6);
  overflow: hidden;
}
.wc-header::after { /* bandeau arc-en-ciel en bas du header */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--wc-rainbow);
}
.wc-header::before { /* parallélogrammes fantômes en filigrane */
  content: ""; position: absolute; right: -40px; top: -30px; width: 220px; height: 200px;
  background:
    linear-gradient(135deg, transparent 49%, rgba(255,255,255,.05) 50% 62%, transparent 63%),
    linear-gradient(135deg, transparent 64%, rgba(255,255,255,.04) 65% 80%, transparent 81%);
  transform: skewX(-18deg); pointer-events: none;
}
.wc-header h1 { font-size: 1.15rem; margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wc-header h1 .sub { font-weight: 500; opacity: .82; font-size: .82rem; letter-spacing: 0; }
.wc-header .sub { font-size: .74rem; opacity: .82; font-weight: 400; }
.wc-header .spacer { flex: 1; }
.wc-cobrand { font-size: .66rem; opacity: .9; text-align: right; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; }

/* logo officiel (image) */
.wc-logo-img { height: 40px; width: auto; flex: none; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
/* repli logo CSS (si l'image manque) */
.wc-logo { width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: var(--wc-rainbow); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }

.wc-head-titles { min-width: 0; }
.wc-head-actions { display: flex; gap: 8px; align-items: center; }
.wc-iconbtn { position: relative; appearance: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.14); color: #fff;
  display: grid; place-items: center; transition: background .12s, transform .08s; }
.wc-iconbtn:hover { background: rgba(255,255,255,.26); }
.wc-iconbtn:active { transform: scale(.94); }
.wc-iconbtn .ic { font-size: 1.25rem; line-height: 1; }
.wc-iconbtn.active { background: var(--wc-green); }
.wc-iconbtn .wc-navbadge { position: absolute; top: -3px; right: -3px; }

/* sous-header « moment du café » (reflète l'admin) */
.wc-subheader { background: #fff; border-bottom: 1px solid var(--wc-line);
  padding: 9px 18px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem;
  position: sticky; top: calc(70px + env(safe-area-inset-top)); z-index: 45; box-shadow: 0 4px 12px -10px rgba(12,60,96,.4); }
.wc-subheader .live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wc-green);
  box-shadow: 0 0 0 0 rgba(61,190,139,.6); animation: mb-pulse 1.6s infinite; flex: none; }
.wc-subheader .lbl { color: var(--wc-ink-soft); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
@keyframes mb-pulse { 0%{box-shadow:0 0 0 0 rgba(61,190,139,.6)} 70%{box-shadow:0 0 0 9px rgba(61,190,139,0)} 100%{box-shadow:0 0 0 0 rgba(61,190,139,0)} }

/* bannière d'enquête (push admin) */
.wc-survey-banner { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; cursor: pointer;
  text-align: left; font: inherit; color: #fff; padding: 12px 18px;
  background: linear-gradient(120deg, var(--wc-violet), #9b7be0); animation: wc-cel-fade .3s ease; }
.wc-survey-banner .sb-emoji { font-size: 1.5rem; flex: none; }
.wc-survey-banner .sb-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.wc-survey-banner .sb-txt b { font-weight: 800; }
.wc-survey-banner .sb-txt small { opacity: .9; font-size: .72rem; }
.wc-survey-banner .sb-arrow { font-size: 1.3rem; font-weight: 800; flex: none; }
@keyframes wc-cel-fade { from { opacity: 0; } to { opacity: 1; } }

/* ----- conteneur app ----- */
.wc-app { max-width: 720px; margin: 0 auto; padding: 20px 16px 104px; }
.wc-app--wide { max-width: 1280px; }

/* ----- cartes ----- */
.wc-card {
  position: relative; background: var(--wc-card); border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow); padding: 20px; margin: 0 0 16px;
  overflow: hidden;
  animation: wc-rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.wc-card::before { /* coin accent oblique en haut à gauche */
  content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 8px;
  background: var(--accent, var(--wc-green)); border-bottom-right-radius: 8px;
}
.wc-card h2 { margin: 2px 0 8px; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.wc-muted { color: var(--wc-ink-soft); font-size: .88rem; }

@keyframes wc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* entrée échelonnée */
.wc-app > *:nth-child(1) { animation-delay: .02s; }
.wc-app > *:nth-child(2) { animation-delay: .08s; }
.wc-app > *:nth-child(3) { animation-delay: .14s; }
.wc-app > *:nth-child(4) { animation-delay: .20s; }
@media (prefers-reduced-motion: reduce) { .wc-card { animation: none; } }

/* ----- boutons ----- */
.wc-btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: linear-gradient(135deg, var(--wc-navy), var(--wc-indigo));
  color: #fff; padding: 13px 22px; border-radius: 999px; letter-spacing: .01em;
  box-shadow: var(--wc-shadow-sm); transition: transform .12s, box-shadow .12s, filter .12s;
}
.wc-btn:hover { transform: translateY(-2px); box-shadow: var(--wc-shadow); filter: brightness(1.05); }
.wc-btn:active { transform: translateY(0); }
.wc-btn--ghost { background: #fff; color: var(--wc-navy); box-shadow: inset 0 0 0 2px var(--wc-navy); }
.wc-btn--green { background: linear-gradient(135deg, var(--wc-green), var(--wc-teal)); }
.wc-btn--block { display: block; width: 100%; }
.wc-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ----- champs ----- */
.wc-field { display: block; margin: 0 0 14px; }
.wc-field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 5px; }
.wc-field .opt { color: var(--wc-ink-soft); font-weight: 400; }
.wc-input, .wc-textarea, .wc-select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--wc-line);
  border-radius: var(--wc-radius-sm); font: inherit; background: #fffdf9; color: var(--wc-ink);
  transition: border-color .12s, box-shadow .12s;
}
.wc-input:focus, .wc-textarea:focus { outline: none; border-color: var(--wc-green);
  box-shadow: 0 0 0 4px rgba(61,190,139,.18); background: #fff; }
.wc-textarea { min-height: 92px; resize: vertical; }

/* ----- chips / pastilles ----- */
.wc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; background: #f1ede4; font-size: .8rem; font-weight: 600;
}
.wc-badge { display:inline-block; min-width: 22px; padding: 2px 9px; border-radius: 999px;
  background: var(--wc-green); color:#fff; font-size:.74rem; font-weight:800; text-align:center; }

/* ----- barre de navigation basse (participant mobile) ----- */
.wc-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--wc-line); box-shadow: 0 -8px 24px -12px rgba(12,60,96,.25);
}
.wc-nav button {
  flex: 1; border: 0; background: none; padding: 8px 4px 6px; cursor: pointer; border-radius: 14px;
  color: var(--wc-ink-soft); font: inherit; font-size: .66rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 3px; transition: color .12s, background .12s;
}
.wc-nav button .ic { width: 25px; height: 25px; display: block; line-height: 1; transition: transform .15s; }
.wc-nav button[aria-current="true"] { color: var(--wc-navy); background: rgba(61,190,139,.14); }
.wc-nav button[aria-current="true"] .ic { transform: translateY(-2px) scale(1.12); color: var(--wc-green-ink, #1f8a5f); }
.wc-nav button.has-badge { position: relative; }
.wc-navbadge { position: absolute; top: 4px; right: 22%; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--wc-pink); color: #fff; font-size: .64rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff;
  animation: wc-pop .25s ease; }
@keyframes wc-pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* bandeau « changement de phase » (toast, app perso) */
.wc-phase-toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 12px; width: auto; max-width: 700px; margin: 0 auto;
  border: 0; cursor: pointer; text-align: left; font: inherit; color: #fff; padding: 13px 18px; border-radius: 16px;
  background: linear-gradient(120deg, var(--wc-green), var(--wc-teal));
  box-shadow: 0 14px 34px -12px rgba(31,169,143,.6);
  transform: translateY(140%); opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s;
  pointer-events: none; /* hors affichage : ne jamais bloquer le nav en dessous */
}
.wc-phase-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.wc-phase-toast .pt-ic { font-size: 1.5rem; flex: none; animation: wc-ring .9s ease 2; }
.wc-phase-toast .pt-txt { display: flex; flex-direction: column; line-height: 1.25; }
.wc-phase-toast .pt-txt b { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
@keyframes wc-ring { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-16deg)} 40%{transform:rotate(14deg)} 60%{transform:rotate(-8deg)} 80%{transform:rotate(6deg)} }

/* bandeau « installer l'app » (haut de contenu, dismissible) */
.wc-install-hint {
  display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 14px auto -4px; width: calc(100% - 32px);
  background: linear-gradient(120deg, #eef4ff, #f3fbf7); border: 1px solid var(--wc-line);
  border-radius: 16px; padding: 12px 14px; box-shadow: var(--wc-shadow-sm);
}
.wc-install-hint .ih-ic { font-size: 1.6rem; flex: none; }
.wc-install-hint .ih-body { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-size: .84rem; color: var(--wc-ink); }
.wc-install-hint .ih-body b { font-size: .92rem; }
.wc-install-hint .ih-share { font-family: -apple-system, system-ui; }
.wc-install-hint .ih-warn { margin-top: 6px; padding: 6px 9px; border-radius: 8px;
  background: #fff1d6; color: #8a6a1a; font-size: .8rem; line-height: 1.4; }
.wc-install-hint .ih-x { flex: none; border: 0; background: rgba(12,60,96,.08); color: var(--wc-ink-soft); cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.wc-install-hint .ih-x:hover { background: rgba(12,60,96,.16); }

/* accessibilité */
.wc-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }


/* ============================================================================
   ÉCRAN LARGE — l'audience du séminaire est à MAJORITÉ ORDINATEUR (conception v3 §3.2).
   Au-delà de 900 px, la barre de navigation quitte le bas de l'écran (posture
   « app de téléphone ») pour devenir une barre horizontale sous l'en-tête.
   ========================================================================= */
@media (min-width: 900px) {
  /* La barre passe en statique : il faut donc la remonter AVANT le contenu, sinon elle
     s'afficherait en bas de page (elle est après <main> dans le HTML).
     ⚠️ Cantonné à `body.app` : la console et le guide réutilisent `.wc-header`, et sans
     cette restriction leur en-tête se retrouvait EN BAS (tout ce qui n'a pas d'`order`
     explicite vaut 0, donc passe avant un `order: 1`). */
  body.app { display: flex; flex-direction: column; min-height: 100vh; }
  body.app .wc-header      { order: 1; }
  body.app .wc-subheader   { order: 2; }
  body.app .wc-nav         { order: 3; }
  body.app .wc-install-hint{ order: 4; }
  body.app .wc-app         { order: 5; }

  body.app .wc-app { max-width: 940px; padding: 8px 24px 48px; }
  body.app .wc-app--wide { max-width: 1280px; }

  body.app .wc-nav {
    position: static; z-index: auto;
    gap: 6px; padding: 10px 24px 0;
    max-width: 940px; margin: 0 auto;
    background: none; backdrop-filter: none;
    border-top: 0; box-shadow: none;
    justify-content: flex-start;
  }
  body.app .wc-nav button {
    flex: 0 0 auto; flex-direction: row; gap: 8px;
    padding: 9px 16px; font-size: .86rem; border-radius: 999px;
    background: #fff; box-shadow: var(--wc-shadow-sm);
  }
  body.app .wc-nav button .ic { width: 19px; height: 19px; }
  body.app .wc-nav button[aria-current="true"] { background: var(--wc-navy); color: #fff; }
  body.app .wc-nav button[aria-current="true"] .ic { transform: none; color: #fff; }
  .wc-navbadge { top: -4px; right: -4px; }

  /* le hint d'installation PWA n'a pas de sens sur un poste fixe */
  .wc-install-hint { display: none !important; }
}

/* Très large : on donne de l'air sans étirer la colonne de lecture. */
@media (min-width: 1400px) {
  body.app .wc-app { max-width: 1040px; }
  body.app .wc-nav { max-width: 1040px; }
}


/* Bandeau de bascule entre surfaces (mobile ↔ poste de notes). Discret : il informe,
   il ne réclame pas. Il n'apparaît que sur un poste de travail. */
.wc-surface-switch {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 940px; margin: 14px auto 0; width: calc(100% - 32px);
  background: #eef4ff; border-left: 4px solid var(--wc-indigo);
  border-radius: 0 12px 12px 0; padding: 11px 15px; font-size: .86rem; line-height: 1.45;
}
.wc-surface-switch button {
  margin-left: auto; border: 0; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700;
  background: var(--wc-navy); color: #fff; padding: 8px 16px; border-radius: 999px;
}
.wc-surface-switch button:hover { filter: brightness(1.1); }

/* ─── PASSERELLE ENTRE LES PAGES ──────────────────────────────────────────────
 * Le séminaire a cinq surfaces (app, poste, écran, console, mode d'emploi) et on
 * n'arrivait à en quitter aucune : le mode d'emploi et l'écran n'avaient aucun lien
 * sortant, on en repartait par le bouton « précédent » ou pas du tout.
 * ⚠️ Volontairement ABSENTE de l'app participante : « Console » et « Écran de
 * projection » n'y ont rien à faire — c'est du mobilier d'organisation.
 */
.sf-passerelle {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 20px; background: rgba(12,60,96,.05); border-bottom: 1px solid var(--wc-line,#ece6da);
  font-size: .82rem;
}
.sf-passerelle a {
  flex: 0 0 auto; text-decoration: none; color: var(--wc-ink-soft,#687c8c); font-weight: 700;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.sf-passerelle a:hover { background: #fff; color: var(--wc-navy,#0C3C60); }
.sf-passerelle a.ici { background: var(--wc-navy,#0C3C60); color: #fff; cursor: default; }
@media print { .sf-passerelle { display: none; } }

/* ─── L'ORGANISATION VOUS ÉCRIT ───────────────────────────────────────────────
 * Le bandeau descend en haut de l'écran à chaque message non lu. Il doit être
 * impossible à rater en pleine plénière — c'est tout son intérêt — et rester
 * refermable d'un geste, sans quoi il devient du harcèlement.
 */
/* 🔴 EN BAS, AU-DESSUS DU MENU — jamais en haut.
 * En PWA installée sur iPhone, `top: 0` place le bandeau SOUS la barre d'état du système :
 * il est visible mais on ne peut ni le toucher ni le fermer. Constaté le 25/08.
 * Le bas est aussi là où l'utilisateur a déjà le pouce, et c'est l'idiome que la page
 * emploie déjà pour ses notifications (.wc-phase-toast) — on ne réinvente rien. */
.wc-msg-bandeau {
  position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 61; max-width: 700px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(120deg, #4A5BD4, #3f4fc0); color: #fff;
  box-shadow: 0 16px 38px -12px rgba(74,91,212,.65);
  transform: translateY(160%); transition: transform .34s cubic-bezier(.2,.8,.2,1);
}
.wc-msg-bandeau.show { transform: none; }
/* Les deux peuvent apparaître ensemble : la notification de phase monte d'un cran. */
body.a-bandeau .wc-phase-toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
/* Sur le poste de notes et les grands écrans, il n'y a pas de menu du bas à éviter. */
@media (min-width: 1000px) { .wc-msg-bandeau { bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .wc-msg-bandeau { transition: none; } }
.wc-msg-bandeau .mb-ic { font-size: 1.4rem; flex: none; }
.wc-msg-bandeau .mb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wc-msg-bandeau .mb-body b { font-size: .92rem; }
.wc-msg-bandeau .mb-body span { font-size: .84rem; opacity: .92;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-msg-bandeau .mb-go { flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  font-size: .84rem; padding: 9px 16px; border-radius: 999px; background: #fff; color: #3f4fc0; }
.wc-msg-bandeau .mb-x { flex: none; border: 0; cursor: pointer; background: rgba(255,255,255,.18);
  color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; }

.wc-fil-fond { position: fixed; inset: 0; z-index: 210; background: rgba(4,16,30,.6);
  display: flex; align-items: flex-end; justify-content: center; padding: 0; }
@media (min-width: 640px) { .wc-fil-fond { align-items: center; padding: 4vh 4vw; } }
.wc-fil-boite { background: #fff; width: 100%; max-width: 560px; max-height: 88vh;
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 640px) { .wc-fil-boite { border-radius: 20px; } }
.wc-fil-tete { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--wc-line, #ece6da); }
.wc-fil-tete b { flex: 1; font-size: 1rem; }
.wc-fil-x { border: 0; background: #f1ede4; color: var(--wc-ink); cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; }
.wc-fil-corps { padding: 16px 18px 20px; overflow-y: auto; }

/* ─── VISAGE À CÔTÉ D'UN NOM ──────────────────────────────────────────────────
 * N'apparaît que pour qui a mis une photo ET un nom : c'est un choix de la personne,
 * jamais un défaut. Le composant vit dans un shadow DOM, d'où la duplication du style
 * dans SHARED_CSS ; la fiche, elle, s'ouvre dans le document et se sert d'ici.
 */
/* Nom cliquable : la cible est le NOM ENTIER, pas la pastille de 22 px — minuscule au doigt,
   et absente quand la personne n'a pas mis de photo. Sans photo : les initiales. */
.wc-qui--lien { border: 0; background: none; padding: 0; font: inherit; color: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.wc-qui--lien:hover { text-decoration: underline; }
.wc-trombi { width: var(--t, 22px); height: var(--t, 22px); border-radius: 50%;
  overflow: hidden; background: #eef2f6; flex: none; display: inline-grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(12,60,96,.18); }
.wc-trombi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-trombi-ini { font-size: calc(var(--t, 22px) * .42); font-weight: 800;
  color: var(--wc-navy, #0C3C60); line-height: 1; letter-spacing: .02em; }
.wc-fiche-ini { display: grid; place-items: center; margin: 0 auto; background: #eef2f6;
  font-size: 2.2rem; font-weight: 800; color: var(--wc-navy, #0C3C60); }

.wc-fiche-fond { position: fixed; inset: 0; z-index: 220; background: rgba(4,16,30,.62);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.wc-fiche-boite { position: relative; background: #fff; border-radius: 20px; padding: 26px 26px 20px;
  width: 100%; max-width: 380px; text-align: center; }
.wc-fiche-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  box-shadow: inset 0 0 0 3px var(--wc-green, #3DBE8B), 0 8px 22px -12px rgba(12,60,96,.5); }
.wc-fiche-boite h3 { margin: 12px 0 14px; font-size: 1.25rem; }
.wc-fiche-x { position: absolute; top: 12px; right: 12px; border: 0; background: #f1ede4;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: .95rem; }
.wc-fi-l { display: flex; justify-content: space-between; gap: 14px; text-align: left;
  padding: 7px 0; border-top: 1px solid var(--wc-line, #ece6da); font-size: .87rem; }
.wc-fi-l span { color: var(--wc-ink-soft, #687c8c); }
.wc-fi-vide, .wc-fi-note { color: var(--wc-ink-soft, #687c8c); font-size: .78rem; line-height: 1.45; }
.wc-fi-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--wc-line, #ece6da); }

/* ─── PASTILLE « EN RETARD » (voir js/version.js) ──────────────────────────────
 * N'apparaît que si la version EN LIGNE porte un numéro strictement supérieur.
 * Un simple écart ne suffit pas : un retour arrière volontaire laisserait un appareil
 * en avance, et lui proposer « mettre à jour » l'enverrait reculer sans le dire. */
.wc-maj-hote { display: inline-flex; align-items: center; gap: 4px; }
  .wc-maj-pastille { display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
    font: inherit; font-weight: 800; font-size: .78rem; padding: 7px 13px; border-radius: 999px;
    background: var(--wc-yellow, #F4C20D); color: #4a3a00; white-space: nowrap; }
  .wc-maj-pastille .ic { font-size: .95rem; animation: wc-maj-tourne 2.6s linear infinite; }
  @keyframes wc-maj-tourne { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .wc-maj-pastille .ic { animation: none; } }
  .wc-maj-x { border: 0; cursor: pointer; background: rgba(255,255,255,.18); color: inherit;
    width: 26px; height: 26px; border-radius: 50%; font-size: .78rem; line-height: 1; }
  @media (max-width: 420px) { .wc-maj-pastille .txt { display: none; } .wc-maj-pastille { padding: 8px 10px; } }

/* Enveloppe de l'en-tête — visible seulement si une conversation existe. Voir majEnveloppe()
   dans js/app.js : aucun échange ⇒ aucun pixel. C'est ce qui permet d'offrir un accès au fil
   sans ajouter d'entrée à la navigation ni alourdir le parcours de ceux qui n'écrivent jamais. */
.wc-msg-hote { display: inline-flex; align-items: center; }
.wc-msg-enveloppe { position: relative; border: 0; cursor: pointer; background: rgba(255,255,255,.16);
  color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.05rem; line-height: 1; }
.wc-msg-enveloppe:hover { background: rgba(255,255,255,.28); }
.wc-msg-enveloppe .pt { position: absolute; top: -3px; right: -3px; background: #EC6FB0; color: #fff;
  font-size: .66rem; font-weight: 800; border-radius: 999px; padding: 1px 6px; }
.wc-msg-enveloppe.a-lire { animation: wc-env 1.6s ease-in-out 3; }
@keyframes wc-env { 0%,100% { transform: none; } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@media (prefers-reduced-motion: reduce) { .wc-msg-enveloppe.a-lire { animation: none; } }

/* L'aide : une icône dans l'en-tête. Elle remplace la barre de liens entre pages, qui
   imposait un menu à lire sur chaque écran pour un besoin qu'on a une fois. */
.wc-aide { flex:none; display:inline-grid; place-items:center; width:34px; height:34px;
  border-radius:50%; background:rgba(255,255,255,.16); color:#fff; text-decoration:none;
  font-weight:800; font-size:1rem; margin-right:6px; }
.wc-aide:hover { background:rgba(255,255,255,.3); }

/* Icônes de l'en-tête : aide et bascule de surface. Même gabarit, pour qu'elles se lisent
   comme une rangée d'outils et non comme des éléments disparates. */
.wc-icone { flex:none; display:inline-grid; place-items:center; width:34px; height:34px;
  border:0; padding:0; cursor:pointer; border-radius:50%; background:rgba(255,255,255,.16);
  color:#fff; text-decoration:none; font:inherit; font-weight:800; font-size:1rem; margin-right:6px; }
.wc-icone:hover { background:rgba(255,255,255,.3); }
.wc-icone svg { width:19px; height:19px; display:block; }
