.fc-notice{position:sticky;top:6px;z-index:30;margin:8px 0;padding:10px 12px;border-radius:10px;border:1px solid #b6d3dc;background:#e8f4f8;color:#163145;font-weight:600}.fc-notice[hidden]{display:none}.fc-notice--ok{background:#e3f5ec;border-color:#8dcfae;color:#0f4a2c}.fc-notice--warn{background:#fff4d6;border-color:#e0b84c;color:#624900}.fc-notice--err{background:#fde8ea;border-color:#e0919a;color:#8a1c2b}.fc-version{font-size:12px;color:#456577}.fc-offline-state{font-size:13px;font-weight:600}.fc-card button:disabled{opacity:.65;cursor:progress}
.field-collection-module{min-width:0;overflow-x:hidden}.field-collection-module .fc-host{min-width:0;width:100%;max-width:100%}.fc-legacy-link{font-size:12px;color:#456577;text-decoration:underline;margin-left:auto;margin-right:10px;align-self:flex-start}.fc-top{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}
.fc-shell{--fc-ink:#163145;--fc-accent:#147b70;color:var(--fc-ink);max-width:1180px;margin:auto;padding:18px}.fc-shell *{box-sizing:border-box}.fc-shell h1{font-size:clamp(23px,3vw,32px);margin:8px 0}.fc-shell h2{font-size:21px;margin:0 0 16px}.fc-shell p{line-height:1.55}.fc-kicker{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:#527085}.fc-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.fc-state{background:#e9f5f2;border-radius:30px;padding:8px 14px;font-size:12px;font-weight:700;white-space:nowrap}.fc-simulation{background:#fff4dc;border:1px solid #dfc890;padding:14px 18px;border-radius:12px;margin:16px 0;color:#624900}.fc-nav,.fc-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.fc-shell button,.fc-shell input,.fc-shell select{min-height:46px}.fc-shell button{padding:11px 18px;border:1px solid #cad8df;border-radius:9px;background:white;color:var(--fc-ink);font-weight:650;cursor:pointer}.fc-shell button.primary,.fc-nav button.active{background:var(--fc-accent);color:white;border-color:var(--fc-accent)}.fc-shell button:disabled{opacity:.5;cursor:default}.fc-card{border:1px solid #d5e2e6;border-radius:16px;background:white;padding:24px;margin:14px 0;box-shadow:0 4px 18px #16314508}.fc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.fc-stat{padding:18px;border-radius:12px;border:1px solid #dbe6e9;background:#f7fafb}.fc-stat strong{font-size:27px;display:block;margin-top:8px}.fc-stat small{color:#496577;display:block;margin-top:7px}.fc-formhead{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.fc-shell progress{width:100%;height:7px;accent-color:var(--fc-accent)}.fc-error{color:#9b2336;background:#fff0f2;padding:12px;border-radius:8px}.fc-chart{height:340px;width:100%;min-width:0}.fc-map{height:350px;border-radius:12px;overflow:hidden;background:#eef3f6}.fc-table{overflow:auto}.fc-table table{width:100%;border-collapse:collapse}.fc-table td,.fc-table th{text-align:left;padding:12px;border-bottom:1px solid #e3eaed;font-size:13px}.fc-shell label{display:block;font-weight:600;margin-bottom:7px}.fc-shell input,.fc-shell select{width:100%;padding:10px;border:1px solid #bdcdd5;border-radius:8px}.fc-shell .fp-question{margin-bottom:22px}.fc-shell .fp-choice-row{min-height:48px;padding:10px;border-radius:9px}.fc-shell .fp-choice-row input{min-height:20px;width:20px;margin-right:9px}.fc-shell .fp-scale{display:flex;gap:8px}.fc-shell .fp-control{font-size:16px}.fc-shell .fp-gps-manual{display:none}.fc-shell .fp-tel{display:flex;align-items:center;gap:8px}.fc-shell .fp-help{color:#527085;font-size:13px}.fc-review{columns:2;column-gap:24px}.fc-review p{break-inside:avoid;font-size:13px;border-bottom:1px solid #edf2f4;padding-bottom:8px}.fc-shell :focus-visible{outline:3px solid #df9c22;outline-offset:3px}.fp-workspace:has(.fc-shell) .fp-engine-switch,.fp-workspace:has(.fc-shell) [data-fp-bar]{display:none}@media(max-width:680px){.fc-shell{padding:8px}.fc-top{align-items:flex-start;flex-direction:column}.fc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fc-card{padding:16px}.fc-nav{gap:6px}.fc-nav button{flex:1 1 40%;padding:10px}.fc-actions button{flex:1 1 40%}.fc-chart{height:300px}.fc-review{columns:1}.fc-formhead{flex-direction:column;font-size:13px}.fc-stat strong{font-size:23px}}@media(max-width:380px){.fc-grid{grid-template-columns:1fr}}
.fc-simulation{position:sticky;top:0;z-index:10}.fc-formhead{position:sticky;top:0;z-index:8;background:white;padding:10px 0;border-bottom:1px solid #dce6e9}.fc-shell .fc-formhead .fc-state{font-size:11px}
.field-forms-module:has([data-field-collection]){display:block!important;min-width:0;overflow-x:hidden}.field-forms-module:has([data-field-collection])>#ff-offline-bar,.field-forms-module:has([data-field-collection])>.ff-module-header{display:none}.field-forms-module:has([data-field-collection]) #fp-premium-host{min-width:0;width:100%;max-width:100%}.fp-workspace:has([data-field-collection])>.ff-tabs{display:none}.fc-shell{background:#f1f6f8;border-radius:14px;max-width:100%;min-width:0;overflow-wrap:anywhere}.fc-shell>*{min-width:0}.fc-shell h1,.fc-shell h2,.fc-shell p{color:var(--fc-ink)}.fc-shell .fp-help{color:#456577}.fc-shell .fp-field-error{color:#9b2336}.fc-shell button{white-space:normal}.fc-shell .fc-simulation{color:#624900}.fc-shell .fc-simulation p{color:#624900}.fc-shell textarea{max-width:100%;width:100%;min-height:100px;font-size:16px;padding:12px;box-sizing:border-box}.fc-shell input:not([type=radio]):not([type=checkbox]),.fc-shell select,.fc-shell textarea{background:white;color:#163145}.fc-shell pre{white-space:pre-wrap;overflow-wrap:anywhere}.fc-shell .fc-review{max-width:100%}@media(max-width:680px){.fc-shell .fc-grid{grid-template-columns:minmax(0,1fr)}.fc-shell .fc-grid>[style]{grid-column:1!important}.fc-shell .fc-top{gap:4px}.fc-shell .fc-actions{gap:8px}.fc-shell .fc-actions button{flex:1 1 100%}.fc-shell .fc-card{min-width:0}.fc-shell .fc-nav button{min-width:0}.fc-shell .fc-formhead{position:static}.fc-shell .fp-scale{flex-wrap:wrap}}
/* Missions, itinérance, analyse de l'enquête, rapport, impression */
.fc-shell fieldset{border:1px solid #dce6e9;border-radius:10px;margin:12px 0;padding:10px 14px}.fc-shell legend{font-weight:700;padding:0 6px;color:#115e59}
.fc-shell label{display:block;font-size:13px;margin:8px 0 2px}.fc-shell label>input,.fc-shell label>select,.fc-shell label>textarea{display:block;width:100%;margin-top:3px}
.fc-shell input,.fc-shell select,.fc-shell textarea{font:inherit;padding:7px 9px;border:1px solid #b7c7cc;border-radius:8px;background:#fff;color:inherit;min-width:0;max-width:100%}
.fc-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.fc-row>select{flex:1 1 220px}.fc-row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fc-row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}
.fc-row3>input,.fc-row3>select{width:100%}.fc-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 12px;margin:6px 0}.fc-checks label{display:flex;gap:6px;align-items:flex-start;margin:3px 0}.fc-checks input{width:auto;margin-top:3px}
.fc-stop{border:1px dashed #b7c7cc;border-radius:10px;padding:8px 10px;margin:8px 0;background:#fafcfc}.fc-hint{font-size:12px;color:#456577;margin:4px 0}
.fc-badge{display:inline-block;padding:2px 10px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:700}.fc-badge--active{background:#d1fae5;color:#065f46}.fc-badge--planifiée{background:#dbeafe;color:#1e40af}.fc-badge--clôturée,.fc-badge--archivée{background:#f1f5f9;color:#475569}.fc-badge--brouillon{background:#fef3c7;color:#92400e}
.fc-subnav{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.fc-subnav button,.fc-filters .fc-actions button.active{border-color:#147b70}.fc-subnav button.active{background:#147b70;color:#fff}
.fc-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.fc-chart-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.fc-chart-head h3{margin:4px 0}
.fc-chart-ctx{font-size:11.5px;color:#456577;margin:2px 0 6px;line-height:1.35}.fc-chart{min-height:280px;width:100%}.fc-chart-empty{padding:34px 12px;text-align:center;color:#456577;font-weight:600}
.fc-mini{font-size:12px;padding:3px 9px}.fc-inline{display:inline-flex!important;align-items:center;gap:6px;margin:0 8px 0 0!important}.fc-inline>select{width:auto!important;display:inline-block!important;margin:0!important}
.fc-layers{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;margin:6px 0}.fc-layers label{display:inline-flex;gap:4px;align-items:center;margin:0}.fc-layers input{width:auto}
.fc-map--tall{height:520px}.fc-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;margin:6px 0}.fc-legend i{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.fc-around{background:#f0f9ff;border-color:#bae6fd}.fc-table-simple{width:100%;border-collapse:collapse;font-size:13px}.fc-table-simple td,.fc-table-simple th{border-bottom:1px solid #e2e8f0;padding:5px 6px;text-align:left;vertical-align:top}
.fc-link-btn{display:inline-block;padding:7px 12px;border:1px solid #147b70;border-radius:8px;color:#147b70;text-decoration:none;font-weight:600}.fc-simulation--permanent{position:sticky;top:0;z-index:12;text-align:center;font-size:14px;letter-spacing:.02em}
.fc-print-head{display:none}.fc-table{overflow-x:auto}
@media (max-width:640px){.fc-row2,.fc-row3{grid-template-columns:1fr}.fc-map--tall{height:380px}.fc-checks{grid-template-columns:1fr}}
@media print{@page{size:A4;margin:12mm}.fc-nav,.fc-subnav,.fc-notice,.fc-actions,.fc-filters,.fc-layers,.fc-mini,.fc-top,.fc-legacy-link,.fc-chart-head button,button{display:none!important}.fc-print-head{display:block!important;border-bottom:2px solid #147b70;margin-bottom:10px}.fc-card{break-inside:avoid;box-shadow:none!important;border:1px solid #cbd5e1!important}.fc-chart{min-height:230px}.fc-map--tall{height:340px}.fc-simulation--permanent{position:static}body{background:#fff!important}}
.fc-shell input[type=checkbox],.fc-shell input[type=radio]{width:16px;height:16px;padding:0;margin:0 4px 0 0;flex:none;accent-color:#147b70}.fc-shell label>input[type=checkbox]{display:inline-block;width:16px;margin-top:0}
.fc-shell{color-scheme:light}
.fc-row3[data-mf-member]{grid-template-columns:1fr 1fr 1fr auto}@media (max-width:640px){.fc-row3[data-mf-member]{grid-template-columns:1fr auto}}

.fc-photos{margin:6px 0}.fc-photo-grid{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}.fc-photo{margin:0;border:1px solid #cbd5e1;border-radius:10px;padding:6px;background:#fff;width:150px}.fc-photo img{display:block;width:100%;height:96px;object-fit:cover;border-radius:6px;background:#e2e8f0}.fc-photo figcaption{font-size:11px;margin-top:4px;line-height:1.3}.fc-photo-actions{display:flex;gap:4px;margin-top:4px}
.fc-photo-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0}.fc-btn{display:inline-block;padding:8px 14px;border:1px solid #147b70;border-radius:8px;background:#fff;color:#147b70;font-weight:600;cursor:pointer;font:inherit}.fc-btn.primary{background:#147b70;color:#fff}.fc-file input{display:none}.fc-photo-count{font-weight:700;margin:2px 0}.fc-photo-count.ok{color:#065f46}.fc-photo-count.warn{color:#b45309}.fc-photo-kind{margin:0!important}
.fc-photos{margin:6px 0}.fc-photo-grid{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}.fc-photo{margin:0;border:1px solid #cbd5e1;border-radius:10px;padding:6px;background:#fff;width:150px}.fc-photo img{display:block;width:100%;height:96px;object-fit:cover;border-radius:6px;background:#e2e8f0}.fc-photo figcaption{font-size:11px;margin-top:4px;line-height:1.3}.fc-photo-actions{display:flex;gap:4px;margin-top:4px}
.fc-photo-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0}.fc-btn{display:inline-block;padding:8px 14px;border:1px solid #147b70;border-radius:8px;background:#fff;color:#147b70;font-weight:600;cursor:pointer;font:inherit}.fc-btn.primary{background:#147b70;color:#fff}.fc-file input{display:none}.fc-photo-count{font-weight:700;margin:2px 0}.fc-photo-count.ok{color:#065f46}.fc-photo-count.warn{color:#b45309}.fc-photo-kind{margin:0!important}
.fc-shell .fc-file>input[type=file]{display:none!important}.fc-shell label.fc-btn{margin:0;display:inline-flex;align-items:center}
.fc-yes{color:#065f46;font-weight:700}.fc-no{color:#94a3b8}.fc-warn-banner{background:#fef3c7;border:1px solid #f59e0b;border-radius:8px;padding:8px 12px}.fc-qlist{font-size:13px;columns:1;margin:6px 0 10px}.fc-shell details{border-bottom:1px solid #e2e8f0;padding:4px 0}.fc-shell summary{cursor:pointer;font-weight:600}
.fc-shell .fp-choice-row{display:flex;align-items:center;margin:0;background:#fff;color:#163145;border-color:#cbd5e1;min-height:44px}.fc-shell .fp-choice-row input{margin:0;width:20px;height:20px}.fc-shell .fp-choice-grid,.fc-shell .fp-choice-list{display:grid;gap:8px}

/* FDSU Terrain mission-centric : barre (utilisateur, mission, réseau, synchronisation, menu), Mes missions, écran Mission, gestion des formulaires */
.fc-bar{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px;padding:10px 14px;border-radius:12px;background:#0f2f4a;color:#fff}
.fc-bar-id{display:flex;flex-direction:column;min-width:0;margin-right:auto}.fc-bar-id strong{font-size:13px;letter-spacing:1.4px}.fc-bar-id span{font-size:13px;opacity:.9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:46vw}
.fc-bar-user{font-size:13px;font-weight:600;opacity:.95}.fc-bar .fc-state{background:#e9f5f2;color:#0f4a2c}.fc-bar-sync{font-size:12px;font-weight:700;padding:6px 12px;border-radius:30px;background:#ffffff22}.fc-bar-sync.is-ok{background:#e3f5ec;color:#0f4a2c}.fc-bar-sync.is-pending{background:#fff4d6;color:#624900}
.fc-bar-menu{min-height:40px;padding:0 16px;border-radius:10px;border:1px solid #ffffff55;background:transparent;color:#fff;font-weight:700;cursor:pointer}
.fc-menu{position:absolute;right:10px;top:100%;z-index:60;display:flex;flex-direction:column;min-width:230px;margin-top:6px;padding:6px;border-radius:12px;background:#fff;color:#163145;border:1px solid #c9d8de;box-shadow:0 10px 30px #0f2f4a33}.fc-menu[hidden]{display:none}
.fc-menu button{min-height:44px;text-align:left;border:0;background:transparent;padding:0 12px;border-radius:8px;font-size:15px;cursor:pointer}.fc-menu button:hover{background:#eef5f7}
.mf-chip{display:inline-block;padding:3px 10px;border-radius:30px;font-size:12px;font-weight:700;white-space:nowrap}.mf-chip--green{background:#e3f5ec;color:#0f4a2c}.mf-chip--orange{background:#fff4d6;color:#624900}.mf-chip--blue{background:#e3effc;color:#143f73}.mf-chip--grey{background:#eceff1;color:#455560}
.mf-phase{display:inline-block;margin:2px 4px 2px 0;padding:2px 8px;border-radius:6px;background:#eef2f5;font-size:12px;font-weight:700;color:#2a4352}
.mf-grid-missions{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}.mf-mission{border:1px solid #cfdde3;border-radius:14px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:10px}.mf-mission--sim{border-color:#dfc890;background:#fffaf0}
.mf-mission header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.mf-mission h3{margin:0;font-size:17px}.mf-mission dl,.mf-facts{display:grid;gap:8px;margin:0}.mf-mission dl div,.mf-facts div{display:flex;justify-content:space-between;gap:12px;font-size:14px}.mf-mission dt,.mf-facts dt{color:#527085;font-weight:600}.mf-mission dd,.mf-facts dd{margin:0;text-align:right}
.mf-mission button.primary,.mf-card button.primary{min-height:48px;border-radius:12px;font-weight:700}.mf-mission button{min-height:44px}
.mf-bar-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.mf-forms{list-style:none;margin:0;padding:0;display:grid;gap:8px}.mf-forms li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #dce6e9;border-radius:12px}.mf-forms li button{min-height:44px;min-width:110px;font-weight:700}
.mf-family-block h3{margin:14px 0 8px;font-size:15px;text-transform:uppercase;letter-spacing:1px;color:#2a5d73}.mf-hint{font-size:13px;color:#456577}.mf-empty{padding:12px;border:1px dashed #b7c9d1;border-radius:10px;color:#456577}.mf-error{color:#8a1c2b}.mf-notice{padding:10px 12px;border-radius:10px;background:#e8f4f8;border:1px solid #b6d3dc}
.mf-root .mf-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:10px 0}.mf-root .mf-table th,.mf-root .mf-table td{padding:8px 10px;border-bottom:1px solid #dfe8eb;text-align:left;vertical-align:top}.mf-root .mf-table th{font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:#527085}
.mf-withdrawn{opacity:.55}.mf-actions{display:flex;flex-wrap:wrap;gap:6px}.mf-actions button{min-height:36px;padding:0 10px;font-size:13px}.mf-card{border:1px solid #dce6e9;border-radius:12px;padding:14px;margin:12px 0;background:#fff}.mf-row{display:grid;grid-template-columns:200px 1fr;gap:10px;margin:8px 0}.mf-check{display:inline-flex;align-items:center;gap:6px;margin-right:12px}
.mf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.mf-grid label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600}.mf-families{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.mf-family{display:flex;flex-direction:column;gap:6px}.mf-events{margin:8px 0 0;padding-left:18px;font-size:13px}
@media (max-width:640px){.mf-row{grid-template-columns:1fr}.mf-mission dl div,.mf-facts div{flex-direction:column;gap:2px}.mf-mission dd,.mf-facts dd{text-align:left}.fc-bar-id span{max-width:70vw}.mf-root .mf-table{display:block;overflow-x:auto}}

/* ===== Lot UX (revue visuelle) : en-tête mobile compact, navigation sur une ligne, cibles tactiles, avertissement, version, cartes de gouvernance ===== */
.fc-tab--secondary{opacity:.8;font-weight:500}
.fc-tab--secondary.active{opacity:1}
.fc-legacy-link{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;color:#456577;text-decoration:none;border:1px solid transparent}
.fc-legacy-link:hover,.fc-legacy-link:focus-visible{background:#eef5f7;border-color:#c9d8de;text-decoration:underline;outline:none}
.fc-menu a.fc-menu-link{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;font-size:15px;color:#163145;text-decoration:none}
.fc-menu a.fc-menu-link:hover,.fc-menu a.fc-menu-link:focus-visible{background:#eef5f7;outline:none}
.fc-leave{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:16px;background:#0f2f4a99}
.fc-leave-box{max-width:420px;width:100%;background:#fff;color:#163145;border-radius:14px;padding:18px;box-shadow:0 14px 40px #0f2f4a55}
.fc-leave-box h2{margin:0 0 8px;font-size:18px}
.fc-leave-box p{margin:6px 0;font-size:15px;line-height:1.4}
.fc-leave-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.fc-leave-actions button{min-height:44px;min-width:110px;padding:0 16px;border-radius:10px;border:1px solid #9fb6c1;background:#fff;color:#163145;font-weight:700;cursor:pointer}
.fc-leave-actions button.primary{background:#147b70;border-color:#147b70;color:#fff}
.mf-version{display:inline-block;padding:2px 9px;border-radius:8px;background:#0f2f4a;color:#fff;font-weight:800;font-size:13px;letter-spacing:.3px}
.mf-version--lg{font-size:16px;padding:4px 12px}
.mf-callout{margin:10px 0;padding:10px 14px;border-left:4px solid #147b70;border-radius:8px;background:#e9f5f2;color:#0f3b35;font-size:14px;line-height:1.4}
.mf-cards{display:flex;flex-direction:column;gap:10px}
.mf-fcard{border:1px solid #c9d8de;border-radius:12px;background:#fff;padding:0}
.mf-fcard>summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:48px;padding:10px 12px;cursor:pointer;list-style:none}
.mf-fcard>summary::-webkit-details-marker{display:none}
.mf-fcard-name{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}
.mf-fcard[open]>summary{border-bottom:1px solid #e1eaee}
.mf-fcard>*:not(summary){margin:8px 12px}
.mf-actions--card{display:flex;flex-wrap:wrap;gap:8px}
.mf-actions--card button{min-height:44px}
.mf-legacy-note{margin:8px 0 0;font-size:13px;color:#456577}
.mf-legacy-note button{min-height:44px;background:transparent;border:0;color:#456577;text-decoration:underline;cursor:pointer}
@media (max-width:640px){
.fc-shell{padding:6px}
.fc-shell>.fc-top{display:none}
.fc-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:4px 8px;align-items:center;padding:6px 10px;margin:0 0 6px;border-radius:10px}
.fc-bar-id{grid-column:1/4;grid-row:1;margin:0}
.fc-bar-user{grid-column:1;grid-row:2;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-bar .fc-state{grid-column:2;grid-row:2;font-size:11px;padding:3px 8px}
.fc-bar-sync{grid-column:3;grid-row:2;font-size:11px;padding:3px 8px}
.fc-bar .fc-bar-menu{grid-column:4;grid-row:1/3;background:transparent;color:#fff;border:1px solid #ffffff66;min-height:44px;min-width:64px}
.fc-bar-id span{max-width:100%}
.fc-bar-id strong{font-size:11px}
.fc-bar-menu{min-height:44px;padding:0 12px}
.fc-nav{flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:6px 0;padding-bottom:2px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.fc-nav::-webkit-scrollbar{display:none}
.fc-nav button{flex:0 0 auto;min-height:44px;padding:0 14px;white-space:nowrap}
.fc-tab--secondary{font-size:13px}
.fc-leave-actions button{flex:1}
}
@media (max-width:640px){
.mf-landing{padding:8px 12px;margin-bottom:8px}
.mf-landing h2{margin:0;font-size:17px}
.mf-landing .mf-hint{display:none}
}
.fc-photo-state{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:30px;font-size:11px;font-weight:700;background:#eceff1;color:#455560}
.fc-photo-state--local{background:#e3effc;color:#143f73}
.fc-photo-state--wait{background:#fff4d6;color:#624900}
.fc-photo-state--sync{background:#e3f5ec;color:#0f4a2c}
.fc-photo-state--retry{background:#fde8e8;color:#7a1f1f}
@media (max-width:640px){.fc-photo-add .fc-btn{min-height:48px;flex:1 1 100%}.fc-photo-actions .fc-mini{min-height:44px}}
.mf-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
.mf-td-natures{border:1px solid #c9d8de;border-radius:10px;padding:6px 12px;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:4px 18px}
.mf-td-counts{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:6px}
.mf-td-real.ok{color:#0f4a2c}.mf-td-real.bad{color:#7a1f1f}
.mf-callout--danger{border-left-color:#b3261e;background:#fdeceb;color:#5c130f}
button.danger{min-height:44px;padding:0 16px;border-radius:10px;border:0;background:#b3261e;color:#fff;font-weight:800;cursor:pointer}
button.danger:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:640px){button.danger{width:100%;white-space:normal;padding:10px 12px}}
.fc-photo-ph{width:120px;height:90px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#e3f5ec;color:#0f4a2c;font-size:28px}

/* ===== Gouvernance TEST / RÉEL / OFFICIEL : bandeau MODE TEST, badges, sessions de test ===== */
.fc-test-banner{margin:0 0 10px;padding:10px 14px;border-radius:12px;background:#fdeceb;border:2px solid #b3261e;color:#5c130f;font-size:13px;line-height:1.4}
.fc-test-banner strong{display:block;font-size:14px;letter-spacing:.5px;color:#8c1d18}
.fc-test-banner .fc-test-session{display:block;margin-top:4px;font-weight:700}
.fc-test-banner--permanent{position:sticky;top:0;z-index:20}
.mf-chip--red{background:#fdeceb;color:#8c1d18;border:1px solid #e3a09b}
.mf-mission--test{border:2px solid #b3261e;background:#fffafa}
.fc-card--test{border-left:6px solid #b3261e}
.mf-test-note{margin:4px 0 8px;font-size:14px}
@media print{.fc-test-banner{display:block!important;border:2px solid #000;color:#000;background:#fff}}
/* Revue finale : cases à cocher alignées avec leur libellé (ligne), jamais le libellé sous la case */
.fc-shell label.mf-check{display:flex;flex-direction:row;align-items:center;gap:8px;min-height:44px;font-weight:600}
.fc-shell label.mf-check input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;margin:0}

/* Aperçu de formulaire (lecture seule) */
body.mf-preview-open{overflow:hidden}
.mf-preview{position:fixed;inset:0;z-index:3000;display:flex;flex-direction:column;background:#f4f7f6;color:#14262b}
.mf-pv-banner{flex:none;padding:10px 16px;background:#b45309;color:#fff;font-weight:800;letter-spacing:.03em;text-align:center;font-size:15px}
.mf-pv-body{flex:1;overflow-y:auto;padding:14px clamp(12px,4vw,40px) 40px;max-width:980px;width:100%;margin:0 auto}
.mf-pv-head{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.mf-pv-head h2{margin:0 0 2px;font-size:1.25rem}
.mf-pv-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.mf-pv-tools button,.mf-pv-nav button,.mf-pv-btn{min-height:44px;padding:0 14px;border-radius:10px;border:1px solid #147b70;background:#fff;color:#0d4f47;font:inherit;font-weight:650;cursor:pointer}
.mf-pv-tools button.primary{background:#147b70;color:#fff}.mf-pv-nav button:disabled{opacity:.45;cursor:default}
.mf-pv-nav{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 0 12px;background:#f4f7f6}
.mf-pv-pos{display:grid;gap:6px;min-width:0}.mf-pv-pos select{min-height:40px;max-width:100%}
.mf-pv-bar{height:6px;border-radius:99px;background:#d5e2df;overflow:hidden}.mf-pv-bar i{display:block;height:100%;background:#147b70;transition:width .2s}
.mf-pv-sec{padding:14px 16px;border-radius:12px;background:#fff;border:1px solid #d5e2df;margin-bottom:14px}.mf-pv-sec h3{margin:0 0 6px;font-size:1.05rem}
.mf-pv-cond{margin:2px 0 6px;font-size:.78rem;color:#8a5a00;background:#fff6e0;border-radius:6px;padding:3px 8px}
.mf-pv-foot{margin:18px 0 0;text-align:center;font-weight:700;color:#b45309}
.mf-pv-list{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:640px){.mf-pv-nav{grid-template-columns:1fr 1fr}.mf-pv-pos{grid-column:1/-1;order:-1}.mf-pv-banner{font-size:13px}}
.mf-pv-phase select{min-height:44px}
/* thème sombre de l'aperçu : même contraste que le moteur de rendu des questions (lignes de choix sombres) */
.mf-preview{background:#0b141d;color:#e6eef0}
.mf-preview .mf-hint{color:#9fb3b8}
.mf-pv-nav{background:#0b141d}
.mf-pv-tools button,.mf-pv-nav button,.mf-pv-btn{background:#16232f;color:#cfe9e5;border-color:#2c6f66}
.mf-pv-tools button.primary{background:#147b70;color:#fff}
.mf-pv-pos select,.mf-pv-phase select{background:#16232f;color:#e6eef0;border:1px solid #2c6f66;border-radius:8px}
.mf-pv-bar{background:#22333f}
.mf-pv-sec{background:#111d28;border-color:#223645}
.mf-preview .fp-label,.mf-preview .fp-question label{color:#e6eef0}
.mf-preview .fp-help{color:#9fb3b8}
.mf-pv-cond{background:#3a2c0a;color:#f5c76b}
.mf-pv-foot{color:#f5a455}
