/* Couleurs du logo BoxToss : bleus du carton sur fond bleu nuit (thème sombre). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/pjs-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/pjs-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* Thème sombre pour tout le monde (même si l'appareil est réglé en mode clair) */
  color-scheme: dark;
  --bg: #11131a; --bg2: #161922; --card: #1a1d27; --card2: #1a1d27; --text: #e8eaf2; --muted: #9398ab;
  --border: #2a2e3b; --accent: #4d8dff; --accent-strong: #4d8dff; --accent-soft: #14254a; --brand-dark: #dbe6ff;
  --input: #11131a; --hdr-bg: rgba(17, 19, 26, .92); --soft-text: #c9cede;
  --danger: #f87171; --ok: #4ade80; --warn-bg: #2d2410; --warn-text: #f5c56b;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px 64px; }

/* En-tête */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text);
  display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { width: 40px; height: 40px; flex: none; }
.wordmark { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; }
.wm-box { color: var(--brand-dark); }
.wm-toss { color: var(--accent-strong); }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.2; }
.hero p { margin: 0 0 22px; color: var(--muted); font-size: 1.05rem; }

/* Cartes et contrôles */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.addr { flex: 1 1 260px; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem;
  background: var(--accent-soft); padding: 12px 14px; border-radius: 10px; word-break: break-all; }
button, select { font: inherit; border: 1px solid var(--border); background: var(--card); color: var(--text);
  padding: 10px 14px; border-radius: 10px; cursor: pointer; }
