
.fdemo { position: fixed; left: 18px; bottom: 18px; z-index: 2147483647; font-family: "Instrument Sans", system-ui, sans-serif; color: #0e0e0d;
  --fd-ink: #0e0e0d; --fd-mute: #71717a; --fd-line: rgba(14,14,13,.1); --fd-paper: #fff; --fd-sable: #f6f4ef; --fd-acc: #22c55e; }
.fdemo *, .fdemo *::before, .fdemo *::after { box-sizing: border-box; }
.fdemo button { font-family: inherit; }
.fdemo [hidden] { display: none !important; }

.fdemo-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: var(--fd-ink); color: #fff;
  font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.18); transition: transform var(--dur-2) var(--ease-standard), box-shadow var(--dur-2) var(--ease-standard); }
@media (hover: hover){.fdemo-tab:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.22); }}
.fdemo-tab b { font-weight: 600; }
.fdemo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fd-acc); box-shadow: 0 0 0 3px rgba(34,197,94,.22); }
.fdemo-sep { width: 1px; height: 14px; background: rgba(255,255,255,.22); }
.fdemo-etat { color: rgba(255,255,255,.72); font-weight: 500; white-space: nowrap; }

.fdemo.is-ancre .fdemo-panel { left: auto; right: 0; }

@media (min-width: 768px) { .fdemo { transition: translate .36s cubic-bezier(.2, .8, .2, 1), transform .32s cubic-bezier(.22, .61, .36, 1), opacity .32s; } }

.fdemo.is-sous-feuille { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (min-width: 768px) and (prefers-reduced-motion: reduce) { .fdemo { transition: none; } }

.fdemo-panel { position: absolute; left: 0; bottom: 50px; width: 352px; max-height: min(calc(100vh - 110px), 820px); display: flex; flex-direction: column; background: var(--fd-paper); color: var(--fd-ink);
  border: 1px solid var(--fd-line); border-radius: 18px; box-shadow: 0 24px 64px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.06); overflow: hidden; animation: fdemo-entree var(--dur-2) var(--ease-standard) both; }
@keyframes fdemo-entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fdemo-panel { animation: none; } .fdemo-tab { transition: none; } }
.fdemo-tete, .fdemo-pied { position: static; margin: 0; min-height: 0; }
.fdemo-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.fdemo-tete > div { display: flex; flex-direction: column; gap: 2px; }
.fdemo-tete b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.fdemo-tete span { font-size: 12px; color: var(--fd-mute); }
.fdemo-fermer { width: 32px; height: 32px; margin: -6px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--fd-mute); cursor: pointer; }
@media (hover: hover){.fdemo-fermer:hover{ background: var(--fd-sable); color: var(--fd-ink); }}
.fdemo-panel:focus, .fdemo-panel:focus-visible { outline: none; }
.fdemo-corps { overflow: auto; overscroll-behavior: contain; padding: 4px 18px 10px; display: grid; gap: 14px; }
.fdemo-sec h3 { margin: 0 0 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fd-mute); }
.fdemo-sous { margin: -4px 0 10px; font-size: 12px; line-height: 1.4; color: var(--fd-mute); }

