/* input(314,1): run-time error CSS1019: Unexpected token, found '}' */
/* ============================================================================
   IDSWeb v19.408 — Formation : constructeur visuel (fb-*)
   Partagé par Modules et leçons (FormationModules.razor) et Questions
   d'examen (FormationQuestions.razor) : listes, panneau qui glisse par-dessus
   (<dialog> ouvert par ids-formation-builder.js), écran du chauffeur, éditeur
   téléphone. Les couleurs viennent du thème IDSWeb (--ids-*), sauf l'écran
   du chauffeur, qui garde celles du portail de formation.
   ============================================================================ */
/* ═══ Page ═══ */
.fb { display: flex; flex-direction: column; gap: 16px; padding: 24px 32px 48px; color: var(--ids-ink); }
.fb *, .fb *::before, .fb *::after { box-sizing: border-box; }
.fb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; text-align: left; }
.fb-crumb { font-size: 13px; color: var(--ids-muted); }
.fb-head h1 { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.fb-head p { margin: 4px 0 0; font-size: 14px; color: var(--ids-muted); }
.fb-head-a { display: flex; gap: 4px; flex-wrap: wrap; }
.fb-msg { padding: 14px 16px; border-radius: 12px; background: var(--ids-surface); color: var(--ids-muted); display: flex; gap: 10px; align-items: center; }
.fb-err { background: var(--ids-danger-soft); color: var(--ids-danger-ink); }
.fb-btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 0 14px; min-height: 40px; border: 1px solid var(--ids-border-strong);
          background: var(--ids-surface); color: var(--ids-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.fb-btn:hover:not(:disabled) { background: var(--ids-hover); }
.fb-btn:disabled { opacity: .45; cursor: not-allowed; }
.fb-pri { background: var(--ids-blue); border-color: var(--ids-blue); color: var(--ids-on-accent, #fff); }
.fb-pri:hover:not(:disabled) { background: var(--ids-blue-2); }
.fb-link { border-color: transparent; background: transparent; color: var(--ids-blue); }
.fb-sm { min-height: 36px; font-size: 13px; padding: 0 12px; }
.fb-xs { min-height: 30px; font-size: 13px; padding: 0 8px; }
.fb-danger { background: var(--ids-danger-soft) !important; color: var(--ids-danger-ink) !important; border-color: transparent !important; }
.fb-sp { flex: 1; }
.fb-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ids-blue-soft); color: var(--ids-blue-ink); white-space: nowrap; }
.fb-chip-n { background: var(--ids-surface-3); color: var(--ids-muted); }
.fb-in { font: inherit; font-size: 14px; min-height: 40px; border: 1px solid var(--ids-border-strong); border-radius: 10px; padding: 8px 12px; background: var(--ids-surface); color: var(--ids-ink); width: 100%; }
.fb-lb { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ids-muted); }
.fb-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fb-chk { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.fb-chk input { width: 18px; height: 18px; accent-color: var(--ids-blue); }

.fb-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.fb-mods { background: var(--ids-surface); border: 1px solid var(--ids-border); border-radius: 18px; padding: 10px; position: sticky; top: 12px; max-height: calc(100vh - 140px); overflow-y: auto; }
.fb-mods-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; font-size: 12px; letter-spacing: .05em; color: var(--ids-muted); text-transform: uppercase; }
.fb-mods-l { display: flex; flex-direction: column; gap: 2px; }
.fb-mod { display: flex; gap: 10px; align-items: center; justify-content: flex-start; text-align: left; padding: 8px 8px 8px 10px; border-radius: 11px; color: var(--ids-ink); cursor: pointer; font-size: 14px; user-select: none; }
.fb-mod:hover { background: var(--ids-hover); }
.fb-mod.on { background: var(--ids-blue-soft); font-weight: 700; }
.fb-num { flex: none; width: 30px; height: 24px; border-radius: 7px; background: var(--ids-surface-3); color: var(--ids-muted); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fb-mod.on .fb-num { background: var(--ids-blue); color: var(--ids-on-accent, #fff); }
.fb-mod-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.fb-mod-off { font-size: 11px; color: var(--ids-muted); }
.fb-handle { flex: none; width: 22px; text-align: center; color: var(--ids-muted); cursor: grab; opacity: .35; font-size: 15px; touch-action: none; user-select: none; }
.fb-mod:hover .fb-handle, .fb-ligne:hover .fb-handle { opacity: 1; }
.fb-mods-sel { display: none; }
.fb-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.fb-card { background: var(--ids-surface); border: 1px solid var(--ids-border); border-radius: 18px; }
.fb-reg-t { font: inherit; width: 100%; display: flex; gap: 8px; align-items: center; justify-content: flex-start; padding: 12px 16px; border: 0; background: transparent; color: var(--ids-ink); cursor: pointer; font-weight: 700; font-size: 14px; text-align: left; }
.fb-reg-t small { font-weight: 500; color: var(--ids-muted); margin-left: auto; }
.fb-chev { display: inline-block; transition: transform .15s; font-size: 18px; line-height: 1; color: var(--ids-muted); }
.fb-chev.on { transform: rotate(90deg); }
.fb-reg-b { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 16px; }
.fb-sec { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.fb-quiz { border-color: color-mix(in srgb, var(--ids-blue) 45%, var(--ids-border)); }
.fb-sec-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.fb-sec-t { display: flex; flex-direction: column; text-align: left; }
.fb-sec-t b { font-size: 18px; }
.fb-sec-t small { font-size: 13px; color: var(--ids-muted); }
.fb-step { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--ids-blue); color: var(--ids-on-accent, #fff); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fb-vide { font-size: 14px; color: var(--ids-muted); padding: 10px 2px; }
.fb-liste { display: flex; flex-direction: column; gap: 6px; }
.fb-ligne { display: flex; gap: 8px; align-items: center; justify-content: flex-start; text-align: left; padding: 9px 10px 9px 6px; border: 1px solid var(--ids-border); border-radius: 13px; background: var(--ids-surface); cursor: pointer; user-select: none;
            transition: border-color .12s, box-shadow .12s, transform .12s; }
.fb-ligne:hover { border-color: var(--ids-blue); box-shadow: 0 2px 10px rgba(30,40,90,.07); }
.fb-ligne.on { border-color: var(--ids-blue); background: var(--ids-blue-soft); }
.fb-rang { flex: none; width: 26px; text-align: left; font-weight: 800; color: var(--ids-muted); font-size: 13px; }
.fb-rang.fb-q { color: var(--ids-blue); }
.fb-ligne-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px; }
.fb-ligne-t b { display: block; width: 100%; font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-ligne-t small { display: block; width: 100%; font-size: 12.5px; color: var(--ids-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-ligne-t small.fb-ok { color: var(--ids-ok-ink); }
.fb-ligne-t small.fb-warn { color: var(--ids-warn-ink); }
.fb-ico { font: inherit; flex: none; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ids-muted); cursor: pointer; font-size: 13px; opacity: 0; transition: opacity .12s; }
.fb-ligne:hover .fb-ico, .fb-ico.fb-danger, .fb-ico:focus-visible { opacity: 1; }
.fb-ico:hover { background: var(--ids-danger-soft); color: var(--ids-danger-ink); }
.fb-ajout { font: inherit; font-size: 15px; font-weight: 700; min-height: 50px; border-radius: 13px; border: 2px dashed var(--ids-border-strong); background: transparent; color: var(--ids-blue); cursor: pointer; }
.fb-ajout:hover { background: var(--ids-blue-soft); border-color: var(--ids-blue); }

/* ═══ Glisser-déposer (éléments ajoutés à la page par le JS) ═══ */
.fb-fantome-vol { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; opacity: .94; border-radius: 13px;
                  box-shadow: 0 18px 40px rgba(20,24,60,.28), 0 0 0 2px #4338CA; background: var(--ids-surface, #fff); }
.fb-en-vol { opacity: .28; }
.fb-ligne-depot { position: fixed; z-index: 2999; height: 4px; border-radius: 4px; background: #4338CA; pointer-events: none; box-shadow: 0 0 0 4px rgba(67,56,202,.18); transition: top .06s; }
.fb-ligne-depot::before { content: ""; position: absolute; left: -5px; top: -4px; width: 12px; height: 12px; border-radius: 99px; background: #4338CA; }
html.fb-glisse, html.fb-glisse * { cursor: grabbing !important; user-select: none !important; }

/* ═══ Panneau qui glisse par-dessus ═══ */
.fb-dlg { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--ids-ink); }
.fb-dlg::backdrop { background: rgba(12,14,34,.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fbFondu .2s ease-out; }
.fb-dlg *, .fb-dlg *::before, .fb-dlg *::after { box-sizing: border-box; }
.fb-panel { position: fixed; z-index: 1301; top: 10px; right: 10px; bottom: 10px; width: min(1240px, calc(100vw - 20px)); display: flex; flex-direction: column;
            background: var(--ids-surface-2, var(--ids-surface)); border: 1px solid var(--ids-border); border-radius: 24px; overflow: hidden;
            box-shadow: -30px 0 80px rgba(10,12,40,.28); animation: fbGlisse .34s cubic-bezier(.16,1,.3,1); }
@keyframes fbGlisse { from { transform: translateX(56px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fbFondu { from { opacity: 0; } to { opacity: 1; } }
.fb-p-h { display: flex; gap: 8px; align-items: center; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--ids-border);
          background: color-mix(in srgb, var(--ids-surface) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); flex-wrap: wrap; }
.fb-p-ht { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.fb-p-ht small { font-size: 12px; color: var(--ids-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-p-ht b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.fb-pastille-mod { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ids-warn-soft); color: var(--ids-warn-ink); }
.fb-p-conf { font-size: 13px; font-weight: 600; color: var(--ids-danger-ink); }
.fb-p-x { font: inherit; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--ids-surface-3); color: var(--ids-ink); cursor: pointer; font-size: 15px; }
.fb-p-x:hover { background: var(--ids-hover); }
.fb-p-b { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; align-items: start; }
.fb-note { margin: 10px 16px 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; background: var(--ids-blue-soft); color: var(--ids-blue-ink); }
.fb-note-err { background: var(--ids-warn-soft); color: var(--ids-warn-ink); }

/* Palette */
.fb-pal { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-right: 1px solid var(--ids-border); min-height: 100%; background: var(--ids-surface); }
.fb-pal-h { font-size: 12.5px; color: var(--ids-muted); line-height: 1.45; margin-bottom: 4px; }
.fb-pal-g { font-size: 11px; font-weight: 800; letter-spacing: .07em; color: var(--ids-muted); text-transform: uppercase; margin-top: 8px; }
.fb-pal-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fb-pal-i { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 10px 6px; border-radius: 13px;
            border: 1px solid var(--ids-border); background: var(--ids-surface-2, var(--ids-surface)); color: var(--ids-ink); cursor: grab; user-select: none; min-height: 72px;
            transition: border-color .12s, transform .12s, box-shadow .12s; }
.fb-pal-i:hover { border-color: var(--ids-blue); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,40,90,.09); }
.fb-pal-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--ids-blue-soft); color: var(--ids-blue-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.fb-ic-attention { background: #FEF3C7; color: #92400E; } .fb-ic-pourquoi { background: #ECFCCB; color: #3F6212; }
.fb-ic-info { background: #E0F2FE; color: #075985; } .fb-ic-dire { background: #F3E8FF; color: #6B21A8; }
.fb-ic-faire { background: #DCFCE7; color: #166534; font-size: 11px; }
.fb-pal-n { font-size: 12.5px; font-weight: 650; line-height: 1.2; }
.fb-pal-chk { margin-top: 10px; font-size: 13px; }

/* Scène et téléphone — les couleurs du portail chauffeur, dans les deux thèmes */
.fb-stage { display: flex; justify-content: center; padding: 28px 16px 40px;
            background: radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--ids-blue) 10%, transparent), transparent 60%), var(--ids-surface-3); min-height: 100%; }
.fb-phone { width: 440px; max-width: 100%; border-radius: 46px; background: #101410; padding: 11px; box-shadow: 0 24px 60px rgba(0,0,0,.25), inset 0 0 0 2px #2a2f2a; }
.fb-screen { background: #fff; border-radius: 36px; min-height: 680px; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 6px; color: #32373a; font-size: 14.5px; line-height: 1.6; text-align: left; }
.fb-ph-top { display: flex; justify-content: space-between; font-size: 11px; color: #6f7472; font-weight: 600; padding: 0 6px 4px; }
.fb-titre { font: inherit; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #101410; background: transparent; border: 2px dashed transparent; border-radius: 10px; padding: 6px 8px; width: 100%; }
.fb-titre:hover { border-color: #e4e6e5; }
.fb-titre::placeholder, .fb-txt::placeholder { color: #9aa098; font-weight: 500; }
.fb-titre:focus, .fb-txt:focus { outline: none; border-color: #818CF8; }
.fb-blocs { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.fb-vide-ecran { min-height: 90px; border: 2px dashed #c7d2fe; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #6f7472; font-size: 13px; }
.fb-bloc { position: relative; border: 1.5px solid transparent; border-radius: 14px; padding: 30px 8px 8px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.fb-bloc:hover, .fb-bloc:focus-within { border-color: #c7d2fe; box-shadow: 0 2px 10px rgba(67,56,202,.07); }
.fb-bloc-attention { background: #fdf6ec; border-left: 4px solid #d97706; }
.fb-bloc-pourquoi { background: #f2f8ec; border-left: 4px solid #65a30d; }
.fb-bloc-info { background: #f0f7ff; border-left: 4px solid #0284c7; }
.fb-bloc-dire { background: #faf5ff; border-left: 4px solid #9333ea; }
.fb-bloc-situation { background: #f4f5f4; }
.fb-bloc-separateur { padding-top: 26px; }
.fb-outils { position: absolute; top: 4px; left: 6px; right: 6px; display: flex; gap: 2px; align-items: center; font-size: 11px; color: #6f7472; opacity: .55; transition: opacity .12s; }
.fb-bloc:hover .fb-outils, .fb-bloc:focus-within .fb-outils { opacity: 1; }
.fb-outils-n { flex: 1; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.fb-outils button { font: inherit; min-width: 26px; height: 24px; border-radius: 7px; border: 0; background: #eef0f6; color: #3f3f5c; cursor: pointer; padding: 0 6px; }
.fb-outils button:hover:not(:disabled) { background: #4338CA; color: #fff; }
.fb-outils .fb-x:hover { background: #DC2626 !important; }
.fb-fmt { display: inline-flex; gap: 2px; margin-right: 6px; padding-right: 6px; border-right: 1px solid #e4e6e5; }
.fb-fmt-m { background: #fde68a; color: #101410; padding: 0 3px; border-radius: 3px; }
.fb-poignee { cursor: grab; font-size: 16px; padding: 0 6px 0 2px; color: #4338CA; user-select: none; touch-action: none; }
.fb-tete { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; margin: 0 6px 2px; }
.fb-bloc-attention .fb-tete { color: #8a4409; } .fb-bloc-pourquoi .fb-tete { color: #4d7c0f; }
.fb-bloc-info .fb-tete { color: #075985; } .fb-bloc-dire .fb-tete { color: #6b21a8; }
.fb-txt { font: inherit; width: 100%; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; resize: vertical; }
.fb-txt:hover { border-color: #e4e6e5; }
.fb-h2 { font-size: 17px; font-weight: 800; color: #101410; }
.fb-hr { border: 0; border-top: 2px solid #e4e6e5; margin: 4px 6px; }
.fb-rt { min-height: 28px; padding: 4px 6px; border-radius: 8px; border: 1px solid transparent; outline: none; white-space: pre-wrap; word-break: break-word; cursor: text; }
.fb-rt:hover { border-color: #e4e6e5; } .fb-rt:focus { border-color: #818CF8; background: rgba(255,255,255,.6); }
.fb-rt:empty::before { content: attr(data-ph); color: #9aa098; }
.fb-rt mark, .fb-rt [style*="background"] { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 2px; }
.fb-enonce { font-size: 16px; font-weight: 700; color: #101410; }
.fb-lignes { display: flex; flex-direction: column; gap: 2px; }
.fb-l { display: flex; gap: 6px; align-items: center; }
.fb-l-m { flex: none; width: 23px; height: 23px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #6f7472; }
.fb-l-etapes .fb-l-m { border-radius: 999px; background: #101410; color: #a3e635; font-size: 11px; }
.fb-case { font: inherit; flex: none; width: 22px; height: 22px; margin: 0 1px; border-radius: 6px; border: 2px solid #4d7c0f; background: #fff; color: #fff;
           font-size: 13px; font-weight: 900; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fb-case:hover { box-shadow: 0 0 0 3px rgba(77,124,15,.18); }
.fb-case.on { background: #16803d; border-color: #16803d; }
.fb-l-faire .fb-l-m { color: #16803d; } .fb-l-eviter .fb-l-m { color: #b91c1c; }
.fb-mini { font: inherit; font-size: 12px; min-width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: #9aa098; cursor: pointer; flex: none; }
.fb-mini:hover:not(:disabled) { background: #eef0f6; color: #3f3f5c; }
.fb-mini:disabled { opacity: .3; }
.fb-plus { align-self: flex-start; padding: 0 10px; color: #4338CA; margin-top: 2px; }
.fb-fe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fb-fe-c { border-radius: 10px; padding: 8px 6px; text-align: left; }
.fb-fe-c > b { display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; margin: 0 6px 4px; }
.fb-fe-oui { background: #f0fdf4; } .fb-fe-oui > b { color: #16803d; }
.fb-fe-non { background: #fef2f2; } .fb-fe-non > b { color: #b91c1c; }
.fb-pastilles { display: flex; flex-direction: column; gap: 3px; }
.fb-pas { font: inherit; display: flex; gap: 8px; align-items: center; justify-content: flex-start; text-align: left; padding: 4px 6px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: #32373a; cursor: pointer; opacity: .4; }
.fb-pas.on { opacity: 1; border-color: #cfe8bd; background: #f2f8ec; cursor: default; }
.fb-pas-in { flex: 1; min-width: 0; font-size: 13px; padding: 2px 6px; }
.fb-tag-in { font: inherit; font-size: 11.5px; font-weight: 700; color: #fff; border: 0; outline: none; min-width: 0; max-width: 60%; cursor: text; }
.fb-tag-in::placeholder { color: rgba(255,255,255,.92); }
.fb-tag-in:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4338CA; }
.fb-pas-ajout { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 4px 2px; }
.fb-pas-ajout small { width: 100%; font-size: 11.5px; color: #6f7472; }
.fb-tag-btn { font: inherit; font-size: 11.5px; font-weight: 700; border: 0; cursor: pointer; opacity: .55; transition: opacity .12s, transform .12s; }
.fb-tag-btn:hover { opacity: 1; transform: translateY(-1px); }
.fb-tag { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 7px; color: #fff; white-space: nowrap; }
.fb-pas-s { font-size: 13px; }
.fb-aide { font-size: 11.5px; color: #6f7472; padding: 2px 6px; }
.fb-caps { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; align-items: flex-start; }
.fb-caps-l { display: flex; gap: 8px; }
.fb-cap { position: relative; flex: none; width: 108px; display: flex; flex-direction: column; gap: 4px; cursor: grab; user-select: none; }
.fb-cap img { width: 108px; height: 186px; object-fit: cover; border-radius: 12px; border: 1px solid #e4e6e5; background: #f4f5f4; pointer-events: none; }
.fb-cap-n { position: absolute; top: 5px; left: 5px; width: 22px; height: 22px; border-radius: 999px; background: #101410; color: #a3e635; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; touch-action: none; }
.fb-cap-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 999px; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; }
.fb-cap-l { font: inherit; font-size: 11px; color: #32373a; background: #f4f5f4; border: 1px solid #e4e6e5; border-radius: 7px; padding: 3px 6px; width: 100%; }
.fb-cap-add { position: relative; flex: none; width: 108px; height: 186px; border-radius: 12px; border: 2px dashed #c7d2fe; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #6f7472; font-size: 12px; text-align: center; cursor: pointer; }
.fb-cap-add b { font-size: 26px; color: #4338CA; }
.fb-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fb-rep { display: flex; gap: 6px; align-items: center; padding: 4px; border-radius: 12px; border: 1.5px solid transparent; background: #f5f7f3; margin-top: 6px; }
.fb-rep.on { border-color: #16803d; background: #f2f8ec; }
.fb-rond { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 2px solid #d5d9d3; background: #fff; color: #6f7472; font-weight: 800; cursor: pointer; }
.fb-rep.on .fb-rond { background: #16803d; border-color: #16803d; color: #fff; }
.fb-ph-btn { margin-top: auto; background: #101410; color: #a3e635; text-align: center; border-radius: 14px; padding: 14px; font-weight: 750; }

/* ═══ Portable et tablette ═══ */
@media (max-width: 1180px) {
    .fb-p-b { grid-template-columns: minmax(0, 1fr); }
    .fb-pal { position: sticky; top: 0; z-index: 3; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; min-height: 0; padding: 10px 12px;
              border-right: 0; border-bottom: 1px solid var(--ids-border); background: color-mix(in srgb, var(--ids-surface) 90%, transparent); backdrop-filter: blur(10px); }
    .fb-pal-h, .fb-pal-g { display: none; }
    .fb-pal-grille { display: flex; gap: 6px; }
    .fb-pal-i { flex-direction: row; min-height: 40px; padding: 4px 10px 4px 4px; border-radius: 999px; white-space: nowrap; }
    .fb-pal-ic { width: 30px; height: 30px; border-radius: 999px; }
    .fb-pal-chk { margin: 0 0 0 6px; white-space: nowrap; }
}
@media (max-width: 900px) {
    .fb { padding: 16px 14px 40px; }
    .fb-grid { grid-template-columns: minmax(0, 1fr); }
    .fb-mods { display: none; }
    .fb-mods-sel { display: block; }
    .fb-head h1 { font-size: 22px; }
    .fb-ico { opacity: 1; }
    .fb-handle { opacity: .7; }
}
/* Outils du téléphone : cachés ailleurs */
.fb-fab, .fb-barre, .fb-feuille, .fb-feuille-fond, .fb-sel-n { display: none; }

@media (max-width: 640px) {
    .fb-panel { inset: 0; width: 100vw; border-radius: 0; border: 0; animation: fbMonte .3s cubic-bezier(.16,1,.3,1); }
    .fb-p-b { padding-bottom: 110px; }
    .fb-p-h .fb-pri { min-height: 38px; border-radius: 999px; padding: 0 16px; }
    .fb-note { margin: 8px 10px 0; padding: 8px 12px; font-size: 12px; }

    /* La palette laisse la place au bouton + */
    .fb-p-b > .fb-pal { display: none; }

    /* Les éléments se lisent comme un document ; on les touche pour les choisir */
    .fb-outils { display: none; }
    .fb-bloc { padding: 8px 10px; margin: 0 -4px; border: 0; border-radius: 14px; }
    .fb-bloc:hover, .fb-bloc:focus-within { box-shadow: none; }
    .fb-bloc-attention, .fb-bloc-pourquoi, .fb-bloc-info, .fb-bloc-dire { padding: 12px 12px 12px 14px; }
    .fb-bloc.fb-sel { box-shadow: 0 0 0 2px #3730A3, 0 8px 20px rgba(55,48,163,.12); margin-top: 12px; }
    .fb-sel .fb-sel-n { display: block; position: absolute; top: -10px; left: 10px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
                        background: #3730A3; color: #fff; border-radius: 6px; padding: 2px 7px; }
    .fb-rt, .fb-txt { font-size: 15.5px; }
    .fb-titre { font-size: 23px; padding: 4px 0; border: 0; }
    .fb-rt:hover, .fb-txt:hover { border-color: transparent; }

    /* Captures en vignettes */
    .fb-cap, .fb-cap img { width: 64px; }
    .fb-cap img { height: 112px; border-radius: 10px; }
    .fb-cap-add { width: 64px; height: 112px; border-radius: 10px; font-size: 10.5px; }
    .fb-cap-add b { font-size: 20px; }
    .fb-cap-l { font-size: 10px; }
    .fb-cap-x { width: 22px; height: 22px; top: 3px; right: 3px; }

    /* Bouton + */
    .fb-fab { display: flex; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1310;
              align-items: center; gap: 10px; font: inherit; font-weight: 700; font-size: 15px; border: 0; border-radius: 999px; background: #101410; color: #fff;
              height: 52px; padding: 0 22px 0 12px; box-shadow: 0 10px 30px rgba(16,20,16,.3); white-space: nowrap; }
    .fb-fab-p { width: 30px; height: 30px; border-radius: 999px; background: #a3e635; color: #101410; font-size: 20px; display: flex; align-items: center; justify-content: center; }

    /* Barre de l'élément choisi */
    .fb-barre { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 1310; gap: 2px; align-items: center;
                background: #101410; border-radius: 20px; padding: 6px; box-shadow: 0 12px 30px rgba(16,20,16,.35); animation: fbFondu .15s; }
    .fb-barre button { font: inherit; border: 0; background: transparent; color: #fff; min-width: 44px; height: 44px; border-radius: 12px; font-size: 16px; cursor: pointer; flex: none; padding: 0; }
    .fb-barre button:active { background: rgba(255,255,255,.14); }
    .fb-barre button:disabled { opacity: .3; }
    .fb-barre .fb-barre-x { color: #fca5a5; }
    .fb-barre .fb-barre-plus { background: #a3e635; color: #101410; font-size: 22px; font-weight: 700; border-radius: 14px; }
    .fb-barre-sep { width: 1px; height: 26px; background: rgba(255,255,255,.18); margin: 0 2px; flex: none; }

    /* Feuille « Ajouter un élément » */
    .fb-feuille-fond { display: block; position: fixed; inset: 0; z-index: 1320; background: rgba(12,14,34,.42); animation: fbFondu .2s; }
    .fb-feuille { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1321; max-height: 82vh; overflow-y: auto; background: var(--ids-surface);
                  border-radius: 26px 26px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.2);
                  animation: fbFeuille .28s cubic-bezier(.16,1,.3,1); }
    @keyframes fbFeuille { from { transform: translateY(100%); } to { transform: none; } }
    .fb-feuille-poignee { width: 40px; height: 5px; border-radius: 9px; background: var(--ids-border-strong); margin: 2px auto 10px; }
    .fb-feuille-h { display: flex; justify-content: space-between; align-items: center; }
    .fb-feuille-h b { font-size: 17px; }
    .fb-feuille-h button { font: inherit; border: 0; background: var(--ids-surface-3); color: var(--ids-ink); width: 32px; height: 32px; border-radius: 999px; }
    .fb-feuille-ou { display: block; font-size: 12.5px; color: var(--ids-muted); margin-top: 2px; }
    .fb-feuille-g { font-size: 11px; font-weight: 800; letter-spacing: .07em; color: var(--ids-muted); text-transform: uppercase; margin: 14px 2px 6px; }
    .fb-feuille-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .fb-tuile { font: inherit; border: 0; background: transparent; color: var(--ids-ink); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; cursor: pointer; }
    .fb-tuile .fb-pal-ic { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
    .fb-tuile > span:last-child { font-size: 11.5px; font-weight: 600; line-height: 1.15; text-align: center; }
    @keyframes fbMonte { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .fb-p-h { padding: 10px 10px 10px 14px; }
    .fb-p-ht b { font-size: 16px; }
    .fb-hide-sm, .fb-pastille-mod { display: none; }
    .fb-stage { padding: 0; background: #fff; }
    .fb-phone { width: 100%; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
    .fb-screen { border-radius: 0; min-height: 0; padding: 14px 10px 24px; }
    .fb-fe { grid-template-columns: 1fr; }
    .fb-ligne-t small { white-space: normal; }
}
