/* Charte Thomas BAROS · SOLYTI · École PMN */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.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 {
  --navy: #0B132B; --navy-2: #1C2541; --teal: #0096C7; --teal-d: #0077A0; --teal-l: #E1F3FA;
  --orange: #FF9F1C; --orange-d: #C86F00; --orange-l: #FFF1DD;
  --text: #495057; --text-strong: #1f2630; --bg: #F8F9FA; --block: #E9ECEF; --line: #dee2e6; --white: #fff;
  --green: #2B9348; --green-l: #E3F4E8; --red: #D62839; --red-l: #FCE4E6;
  --radius: 10px; --shadow: 0 1px 2px rgba(11, 19, 43, .06), 0 2px 8px rgba(11, 19, 43, .05);
  --focus: 0 0 0 3px rgba(0, 150, 199, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.5; font-feature-settings: 'cv11', 'ss01'; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 750; } h2 { font-size: 1.15rem; font-weight: 700; } h3 { font-size: 1rem; font-weight: 650; margin-top: .8rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .7rem; }
a { color: var(--teal-d); }
small, .small { font-size: .84rem; } .muted { color: #6c757d; } .block { display: block; } .hidden { display: none !important; } .center { text-align: center; margin: 1rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--teal-d); margin-bottom: .2rem; }
.eyebrow.light, .light { color: #9fd9ee; }
.warn-txt { color: var(--orange-d); }
.boot { padding: 3rem; text-align: center; color: #888; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* ----- en-tête ----- */
.topbar { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1.2rem; position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.logo-solyti { height: 18px; width: auto; } .logo-pmn { height: 30px; width: auto; }
.brand-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .25); }
.brand-title { font-weight: 650; font-size: .95rem; margin-left: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { display: flex; align-items: center; gap: .6rem; flex-wrap: nowrap; }
.who { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.who-name { white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.topbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.mainnav { background: var(--navy-2); display: flex; gap: .2rem; padding: 0 1rem; overflow-x: auto; position: sticky; top: 50px; z-index: 29; scrollbar-width: none; }
.mainnav a { color: #c9d3e6; text-decoration: none; padding: .6rem .85rem; font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.mainnav a:hover { color: #fff; }
.mainnav a.active { color: #fff; border-bottom-color: var(--orange); }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; padding: .25rem .6rem; border-radius: 99px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.status-pill .ico { width: 15px; height: 15px; }
.status-pill.st-ok { color: #9ee2b2; } .status-pill.st-saving { color: #9fd9ee; } .status-pill.st-off { background: var(--orange); color: var(--navy); font-weight: 650; } .status-pill.st-local { background: #fff; color: var(--navy); }
.timer-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--teal); color: #fff; text-decoration: none; padding: .25rem .65rem; border-radius: 99px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.timer-badge b { font-size: .95rem; } .timer-badge .ico { width: 13px; height: 13px; }
.timer-badge.low { background: var(--orange); color: var(--navy); } .timer-badge.paused { background: #5c677d; }
.tb-label { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { max-width: 1380px; margin: 0 auto; padding: 1.2rem 1.2rem 2rem; min-height: calc(100vh - 160px); }
.site-foot { text-align: center; font-size: .8rem; color: #6c757d; padding: 1rem; border-top: 1px solid var(--line); background: var(--white); }

/* ----- blocs ----- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card.inner { box-shadow: none; background: var(--bg); }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.card-title-row > div:first-child { flex: 1 1 380px; }
.page-head { margin-bottom: 1rem; } .page-head h1 { margin-bottom: .3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.empty { color: #6c757d; font-style: italic; padding: .6rem 0; }
.list { margin: .2rem 0 .6rem; padding-left: 1.1rem; } .list li { margin: .2rem 0; }
.note { background: var(--teal-l); border-color: #bfe3f1; }
.back-link { display: inline-block; margin-bottom: .6rem; font-weight: 600; text-decoration: none; }

/* ----- boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; font-size: .9rem; padding: .5rem .9rem; border-radius: 8px;
  border: 1px solid #ced4da; background: var(--white); color: var(--navy); cursor: pointer; text-decoration: none; line-height: 1.2; min-height: 38px; }
.btn:hover { background: var(--block); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ico { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; } .btn-primary:hover { background: var(--teal-d); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--navy); } .btn-accent:hover { background: #ffb347; }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); } .btn-light:hover { background: rgba(255, 255, 255, .22); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; } .btn-danger:hover { background: #b01f2e; }
.btn-ghost { background: transparent; } .btn.small { padding: .3rem .6rem; font-size: .8rem; min-height: 30px; }
.btn.wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.icon-btn { background: none; border: 0; cursor: pointer; color: #6c757d; padding: .25rem; border-radius: 6px; line-height: 0; font-size: 1.3rem; }
.icon-btn:hover { background: var(--block); color: var(--red); } .icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.ico { width: 18px; height: 18px; vertical-align: middle; }

/* ----- champs ----- */
input[type=text], input[type=number], input[type=password], select, textarea {
  font: inherit; font-size: .9rem; color: var(--text-strong); background: #fffdf3; border: 1px solid #ced4da; border-radius: 6px; padding: .4rem .5rem; width: 100%; min-height: 34px; }
textarea { resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus); background: #fff; }
input.ro, select.ro, textarea.ro, input:disabled, select:disabled, textarea:disabled { background: var(--bg); color: var(--text-strong); opacity: 1; -webkit-text-fill-color: var(--text-strong); }
.invalid { border-color: var(--red) !important; background: var(--red-l) !important; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: #c9ecf8; border-color: var(--teal); } 100% { } }
.fld { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.fld > span:first-child { font-size: .78rem; font-weight: 650; color: var(--navy-2); }
.fld.inline { flex-direction: row; align-items: center; gap: .4rem; } .fld.inline > span { white-space: nowrap; }
.fld.grow { flex: 1 1 220px; }
.chkline { display: flex; gap: .4rem; align-items: center; margin: .6rem 0; }
.w-num { width: 5.2rem; } .w-name { min-width: 14rem; } .w-act { min-width: 16rem; } .w-ind { min-width: 14rem; } .w-dec { min-width: 13rem; }
.cap-input { width: 9rem; }

/* ----- onglets ----- */
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.team-head h1 { margin: 0; }
.subtabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 2px solid var(--block); margin-bottom: 1rem; scrollbar-width: thin; }
.subtabs a { padding: .55rem .8rem; text-decoration: none; color: var(--text); font-weight: 600; font-size: .88rem; border-radius: 8px 8px 0 0; white-space: nowrap; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.subtabs a:hover { background: var(--block); color: var(--navy); }
.subtabs a.active { color: var(--navy); border-bottom-color: var(--teal); background: var(--white); }
.subtabs a.pulse { color: var(--orange-d); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { background: var(--orange-l); } }
.kpi-strip { display: flex; gap: .4rem; flex-wrap: wrap; }
.kpi-chip { display: inline-flex; align-items: center; gap: .25rem; background: var(--block); padding: .25rem .6rem; border-radius: 99px; font-size: .82rem; white-space: nowrap; }
.kpi-chip b { color: var(--navy); }
.kpi-chip.warn { background: var(--orange-l); }
.st-green.kpi-chip { background: var(--green-l); } .st-orange.kpi-chip { background: var(--orange-l); } .st-red.kpi-chip { background: var(--red-l); color: var(--red); }

/* ----- tableaux ----- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .4rem 0; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; }
.grid-table { width: 100%; font-size: .87rem; background: var(--white); }
.grid-table th, .grid-table td { border-bottom: 1px solid var(--block); padding: .35rem .45rem; text-align: left; vertical-align: middle; }
.grid-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .78rem; position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.grid-table tbody th { font-weight: 600; color: var(--navy); background: #fbfbfc; }
.grid-table tfoot th, .grid-table tfoot td { background: var(--block); font-weight: 650; }
.grid-table .sticky { position: sticky; left: 0; z-index: 1; }
.grid-table thead .sticky { z-index: 3; }
.grid-table td.sticky, .grid-table th.sticky { background: #fbfbfc; }
.grid-table thead th.sticky { background: var(--navy); }
.grid-table .sticky2 { left: 2.6rem; }
.grid-table .num { text-align: center; font-variant-numeric: tabular-nums; }
.grid-table.compact th, .grid-table.compact td { padding: .25rem .4rem; }
.grid-table tr.dim td { color: #adb5bd; }
.grid-table th.rot { height: 9.5rem; vertical-align: bottom; padding: .3rem 0; min-width: 2.6rem; max-width: 2.6rem; }
.grid-table th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; max-height: 9rem; overflow: hidden; text-overflow: ellipsis; padding: 0 .55rem; font-size: .76rem; }
.person b { display: block; } .person small { display: block; color: #6c757d; font-weight: 400; font-size: .72rem; white-space: nowrap; }
.mini { width: 100%; font-size: .86rem; } .mini th, .mini td { padding: .3rem .4rem; border-bottom: 1px solid var(--block); text-align: left; vertical-align: top; }
.mini th { white-space: nowrap; color: var(--navy); font-weight: 650; }
.ref-table td { min-width: 6.5rem; } .ref-table td.num { min-width: 2.6rem; }
.roles-table td { min-width: 8rem; }

/* matrice */
.matrix td.lvl-cell { padding: 2px; text-align: center; min-width: 2.6rem; }
.matrix input.lvl { width: 2.3rem; text-align: center; padding: .3rem 0; font-weight: 700; font-size: .95rem; background: #fff; }
.matrix td.ok input { background: var(--green-l); border-color: #9fd3ad; }
.matrix td.below input { background: var(--orange-l); border-color: #ffd08a; }
.matrix .target-row td { text-align: center; font-size: .74rem; color: var(--navy); background: var(--teal-l); font-weight: 650; white-space: nowrap; }
.matrix tfoot td { text-align: center; } .matrix tfoot td.bus, td.bus { background: var(--red-l) !important; color: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .82rem; margin: .4rem 0; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: -.5rem; vertical-align: -2px; border: 1px solid var(--line); }
.sw-ok { background: var(--green-l); } .sw-below { background: var(--orange-l); } .sw-bus { background: var(--red-l); }
.journal tr.todo td { background: #fffaf0; }

/* écarts */
.formula { background: var(--bg); border-left: 3px solid var(--teal); padding: .5rem .7rem; font-size: .88rem; border-radius: 0 6px 6px 0; }
.formula code { font-family: inherit; font-weight: 700; color: var(--navy); }
.ecarts tr.top td { background: #f3fafd; } .ecarts tr.top td.rank { color: #fff; background: var(--teal); font-weight: 700; }
.ecarts td.prio { min-width: 7rem; white-space: nowrap; } .ecarts td.prio b { margin-left: .4rem; color: var(--navy); }
.ecarts td.just { min-width: 18rem; }
.bar { display: inline-block; width: 4.5rem; height: 8px; background: var(--block); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .4s; }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 99px; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.badge .ico { width: 13px; height: 13px; }
.badge-red { background: var(--red-l); color: var(--red); } .badge-orange { background: var(--orange-l); color: var(--orange-d); } .badge-ok { background: var(--green-l); color: var(--green); } .badge-grey { background: var(--block); color: var(--text); }

/* contrôles */
.checks { display: flex; flex-direction: column; gap: .25rem; min-width: 260px; }
.chk { display: flex; gap: .4rem; align-items: center; font-size: .84rem; }
.chk.ok { color: var(--green); } .chk.ko { color: var(--orange-d); }
.chk .ico { width: 16px; height: 16px; flex: none; }
.lvl-counts { display: flex; gap: .7rem; font-size: .84rem; margin-top: .2rem; }

/* plan */
.plan-summary { display: flex; gap: .4rem; flex-wrap: wrap; }
.tarifs summary { cursor: pointer; list-style: none; } .tarifs summary h3 { display: inline; margin: 0; }
.tarifs summary::before { content: '▸ '; color: var(--teal); } .tarifs[open] summary::before { content: '▾ '; }
.tarifs .two-col { margin-top: .6rem; }
.calc { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .5rem; align-items: end; }
.calc-out { font-size: 1.15rem; color: var(--navy); padding: .35rem 0; }
.actions { display: flex; flex-direction: column; gap: .8rem; }
.action { margin: 0; border-left: 4px solid var(--teal); }
.action-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.action-n { background: var(--navy); color: #fff; font-weight: 700; border-radius: 6px; padding: .1rem .5rem; font-size: .85rem; }
.action-title { font-weight: 700; color: var(--navy); font-size: 1rem; }
.action-meta { margin-left: auto; font-size: .82rem; } .action-meta b { color: var(--navy); }
.alerts { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .4rem; }
.action-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem .7rem; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span6 { grid-column: span 6; }
.chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.chip { font: inherit; font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 99px; border: 1px solid #ced4da; background: #fff; color: var(--text); cursor: pointer; min-height: 28px; }
.chip:hover { border-color: var(--teal); } .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.nbx { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; margin-left: .3rem; } .w-xs { width: 3.6rem; min-height: 28px; padding: .15rem .3rem; }
.chip-ghost { border-style: dashed; color: var(--teal-d); } .chip:disabled { cursor: default; }

/* budget */
.status-banner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .7rem 1rem; border-radius: 8px; margin: .6rem 0; font-size: .95rem; }
.status-banner.st-green { background: var(--green-l); color: #1e6b35; } .status-banner.st-orange { background: var(--orange-l); color: #8a4b00; } .status-banner.st-red { background: var(--red-l); color: var(--red); }
.gauge { position: relative; height: 12px; background: var(--block); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.gauge i { display: block; height: 100%; border-radius: 99px; transition: width .4s; }
.gauge i.st-green { background: var(--green); } .gauge i.st-orange { background: var(--orange); } .gauge i.st-red { background: var(--red); }
.gauge-90 { position: absolute; left: 90%; top: 0; bottom: 0; width: 2px; background: var(--navy); opacity: .5; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.tile span { font-size: .78rem; } .tile b { font-size: 1.2rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.tile.st-red b { color: var(--red); } .tile.st-orange b { color: var(--orange-d); } .tile.st-green b { color: var(--green); }

/* calendrier */
.cal td, .cal th { text-align: center; } .cal tbody th { text-align: left; }
.cal input { width: 4rem; text-align: center; margin: 0 auto; display: block; background: #fff; }
.cal .gel, .gantt .gel { background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(11, 19, 43, .06) 6px 12px); }
.cal td.heavy input { background: var(--orange-l); border-color: var(--orange); }
.cal td.over { background: var(--orange-l); color: var(--orange-d); font-weight: 700; }
.cal td.total { font-weight: 700; color: var(--navy); }
.alert-list { display: flex; flex-direction: column; gap: .3rem; margin: .5rem 0; }
.alert { display: flex; gap: .45rem; align-items: center; padding: .45rem .7rem; border-radius: 6px; font-size: .87rem; }
.alert .ico { flex: none; width: 16px; height: 16px; }
.alert-red { background: var(--red-l); color: var(--red); } .alert-orange { background: var(--orange-l); color: #8a4b00; } .alert-ok { background: var(--green-l); color: #1e6b35; }
.gantt td { min-width: 4.5rem; height: 2rem; } .gantt td.on { background: var(--teal); } .gantt td.on.bad { background: var(--red); }
.gantt tbody th { font-weight: 600; max-width: 20rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt tfoot td { font-weight: 400; white-space: normal; vertical-align: top; }

/* crise */
.crisis-card { background: var(--navy); color: #fff; border-radius: 12px; padding: 1.1rem 1.3rem; margin: .6rem 0 1rem; border-left: 8px solid var(--orange); }
.crisis-card h3 { color: #fff; font-size: 1.3rem; margin: .2rem 0 .4rem; } .crisis-card .muted { color: #b8c2d6; }
.crisis-card.small { padding: .7rem .9rem; margin: 0; } .crisis-card.small b { color: #fff; } .crisis-card.small p { margin: .2rem 0 0; font-size: .86rem; }
.crisis-n { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--orange); font-weight: 700; }
.crisis-text { font-size: 1.1rem; }
.crisis-wait { background: var(--bg); border: 2px dashed #ced4da; border-radius: 10px; padding: 1rem 1.2rem; margin: .6rem 0 1rem; }
.crisis-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.dim-block { opacity: .55; }
.dim-block .fld { margin-bottom: .6rem; }
section .fld + .fld { margin-top: .6rem; }

/* export */
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.export-item { background: var(--bg); border-radius: 8px; padding: .8rem; display: flex; flex-direction: column; align-items: flex-start; }
.export-item h3 { margin-top: 0; } .export-item .btn-row { margin-top: auto; }
.export-item > .btn { margin-top: auto; }

/* rôles */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.role-card { background: var(--bg); border-radius: 8px; padding: .55rem .7rem; display: flex; flex-direction: column; font-size: .86rem; }
.role-card b { color: var(--navy); }
.dot-on::before, .dot-off::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; background: var(--green); vertical-align: 1px; }
.dot-off::before { background: #ced4da; }

/* accueil */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 14px; padding: 1.6rem 1.8rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(0, 150, 199, .18); }
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: .4rem; }
.hero-sub { color: #c9d3e6; }
.hero-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; position: relative; z-index: 1; }
.goal { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: .7rem .8rem; display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.goal span { background: var(--orange); color: var(--navy); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.hero .btn-row { position: relative; z-index: 1; }
.prog h3 { margin-top: 0; }
.rule-card { background: var(--bg); border-radius: 8px; padding: .8rem; } .rule-card h3 { margin-top: 0; }

/* talents */
.talent-fields { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.tag-lbl { padding: .05rem .45rem; border-radius: 4px; display: inline-block; width: fit-content; }
.tag-lbl.give { background: var(--green-l); color: var(--green); } .tag-lbl.learn { background: var(--orange-l); color: var(--orange-d); }
.talent-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.talent-col { background: var(--block); border-radius: 12px; padding: .8rem; min-height: 200px; display: flex; flex-direction: column; gap: .5rem; }
.talent-col h3 { margin: 0 0 .2rem; text-align: center; font-size: 1.05rem; }
.talent-card { background: #fff; border-radius: 8px; padding: .55rem .65rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; }
.talent-card.mine { outline: 2px solid var(--teal); }
.talent-who { display: flex; align-items: baseline; gap: .4rem; } .talent-who small { color: #6c757d; } .talent-who .icon-btn { margin-left: auto; font-size: 1rem; }
.tag { padding: .3rem .55rem; border-radius: 6px; font-size: .88rem; font-weight: 550; }
.tag.give { background: #d7f0de; color: #1e6b35; border-left: 4px solid var(--green); }
.tag.learn { background: #ffe7c4; color: #8a4b00; border-left: 4px solid var(--orange); }
.pairs li { margin: .25rem 0; }

/* minuteur */
.big-timer { text-align: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 1.2rem; margin-bottom: 1rem; }
.big-label { font-size: 1.1rem; font-weight: 600; color: #c9d3e6; }
.big-clock { font-size: clamp(3.5rem, 12vw, 9rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.05; }
.big-bar { height: 10px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; margin-top: .6rem; }
.big-bar i { display: block; height: 100%; background: var(--teal); transition: width .25s linear; }
.big-timer.low .big-clock { color: var(--orange); } .big-timer.low .big-bar i { background: var(--orange); }
.big-timer.over { background: var(--red); } .big-timer.over .big-clock { color: #fff; }
.big-timer.paused .big-clock { opacity: .6; }
.big-timer.qphase .big-bar i { background: var(--orange); }
.timer-ctrl .presets { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0; }
.timer-ctrl .fld { max-width: 28rem; }

/* quiz */
.quiz-box { max-width: 860px; margin: 0 auto; }
.quiz-wait { background: var(--white); border: 2px dashed #ced4da; border-radius: 12px; padding: 2rem; text-align: center; }
.quiz-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: #6c757d; margin-bottom: .4rem; }
.quiz-q { font-size: 1.45rem; margin: .4rem 0 1rem; }
.quiz-opts { display: flex; flex-direction: column; gap: .55rem; }
.quiz-opt { position: relative; display: grid; grid-template-columns: 2.4rem 1fr auto auto; align-items: center; gap: .7rem; text-align: left; font: inherit; font-size: 1.02rem;
  padding: .75rem .9rem; border-radius: 10px; border: 2px solid var(--line); background: var(--white); color: var(--text-strong); cursor: default; }
button.quiz-opt { cursor: pointer; } button.quiz-opt:hover { border-color: var(--teal); }
.quiz-opt .letter { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--block); display: grid; place-items: center; font-weight: 800; color: var(--navy); }
.quiz-opt.mine { border-color: var(--teal); background: var(--teal-l); } .quiz-opt.mine .letter { background: var(--teal); color: #fff; }
.quiz-opt.correct { border-color: var(--green); background: var(--green-l); } .quiz-opt.correct .letter { background: var(--green); color: #fff; }
.quiz-opt.wrong { opacity: .65; }
.quiz-opt .bar { width: 9rem; height: 12px; } .quiz-opt .pct { font-weight: 700; color: var(--navy); min-width: 2.8rem; text-align: right; }
.quiz-opts.compact .quiz-opt { font-size: .9rem; padding: .45rem .6rem; }
.quiz-explain { background: var(--green-l); color: #1e5e30; padding: .8rem 1rem; border-radius: 10px; margin-top: .8rem; font-size: 1rem; }
.quiz-steps { display: flex; gap: .3rem; margin: .5rem 0; }

/* soutenances */
.def-top { align-items: start; } .def-top .big-timer { margin: 0; }
.def-order { padding-left: 1.4rem; margin: 0; } .def-order li { padding: .3rem .2rem; font-weight: 600; }
.def-order li.current { color: var(--orange-d); } .def-order li.current::marker { color: var(--orange); }
.def-order.ctrl li > span { display: inline-block; min-width: 12rem; }
.peer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.peer-card { background: var(--bg); border-radius: 10px; padding: .7rem; } .peer-card h3, .peer-card h4 { margin-top: 0; }
.peer-item { margin: .4rem 0; display: flex; flex-direction: column; gap: .2rem; }
.vote-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.vote-res { display: flex; flex-direction: column; gap: .35rem; max-width: 560px; }
.vrow { display: grid; grid-template-columns: 12rem 1fr 2rem; align-items: center; gap: .6rem; } .vrow .bar { width: 100%; height: 12px; }
.vrow.win span:first-child { font-weight: 800; color: var(--navy); }

/* formateur */
.progress td, .progress th { font-size: .82rem; }
.progress td.c-ok { background: var(--green-l); color: #1e6b35; font-weight: 700; }
.progress td.c-warn { background: var(--orange-l); color: #8a4b00; font-weight: 700; }
.progress td.c-ko { background: var(--red-l); color: var(--red); font-weight: 700; }
.progress td.st-green { color: var(--green); font-weight: 700; } .progress td.st-orange { color: var(--orange-d); font-weight: 700; } .progress td.st-red { color: var(--red); font-weight: 700; }
.team-edit { display: flex; flex-direction: column; gap: .4rem; margin: .6rem 0; }
.team-row { display: grid; grid-template-columns: minmax(10rem, 18rem) 1fr auto; gap: .6rem; align-items: center; }
.danger-zone { border-color: #f1b0b7; }
.pairs-edit select { min-width: 8rem; }

/* connexion */
.login-page { min-height: calc(100vh - 50px); display: grid; grid-template-columns: 1.1fr 1fr; }
.login-side { background: var(--navy); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.login-side h1 { color: #fff; font-size: 2.2rem; } .login-side .brand { margin-bottom: 2rem; } .login-side .logo-pmn { height: 42px; } .login-side .logo-solyti { height: 22px; }
.login-box { padding: 3rem; display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.login-tabs { display: flex; gap: .3rem; margin-bottom: 1.2rem; background: var(--block); padding: .25rem; border-radius: 10px; }
.login-tabs button { flex: 1; font: inherit; font-weight: 650; font-size: .88rem; padding: .5rem; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.login-tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.login-form { display: flex; flex-direction: column; gap: .8rem; }
.login-form input, .login-form select { min-height: 44px; font-size: 1rem; background: #fff; }
.form-err { color: var(--red); min-height: 1.4rem; margin-top: .8rem; font-weight: 600; }

/* projection */
body.projection { background: var(--navy); }
body.projection .site-foot { background: transparent; color: #8d99ae; border: 0; }
.proj-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.4rem; }
.proj-exit { margin-left: auto; color: #8d99ae; font-size: .85rem; }
main.proj { max-width: 1200px; min-height: calc(100vh - 120px); display: flex; flex-direction: column; justify-content: center; }
main.proj .big-timer { background: transparent; } main.proj .big-clock { font-size: clamp(5rem, 20vw, 16rem); }
main.proj .big-label { font-size: 1.8rem; }
main.proj .quiz-box { max-width: 1100px; width: 100%; } main.proj .quiz-q { color: #fff; font-size: 2.2rem; } main.proj .quiz-meta { color: #8d99ae; font-size: 1rem; }
main.proj .quiz-opt { font-size: 1.4rem; } main.proj .quiz-wait { background: transparent; color: #c9d3e6; border-color: #3a4766; }
main.proj .muted { color: #8d99ae; }
.proj-title { color: #fff; text-align: center; }
main.proj .talent-col { background: rgba(255, 255, 255, .06); } main.proj .talent-col h3 { color: #fff; }
.proj-def { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: center; }
.proj-def .card { background: rgba(255, 255, 255, .06); border: 0; color: #fff; } .proj-def .card h2 { color: #fff; } .proj-def .def-order { font-size: 1.3rem; }

/* toasts et modales */
#toasts { position: fixed; bottom: 1rem; right: 1rem; display: flex; flex-direction: column; gap: .4rem; z-index: 100; max-width: min(420px, calc(100vw - 2rem)); }
.toast { background: var(--navy); color: #fff; padding: .65rem .9rem; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); font-size: .88rem; transition: opacity .4s, transform .4s; border-left: 4px solid var(--teal); }
.toast-ok { border-left-color: var(--green); } .toast-warn { border-left-color: var(--orange); } .toast-error { border-left-color: var(--red); }
.toast.out { opacity: 0; transform: translateY(8px); }
.modal-back { position: fixed; inset: 0; background: rgba(11, 19, 43, .55); display: grid; place-items: center; z-index: 90; padding: 1rem; }
.modal { background: #fff; border-radius: 12px; width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--block); } .modal-head h2 { margin: 0; }
.modal-body { padding: 1rem 1.1rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .8rem 1.1rem; border-top: 1px solid var(--block); }
.map-table th { width: 45%; }

/* ----- écrans étroits : portable à côté de la visio, puis mobile ----- */
@media (max-width: 1100px) {
  .brand-title { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span6 { grid-column: span 4; } .span4 { grid-column: span 4; } .span3 { grid-column: span 2; }
  .crisis-preview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  main { padding: .8rem .8rem 2rem; }
  .two-col, .grid2, .grid3, .hero-goals, .export-grid, .talent-board { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .login-page { grid-template-columns: 1fr; } .login-side { padding: 1.6rem; } .login-side h1 { font-size: 1.5rem; } .login-side .brand { margin-bottom: .8rem; } .login-box { padding: 1.4rem; }
  .who-name { display: none; }
  .tb-label { display: none; }
  .proj-def { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .topbar { padding: .5rem .7rem; } .logo-pmn { height: 24px; } .logo-solyti { height: 14px; }
  .mainnav { top: 46px; }
  .status-pill span { display: none; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .span2, .span3, .span4, .span6 { grid-column: span 2; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .role-grid, .crisis-preview { grid-template-columns: 1fr; }
  .action-meta { margin-left: 0; width: 100%; }
  .hero { padding: 1.2rem; } .hero h1 { font-size: 1.45rem; }
  .quiz-opt { grid-template-columns: 2.2rem 1fr; } .quiz-opt .bar { grid-column: 2; width: 100%; } .quiz-opt .pct { grid-column: 2; text-align: left; }
  .vrow { grid-template-columns: 7rem 1fr 2rem; }
  .team-row { grid-template-columns: 1fr auto; } .team-row > span { display: none; }
  .card { padding: .9rem; }
}

/* ----- impression (export PDF) ----- */
#print-area { display: none; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; font-size: 9.5pt; color: #222; }
  #print-area h1 { font-size: 16pt; } #print-area h2 { font-size: 12pt; margin: 10pt 0 4pt; color: #0B132B; border-bottom: 2px solid #0096C7; padding-bottom: 2pt; }
  #print-area table { width: 100%; border-collapse: collapse; } #print-area th, #print-area td { border: 1px solid #ccc; padding: 2pt 4pt; text-align: left; vertical-align: top; }
  #print-area th { background: #E9ECEF; }
  .print-sec { break-inside: auto; } .print-sec h2 { break-after: avoid; }
  .print-action { break-inside: avoid; border: 1px solid #ccc; border-left: 4px solid #0096C7; padding: 4pt 6pt; margin-bottom: 6pt; }
  .print-action h3 { margin: 0 0 3pt; font-size: 10.5pt; }
  .print-action dl { display: grid; grid-template-columns: 34mm 1fr 34mm 1fr; gap: 1pt 6pt; margin: 0; } .print-action dt { font-weight: 700; color: #0B132B; } .print-action dd { margin: 0; }
  #print-area footer { margin-top: 10pt; text-align: center; color: #666; font-size: 8pt; }
}
