/* ==========================================================
   FAMILYZOOM — WARROOM (dominante bleue)
   ========================================================== */
.wr { --wr-nuit: #061A44; --wr-roi: #0F3A8C; --wr-bleu: #1E66D0; --wr-ciel: #4FA3F0; background: #EEF3FC; }
.wr-hero { --wr-c1: #061A44; --wr-c2: #0F3A8C; --wr-c3: #1E66D0; --wr-voile: .2; --wr-filigrane: .25;
  position: relative; overflow: hidden; isolation: isolate; padding: calc(10px + var(--haut)) 20px 26px; color: #fff; border-radius: 0 0 34px 34px;
  background: radial-gradient(90% 60% at 90% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(160deg, var(--wr-c1) 0%, var(--wr-c2) 58%, var(--wr-c3) 100%); }
/* affiche en filigrane, puis voile qui garantit la lisibilité des textes quels que soient les réglages */
.wr-affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: var(--wr-filigrane); }
.wr-voile-hero { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,12,35, calc(var(--wr-voile) + .1)) 0%, rgba(4,12,35, var(--wr-voile)) 45%, rgba(4,12,35, calc(var(--wr-voile) + .2)) 100%); }
.wr-hero h1, .wr-sous, .wr-rdv b, .wr-rdv small { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.wr-hero::before { content: ""; position: absolute; right: -50px; top: 40px; width: 240px; height: 240px; z-index: -1; opacity: .07;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.8-7 9-4-1.2-7-4.5-7-9V6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wr-barre { display: flex; align-items: center; justify-content: space-between; }
.wr-barre > span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.wr-barre > span svg { width: 16px; height: 16px; }
.wr-barre > i { width: 42px; }
.wr-rond { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); }
.wr-rond svg { width: 19px; height: 19px; stroke-width: 2.2; }
.wr-hero h1 { margin: 18px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.8px; }
.wr-sous { margin: 6px 0 0; max-width: 300px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.82); }
.wr-rdv { margin-top: 20px; padding: 16px; border-radius: 22px; background: rgba(4,12,35,.28); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 4px; }
.wr-etiquette { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.wr-etiquette svg { width: 14px; height: 14px; }
.wr-direct { width: 8px; height: 8px; border-radius: 50%; background: #FF4D6D; box-shadow: 0 0 0 4px rgba(255,77,109,.25); animation: wrPouls 1.4s infinite; }
@keyframes wrPouls { 50% { box-shadow: 0 0 0 8px rgba(255,77,109,0); } }
.wr-rdv b { font-size: 18px; line-height: 1.3; }
.wr-rdv small { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.8); }
.wr-compte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.wr-compte div { padding: 10px 0 8px; border-radius: 14px; background: rgba(6,26,68,.35); text-align: center; }
.wr-compte b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wr-compte span { font-size: 10.5px; color: rgba(255,255,255,.7); }
.wr-btn { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 20px; border-radius: 16px; font-size: 15.5px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, var(--wr-bleu, #1E66D0), #3E8FDB); box-shadow: 0 12px 26px rgba(30,102,208,.35); }
.wr-btn svg { width: 18px; height: 18px; }
.wr-btn.clair { margin-top: 12px; background: #fff; color: #0F3A8C; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.wr-corps { padding: 22px 18px calc(36px + var(--bas)); }
.wr-corps h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: #0B1E4A; }
.wr-salles { display: flex; flex-direction: column; gap: 10px; }
.wr-salle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 8px 22px rgba(15,58,140,.09); cursor: pointer; }
.wr-salle.en-direct { box-shadow: 0 0 0 2px rgba(227,35,95,.35), 0 8px 22px rgba(15,58,140,.09); }
.wr-salle-clic { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; }
.wr-visuel { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; color: #fff; background: linear-gradient(145deg, #4FA3F0, #1E66D0 60%, #0F3A8C); box-shadow: 0 8px 18px rgba(30,102,208,.3); }
.wr-visuel svg { width: 45%; height: 45%; stroke-width: 2; }
.wr-visuel.image { background: #DCE6F7; }
.wr-visuel.image img { width: 100%; height: 100%; object-fit: cover; }
.wr-salle-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wr-salle-txt b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15.5px; color: #0B1E4A; }
.wr-salle-txt small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #1E66D0; }
.wr-salle-txt small svg { width: 13px; height: 13px; flex-shrink: 0; }
.wr-salle-txt em { font-style: normal; font-size: 12.5px; line-height: 1.4; color: #5E6A85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wr-salle-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.wr-salle-etat { padding: 8px 13px; border-radius: 999px; background: #1E66D0; color: #fff; font-size: 12.5px; font-weight: 800; }
.wr-zoom-app { width: 34px; height: 34px; border-radius: 10px; display: block; box-shadow: 0 4px 10px rgba(45,140,255,.35); }
.wr-zoom-app svg { width: 100%; height: 100%; display: block; }
.wr-salle.fermee .wr-visuel:not(.image) { background: linear-gradient(145deg, #C7D3EA, #9DAECF); box-shadow: none; }
.wr-salle.fermee .wr-salle-etat { background: #E3E9F5; color: #6B7896; }
/* « LIVE » : petit, rouge, qui clignote doucement */
.wr-live { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; background: #E3235F; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .6px; vertical-align: middle; animation: wrClignote 1.6s ease-in-out infinite; }
.wr-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.wr-barre .wr-live { height: 26px; padding: 0 10px; font-size: 11px; }
@keyframes wrClignote { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.wr-live-mini { display: inline-block; padding: 2px 6px; border-radius: 5px; background: #E3235F; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; animation: wrClignote 1.6s ease-in-out infinite; }
.wr-btn.zoom { background: #2D8CFF; box-shadow: 0 10px 22px rgba(45,140,255,.3); text-decoration: none; }
.wr-btn.zoom svg { width: 22px; height: 22px; border-radius: 6px; }
.wr-boite .wr-visuel { margin: 0 auto 4px; }
.wr-boite b { display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .wr-live, .wr-live-mini { animation: none; } }
.wr-note { display: flex; gap: 10px; margin: 18px 2px 0; font-size: 12.5px; line-height: 1.5; color: #5E6A85; }
.wr-note svg { width: 18px; height: 18px; flex-shrink: 0; color: #1E66D0; margin-top: 1px; }
/* fenêtre « ton nom » */
.wr-voile { position: fixed; inset: 0; z-index: 460; display: flex; align-items: flex-end; justify-content: center; background: rgba(6,26,68,.55); }
.wr-voile[hidden] { display: none; }
.wr-boite { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px calc(16px + var(--bas)); border-radius: 26px 26px 0 0; background: #fff; text-align: center; animation: mb-tiroir .3s cubic-bezier(.2,.8,.2,1); }
.wr-boite-ico { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #4FA3F0, #1E66D0 60%, #0F3A8C); }
.wr-boite-ico svg { width: 26px; height: 26px; }
.wr-boite b { font-size: 19px; color: #0B1E4A; }
.wr-boite p { margin: 0 0 4px; font-size: 13.5px; color: #5E6A85; }
.wr-boite input { width: 100%; padding: 14px; border: 1.5px solid #D7E0F0; border-radius: 14px; font: inherit; font-size: 16px; text-align: center; color: #0B1E4A; background: #F6F9FE; }
.wr-boite input:focus { outline: 0; border-color: #1E66D0; background: #fff; }
.wr-annuler { padding: 8px; font-size: 14px; font-weight: 700; color: #6B7896; }
body.wr-en-reunion { overflow: hidden; }
/* administration */
.adw-zoom { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 4px; }
.adw-zoom > svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; flex-shrink: 0; stroke-width: 2.6; }
.adw-zoom.ok > svg { background: #E3F6EC; color: #17663A; }
.adw-zoom b { display: block; font-size: 14.5px; color: var(--nuit, #0E1330); }
.adw-zoom small { display: block; font-size: 12px; color: var(--gris); word-break: break-all; }
.adw-salle { margin-bottom: 10px; }
/* administration : apparence et visuels */
.adw-apparence { gap: 14px; }
.adw-apercu .wr-hero.adw-mini { padding: 18px 16px 16px; border-radius: 20px; }
.adw-mini h1 { margin: 0; font-size: 24px; }
.adw-mini .wr-sous { font-size: 12.5px; }
.adw-mini .wr-rdv { margin-top: 12px; padding: 10px 12px; }
.adw-mini .wr-rdv b { font-size: 14px; }
.adw-affiche, .adw-visuel { display: flex; align-items: center; gap: 12px; }
.adw-affiche > img, .adw-affiche > span { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: #EEF0FA; color: #3B2F8F; }
.adw-affiche > span svg { width: 24px; height: 24px; }
.adw-affiche b, .adw-visuel b { display: block; font-size: 13.5px; }
.adw-affiche small, .adw-visuel small { display: block; font-size: 11.5px; color: var(--gris); }
.adw-affiche-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.adw-affiche-btns .btn-rdv.mini { height: 32px; font-size: 12px; }
.adw-lib { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.adw-couleurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adw-couleur { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--gris); }
.adw-couleur input { width: 100%; height: 42px; padding: 3px; border: 1.5px solid #E2E0EE; border-radius: 12px; background: #fff; cursor: pointer; }
.adw-palettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.adw-palettes button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 5px; border-radius: 999px; background: #F1F2F8; font-size: 12px; font-weight: 700; color: #3B3F63; }
.adw-palettes i { width: 22px; height: 22px; border-radius: 50%; }
#adw-opacite { width: 100%; accent-color: #1E66D0; }

/* carte de salle : « Entrer » sur la même ligne que l'horaire */
.wr-salle-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0; }
.wr-salle-ligne small { flex: 1; min-width: 0; }
.wr-salle-ligne .wr-salle-etat { flex-shrink: 0; }

/* accueil : réunion en cours (logo de la salle dans le même bloc arrondi, nom de la réunion en rouge) */
.acc-wr-reunion { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: #E3235F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-wr-reunion[hidden], #acc-wr-zone[hidden] { display: none; }
.wr-acc-live .ligne-nom { background: linear-gradient(90deg, #E3235F, #7E68DC); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* l'image reste fixée et arrondie dans son bloc (44 × 44) ; l'effet lumineux brille seulement autour */
.wr-acc-live .ligne-ico { position: relative; isolation: isolate; overflow: visible; color: #fff; background: linear-gradient(145deg, #4FA3F0, #1E66D0 60%, #0F3A8C); animation: wrLueur 2.4s ease-in-out infinite; }
.wr-acc-live .ligne-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.wr-acc-live .ligne-ico::before { content: ""; position: absolute; inset: -4px; border-radius: 18px; z-index: -1; padding: 2px; pointer-events: none;
  background: conic-gradient(from 0deg, #FF6B8A, #FFD86B, #6FC2F0, #B889E6, #FF6B8A); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: wrTourne 4s linear infinite; }
@keyframes wrLueur { 0%, 100% { box-shadow: 0 0 12px 1px rgba(111,194,240,.5); } 50% { box-shadow: 0 0 18px 4px rgba(227,35,95,.42); } }
.wr-etincelle { position: absolute; z-index: 2; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255,255,255,.9); opacity: 0; animation: wrEtincelle 2.4s ease-in-out infinite; pointer-events: none; }
.wr-etincelle:nth-of-type(1) { width: 6px; height: 6px; top: -5px; right: -4px; }
.wr-etincelle:nth-of-type(2) { width: 4px; height: 4px; bottom: -4px; left: -4px; animation-delay: .8s; }
.wr-etincelle:nth-of-type(3) { width: 3px; height: 3px; top: 45%; right: -6px; animation-delay: 1.6s; }
@keyframes wrEtincelle { 0%, 100% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.1); } 60% { opacity: .8; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .wr-acc-live .ligne-ico, .wr-acc-live .ligne-ico::before, .wr-etincelle { animation: none; } }

/* salles privées */
.wr-prive { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: #EEF2FA; color: #3B4A6B; font-size: 10.5px; font-weight: 800; }
.wr-prive svg { width: 11px; height: 11px; stroke-width: 2.4; }
.wr-code { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: #F3F6FD; }
.wr-code span { display: flex; align-items: flex-start; gap: 7px; text-align: left; font-size: 12.5px; line-height: 1.45; color: #3B4A6B; }
.wr-code span svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: #1E66D0; }
/* entrée : petites mentions */
.wr-code-faux { font-style: normal; font-size: 12.5px; font-weight: 700; color: #C03A5B; text-align: left; }
.wr-memo { font-size: 11.5px; line-height: 1.45; color: #6B7896; }
.wr-roue-mini { width: 36px; height: 36px; margin: 6px auto; border-radius: 50%; border: 4px solid #DCE6F7; border-top-color: #1E66D0; animation: wrTourne 1s linear infinite; }
.wr-changer { margin-left: 4px; padding: 0; font-size: 12.5px; font-weight: 800; color: #1E66D0; text-decoration: underline; }
.wr-boite p strong { color: #0B1E4A; }

/* fenêtre d'entrée : affiche agrandie dans le cadre, bouton Info, retour à la salle */
.wr-boite { position: relative; }
.wr-affiche-btn { position: relative; display: block; margin: 0 auto 4px; padding: 0; border-radius: 17px; }
.wr-affiche-btn .wr-visuel { margin: 0; }
.wr-loupe { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1E66D0; box-shadow: 0 3px 8px rgba(15,58,140,.25); }
.wr-loupe svg { width: 13px; height: 13px; stroke-width: 2.4; }
.wr-agrandie { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: inherit; background: rgba(6,16,44,.94); animation: wrApparait .25s ease-out; }
.wr-agrandie img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.wr-agrandie-fermer { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #0B1E4A; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.wr-agrandie-fermer svg { width: 18px; height: 18px; stroke-width: 2.6; }
@keyframes wrApparait { from { opacity: 0; transform: scale(.96); } }
.wr-info { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px;
  background: #EEF4FF; color: #1E66D0; font-size: 12.5px; font-weight: 800; box-shadow: 0 0 0 0 rgba(30,102,208,.45); animation: wrAppel 2.2s ease-in-out infinite; }
.wr-info svg { width: 15px; height: 15px; stroke-width: 2.2; }
@keyframes wrAppel { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,102,208,.4); } 50% { box-shadow: 0 0 0 7px rgba(30,102,208,0); } }
/* retour : une flèche courbée en dégradé, minuscule et légère, en haut à droite (sous les boutons du haut) ;
   elle pulse doucement et glisse vers la gauche pour indiquer le chemin du retour */
.wr-retour { position: fixed; top: calc(var(--haut) + 74px); right: 6px; z-index: 470; display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 44px; min-height: 44px; padding: 6px 6px 4px; background: none; border: 0;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 1px 3px rgba(10,20,60,.28)); animation: wrApparait .35s ease-out, wrRetourVie 2.4s ease-in-out .35s infinite; }
.wr-retour[hidden] { display: none; }
.wr-retour svg { width: 24px; height: 24px; transform: rotate(-12deg); }
.wr-retour span { max-width: 80px; font-size: 8.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(90deg, #3E8FDB, #7E68DC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wr-retour:active { transform: scale(.92); }
@keyframes wrRetourVie { 0%, 100% { opacity: 1; translate: 0 0; } 45% { opacity: .55; translate: -3px 0; } }
@media (prefers-reduced-motion: reduce) { .wr-retour { animation: none; } }
@media (prefers-reduced-motion: reduce) { .wr-info { animation: none; } }
.adw-info { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #F4F7FD; }
.adw-info select, .adw-info input { width: 100%; }

/* repère lumineux : une lumière fait le tour du cadre de la salle à rejoindre */
@property --wr-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.wr-salle.wr-repere { position: relative; isolation: isolate; box-shadow: 0 0 0 1px rgba(79,163,240,.35), 0 10px 26px rgba(30,102,208,.22); }
.wr-salle.wr-repere::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--wr-a), transparent 0deg, transparent 250deg, rgba(79,163,240,.6) 300deg, #FFFFFF 340deg, rgba(79,163,240,.6) 355deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: wrRepere 2.6s linear infinite; }
.wr-salle.wr-repere::after { content: ""; position: absolute; inset: -6px; border-radius: 28px; pointer-events: none; z-index: -1; animation: wrRepereHalo 2.6s ease-in-out infinite; }
@keyframes wrRepere { to { --wr-a: 360deg; } }
@keyframes wrRepereHalo { 0%, 100% { box-shadow: 0 0 0 0 rgba(79,163,240,0); } 50% { box-shadow: 0 0 18px 2px rgba(79,163,240,.35); } }
@media (prefers-reduced-motion: reduce) { .wr-salle.wr-repere::before { animation: none; background: rgba(79,163,240,.8); } .wr-salle.wr-repere::after { animation: none; } }

/* Plateforme d'une salle « lien » (Teams, Telegram, WhatsApp…) */
.wr-plat { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #fff; background: var(--c); vertical-align: middle; }
