:root{--tech-bg:#07182d;--tech-panel:#0e2b4f;--tech-panel2:#123965;--tech-line:rgba(255,255,255,.14);--tech-text:#f5f9ff;--tech-muted:#b8c8dc;--tech-blue:#3b82f6;--tech-green:#21c98b;--tech-red:#ff6577}*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#061427,#0a2342 58%,#07192f);color:var(--tech-text);font-family:Inter,system-ui,sans-serif;min-height:100vh}.tech-header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px clamp(18px,4vw,56px);background:rgba(4,18,34,.94);border-bottom:1px solid var(--tech-line);backdrop-filter:blur(14px)}.tech-brand{color:#fff;text-decoration:none;font-weight:900;font-size:20px}.tech-brand span{color:#69a7ff}.tech-header nav{display:flex;gap:8px;flex-wrap:wrap}.tech-header nav a{color:#dfeaff;text-decoration:none;padding:9px 12px;border-radius:10px}.tech-header nav a:hover{background:rgba(255,255,255,.1)}.tech-main{width:min(1180px,calc(100% - 28px));margin:28px auto 60px}.tech-auth-wrap{min-height:calc(100vh - 130px);display:grid;place-items:center;padding:24px}.tech-card{background:linear-gradient(145deg,rgba(16,49,88,.98),rgba(8,31,59,.98));border:1px solid var(--tech-line);border-radius:18px;padding:clamp(18px,3vw,30px);box-shadow:0 18px 50px rgba(0,0,0,.22);margin-bottom:20px}.tech-auth-card{width:min(430px,100%)}.tech-mark{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#fff;color:#0d3970;font-weight:900}.tech-muted{color:var(--tech-muted)}.tech-form{display:grid;gap:14px}.tech-form.compact{max-width:520px}.tech-form label,.tech-filter label{display:grid;gap:7px;font-weight:700}.tech-form input,.tech-form select,.tech-form textarea,.tech-filter input{width:100%;border:1px solid rgba(255,255,255,.24);border-radius:11px;background:#fff;color:#14243a;padding:12px 13px;font:inherit}.tech-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:11px;padding:11px 15px;text-decoration:none;font-weight:800;cursor:pointer}.tech-btn.primary{background:#fff;color:#153e73}.tech-btn.secondary{background:#24588e;color:#fff}.tech-btn.success{background:var(--tech-green);color:#05271b}.tech-btn.danger{background:var(--tech-red);color:#fff}.tech-btn.ghost{background:transparent;border:1px solid var(--tech-line);color:#fff}.tech-alert,.tech-flash{padding:13px 15px;border-radius:12px;margin:14px auto}.tech-flash{width:min(1180px,calc(100% - 28px))}.tech-alert.error,.tech-flash.error{background:rgba(255,101,119,.18);border:1px solid rgba(255,101,119,.5)}.tech-alert.success,.tech-flash.success{background:rgba(33,201,139,.16);border:1px solid rgba(33,201,139,.48)}.tech-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#123b70,#0b274a);border:1px solid var(--tech-line);border-radius:20px;padding:28px;margin-bottom:20px}.tech-kicker{text-transform:uppercase;letter-spacing:.12em;color:#8bbcff;font-size:12px;font-weight:900}.tech-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.tech-kpis article{background:var(--tech-panel);border:1px solid var(--tech-line);border-radius:16px;padding:20px}.tech-kpis strong{display:block;font-size:32px}.tech-kpis span{color:var(--tech-muted)}.tech-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.tech-section-head a,.tech-card>a,.tech-links a{color:#9bc5ff}.tech-list{display:grid;gap:10px}.tech-list-item{display:flex;justify-content:space-between;gap:18px;padding:15px;border:1px solid var(--tech-line);border-radius:13px;color:#fff;text-decoration:none;background:rgba(255,255,255,.03)}.tech-list-item:hover{background:#fff;color:#102a4c}.tech-list-item>div{display:grid;gap:5px}.tech-list-item span,.tech-list-item small,.tech-list-item time{color:inherit;opacity:.82}.tech-badge{display:inline-flex;width:max-content;padding:5px 8px;border-radius:999px;background:#2a69a8;font-size:12px;font-weight:900;text-transform:uppercase}.tech-badge.neutral{background:#526b84}.tech-badge.large{font-size:14px}.tech-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:18px 0}.tech-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tech-detail-grid article{background:rgba(255,255,255,.04);border:1px solid var(--tech-line);border-radius:13px;padding:16px}.tech-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.tech-time-form{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.tech-notes{display:grid;gap:12px}.tech-notes article{padding:15px;border:1px solid var(--tech-line);border-radius:12px;background:rgba(255,255,255,.03)}.tech-notes article>div{display:flex;justify-content:space-between}.tech-empty{padding:28px;text-align:center;color:var(--tech-muted);border:1px dashed var(--tech-line);border-radius:12px}.tech-secret{display:block;padding:15px;background:#06172d;border-radius:10px;overflow-wrap:anywhere}.recovery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.recovery-grid code{padding:10px;background:#06172d;border-radius:8px;text-align:center}.tech-footer{text-align:center;color:var(--tech-muted);padding:22px}.tech-links{text-align:center}@media(max-width:760px){.tech-header{align-items:flex-start;flex-direction:column}.tech-header nav{width:100%}.tech-hero,.tech-list-item,.tech-section-head{align-items:flex-start;flex-direction:column}.tech-kpis,.tech-detail-grid,.tech-grid-two{grid-template-columns:1fr}.recovery-grid{grid-template-columns:1fr}.tech-list-item>div:last-child{width:100%}}

/* RC1.5.2 — Operational technician dashboard */
.tech-header nav a.active{background:rgba(255,255,255,.13);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.tech-dashboard-hero{background:radial-gradient(circle at top right,rgba(59,130,246,.28),transparent 42%),linear-gradient(135deg,#123b70,#0b274a)}
.tech-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.tech-kpis-operational{grid-template-columns:repeat(4,1fr)}
.tech-kpis-operational article{position:relative;overflow:hidden;min-height:126px;display:flex;flex-direction:column;justify-content:center}
.tech-kpis-operational article:after{content:"";position:absolute;right:-22px;bottom:-30px;width:90px;height:90px;border-radius:50%;background:rgba(255,255,255,.05)}
.tech-kpi-label{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.tech-kpis small{color:var(--tech-muted);margin-top:3px}
.tech-kpi-warning{border-color:rgba(255,101,119,.56)!important;background:linear-gradient(145deg,rgba(111,29,47,.72),rgba(45,31,59,.9))!important}
.tech-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px}
.tech-next-card h3{font-size:24px;margin:8px 0 18px}
.tech-next-time{display:flex;align-items:baseline;gap:12px;margin:16px 0 8px}
.tech-next-time strong{font-size:48px;line-height:1}
.tech-next-time span{color:var(--tech-muted);font-weight:700}
.tech-meta-list{display:grid;gap:0;margin:0 0 20px}
.tech-meta-list div{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid var(--tech-line)}
.tech-meta-list dt{color:var(--tech-muted)}
.tech-meta-list dd{margin:0;font-weight:700}
.tech-btn-block{width:100%}
.tech-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.tech-quick-grid a{min-height:118px;padding:18px;border:1px solid var(--tech-line);border-radius:14px;text-decoration:none;color:#fff;background:rgba(255,255,255,.035);display:flex;flex-direction:column;justify-content:flex-end;transition:.18s ease}
.tech-quick-grid a:hover{transform:translateY(-2px);background:rgba(255,255,255,.09);border-color:rgba(155,197,255,.6)}
.tech-quick-grid strong{font-size:17px}
.tech-quick-grid span{font-size:13px;color:var(--tech-muted);margin-top:5px}
.tech-timeline{display:grid;gap:0;margin-top:14px}
.tech-timeline-item{display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:16px;padding:15px 8px;border-bottom:1px solid var(--tech-line);color:#fff;text-decoration:none}
.tech-timeline-item:hover{background:rgba(255,255,255,.055)}
.tech-timeline-item time{font-size:20px;font-weight:900}
.tech-timeline-content{display:grid;gap:4px}
.tech-timeline-content span{color:var(--tech-muted)}
.tech-counter{display:grid;place-items:center;min-width:38px;height:38px;border-radius:999px;background:#24588e;font-weight:900}
.tech-status-completed,.tech-status-closed{background:#157f5c}
.tech-status-cancelled{background:#7f3d4c}
.tech-status-in_progress{background:#b06b00}
.tech-status-confirmed{background:#2a69a8}
@media(max-width:920px){.tech-kpis-operational{grid-template-columns:repeat(2,1fr)}.tech-dashboard-grid{grid-template-columns:1fr}}
@media(max-width:620px){.tech-kpis-operational,.tech-quick-grid{grid-template-columns:1fr}.tech-hero-actions{width:100%}.tech-hero-actions .tech-btn{width:100%}.tech-timeline-item{grid-template-columns:58px 1fr}.tech-timeline-item>.tech-badge{grid-column:2}.tech-next-time strong{font-size:40px}.tech-meta-list div{grid-template-columns:1fr;gap:4px}}


/* RC1.5.2.1 — lien de récupération 2FA */
.tech-recovery-link{margin-top:16px}
.tech-recovery-link a,.tech-recovery-link a:visited{color:#fff;text-decoration:underline;text-underline-offset:3px}
.tech-recovery-link a:hover,.tech-recovery-link a:focus{color:#fff;opacity:.85}

/* RC1.5.2.2 — standardisation des boutons du dashboard technicien */
.tech-dashboard-button,
.tech-dashboard .tech-btn.primary,
.tech-quick-grid .tech-quick-button{
  background:#fff;
  color:#153e73;
  border:1px solid rgba(255,255,255,.94);
  box-shadow:0 8px 22px rgba(0,0,0,.14);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.tech-dashboard-button:hover,
.tech-dashboard-button:focus,
.tech-dashboard .tech-btn.primary:hover,
.tech-dashboard .tech-btn.primary:focus,
.tech-quick-grid .tech-quick-button:hover,
.tech-quick-grid .tech-quick-button:focus{
  background:#f4f8ff;
  color:#0d3970;
  border-color:#fff;
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  outline:none;
}
.tech-btn-compact{padding:9px 13px;min-height:40px}
.tech-quick-grid .tech-quick-button{
  min-height:102px;
  padding:17px 18px;
  border-radius:11px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
  text-decoration:none;
}
.tech-quick-grid .tech-quick-button strong{color:#153e73;font-size:17px}
.tech-quick-grid .tech-quick-button span{color:#42658f;font-size:13px;line-height:1.45;margin-top:5px}
.tech-section-head>.tech-dashboard-button{flex:0 0 auto}
@media(max-width:620px){
  .tech-quick-grid .tech-quick-button{min-height:86px;width:100%}
  .tech-section-head>.tech-dashboard-button{width:100%}
}


/* RC1.5.2.3 — alignement des actions de sécurité et navigation de retour */
.tech-security-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px;width:100%}
.tech-security-actions-main{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.tech-security-actions-main form,.tech-security-danger{margin:0}
.tech-security-danger{margin-left:auto;display:flex;justify-content:flex-end}
.tech-page-back{display:inline-flex;margin-bottom:18px}
@media(max-width:760px){
  .tech-security-actions{align-items:stretch;flex-direction:column}
  .tech-security-actions-main{align-items:stretch;flex-direction:column}
  .tech-security-actions-main .tech-btn,.tech-security-actions-main form,.tech-security-actions-main form .tech-btn,.tech-security-danger,.tech-security-danger .tech-btn{width:100%}
  .tech-security-danger{margin-left:0;padding-top:16px;border-top:1px solid var(--tech-line)}
}


/* RC1.5.2.4 — ordre, contraste et espacement uniforme des actions 2FA */
.tech-security-actions-main>.tech-btn,
.tech-security-actions-main>form>.tech-btn{white-space:nowrap}

/* RC1.5.3 — gestion opérationnelle des interventions */
.tech-intervention-hero{background:radial-gradient(circle at top right,rgba(59,130,246,.22),transparent 40%),linear-gradient(145deg,rgba(16,49,88,.98),rgba(8,31,59,.98))}
.tech-intervention-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}
.tech-intervention-summary article{padding:15px;border:1px solid var(--tech-line);border-radius:13px;background:rgba(255,255,255,.04);display:grid;gap:6px}
.tech-intervention-summary span{color:var(--tech-muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.tech-intervention-summary strong{overflow-wrap:anywhere}
.tech-action-row{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.tech-complete-message{display:inline-flex;align-items:center;padding:11px 15px;border-radius:11px;background:rgba(33,201,139,.16);border:1px solid rgba(33,201,139,.48);font-weight:800}
.tech-btn:disabled{opacity:.48;cursor:not-allowed;transform:none!important}
.tech-operation-timeline{position:relative;display:grid;gap:0;margin-top:12px}
.tech-operation-event{position:relative;display:grid;grid-template-columns:24px 1fr;gap:12px;padding:0 0 22px}
.tech-operation-event:not(:last-child):before{content:"";position:absolute;left:7px;top:16px;bottom:0;width:2px;background:rgba(155,197,255,.28)}
.tech-operation-dot{width:16px;height:16px;border-radius:50%;margin-top:3px;background:#69a7ff;border:3px solid #123965;box-shadow:0 0 0 2px rgba(105,167,255,.35);z-index:1}
.tech-operation-event time{display:block;color:var(--tech-muted);font-size:12px;margin-bottom:3px}
.tech-operation-event strong{display:block;font-size:16px}
.tech-operation-event p{margin:5px 0 0;color:var(--tech-muted);line-height:1.45}
.tech-event-check_in .tech-operation-dot,.tech-event-check_out .tech-operation-dot{background:var(--tech-green);box-shadow:0 0 0 2px rgba(33,201,139,.32)}
.tech-event-note .tech-operation-dot{background:#f5c451;box-shadow:0 0 0 2px rgba(245,196,81,.3)}
@media(max-width:920px){.tech-intervention-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.tech-intervention-summary{grid-template-columns:1fr}.tech-action-row .tech-btn,.tech-time-form .tech-btn{width:100%}}

/* RC1.5.4 — Asset Management et historique technique */
.tech-equipment-hero{background:radial-gradient(circle at top right,rgba(48,145,255,.24),transparent 42%),linear-gradient(145deg,rgba(16,49,88,.98),rgba(8,31,59,.98))}
.tech-equipment-search{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:12px;align-items:end;margin-top:20px}
.tech-equipment-search label{display:grid;gap:7px;font-weight:800}
.tech-equipment-search input{width:100%}
.tech-equipment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tech-equipment-card{display:block;padding:18px;border:1px solid var(--tech-line);border-radius:15px;background:rgba(255,255,255,.035);color:#fff;text-decoration:none;transition:.18s ease}
.tech-equipment-card:hover,.tech-equipment-card:focus{transform:translateY(-3px);background:rgba(255,255,255,.075);border-color:rgba(155,197,255,.62);outline:none}
.tech-equipment-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tech-equipment-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(105,167,255,.17);font-size:22px}
.tech-equipment-card h3{margin:16px 0 6px;font-size:20px}
.tech-equipment-card>p{margin:0 0 16px;color:var(--tech-muted)}
.tech-equipment-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.tech-equipment-card dl div{padding:10px;border-radius:10px;background:rgba(255,255,255,.045)}
.tech-equipment-card dt{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--tech-muted);font-weight:800}
.tech-equipment-card dd{margin:4px 0 0;font-weight:800;overflow-wrap:anywhere}
.tech-equipment-status-operational{background:#157f5c}.tech-equipment-status-maintenance{background:#9a6900}.tech-equipment-status-waiting_parts{background:#8a4f13}.tech-equipment-status-breakdown,.tech-equipment-status-out_of_service{background:#8b3348}.tech-equipment-status-decommissioned{background:#596273}
.tech-equipment-history-list{display:grid;gap:10px}
.tech-equipment-history-list>a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid var(--tech-line);border-radius:11px;color:#fff;text-decoration:none;background:rgba(255,255,255,.03)}
.tech-equipment-history-list>a:hover{background:rgba(255,255,255,.07)}
.tech-equipment-history-list a div{display:grid;gap:4px}.tech-equipment-history-list span{color:var(--tech-muted);font-size:13px}
.tech-equipment-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tech-equipment-file{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--tech-line);border-radius:12px;color:#fff;text-decoration:none;background:rgba(255,255,255,.035)}
.tech-equipment-file:hover{background:rgba(255,255,255,.075)}
.tech-equipment-file>span{font-size:26px}.tech-equipment-file div{min-width:0;display:grid;gap:4px}.tech-equipment-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tech-equipment-file small{color:var(--tech-muted)}
.tech-timeline-link,.tech-inline-link{color:#fff;text-underline-offset:3px}.tech-timeline-link:hover,.tech-inline-link:hover{color:#cfe2ff}
@media(max-width:1020px){.tech-equipment-grid,.tech-equipment-files{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.tech-equipment-search{grid-template-columns:1fr}.tech-equipment-search .tech-btn{width:100%}.tech-equipment-grid,.tech-equipment-files{grid-template-columns:1fr}.tech-equipment-card dl{grid-template-columns:1fr}.tech-equipment-history-list>a{align-items:flex-start;flex-direction:column}}