.fdemo-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fdemo-opt { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1px solid var(--fd-line); border-radius: 12px; background: var(--fd-paper); color: var(--fd-ink); text-align: left; cursor: pointer; transition: background var(--dur-1) var(--ease-standard), border-color var(--dur-1) var(--ease-standard); }
@media (hover: hover){.fdemo-opt:hover{ border-color: rgba(14,14,13,.3); }}
.fdemo-lettre { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; font-weight: 600; }
.fdemo-opt-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fdemo-opt-tx b { font-size: 13px; font-weight: 600; }
.fdemo-opt-tx small { font-size: 11.5px; line-height: 1.35; color: var(--fd-mute); }
.fdemo-opt[aria-pressed="true"] { background: var(--fd-ink); border-color: var(--fd-ink); color: #fff; }
.fdemo-opt[aria-pressed="true"] .fdemo-opt-tx small { color: rgba(255,255,255,.7); }
.fdemo-opt[aria-pressed="true"] .fdemo-lettre { background: var(--fd-acc); border-color: var(--fd-acc); color: #0e0e0d; }

.fdemo-themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fdemo-tuile { padding: 0; border: 1px solid var(--fd-line); border-radius: 12px; background: var(--fd-paper); color: var(--fd-ink); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--dur-1) var(--ease-standard); }
@media (hover: hover){.fdemo-tuile:hover{ border-color: rgba(14,14,13,.3); }}
.fdemo-tuile[aria-pressed="true"] { border-color: var(--fd-ink); box-shadow: inset 0 0 0 1px var(--fd-ink); }
.fdemo-tuile-aa { position: relative; height: 42px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.fdemo-tuile-aa i { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 2px; border-radius: 2px; opacity: .9; }
.fdemo-tuile-nom { padding: 6px 3px 7px; font-size: 10.5px; font-weight: 500; letter-spacing: .01em; text-align: center; border-top: 1px solid var(--fd-line); }
.fdemo-tuile[aria-pressed="true"] .fdemo-tuile-nom { font-weight: 600; }

.fdemo-btn { height: 34px; padding: 0 13px; border: 1px solid rgba(14,14,13,.18); border-radius: 999px; background: var(--fd-paper); color: var(--fd-ink); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background var(--dur-1) var(--ease-standard), border-color var(--dur-1) var(--ease-standard); }
@media (hover: hover){.fdemo-btn:hover{ border-color: var(--fd-ink); }}
.fdemo-btn.is-plein { background: var(--fd-ink); border-color: var(--fd-ink); color: #fff; }
@media (hover: hover){.fdemo-btn.is-plein:hover{ background: #2a2a28; }}
.fdemo-lien { padding: 0; border: 0; background: none; font-size: 12px; color: var(--fd-mute); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14,14,13,.2); }
@media (hover: hover){.fdemo-lien:hover{ color: var(--fd-ink); }}
.fdemo-pied { display: flex; align-items: center; gap: 8px; padding: 12px 18px 14px; border-top: 1px solid var(--fd-line); background: var(--fd-paper); }
.fdemo-toast { position: absolute; left: 50%; bottom: 66px; transform: translate(-50%, 6px); padding: 8px 12px; border-radius: 999px; background: var(--fd-ink); color: #fff; font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease-standard), transform var(--dur-2) var(--ease-standard); }
.fdemo-toast.is-vu { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 767px) {
  .fdemo { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transition: transform .32s cubic-bezier(.22,.61,.36,1), opacity .32s; }

  .fdemo.is-cache { transform: translateY(160%); opacity: 0; pointer-events: none; }
  .fdemo-tab { height: 34px; padding: 0 12px 0 10px; font-size: 12.5px; }
  .fdemo-sep, .fdemo-etat { display: none; }
  .fdemo-panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 84vh; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .fdemo-pied { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .fdemo-themes { gap: 5px; }

  body.fitid-modal-open .fdemo, body.fitid-cadre-ouvert .fdemo { top: 2px; bottom: auto; left: 8px; }
  body.fitid-modal-open .fdemo-tab, body.fitid-cadre-ouvert .fdemo-tab { height: 20px; padding: 0 9px 0 8px; font-size: 11px; box-shadow: none; }
  body.fitid-modal-open .fdemo-dot, body.fitid-cadre-ouvert .fdemo-dot { width: 6px; height: 6px; box-shadow: none; }

  body.fitid-modal-open:has(.modal-overlay.is-mi) .fdemo:not(.is-ouvert) { opacity: 0; pointer-events: none; }
}

.fdemo-legende{grid-column:1/-1;margin:8px 0 0;font-size:11.5px;line-height:1.45;color:#5F6B47}
.fdemo-legende[hidden]{display:none}

@media (max-width: 767px) {
  .fdemo-tab { height: 44px; padding: 0 14px 0 12px; }

  .fdemo { left: var(--sp-4, 16px); }
}

.fdemo-tab { line-height: 1.2; }
.fdemo-etat { line-height: 1.2; }

.fdemo-tab, .fdemo-etat, .fdemo-sep {
  --da-intention: "contenu de la pastille de démo : son bord est celui de la pastille";
}

body:has([data-fitid-frame-overlay]) .fdemo { display: none !important; }

.fdemo-aide { color: rgba(255,255,255,.86); font-weight: 500; white-space: nowrap; line-height: 1.2; }
body:not(.fitid-modal-open) .fdemo-etat { display: none; }
body.fitid-modal-open .fdemo-aide { display: none; }
@media (max-width: 767px) { .fdemo-aide { display: none; } }

.fguide { position: fixed; left: 18px; bottom: 68px; z-index: 2147483646; width: 344px; max-width: calc(100vw - 36px); box-sizing: border-box;
  background: #0e0e0d; color: #f4f4f2; border-radius: 16px; padding: 18px 18px 16px;
  font: 400 13px/1.45 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06) inset; }
.fguide *, .fguide *::before, .fguide *::after { box-sizing: border-box; }
.fguide[hidden] { display: none !important; }
.fguide.is-entree { animation: fguide-in .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fguide-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.fguide.is-haut.is-entree { animation-name: fguide-in-haut; }
@keyframes fguide-in-haut { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.fguide::after { content: ""; position: absolute; left: 30px; bottom: -6px; width: 12px; height: 12px; background: #0e0e0d; transform: rotate(45deg); border-radius: 2px; }
.fguide.is-haut::after { display: none; }
.fguide-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 28px; }
.fguide-tete img { height: 15px; width: auto; display: block; flex: none; }
.fguide-k { font: 500 12px/1.2 "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; color: #9a9a96; }
.fguide-x { margin-left: auto; flex: none; width: 28px; height: 28px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #d8d8d4; display: grid; place-items: center; cursor: pointer; }

.fguide-x { position: relative; }
.fguide-x::before { content: ""; position: absolute; inset: -8px; }
@media (hover: hover) { .fguide-x:hover { background: rgba(255,255,255,.16); color: #fff; } }
.fguide h2 { margin: 0 0 12px; font: 600 17px/1.25 "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif; letter-spacing: -.01em; color: #fff; }
.fguide ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.fguide li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin: 0; }
.fguide li i { font-style: normal; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
  font: 600 12px/1 "Inter", ui-sans-serif, system-ui, sans-serif; background: rgba(255,255,255,.08); color: #d8d8d4; }
.fguide li b { display: block; font-weight: 600; color: #fff; }
.fguide li small { display: block; font-size: 12.5px; line-height: 1.4; color: #a9a9a5; }
.fguide li.is-fait i { background: transparent; color: #22c55e; box-shadow: 0 0 0 1.5px #22c55e inset; }
.fguide li.is-fait b { color: #a9a9a5; font-weight: 500; }
.fguide li.is-ici i { background: #22c55e; color: #08130b; }
.fguide-pied { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fguide-go { border: 0; border-radius: 999px; background: #fff; color: #0e0e0d; font: 600 13px/1 "Inter", ui-sans-serif, system-ui, sans-serif; padding: 0 16px; height: 40px; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .fguide-go:hover { background: #e9e9e6; } }
.fguide-note { font-size: 12px; line-height: 1.4; color: #8c8c88; }
.fguide-reglages { padding: 4px 0; border: 0; background: none; font: 500 12px/1.3 "Inter", ui-sans-serif, system-ui, sans-serif; color: #8c8c88; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.22); }
@media (hover: hover) { .fguide-reglages:hover { color: #f4f4f2; } }
.fguide button:focus-visible { outline: 2px solid #22c55e; outline-offset: 2px; }

.fguide.is-court { width: auto; max-width: min(380px, calc(100vw - 36px)); padding: 12px 14px 12px 16px; }
.fguide.is-court .fguide-tete { margin-bottom: 6px; }
.fguide-court { margin: 0; font-size: 13.5px; line-height: 1.4; color: #f4f4f2; }
.fguide-court b { color: #fff; font-weight: 600; }
.fguide-pas { display: flex; gap: 4px; margin-left: auto; }
.fguide-pas + .fguide-x { margin-left: 6px; }
.fguide-pas i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.fguide-pas i.on { background: #22c55e; }

.fguide-anneau { position: absolute; z-index: 25; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 2px #22c55e, 0 0 0 7px rgba(34,197,94,.16); }
.fguide-anneau[hidden] { display: none !important; }
.fguide-anneau::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px rgba(34,197,94,.6); opacity: 0; animation: fguide-pouls 1.6s ease-out .3s 3; }
@keyframes fguide-pouls { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.14, 1.3); } }
@media (prefers-reduced-motion: reduce) { .fguide.is-entree, .fguide-anneau::after { animation: none; } }

body.fitid-modal-open :is(.fguide, .fguide-anneau), body.fitid-cadre-ouvert :is(.fguide, .fguide-anneau), body:has([data-fitid-frame-overlay]) :is(.fguide, .fguide-anneau), html.fitid-director :is(.fguide, .fguide-anneau) { display: none !important; }
@media (max-width: 767px) {
  .fguide { left: var(--sp-4, 16px); right: var(--sp-4, 16px); width: auto; max-width: none; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); padding: 16px 16px 14px; }
  .fguide.is-court { max-width: none; }
  .fguide h2 { font-size: 16px; }
}
.fguide.is-haut { bottom: auto; }