button:hover, select:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.danger { color: var(--danger); }
button.small { padding: 6px 10px; font-size: .88rem; }
button:disabled { opacity: .5; cursor: default; }
.status { margin-top: 10px; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.hidden { display: none !important; }
#ts { margin-top: 10px; }

/* Boîte de réception */
.inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.inbox-head h2 { margin: 0; font-size: 1.15rem; }
.live { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
#list { margin-top: 14px; }
.msg { padding: 12px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer; }
.msg:hover { border-color: var(--accent); }
.msg.unread { border-left: 4px solid var(--accent); }
.msg.fresh { animation: fresh 1.2s ease-out; }
@keyframes fresh { from { background: var(--accent-soft); } }
.msg .from { font-weight: 600; }
.msg .meta { color: var(--muted); font-size: .85rem; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* Lecture d'un message */
.reader-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
#rSubj { margin: 0; font-size: 1.15rem; word-break: break-word; }
.notice { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 8px 12px;
  font-size: .88rem; margin: 10px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
iframe { width: 100%; min-height: 440px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.atts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.atts a { font-size: .88rem; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); text-decoration: none; }
.atts a:hover { border-color: var(--accent); }

/* Sections de présentation */
section.info { margin-top: 44px; }
section.info h2 { font-size: 1.35rem; margin: 0 0 16px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step, .feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.step b { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature .ico { font-size: 1.5rem; }
.feature h3, .step h3 { margin: 6px 0 4px; font-size: 1rem; }
.feature p, .step p { margin: 0; color: var(--muted); font-size: .93rem; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }

/* Pages légales */
.legal h1 { font-size: 1.7rem; margin: 0 0 6px; }
.legal h2 { font-size: 1.15rem; margin: 26px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); font-size: .9rem; }

.site-footer { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 44px; }
.site-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* Menu des outils */
nav.tools { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: -8px 0 22px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
nav.tools a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); text-decoration: none; font-size: .92rem; }
nav.tools a:hover { border-color: var(--accent); }
nav.tools a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Champs de saisie */
input[type=text], input[type=password], input[type=email], input:not([type]), textarea, select.field {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
input.link { flex: 1 1 220px; width: auto; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
label.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.field-label { display: block; font-weight: 600; margin: 12px 0 6px; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); font-size: .9rem; }
.error { color: var(--danger); font-size: .9rem; min-height: 1.3em; }
.badge { display: inline-block; font-size: .85rem; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); }
.page-title { margin: 0 0 6px; font-size: clamp(1.5rem, 4.5vw, 2rem); }
.page-intro { margin: 0 0 20px; color: var(--muted); }

/* Fenêtre QR code */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center;
  justify-content: center; padding: 16px; z-index: 50; }
.modal-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  width: min(360px, 100%); text-align: center; }
.modal-box h3 { margin: 0 0 12px; }
.modal-box .qr { background: #fff; border-radius: 12px; padding: 10px; }
.modal-box .qr svg { width: 100%; height: auto; display: block; }

/* Code de vérification détecté */
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.code-box .code { font-family: ui-monospace, Consolas, monospace; font-size: 1.7rem; font-weight: 700;
  letter-spacing: 4px; }
.code-chip { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: .85rem;
  background: var(--accent-soft); color: var(--accent); border: none; padding: 3px 8px; border-radius: 6px; }

/* Chat */
.chat-log { height: min(55vh, 460px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 4px 2px; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: var(--bg);
  border: 1px solid var(--border); word-wrap: break-word; white-space: pre-wrap; }
.bubble .who { font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.bubble.me { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: #fff; }
.bubble.me .who { color: rgba(255, 255, 255, .8); }
.sys { align-self: center; font-size: .82rem; color: var(--muted); }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form input { flex: 1; }

/* Appel vidéo */
.videos { display: grid; grid-template-columns: 1fr; gap: 10px; position: relative; }
.videos video { width: 100%; background: #000; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.videos video.local { position: absolute; width: 30%; right: 10px; bottom: 10px; aspect-ratio: 4 / 3;
  border: 2px solid #fff; z-index: 2; }
.vlabel { position: absolute; z-index: 3; max-width: 60%; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.vlabel.remote-label { top: 10px; left: 10px; }
.vlabel.local-label { right: 14px; bottom: 14px; max-width: 28%; }
[dir="rtl"] .vlabel.remote-label { left: auto; right: 10px; }
[dir="rtl"] .vlabel.local-label { right: auto; left: 14px; }
.controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
button.off { opacity: .55; text-decoration: line-through; }

/* Transfert */
.progress { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.file-row { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; }
.file-row a { font-weight: 600; }

/* Sondage */
.poll-opt { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  margin-top: 8px; cursor: pointer; }
.poll-opt:hover { border-color: var(--accent); }
.poll-bar { position: relative; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  margin-top: 8px; overflow: hidden; }
.poll-bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); z-index: 0; }
.poll-bar .txt { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; }

/* Presse-papier */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.big-code { font-family: ui-monospace, Consolas, monospace; font-size: 2.6rem; font-weight: 700;
  letter-spacing: 8px; text-align: center; margin: 10px 0; }
input.code-input { font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; letter-spacing: 6px;
  text-align: center; }

/* Liste des outils (accueil) */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tool-card { display: block; text-decoration: none; color: var(--text); background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.tool-card:hover { border-color: var(--accent); }
.tool-card .ico { font-size: 1.4rem; }
.tool-card b { display: block; margin-top: 4px; }
a.button-link { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 14px; border-radius: 10px; }

/* Jauge de solidité */
.strength .meter { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; margin: 8px 0 4px; }
.strength .meter > div { height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.strength[data-level="1"] .meter > div { background: #f59e0b; }
.strength[data-level="2"] .meter > div { background: #22c55e; }
.strength[data-level="3"] .meter > div { background: var(--ok); }

/* Générateur */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pw-out { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; background: var(--accent-soft);
  padding: 14px; border-radius: 10px; word-break: break-all; min-height: 3.2em; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* Coffre, photo, masqueur */
.drop-zone { border: 2px dashed var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.drop-zone.over { border-color: var(--accent); background: var(--accent-soft); }
.info-list { list-style: none; padding: 0; margin: 8px 0; }
.info-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.photo-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-top: 12px; }
.photo-card img { max-width: 100%; max-height: 260px; border-radius: 8px; display: block; margin-bottom: 8px; }
.mask-wrap { position: relative; max-width: 100%; overflow: auto; margin-top: 12px; }
.mask-wrap canvas { max-width: 100%; height: auto; display: block; cursor: crosshair; touch-action: none;
  border-radius: 8px; border: 1px solid var(--border); }
.screen-video { width: 100%; background: #000; border-radius: 12px; aspect-ratio: 16 / 9; }

/* Navigation par catégories */
.tools-btn { font-weight: 600; }
.topbar { position: relative; }
#siteHeader { position: relative; }
.tools-panel { position: absolute; left: 0; right: 0; top: 62px; z-index: 40; max-height: calc(100vh - 90px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.tool-cat h3 { margin: 0 0 8px; font-size: 1rem; }
.tool-cat > p { margin: -4px 0 10px; }
.tool-list { display: flex; flex-direction: column; gap: 6px; }
.tool-link { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text); border: 1px solid transparent; }
.tool-link:hover { background: var(--accent-soft); }
.tool-link.current { border-color: var(--accent); }
.tool-link .ico { font-size: 1.3rem; width: 1.6em; text-align: center; flex: none; }
.tool-link b { display: block; font-size: .95rem; }
.tool-link small { display: block; color: var(--muted); font-size: .82rem; }
.tool-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tool-directory .tool-cat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
nav.tools .cat-label { align-self: center; flex: none; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); padding: 0 4px; }

/* Bouton Accueil */
a.home-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; }
a.home-btn:hover { border-color: var(--accent); }
@media (max-width: 520px) {
  a.home-btn span[data-i18n] { display: none; }   /* sur téléphone : seulement l'icône 🏠 */
  .wordmark { font-size: 1.2rem; }
}

/* En-tête compact */
.topbar { flex-wrap: nowrap; }
.topbar > .row { flex-wrap: nowrap; gap: 6px; }
.tools-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lang-short { display: none; }
@media (max-width: 560px) {
  .tb-txt, .lang-long { display: none; }
  .lang-short { display: inline; }
  .topbar > .row > a, .topbar > .row > button { padding: 9px 11px; }
  .brand .logo { width: 34px; height: 34px; }
  .tools-panel { top: 56px; }
}

/* Icônes (icons.js) : un seul style au trait */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
button, a.button-link, a.home-btn, nav.tools a, .badge, .notice > span, label.check > span, .status, .muted, .atts a,
.code-chip, .tools-btn, #langBtn { display: inline-flex; align-items: center; gap: .45em; }
.status, .muted, .notice > span { align-items: flex-start; }
.status .ic, .muted .ic, .notice .ic { margin-top: .12em; }
div.status, p.muted, div.muted { display: flex; }
.tool-link .ico, .ico-tile { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.tool-link .ico .ic, .ico-tile .ic { width: 22px; height: 22px; }
.tool-link .ico { font-size: inherit; }
.tool-link.current .ico, .tool-link:hover .ico { background: var(--accent); color: #fff; }
.cat-ico { display: inline-flex; color: var(--accent); margin-right: 6px; }
.cat-ico .ic { width: 20px; height: 20px; }
.tool-cat h3 { display: flex; align-items: center; }
.feature .ico-tile { margin-bottom: 6px; }
nav.tools a .ic { width: 17px; height: 17px; }
nav.tools a.active .ic { color: #fff; }
.info-list li { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.info-list li > b { display: inline-flex; align-items: center; gap: .4em; }

/* Soutenez-nous (Ko-fi) */
a.kofi-btn { display: inline-flex; align-items: center; gap: .5em; margin-bottom: 14px; padding: 10px 16px;
  border-radius: 999px; background: #ff5e5b; color: #fff; text-decoration: none; font-weight: 600; }
a.kofi-btn:hover { filter: brightness(1.06); }

/* Menu des langues */
.lang-btn { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.lang-panel { position: absolute; right: 0; top: 62px; z-index: 41; width: min(320px, 100%);
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.lang-panel a { padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .95rem; }
.lang-panel a:hover { background: var(--accent-soft); }
.lang-panel a.current { background: var(--accent); color: #fff; }
@media (max-width: 560px) { .lang-panel { top: 56px; } }

/* Ko-fi : lien jaune dans le menu des outils, logo dans le bas de page */
a.kofi-link { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .5em;
  padding: 10px 16px; border-radius: 999px; background: #ffdd00; color: #1a1a1a; font-weight: 700;
  text-decoration: none; }
a.kofi-link:hover { filter: brightness(.96); }
a.kofi-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 8px 16px 8px 8px;
  border-radius: 999px; background: #ffdd00; color: #1a1a1a; text-decoration: none; text-align: start; }
a.kofi-badge:hover { filter: brightness(.96); }
.kofi-cup { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: #fff; color: #ff5e5b; }
.kofi-cup .ic { width: 20px; height: 20px; }
a.kofi-badge b { display: block; font-size: .95rem; line-height: 1.1; }
a.kofi-badge small { display: block; font-size: .8rem; opacity: .85; }

/* Arabe (droite à gauche) : les éléments posés à droite passent à gauche */
[dir="rtl"] .lang-panel { right: auto; left: 0; }
[dir="rtl"] .cat-ico { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .videos video.local { right: auto; left: 10px; }
[dir="rtl"] .poll-bar .fill { inset: 0 0 0 auto; }

/* Réunion tout-en-un */
.meet-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
.meet-grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
.meet-grid[data-n="3"], .meet-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
.meet-grid[data-n="5"], .meet-grid[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.meet-grid[data-n="7"], .meet-grid[data-n="8"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) {
  .meet-grid[data-n="2"] { grid-template-columns: 1fr; }
  .meet-grid[data-n="5"], .meet-grid[data-n="6"], .meet-grid[data-n="7"], .meet-grid[data-n="8"] { grid-template-columns: 1fr 1fr; }
}
.tile { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.mine video { transform: scaleX(-1); }
.tile.mine.rear video { transform: none; }
.tile.screen video, .tile.mine.screen video { object-fit: contain; transform: none; }
.tile .avatar { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-size: 2.4rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #0a6cff, #0b2a6f); }
.tile.novideo .avatar { display: flex; }
.tile.novideo video { visibility: hidden; }
.tile .vlabel { left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
[dir="rtl"] .tile .vlabel { left: auto; right: 8px; }
button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.meet-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.meet-panel h2 { font-size: 1rem; margin: 0 0 8px; }
.meet-log { height: 260px; }
.poll-q { font-weight: 600; margin-bottom: 4px; }
.mp-opt { position: relative; display: flex; justify-content: space-between; gap: 8px; width: 100%;
  margin-top: 8px; padding: 10px 12px; text-align: start; overflow: hidden; border-radius: 10px; }
.mp-opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); z-index: 0; transition: width .2s; }
[dir="rtl"] .mp-opt .bar { inset: 0 0 0 auto; }
.mp-opt .lbl, .mp-opt .pct { position: relative; z-index: 1; }
.mp-opt.chosen { border-color: var(--accent); font-weight: 600; }
#pollView .muted { margin: 8px 0; }

/* ================= Design « maquette D » ================= */
/* En-tête collant, pleine largeur, avec recherche */
/* Le fond pleine largeur est dessiné par ::before : l'en-tête ne coupe rien, donc les menus
   Outils et Langue peuvent s'ouvrir en dessous. */
#siteHeader { position: sticky; top: 0; z-index: 30; margin: 0 0 8px; }
#siteHeader::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: -1; background: var(--hdr-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); }
html, body { overflow-x: clip; }
.topbar { min-height: 72px; margin: 0; gap: 18px; }
.brand { font-size: 1.55rem; color: var(--text); }
.brand .logo { width: 42px; height: 42px; }
.search { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 46px;
  padding: 0 8px 0 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.search:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(0, 107, 246, .25); }
.search > .ic { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: .95rem; }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.search input::placeholder { color: var(--muted); }
.search kbd { font: 700 .75rem var(--font); padding: 3px 8px; border-radius: 7px; border: 1px solid var(--border); color: var(--muted); }
.search-results { position: absolute; top: 52px; left: 0; right: 0; z-index: 45; padding: 6px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: var(--accent-soft); }
.search-results .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.search-results b { display: block; font-size: .95rem; }
.search-results small { display: block; color: var(--muted); font-size: .82rem; }
.search-results .empty { padding: 14px; margin: 0; }
.topbar > .row > button { height: 46px; border-radius: 12px; padding: 0 16px; font-weight: 700; }
#toolsBtn { background: var(--accent); border-color: var(--accent); color: #fff; }
#toolsBtn .ic, #langBtn .ic { width: 20px; height: 20px; }
.tools-panel, .lang-panel { top: 78px; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: 10px; padding: 12px 0; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .search kbd { display: none; }
  .tools-panel, .lang-panel { top: 124px; }
}
@media (max-width: 560px) { .wordmark { font-size: 1.3rem; } .topbar > .row > button { padding: 0 13px; } }

/* Boutons, cartes et champs : formes plus douces */
button, select { border-radius: 12px; }
button.primary, a.button-link { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; font-weight: 700;
 }
button.primary:hover { filter: brightness(1.08); }
.card { border-radius: 16px; }
input[type=text], input[type=password], input[type=email], input[type=search], input:not([type]), textarea, select.field { background: var(--input); border-radius: 12px; }
.search input { background: none; }
iframe { background: #fff; }

/* Tuile d'icône = petit carton bleu du logo */
.bt-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.bt-tile .flap { display: none; }
.bt-tile .ic { width: 24px; height: 24px; }
.bt-tile.big { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 14px; }
.bt-tile.big .ic { width: 34px; height: 34px; }
.tool-card:hover .bt-tile { background: var(--accent); color: #fff; }

/* Accueil */
.home-hero { text-align: center; padding: 48px 0 6px; }
.home-logo { width: 112px; height: 112px; }
.home-hero h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); line-height: 1.12; letter-spacing: -.03em; margin: 14px auto 16px; max-width: 880px; font-weight: 800; }
.home-hero h1 .hl { color: var(--accent); }
.home-hero > p { color: var(--muted); font-size: 1.12rem; max-width: 760px; margin: 0 auto 26px; }
.checks { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.checks > span { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-weight: 700; font-size: .95rem; }
.checks b { color: var(--accent); }
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 34px 0 6px; }
.filters button { font-weight: 700; padding: 11px 20px; border-radius: 999px; background: var(--card); }
.filters button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tool-cat-block { margin-top: 40px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin: 0; flex: none; }
.cat-ic .ic { width: 22px; height: 22px; }
.cat-head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; }
.cat-head p { margin: 0; color: var(--muted); font-size: .93rem; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; color: var(--text); text-decoration: none;
  background: var(--card); border: 1px solid var(--border); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-4px); border-color: var(--accent-strong); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35); }
.tool-card .bt-tile { margin-bottom: 16px; }
.tool-card h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.tool-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.tc-go { margin-top: 14px; color: var(--accent); font-weight: 800; font-size: .92rem; }
.tc-badge { position: absolute; top: 18px; inset-inline-end: 18px; font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-strong); color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.no-results { text-align: center; color: var(--muted); margin: 30px 0; }
.privacy-box { position: relative; overflow: hidden; margin: 70px 0 0; padding: 36px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--border); }
.privacy-box .wmk { position: absolute; inset-inline-end: -40px; bottom: -40px; width: 240px; height: 240px; opacity: .08; }
.privacy-box h2 { margin: 0 0 10px; font-size: 1.7rem; letter-spacing: -.02em; }
.privacy-box > p { margin: 0 0 24px; color: var(--muted); max-width: 720px; }
.pgrid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr; } .privacy-box { padding: 24px; } }
.pgrid > div { padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.pgrid b { display: block; margin-bottom: 4px; color: var(--accent); }
.pgrid > div > span { color: var(--muted); font-size: .95rem; }
.why { margin: 64px 0 0; }
.why h2 { text-align: center; font-size: 1.9rem; margin: 0 0 26px; letter-spacing: -.02em; }
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .wgrid { grid-template-columns: 1fr; } }
.wgrid > div { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.wgrid h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--accent); }
.wgrid p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Pages d'outils : contenu centré, colonne publicitaire à droite sur grand écran */
.tool-layout { display: block; }
.tool-main { max-width: 860px; margin: 0 auto; }
.side-col { display: none; }
@media (min-width: 1180px) {
  .tool-layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .tool-layout.has-side .tool-main { max-width: none; margin: 0; }
  .tool-layout.has-side .side-col { display: block; position: sticky; top: 96px; }
}
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font-weight: 700; font-size: .92rem; }
.back-link:hover { border-color: var(--accent-strong); }
[dir="rtl"] .back-link .ic { transform: scaleX(-1); }
.tool-head { text-align: center; margin: 22px 0 26px; }
.tool-head h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4.5vw, 2.3rem); letter-spacing: -.03em; line-height: 1.15; }
.tool-head p { margin: 0 auto; color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.tool-about { margin-top: 34px; }
.about-lead { padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); color: var(--soft-text); margin: 0 0 26px; }
.tool-about h2, .similar h2, section.info h2 { font-size: 1.45rem; letter-spacing: -.02em; margin: 0 0 16px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.how-steps b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.how-steps p { margin: 0; color: var(--muted); }
.similar { margin-top: 44px; }
.similar .tool-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .similar .tool-grid { grid-template-columns: 1fr; } }

/* Emplacements publicitaires (AdSense) : place réservée, jamais collée aux boutons */
.ad-slot { margin: 34px auto; max-width: 970px; min-height: 120px; text-align: center; }
.ad-slot .ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.side-col .ad-slot { margin: 0; min-height: 600px; }

/* Pied de page */
.site-footer { margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--border); }

.tool-cat-block { scroll-margin-top: 150px; }

/* Menu « ⋮⋮⋮ » : Aide + BoxToss */
.menu-btn { width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.menu-btn .ic { width: 20px; height: 20px; }
.menu-panel { position: absolute; right: 0; top: 78px; z-index: 42; width: min(360px, 100%); max-height: calc(100vh - 100px); overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.menu-panel .menu-title { margin: 8px 12px 6px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--accent-soft); }
.menu-panel a .ic { width: 20px; height: 20px; color: var(--muted); }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: 8px 6px; }
.menu-panel a.menu-kofi { color: #e8a913; }
.menu-panel a.menu-kofi .ic { color: #e8a913; }
[dir="rtl"] .menu-panel { right: auto; left: 0; }
@media (max-width: 760px) { .menu-panel { top: 124px; } }

/* Pages d'information : FAQ, À propos, Sécurité, blog */
.info-page { max-width: 860px; margin: 0 auto; }
.info-page .tool-head .home-logo { display: block; margin: 0 auto 10px; }
.faq-list details { margin-bottom: 10px; padding: 16px 20px; border-radius: 14px; background: var(--card); }
.faq-list summary { font-size: 1.02rem; }
.faq-list details p { line-height: 1.65; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 0; }
.info-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .info-grid, .info-grid.two { grid-template-columns: 1fr; } }
.info-card { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.info-card h2 { margin: 10px 0 8px; font-size: 1.12rem; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.info-card .bt-tile { width: 44px; height: 44px; }
.about-tools { margin-top: 44px; scroll-margin-top: 140px; }
.about-tools > h2 { font-size: 1.45rem; margin: 0 0 4px; }
.about-tools .tool-cat-block { margin-top: 26px; }
.contact-card { margin-top: 40px; }
.center-link { text-align: center; margin-top: 30px; }
.post-list { display: grid; gap: 16px; }
.post-card { display: block; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.post-card p { margin: 0 0 12px; color: var(--muted); }
.post-meta { display: block; color: var(--muted); font-size: .88rem; }
.post-card .tc-go { display: block; margin-top: 10px; }
.post { margin-top: 22px; padding: 30px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); line-height: 1.75; font-size: 1.04rem; }
.post header h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; }
.post header { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.post h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.post ul, .post ol { padding-inline-start: 22px; }
.post li { margin-bottom: 8px; }
@media (max-width: 560px) { .post { padding: 20px; } }
.post-tool { margin-top: 24px; max-width: 360px; }

/* Carte OpenStreetMap (map.js) */
.loc-map { height: min(55vh, 420px); border-radius: 14px; }
.osm-map { position: relative; overflow: hidden; background: #aad3df; border: 1px solid var(--border); touch-action: none; cursor: grab; user-select: none; }
.osm-map:active { cursor: grabbing; }
.osm-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.osm-marks { position: absolute; inset: 0; pointer-events: none; }
.osm-acc { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(10, 108, 255, .14); border: 1px solid rgba(10, 108, 255, .45); }
.osm-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.osm-pin i { width: 18px; height: 18px; border-radius: 50%; background: #e5322d; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.osm-pin.me i { background: #0a6cff; animation: pinPulse 2s infinite; }
@keyframes pinPulse { 0% { box-shadow: 0 0 0 0 rgba(10, 108, 255, .55); } 70% { box-shadow: 0 0 0 16px rgba(10, 108, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(10, 108, 255, 0); } }
.osm-pin b { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.osm-ctrl { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.osm-ctrl button { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 1.2rem; font-weight: 800; background: #fff; color: #1d2130; border: 1px solid rgba(0, 0, 0, .2); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.osm-attr { position: absolute; bottom: 0; inset-inline-end: 0; z-index: 2; padding: 2px 6px; font-size: 11px; background: rgba(255, 255, 255, .85); color: #1d2130; border-top-left-radius: 6px; text-decoration: none; }
.loc-info { justify-content: space-between; }
.loc-info a { font-weight: 700; }

/* Réunion : choix de la durée de la position, carte, main levée */
.loc-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.meet-map { margin-top: 14px; }
.meet-map h2 { font-size: 1rem; margin: 0 0 8px; }
.meet-map .loc-map { height: min(45vh, 340px); }
/* Main levée (comme Teams) : cadre jaune autour de l'image, ✋ dans le coin avec un petit numéro d'ordre */
.tile.hand { outline: 3px solid #f5c542; outline-offset: -3px; }
.tile.hand::before { content: "✋"; position: absolute; z-index: 4; top: 9px; left: 9px; font-size: 20px; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); pointer-events: none; }
.tile.hand::after { content: attr(data-hand); position: absolute; z-index: 4; top: 5px; left: 26px; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 999px; background: #f5c542; color: #1d2130; font-size: 10px; font-weight: 800; line-height: 15px; text-align: center; pointer-events: none; }
[dir="rtl"] .tile.hand::before { left: auto; right: 9px; }
[dir="rtl"] .tile.hand::after { left: auto; right: 26px; }

/* ================= Boutons modernes (tout le site) ================= */
button, a.button-link, .back-link, .filters button {
  font-weight: 600; border-radius: 14px; min-height: 44px; padding: 10px 18px;
  background: color-mix(in srgb, var(--card) 88%, var(--text) 12%); border: 1px solid transparent; color: var(--text);
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, filter .15s ease, border-color .15s ease;
}
button:hover:not(:disabled) { background: color-mix(in srgb, var(--card) 78%, var(--text) 22%); border-color: transparent; transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0) scale(.98); }
button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
button.small { min-height: 34px; padding: 6px 12px; border-radius: 10px; font-size: .88rem; }
button.primary, a.button-link {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff 15%), var(--accent)); color: #fff; border: 0;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}
button.primary:hover:not(:disabled) { filter: brightness(1.07); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff 15%), var(--accent)); box-shadow: 0 12px 26px -10px var(--accent); }
button.danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 24%, transparent); }
button.active, .tabs button.active { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.tabs button { border-radius: 999px; }
.filters button { border-radius: 999px; }
.filters button.on { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }

/* Commandes d'appel, de réunion et d'écran : boutons ronds avec libellé dessous */
.controls { gap: 14px 10px; margin-top: 18px; }
.controls button { flex-direction: column; justify-content: flex-start; gap: 6px; min-height: 0; padding: 0; background: none; border: 0;
  color: var(--text); font-size: .78rem; font-weight: 600; width: 76px; box-shadow: none; }
.controls button:hover:not(:disabled) { background: none; transform: none; }
.controls button .ic { box-sizing: content-box; width: 22px; height: 22px; padding: 15px; border-radius: 50%;
  background: color-mix(in srgb, var(--card) 80%, var(--text) 20%); transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease; }
.controls button:hover:not(:disabled) .ic { background: color-mix(in srgb, var(--card) 66%, var(--text) 34%); transform: translateY(-2px); }
.controls button span { line-height: 1.2; text-align: center; }
.controls button.active .ic { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.controls button.off .ic { background: color-mix(in srgb, var(--danger) 85%, #000 15%); color: #fff; }
.controls button.off { text-decoration: none; opacity: 1; }
.controls button.danger { color: var(--danger); }
.controls button.danger .ic { background: #e5322d; color: #fff; box-shadow: 0 8px 20px -8px #e5322d; }
.controls button.danger:hover:not(:disabled) .ic { background: #c92a26; }
.controls button:disabled .ic { opacity: .5; }
@media (max-width: 460px) { .controls button { width: 64px; font-size: .72rem; } .controls button .ic { padding: 13px; } }

/* En-tête : boutons ronds cohérents */
.topbar > .row > button { border-radius: 14px; }
#toolsBtn { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }

/* Réunion : scène vidéo + panneau latéral (chat, sondage ou carte) */
.meet-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1000px) {
  .meet-stage.with-side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .meet-stage.with-side .side-panel { position: sticky; top: 96px; }
}
.side-panel { display: flex; flex-direction: column; border-radius: 18px; background: color-mix(in srgb, var(--card) 92%, var(--text) 8%);
  border: 1px solid var(--border); overflow: hidden; max-height: min(80vh, 680px); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--border); }
.side-head h2 { margin: 0; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5em; }
.side-close { min-height: 36px; width: 36px; padding: 0; border-radius: 50%; font-size: 1.3rem; line-height: 1; justify-content: center; }
.side-body { padding: 14px; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.side-body[data-panel="chat"] { padding-bottom: 12px; }
.side-body .meet-log { height: min(52vh, 460px); }
.side-body .loc-map { height: min(55vh, 460px); }
.side-body #pollForm, .side-body #pollView { width: 100%; }
@media (max-width: 999px) { .side-panel { max-height: none; } }

/* Pastille sur les boutons des commandes */
.controls button { position: relative; }
.controls button[data-count]::after { content: attr(data-count); position: absolute; top: -2px; left: calc(50% + 12px); min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 999px; background: #e5322d; color: #fff; font-size: .7rem; font-weight: 800; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--card); }
[dir="rtl"] .controls button[data-count]::after { left: auto; right: calc(50% + 12px); }
.loc-pick { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--card) 90%, var(--text) 10%); }

/* Chat de la réunion (style Teams) : sondage en option, carte dans la conversation */
.chat-form { align-items: center; }
.compose-btn { min-height: 44px; width: 44px; padding: 0; justify-content: center; flex: none; border-radius: 12px; }
.compose-btn span { display: none; }
.compose-btn .ic { width: 20px; height: 20px; }
.poll-compose { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.poll-compose .row { justify-content: flex-end; }
.poll-card { align-self: stretch; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--accent);
  box-shadow: 0 6px 18px -12px var(--accent); }
.poll-card .poll-tag { display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.poll-card .poll-tag .ic { width: 16px; height: 16px; }
.poll-card .poll-q { font-size: 1rem; }
.poll-card .muted { margin: 8px 0 0; }
.poll-card > button.small { margin-top: 8px; }
.mp-opt { min-height: 42px; background: color-mix(in srgb, var(--card) 88%, var(--text) 12%); }

/* Durée de vie des liens : compteur − 24 h + */
.life { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.life .field-label { margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); }
.stepper button { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; justify-content: center; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.stepper output { min-width: 84px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.link-exp { margin: 8px 0 0; }
.expired-notice { margin: 0 0 18px; font-size: .95rem; }
.addr-life { margin-top: 6px; font-size: .88rem; color: var(--muted); }

/* Réunion : compteur de durée de la position + bouton */
.loc-pick { gap: 12px 16px; }
.loc-pick .life { flex: 1 1 280px; justify-content: center; }

/* ================= Appel et réunion en plein écran (comme WhatsApp) ================= */
body.in-call { overflow: hidden; }
body.in-call #callCard, body.in-call #meetCard {
  position: fixed; inset: 0; z-index: 60; margin: 0; padding: 0; border: 0; border-radius: 0; max-width: none;
  background: #0b0d12; color: #fff; display: flex; flex-direction: column; overflow: hidden;
}
body.in-call #callCard > *, body.in-call #meetCard > * { margin: 0; }
body.in-call #meetCard > p.muted { display: none; }

/* Statut en haut à gauche, lien d'invitation en panneau flottant */
body.in-call .live { position: absolute; z-index: 4; top: calc(12px + env(safe-area-inset-top)); left: 12px; padding: 6px 12px;
  border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); max-width: calc(100% - 24px); }
body.in-call #share { display: none; position: absolute; z-index: 6; top: calc(56px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); padding: 14px; border-radius: 16px; background: var(--card); color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
body.in-call.show-invite #share { display: block; }
body.in-call #share.hidden { display: none; }

/* Message (caméra bloquée…) au-dessus des boutons */
body.in-call #mediaNote { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(132px + env(safe-area-inset-bottom));
  width: max-content; max-width: min(560px, calc(100% - 24px)); padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .7); color: #fff; min-height: 0; }
body.in-call #mediaNote:empty { display: none; }

/* Boutons flottants en bas, sur la vidéo */
body.in-call .controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 26px 12px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
  flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
body.in-call .controls::-webkit-scrollbar { display: none; }
body.in-call .controls button { color: #fff; flex: none; }
body.in-call .controls button .ic { background: rgba(255, 255, 255, .18); }
body.in-call .controls button:hover:not(:disabled) .ic { background: rgba(255, 255, 255, .28); }
body.in-call .controls button.active .ic { background: var(--accent); }
body.in-call .controls button.off .ic { background: #e5322d; }
body.in-call .controls button.danger .ic { background: #e5322d; }
body.in-call .controls button[data-count]::after { box-shadow: 0 0 0 2px #0b0d12; }

/* Appel à deux : la vidéo de l'autre remplit l'écran, la mienne en vignette */
body.in-call .videos { flex: 1; min-height: 0; position: relative; display: block; }
body.in-call .videos video#remote { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; object-fit: cover; }
body.in-call .videos video.local { top: calc(62px + env(safe-area-inset-top)); right: 12px; bottom: auto; width: min(28vw, 170px); aspect-ratio: 3 / 4;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, .85); object-fit: cover; }
body.in-call .vlabel.remote-label { top: auto; bottom: calc(128px + env(safe-area-inset-bottom)); left: 12px; }
body.in-call .vlabel.local-label { top: calc(66px + env(safe-area-inset-top)); right: 18px; bottom: auto; }
[dir="rtl"] body.in-call .videos video.local { right: auto; left: 12px; }

/* Réunion : la grille des participants occupe tout l'espace */
body.in-call .meet-stage, body.in-call .meet-stage.with-side { flex: 1; min-height: 0; display: flex; gap: 0; }
body.in-call .meet-main { flex: 1; min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; }
body.in-call .meet-grid { flex: 1; min-height: 0; grid-auto-rows: minmax(0, 1fr); align-content: stretch; gap: 6px;
  padding: calc(58px + env(safe-area-inset-top)) 8px calc(118px + env(safe-area-inset-bottom)); }
body.in-call .meet-grid .tile { aspect-ratio: auto; height: 100%; min-height: 0; border-radius: 14px; }
body.in-call .meet-grid[data-n="1"] { padding-left: 0; padding-right: 0; }
body.in-call .meet-grid[data-n="1"] .tile { border-radius: 0; }
@media (max-width: 560px) {
  body.in-call .meet-grid[data-n="2"] { grid-template-columns: 1fr; }
  body.in-call .meet-grid[data-n="3"], body.in-call .meet-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
}
body.in-call .loc-pick { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(124px + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 24px)); margin: 0; color: var(--text); background: var(--card); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* Panneau (chat, carte) : à droite sur ordinateur, en bas sur téléphone */
body.in-call .side-panel { position: fixed; z-index: 7; top: 0; right: 0; bottom: 0; width: min(380px, 100%); max-height: none;
  border-radius: 0; border: 0; border-left: 1px solid var(--border); color: var(--text); box-shadow: -10px 0 40px rgba(0, 0, 0, .4); }
body.in-call .side-panel .side-body { flex: 1; }
body.in-call .side-body .meet-log { height: auto; flex: 1; min-height: 0; }
body.in-call .side-body .loc-map { height: 100%; min-height: 300px; }
@media (max-width: 760px) {
  body.in-call .side-panel { top: auto; left: 0; width: 100%; height: 68vh; border-left: 0; border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
}
[dir="rtl"] body.in-call .side-panel { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--border); }

/* Téléphone : tous les boutons visibles sur deux lignes (Quitter jamais caché) */
@media (max-width: 560px) {
  body.in-call .controls { flex-wrap: wrap; overflow-x: visible; row-gap: 10px; column-gap: 4px; padding-top: 18px; }
  body.in-call .controls button { width: 64px; font-size: .68rem; }
  body.in-call .controls button .ic { padding: 12px; width: 20px; height: 20px; }
  body.in-call #meetCard #mediaNote { bottom: calc(200px + env(safe-area-inset-bottom)); }
  body.in-call #meetCard .loc-pick { bottom: calc(196px + env(safe-area-inset-bottom)); }
}

/* Connexion impossible avec une personne : vignette marquée */
.tile.p2p-fail { box-shadow: 0 0 0 3px #e5322d; }

/* Relais maison : l'image arrive dans un canevas quand la connexion directe est bloquée */
.relay-canvas { display: none; }
.videos.relayed video#remote { visibility: hidden; }
.videos.relayed .relay-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; border-radius: 12px; }
body.in-call .videos.relayed .relay-canvas { border-radius: 0; }
.tile.relayed video, .tile.relayed .avatar { display: none !important; }
.tile.relayed .relay-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* Réunion à deux (comme WhatsApp) : l'autre personne remplit l'écran, ma vidéo en vignette dans le coin */
body.in-call .meet-grid { position: relative; }
body.in-call .meet-grid[data-n="2"] { display: block; padding: 0; }
body.in-call .meet-grid[data-n="2"] .tile { position: absolute; inset: 0; height: auto; border-radius: 0; }
body.in-call .meet-grid[data-n="2"] .tile.mine,
body.in-call .meet-grid[data-n="2"].swap .tile:not(.mine) {
  inset: calc(62px + env(safe-area-inset-top)) 12px auto auto; z-index: 3; width: min(28vw, 170px); height: auto; aspect-ratio: 3 / 4;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); cursor: pointer; }
body.in-call .meet-grid[data-n="2"].swap .tile.mine { inset: 0; z-index: 1; width: auto; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
body.in-call .meet-grid[data-n="2"] .tile.mine .vlabel,
body.in-call .meet-grid[data-n="2"].swap .tile:not(.mine) .vlabel { font-size: 11px; padding: 2px 7px; }
/* Nom de la grande vidéo : en haut à gauche, sous le statut ; nom de la vignette : dans la vignette, en bas */
body.in-call .meet-grid[data-n="2"]:not(.swap) .tile:not(.mine) .vlabel,
body.in-call .meet-grid[data-n="2"].swap .tile.mine .vlabel { top: calc(56px + env(safe-area-inset-top)); bottom: auto; left: 12px; right: auto; }
body.in-call .meet-grid[data-n="2"]:not(.swap) .tile.mine .vlabel,
body.in-call .meet-grid[data-n="2"].swap .tile:not(.mine) .vlabel { top: auto; bottom: 6px; left: 6px; right: auto; max-width: calc(100% - 12px); }
[dir="rtl"] body.in-call .meet-grid[data-n="2"] .tile .vlabel { left: auto; right: 12px; }
[dir="rtl"] body.in-call .meet-grid[data-n="2"] .tile.mine,
[dir="rtl"] body.in-call .meet-grid[data-n="2"].swap .tile:not(.mine) { inset: calc(62px + env(safe-area-inset-top)) auto auto 12px; }

/* Appel : toucher ma vignette échange les vidéos */
body.in-call .videos video.local { cursor: pointer; z-index: 2; }
body.in-call .videos.swap video.local { top: 0; right: 0; left: 0; bottom: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; z-index: 0; }
body.in-call .videos.swap video#remote, body.in-call .videos.swap.relayed .relay-canvas {
  inset: calc(62px + env(safe-area-inset-top)) 12px auto auto; width: min(28vw, 170px); height: auto; aspect-ratio: 3 / 4; z-index: 2;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, .85); }

/* Plein écran : seulement les vidéos ; les boutons reviennent au toucher */
body.fs-mode .live, body.fs-mode #share, body.fs-mode .vlabel.local-label { display: none !important; }
body.in-call .controls, body.in-call .live, body.in-call #mediaNote { transition: opacity .3s, transform .3s; }
body.fs-mode .meet-grid[data-n="2"] .tile.mine, body.fs-mode .meet-grid[data-n="2"].swap .tile:not(.mine),
body.fs-mode .videos video.local, body.fs-mode .videos.swap video#remote { top: calc(16px + env(safe-area-inset-top)); }

/* Émoticônes du chat */
.chat-form { position: relative; }
.emoji-pop { position: absolute; z-index: 8; left: 0; right: 0; bottom: calc(100% + 8px); display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 2px; max-height: 220px; overflow-y: auto; padding: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.emoji-pop.hidden { display: none; }
.emoji-pop button { min-height: 40px; padding: 0; font-size: 22px; line-height: 1; background: none; border: 0; border-radius: 10px; box-shadow: none; justify-content: center; }
.emoji-pop button:hover, .emoji-pop button:focus-visible { background: var(--bg-soft, rgba(127, 127, 127, .15)); }
.emoji-btn.active { color: #fff; }

/* Deux couleurs de bouton principal : bleu pour créer (lancer, créer un lien),
   vert émeraude pour rejoindre (entrer dans un appel, une réunion, lire ou recevoir) */
:root { --join: #047857; --join-light: #10b981; }
button.primary.join {
  background: linear-gradient(135deg, var(--join-light), var(--join));
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--join) 80%, transparent);
}
button.primary.join:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--join-light), var(--join));
  box-shadow: 0 12px 26px -10px var(--join);
}
button.primary.join:focus-visible { outline-color: color-mix(in srgb, var(--join) 55%, transparent); }

/* Salon déjà ouvert dans un autre onglet */
.dup-notice { display: grid; gap: 10px; margin: 0 0 12px; }
.dup-notice p { margin: 0; }
.dup-notice .row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Boutons de l'appel cachés au repos (comme WhatsApp) : toucher la vidéo les fait revenir */
body.in-call.ui-hidden .controls { opacity: 0; transform: translateY(100%); pointer-events: none; }
body.in-call.ui-hidden .live, body.in-call.ui-hidden #mediaNote { opacity: 0; pointer-events: none; }

/* Téléphone : après un toucher, l'effet « survol » restait collé et cachait le bleu du bouton actif */
@media (hover: none) {
  body.in-call .controls button:hover:not(:disabled) .ic { background: rgba(255, 255, 255, .18); }
  button:hover:not(:disabled) { transform: none; }
}
body.in-call .controls button.active:hover:not(:disabled) .ic, body.in-call .controls button.active .ic { background: var(--accent); }
body.in-call .controls button.off:hover:not(:disabled) .ic, body.in-call .controls button.off .ic,
body.in-call .controls button.danger:hover:not(:disabled) .ic, body.in-call .controls button.danger .ic { background: #e5322d; }

/* Réunion : les vidéos prennent tout l'écran, les boutons flottent par-dessus */
body.in-call .meet-grid { padding: calc(4px + env(safe-area-inset-top)) 4px calc(4px + env(safe-area-inset-bottom)); gap: 4px; }
body.in-call .meet-grid .tile { border-radius: 10px; }
body.fs-mode .meet-grid { padding: 0; gap: 2px; }
body.fs-mode .meet-grid .tile { border-radius: 0; }

/* Réunion à 3 ou plus : la personne touchée est agrandie (image entière), les autres en petit bandeau dessous */
body.in-call .meet-grid.spot { display: flex !important; flex-wrap: wrap; align-content: flex-start; justify-content: center; }
body.in-call .meet-grid.spot .tile.spot { order: -1; flex: 0 0 100%; height: calc(100% - min(20vh, 150px) - 4px); }
body.in-call .meet-grid.spot .tile.spot video { object-fit: contain; }
body.in-call .meet-grid.spot .tile:not(.spot) { flex: 0 0 auto; height: min(20vh, 150px); width: auto; aspect-ratio: 16 / 9; }
@media (max-width: 560px) { body.in-call .meet-grid.spot .tile:not(.spot) { aspect-ratio: 3 / 4; } }
body.in-call .meet-grid.spot .tile:not(.spot) .vlabel { font-size: 10px; padding: 1px 5px; }
/* Image reçue par le relais : pas de cadre rouge « connexion impossible » */
.tile.relayed.p2p-fail { box-shadow: none; }
body.in-call .meet-grid .tile { cursor: pointer; }

/* Vignette déplaçable */
body.in-call .videos video.local, body.in-call .videos.swap video#remote, body.in-call .videos.swap .relay-canvas,
body.in-call .meet-grid[data-n="2"] .tile.mine, body.in-call .meet-grid[data-n="2"].swap .tile:not(.mine) { touch-action: none; }
.dragging { transition: none !important; opacity: .92; }

/* Code court à taper (sous chaque lien) */
.join-code { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--join, #047857) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--join, #047857) 35%, transparent); display: grid; gap: 6px; justify-items: start; }
.join-code-value { font: 800 1.7rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em;
  padding: 6px 12px; border-radius: 10px; background: transparent; color: var(--text); box-shadow: none; }
.join-code p { margin: 0; }
body.in-call #share .join-code { margin-top: 10px; }

/* Accueil : « Vous avez un code ? » */
.code-join { max-width: 460px; margin: 22px auto 0; display: grid; gap: 8px; text-align: start; }
.code-join label { font-weight: 700; justify-self: center; }
.code-join-row { display: flex; gap: 8px; }
.code-join-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .12em; text-align: center;
  font: 700 1.15rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-join .error:empty { display: none; }
.code-join .code-text { width: 100%; margin-top: 8px; }
/* Appel en plein écran : pas de barre de défilement de la page derrière */
html:has(body.in-call) { overflow: hidden; }
.join-code-tool { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--join, #047857);
  padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--join, #047857) 16%, transparent); }
.code-join .error.ok { color: var(--ok); }
/* Réunion : personne momentanément absente (téléphone en arrière-plan) */
.tile.away video { visibility: hidden; }
.tile.away .avatar { display: flex; opacity: .55; }
.tile.away .vlabel { opacity: .8; font-style: italic; }

/* Appel : nom de la grande vidéo en haut à gauche, nom de la vignette dans la vignette (suit l'échange) */
body.in-call .vlabel.remote-label { top: calc(56px + env(safe-area-inset-top)); bottom: auto; left: 12px; right: auto; }
body.in-call .vlabel.local-label { top: calc(62px + env(safe-area-inset-top) + min(28vw, 170px) * 4 / 3 - 30px); right: 18px; left: auto; bottom: auto; max-width: min(24vw, 150px); }
body.in-call .videos.swap .vlabel.local-label { top: calc(56px + env(safe-area-inset-top)); left: 12px; right: auto; max-width: 60%; }
body.in-call .videos.swap .vlabel.remote-label { top: calc(62px + env(safe-area-inset-top) + min(28vw, 170px) * 4 / 3 - 30px); right: 18px; left: auto; max-width: min(24vw, 150px); }
body.in-call .vlabel { font-size: 12px; }
.tile.away { box-shadow: none; }
.remote-audio { display: none; }
.diag-btn { margin-top: 10px; opacity: .75; font-size: .8rem; }

/* Logo animé (calques du vrai logo) */
.bt-logo { position: relative; display: inline-block; flex: none; vertical-align: middle; }
.bt-logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bt-logo > img:first-child { position: relative; }
/* la lettre disparaît dans le carton : on ne la montre qu'au-dessus des rabats */
.bt-env { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% 40%, 71.5% 40%, 68.4% 51.2%, 52.3% 57%, 50% 58.2%, 47.7% 57%, 31.6% 51.2%, 28.5% 40%, 0 40%); }
.bt-ray { transform-origin: 66% 33%; }
.bt-logo.play .bt-env img { animation: btLetter 2.1s cubic-bezier(.45, 0, .25, 1) both; }
.bt-logo.play .bt-ray { animation: btRay .5s cubic-bezier(.2, .8, .3, 1.3) both; }
.bt-logo.play .r1 { animation-delay: 1.55s; }
.bt-logo.play .r2 { animation-delay: 1.72s; }
.bt-logo.play .r3 { animation-delay: 1.89s; }
@keyframes btLetter {
  0% { transform: translateY(0); }
  30%, 45% { transform: translateY(22%); }
  75% { transform: translateY(-4%); }
  88%, 100% { transform: translateY(0); }
}
@keyframes btRay {
  0% { opacity: 0; transform: scale(.3); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .bt-logo.play .bt-env img, .bt-logo.play .bt-ray { animation: none; } }
/* Accueil : compteur d'utilisations */
.use-count { margin: 18px auto 0; font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.use-count b { color: var(--accent); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 4px; }

/* Formulaire jetable */
.form-code { width: 100%; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.form-inbox { gap: 10px; }
.form-msg { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--bg2); display: grid; gap: 8px; }
.form-msg dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
.form-msg dt { color: var(--muted); font-weight: 600; }
.form-msg dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.form-mine h2 { font-size: 1rem; margin: 10px 0 0; }
.form-mine-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); }
.ok-notice { border-color: var(--ok); }
#ownerCard h3 { margin: 14px 0 0; font-size: 1rem; }
