/* Identité Groupe FM — charte Tendance Menuiseries, version V2.4.14 */
@font-face{font-family:Raleway;src:url('/fonts/Raleway-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Raleway;src:url('/fonts/Raleway-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Raleway;src:url('/fonts/Raleway-Bold.ttf') format('truetype');font-weight:700 900;font-style:normal;font-display:swap}
:root{
  --navy:#16394f;
  --blue:#2b709d;
  --sky:#eaf3f8;
  --ink:#17242d;
  --muted:#687681;
  --line:#d9e3e9;
  --bg:#f3f6f7;
  --gold:#e9c46a;
  --green:#2b8b6a;
  --shadow:0 14px 36px rgba(22,57,79,.1)
}

body,button,input,select,textarea{font-family:Raleway,"Segoe UI",Arial,sans-serif}
.app-shell{grid-template-columns:245px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#15394f 0%,#102b3d 100%);overflow:visible}
.sidebar:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.1;background-image:linear-gradient(30deg,transparent 24%,#fff 25%,transparent 26%),linear-gradient(150deg,transparent 24%,#fff 25%,transparent 26%);background-size:54px 94px}
.sidebar>*{position:relative}
.brand-mark{border-radius:10px;background:var(--blue);box-shadow:inset -9px -9px 0 rgba(233,196,106,.2)}
.brand strong{font-size:17px;letter-spacing:.01em}.brand small{color:#bfd0db}
.login-brand strong,.login-brand small{display:block}.login-brand strong{font-size:20px}.login-brand small{color:var(--muted);margin-top:2px}.login-logo{background:linear-gradient(145deg,#2b709d,#1c4e6d);box-shadow:inset -10px -10px 0 rgba(233,196,106,.22)}
.nav-btn{display:flex;align-items:center;gap:2px;color:#bfced7;border:1px solid transparent}
.nav-btn span{height:24px;display:inline-grid;place-items:center}.nav-btn svg{width:21px;height:21px}
.nav-btn.active,.nav-btn:hover{background:rgba(43,112,157,.32);border-color:rgba(233,196,106,.38);color:#fff}
.nav-btn.active:before{content:"";width:3px;height:25px;border-radius:3px;background:var(--gold);position:absolute;left:-1px}
.mobile-more-toggle{display:none}
.topbar{height:92px}.topbar h1{margin:1px 0 0}.topbar-subtitle{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.topbar,.card,.module-card,.chantier-choice{border-color:var(--line)}
.eyebrow{color:var(--blue)}
.portal-welcome,.hero{position:relative;overflow:hidden;background:linear-gradient(125deg,#16394f 0%,#2b709d 78%)}
.portal-welcome:after,.hero:after{content:"";position:absolute;width:230px;height:230px;right:-55px;top:-78px;border:2px solid rgba(233,196,106,.32);transform:rotate(30deg);border-radius:32px}
.portal-welcome>* , .hero>*{position:relative;z-index:1}
.primary{background:var(--blue)}.primary:hover{background:#225d84}
.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.employee-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.module-card{min-height:150px}.module-icon{border-radius:14px}.module-icon svg{width:27px;height:27px}
.module-icon.blue{background:#e6f0f6;color:var(--blue)}
.module-icon.gold{background:#fbf3dc;color:#9a741c}
.module-copy small{color:var(--blue)}
.module-card:hover{border-color:var(--blue)!important}
.choice-icon svg{width:29px;height:29px}
.view{padding-left:34px;padding-right:34px}
.privacy-footer{padding-bottom:8px}
.supervision-actions{align-items:flex-end;justify-content:flex-end;flex-wrap:wrap}.export-month-field{display:grid;gap:5px}.export-month-field span{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.export-month-field select,.export-month-field input{height:42px;margin:0;min-width:155px;border:1px solid var(--line);border-radius:10px;padding:8px 11px;background:var(--white);color:var(--ink)}.admin-delete-hour{padding:8px 10px!important;white-space:nowrap}
.export-validation-message{display:none;margin:-8px 0 18px;padding:11px 14px;border:1px solid #e9cf91;border-radius:10px;background:#fff7e4;color:#825d09;font-size:13px;font-weight:700}.export-validation-message.visible{display:block}[data-theme="dark"] .export-validation-message{background:#40361f;border-color:#765f2b;color:#f3d88e}
.supervision-employee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.supervision-employee-card{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:15px;padding:18px;text-align:left;cursor:pointer;display:grid;grid-template-columns:46px 1fr auto;gap:13px;align-items:center;box-shadow:0 3px 14px rgba(20,32,55,.035)}.supervision-employee-card:hover{border-color:var(--blue);transform:translateY(-1px)}.supervision-employee-card .avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--sky);color:var(--blue);font-weight:800}.supervision-employee-card strong,.supervision-employee-card small{display:block}.supervision-employee-card small{color:var(--muted);margin-top:3px}.employee-hours-summary{text-align:right}.employee-hours-summary b,.employee-hours-summary span{display:block}.employee-hours-summary b{font-size:18px}.employee-hours-summary span{font-size:11px;color:var(--muted);margin-top:4px}.employee-hours-summary .pending-count{color:#b66d0b;font-weight:700}.employee-hours-summary .validated-count{color:var(--green);font-weight:700}.supervision-detail-head{margin-top:0}.supervision-detail .table-card{margin-bottom:20px}.hour-row-actions{display:flex;gap:6px}.hour-row-actions button{padding:8px 10px;white-space:nowrap}.empty-supervision{grid-column:1/-1;padding:40px;text-align:center;color:var(--muted)}

.mobile-more-menu{position:fixed;z-index:30;left:12px;right:12px;bottom:82px;padding:9px;background:var(--white);border:1px solid var(--line);border-radius:15px;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.mobile-more-menu[hidden]{display:none}.mobile-more-menu button{width:100%;display:flex;align-items:center;gap:11px;border:0;background:transparent;color:var(--ink);padding:13px;border-radius:10px;text-align:left;font-weight:700}
.mobile-more-menu button:hover{background:var(--sky)}.mobile-more-menu svg{width:20px;height:20px;color:var(--blue)}

[data-theme="dark"]{--navy:#102b3d;--blue:#63a6d0;--sky:#1c3a4d;--ink:#edf4f7;--muted:#a9bac4;--line:#355064;--bg:#0f1d27;--white:#172a38;--gold:#e9c46a}
[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#102b3d,#0a202e)}
[data-theme="dark"] .module-icon.blue{background:#1c4057;color:#86c1e5}
[data-theme="dark"] .module-icon.gold{background:#463c22;color:#f2d483}
[data-theme="dark"] .portal-welcome,[data-theme="dark"] .hero{background:linear-gradient(125deg,#102b3d,#1e587d)}
[data-theme="dark"] .mobile-more-menu{background:#172a38}
[data-theme="dark"] .mobile-more-menu button{color:#edf4f7}

@media(min-width:851px){
  .view{max-width:none;width:100%}
  .table-card table{min-width:100%}
}

@media(max-width:1100px){
  .module-grid,.employee-module-grid,.supervision-employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:850px){
  .sidebar{height:82px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#132d43}
  .sidebar:before{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}
  .sidebar .nav-btn{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:6px 2px;font-size:9px;line-height:1.15;white-space:normal}
  .sidebar .nav-btn span{margin:0;height:25px}.sidebar .nav-btn svg{width:21px;height:21px}
  .sidebar .nav-btn.active:before{width:26px;height:3px;left:50%;top:-2px;transform:translateX(-50%)}
  .desktop-admin-nav{display:none!important}.mobile-more-toggle{display:flex}
  .view{padding-left:15px;padding-right:15px;padding-bottom:112px}
  .module-grid,.employee-module-grid{grid-template-columns:1fr}
  .module-card{min-height:0}
  .topbar{height:80px}.topbar-subtitle{display:none}
  .supervision-title{display:block}.supervision-actions{display:grid;grid-template-columns:1fr}.supervision-actions>*{width:100%}.export-month-field select,.export-month-field input{min-width:0;width:100%}
  .supervision-employee-grid{grid-template-columns:1fr}.supervision-detail-head{display:block}.supervision-detail-head .primary{width:100%;margin-top:14px}.hour-row-actions{flex-direction:column}
}
