:root{--bg:#f6f7f9;--card:#fff;--text:#172033;--muted:#6b7280;--brand:#c89b3c;--dark:#101827;--line:#e5e7eb}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.top{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:space-between;padding:14px 6vw;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;font-weight:900;font-size:22px}.brand img{max-height:54px;max-width:190px}nav{display:flex;gap:18px;align-items:center;font-weight:700}nav a{color:#334155}.pill,.btn{background:var(--brand);color:#fff!important;padding:11px 18px;border-radius:999px;border:0;cursor:pointer;font-weight:800}.hero{min-height:580px;position:relative;overflow:hidden;background:#111}.slide{min-height:580px;display:none;align-items:center;padding:8vw;background-size:cover;background-position:center}.slide.active{display:flex}.slide:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.75),rgba(0,0,0,.2))}.hero-content{position:relative;max-width:760px;color:#fff}.hero h1{font-size:clamp(36px,6vw,76px);line-height:1;margin:0 0 18px}.hero p{font-size:21px;color:#e5e7eb}.section{padding:70px 6vw}.section-title{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px}.section-title h2{font-size:38px;margin:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.card{background:var(--card);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 10px 35px rgba(15,23,42,.06)}.card img{width:100%;height:230px;object-fit:cover}.card-body{padding:24px}.muted{color:var(--muted)}.cta{background:var(--dark);color:#fff;border-radius:30px;padding:44px;margin:30px 6vw;display:flex;justify-content:space-between;gap:30px;align-items:center}.form{max-width:900px;margin:40px auto;background:#fff;padding:30px;border-radius:24px;border:1px solid var(--line)}input,textarea,select{width:100%;padding:14px 15px;margin:8px 0 16px;border:1px solid var(--line);border-radius:14px;font:inherit}label{font-weight:800}.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}footer{background:#0f172a;color:#cbd5e1;padding:34px 6vw;display:flex;justify-content:space-between;gap:20px}.signature{font-weight:900;color:#fff}.admin-body{background:#eef2f7}.admin-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:#111827;color:#fff;padding:22px}.sidebar h2{font-size:18px}.sidebar a{display:block;padding:13px 14px;border-radius:14px;color:#d1d5db;margin:6px 0}.sidebar a:hover,.sidebar a.active{background:#1f2937;color:#fff}.admin-main{padding:28px}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.admin-card{background:#fff;border-radius:22px;padding:22px;border:1px solid var(--line);box-shadow:0 8px 24px rgba(15,23,42,.05);margin-bottom:20px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden}.table th,.table td{padding:13px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.small-btn{display:inline-block;background:#111827;color:#fff!important;border:0;border-radius:10px;padding:8px 12px;margin:2px;cursor:pointer}.danger{background:#b91c1c!important}.success{background:#15803d!important}.preview-img{max-height:90px;border-radius:12px;border:1px solid var(--line)}.login{max-width:430px;margin:10vh auto}.invoice-paper{background:#fff;max-width:900px;margin:30px auto;padding:45px;border:1px solid #ddd;color:#111}.invoice-head{display:flex;justify-content:space-between;gap:30px;border-bottom:3px solid #111;padding-bottom:20px}.invoice-logo{max-height:90px;max-width:220px}.totals{margin-left:auto;max-width:320px}.no-print-toolbar{max-width:900px;margin:20px auto;text-align:right}@media(max-width:850px){.top{position:static;display:block}.brand{justify-content:center;margin-bottom:12px}nav{overflow:auto;gap:10px}.grid,.row{grid-template-columns:1fr}.hero,.slide{min-height:480px}.cta,footer{display:block}.admin-shell{grid-template-columns:1fr}.sidebar{position:static}.admin-main{padding:16px}.table{display:block;overflow:auto}}@media print{body{background:#fff}.no-print-toolbar,.sidebar,.admin-top,.top,footer{display:none!important}.admin-shell{display:block}.admin-main{padding:0}.invoice-paper{border:0;margin:0;max-width:none;box-shadow:none;padding:20mm}.admin-card{box-shadow:none;border:0}}
/* v5 corrections */
.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:900;color:#f7d28a;margin-bottom:12px}.eyebrow.dark{color:#b78020}.hero-actions{display:flex;gap:14px;flex-wrap:wrap}.ghost-btn{border:1px solid rgba(255,255,255,.55);color:#fff!important;padding:11px 18px;border-radius:999px;font-weight:900}.pro-hero{min-height:660px}.pro-hero .slide{min-height:660px}.hero-stats{position:absolute;left:6vw;right:6vw;bottom:28px;z-index:3;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.7);border-radius:26px;display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;box-shadow:0 22px 60px rgba(0,0,0,.22)}.hero-stats div{padding:22px 26px;border-right:1px solid #e5e7eb}.hero-stats div:last-child{border-right:0}.hero-stats b{display:block;font-size:22px;color:#111827}.hero-stats span{color:#64748b;font-weight:700}.intro-band{display:grid;grid-template-columns:1.2fr .8fr;gap:42px;align-items:center;background:#fff;margin:50px 6vw 0;padding:44px;border-radius:30px;border:1px solid var(--line);box-shadow:0 15px 45px rgba(15,23,42,.06)}.intro-band h2{font-size:38px;margin:0}.service-card{position:relative;transition:.28s ease;animation:cardRise .65s ease both;animation-delay:calc(var(--delay)*.08s)}.service-card:hover{transform:translateY(-9px);box-shadow:0 24px 55px rgba(15,23,42,.13)}.icon-bubble{width:66px;height:66px;border-radius:22px;background:linear-gradient(135deg,#fff4d6,#c89b3c);display:grid;place-items:center;font-size:30px;margin:24px 0 0 24px;box-shadow:0 12px 25px rgba(200,155,60,.25)}.project-card{transition:.25s ease}.project-card:hover{transform:translateY(-6px)}.pro-cta{background:radial-gradient(circle at top left,#364156,#0f172a 55%)}.badge{display:inline-block;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;background:#e5e7eb;color:#111827}.badge.info{background:#dbeafe;color:#1d4ed8}.badge.warn{background:#fef3c7;color:#92400e}.badge.ok{background:#dcfce7;color:#166534}.badge.no{background:#fee2e2;color:#991b1b}.mini-form textarea{min-height:70px;margin-bottom:8px}.doc-parties{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:30px 0}.doc-table{width:100%;border-collapse:collapse;margin-top:25px}.doc-table th{background:#111827;color:#fff}.doc-table th,.doc-table td{border:1px solid #d1d5db;padding:12px;text-align:left}.doc-totals{margin:25px 0 0 auto;width:340px;border-collapse:collapse}.doc-totals td,.doc-totals th{border:1px solid #d1d5db;padding:12px;text-align:right}.doc-notes{margin-top:28px;border-top:1px solid #e5e7eb;padding-top:18px}.doc-meta{text-align:right}.pro-doc{box-shadow:0 20px 70px rgba(15,23,42,.10)}@keyframes cardRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@media(max-width:850px){.hero-stats,.intro-band,.doc-parties{grid-template-columns:1fr}.hero-stats{position:relative;left:auto;right:auto;bottom:auto;margin:-35px 18px 20px}.hero-stats div{border-right:0;border-bottom:1px solid #e5e7eb}.pro-hero,.pro-hero .slide{min-height:560px}.intro-band{margin:24px 18px;padding:26px}.doc-totals{width:100%}}@media print{.print-body{background:#fff}.no-print-toolbar{display:none!important}.invoice-paper.pro-doc{box-shadow:none;border:0;margin:0;padding:0}.doc-table th{background:#111827!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* v6 professional theme system */
body.theme-global{--bg:#f4f7fb;--card:#fff;--text:#142033;--brand:#c49232;--dark:#101827;--line:#e6edf5}
body.theme-premium{--bg:#f7f2e8;--card:#fffdf8;--text:#20170d;--brand:#b8741f;--dark:#24160b;--line:#eadbc5}
body.theme-dark{--bg:#0b1120;--card:#111827;--text:#f8fafc;--muted:#a7b2c3;--brand:#d4a84f;--dark:#050814;--line:#253044}body.theme-dark .top{background:rgba(11,17,32,.92)}body.theme-dark nav a{color:#e5e7eb}body.theme-dark .intro-band,body.theme-dark .card,body.theme-dark .admin-card{background:#111827;color:#f8fafc}body.theme-dark .muted{color:#a7b2c3}
.signature-home{background:linear-gradient(135deg,var(--dark),#1f2937);isolation:isolate}.signature-home .slide:before{background:linear-gradient(100deg,rgba(7,11,20,.88),rgba(7,11,20,.44),rgba(196,146,50,.18))}.orb{position:absolute;border-radius:999px;filter:blur(20px);opacity:.36;z-index:1;animation:floatOrb 8s ease-in-out infinite}.orb-a{width:220px;height:220px;background:var(--brand);right:10%;top:18%}.orb-b{width:160px;height:160px;background:#fff;right:30%;bottom:17%;animation-delay:1.5s}.hero-content{z-index:2}.hero-content h1{letter-spacing:-.05em}.hero-content p{max-width:660px}.hero-panel{position:absolute;z-index:4;left:6vw;right:6vw;bottom:26px;display:grid;grid-template-columns:repeat(4,1fr);gap:0;overflow:hidden}.glass-card{background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.75);border-radius:28px;box-shadow:0 25px 70px rgba(0,0,0,.22)}.hero-panel div{padding:22px;border-right:1px solid rgba(15,23,42,.10)}.hero-panel div:last-child{border-right:0}.hero-panel b{display:block;color:var(--brand);font-size:26px}.hero-panel span{font-weight:900;color:#1f2937}.premium-intro{position:relative;overflow:hidden}.premium-intro:after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:999px;background:linear-gradient(135deg,rgba(196,146,50,.28),transparent)}.premium-card{position:relative;overflow:hidden;border:0}.premium-card:before{content:"";position:absolute;inset:0;border:1px solid var(--line);border-radius:24px;pointer-events:none}.premium-card .shine{position:absolute;inset:-120% auto auto -80%;width:70%;height:250%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.48),transparent);transform:rotate(25deg);transition:.65s}.premium-card:hover .shine{left:120%}.project-img-wrap{height:230px;overflow:hidden;background:linear-gradient(135deg,#d8dee9,#fff)}.project-card img{height:100%;transition:.45s ease}.project-card:hover img{transform:scale(1.08)}.placeholder-img{height:100%;display:grid;place-items:center;font-size:28px;font-weight:900;color:#64748b;background:linear-gradient(135deg,#e2e8f0,#f8fafc)}.reveal{animation:fadeUp .7s ease both}.split-cta{border:1px solid rgba(255,255,255,.12);box-shadow:0 22px 65px rgba(15,23,42,.20)}.cta-btn{white-space:nowrap}.hero-btn{white-space:nowrap}.admin-card.success{background:#eaf8ef;color:#166534;border-color:#b7e4c7}.status-summary{cursor:pointer;font-weight:900;color:#334155}.history-box{margin-top:10px;background:#f8fafc;border:1px solid var(--line);padding:10px;border-radius:12px}.invoice-paper .doc-parties.only-client{grid-template-columns:1fr}.invoice-paper .doc-parties.only-client>div{max-width:440px;margin-left:auto;background:#f8fafc;padding:18px;border-radius:16px;border:1px solid #e5e7eb}@keyframes fadeUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}@keyframes floatOrb{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-24px) scale(1.05)}}
@media(max-width:850px){.top{padding:12px 16px}.brand img{max-height:42px}.top nav{display:flex;align-items:center;justify-content:flex-start;padding-bottom:4px}.top nav a{font-size:13px;white-space:nowrap}.top nav .pill{padding:8px 11px;font-size:12px;border-radius:12px}.hero h1{font-size:34px}.hero p{font-size:16px}.hero-actions .btn,.hero-actions .ghost-btn{padding:10px 13px;font-size:13px}.hero-panel{position:relative;left:auto;right:auto;bottom:auto;margin:-40px 16px 20px;grid-template-columns:1fr 1fr}.hero-panel div{padding:16px;border-bottom:1px solid rgba(15,23,42,.1)}.pro-hero,.pro-hero .slide{min-height:540px}.section{padding:46px 18px}.section-title{display:block}.section-title h2,.intro-band h2{font-size:28px}.cta{margin:20px 16px;padding:25px}.cta .btn{display:inline-block;margin-top:12px;padding:10px 14px;font-size:13px}.grid{gap:16px}.card-body{padding:18px}.icon-bubble{width:54px;height:54px;font-size:24px;border-radius:18px;margin:18px 0 0 18px}}

/* v7 layout, slider stability and professional homepage */
.pro-hero,.pro-hero .slide{height:660px;min-height:660px;max-height:660px}.slide{background-size:cover!important;background-position:center!important}.slide.active{display:flex}.hero-content{padding-bottom:110px}.stats-panel{transform:translateY(0)}.stats-panel b{font-size:clamp(20px,2.2vw,34px)!important}.stats-panel span{font-size:14px}.pro-hero:after{content:"";position:absolute;inset:auto 0 0;height:45%;z-index:1;background:linear-gradient(0deg,rgba(0,0,0,.38),transparent);pointer-events:none}.service-zone{background:radial-gradient(circle at top left,rgba(196,146,50,.14),transparent 36%),linear-gradient(180deg,var(--bg),#fff)}body.theme-dark .service-zone{background:radial-gradient(circle at top left,rgba(212,168,79,.16),transparent 36%),linear-gradient(180deg,#0b1120,#111827)}.premium-card{min-height:230px}.premium-card:after{content:"";position:absolute;right:-45px;bottom:-45px;width:130px;height:130px;border-radius:40px;background:rgba(196,146,50,.10);transform:rotate(25deg)}.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:30px;align-items:start}.contact-info{background:linear-gradient(135deg,var(--dark),#263244);color:#fff;border-radius:30px;padding:36px;box-shadow:0 25px 70px rgba(15,23,42,.2)}.contact-info .muted{color:#dbe3ee}.contact-line{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.16)}.contact-line b{display:block;color:#f8d793;margin-bottom:5px}.contact-form{margin:0;max-width:none}.panel-logo{min-height:70px;display:flex;align-items:center;margin-bottom:16px}.panel-logo img{max-width:185px;max-height:62px;background:#fff;border-radius:14px;padding:8px}.nav-badge{float:right;background:#c89b3c;color:#111827;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:900}.nav-badge.contact{background:#60a5fa;color:#082f49}.admin-notifs{display:flex;align-items:center;gap:8px}.notif{background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 12px;box-shadow:0 8px 20px rgba(15,23,42,.05);font-weight:900}.notif b{display:inline-grid;place-items:center;min-width:22px;height:22px;background:#ef4444;color:#fff;border-radius:999px;font-size:12px;margin-left:4px}@media(max-width:850px){.pro-hero,.pro-hero .slide{height:540px;min-height:540px;max-height:540px}.hero-content{padding-bottom:50px}.hero-actions{gap:8px}.hero-actions .btn,.hero-actions .ghost-btn,nav .pill{max-width:max-content;white-space:nowrap}.stats-panel{grid-template-columns:1fr 1fr!important;margin:-34px 14px 18px}.stats-panel div{padding:13px!important}.stats-panel b{font-size:20px!important}.stats-panel span{font-size:12px}.contact-grid{grid-template-columns:1fr}.contact-info{padding:24px}.admin-top{display:block}.admin-notifs{margin-top:8px;flex-wrap:wrap}.pro-hero .slide{padding:80px 18px 120px}.hero h1{font-size:31px;line-height:1.05}}

/* v8 admin logo correction */
.panel-logo{min-height:54px!important;max-height:70px!important;overflow:hidden!important}
.panel-logo img{width:auto!important;height:auto!important;max-width:145px!important;max-height:46px!important;object-fit:contain!important;padding:6px!important}
.login .panel-logo img{max-height:42px!important}
/* v10 mobile premium navigation and document compactness */
html,body{max-width:100%;overflow-x:hidden}.top{gap:18px}.top nav{min-width:0}.top nav a{white-space:nowrap}.top nav .pill{background:#dc2626!important;color:#fff!important;box-shadow:0 10px 24px rgba(220,38,38,.28)}
@media(max-width:850px){.top{position:sticky;display:flex;align-items:center;justify-content:space-between;padding:10px 10px;gap:8px}.brand{justify-content:flex-start;margin:0;min-width:0;flex:0 0 auto}.brand img{max-width:82px;max-height:34px}.brand span{font-size:14px;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}nav{flex:1 1 auto;display:flex;justify-content:flex-end;align-items:center;gap:3px;overflow:visible;min-width:0;font-size:clamp(9px,2.25vw,11px);font-weight:900}nav a{padding:7px 4px;border-radius:999px;background:rgba(15,23,42,.05);line-height:1;color:#172033!important;letter-spacing:-.03em}.top nav .pill{padding:8px 6px!important;background:#dc2626!important;color:#fff!important;box-shadow:0 8px 18px rgba(220,38,38,.25)}body.theme-dark nav a{background:rgba(255,255,255,.08);color:#f8fafc!important}.hero,.slide{min-height:520px}.hero h1{font-size:clamp(30px,9vw,48px)}.hero p{font-size:15px}.hero-actions .btn,.hero-actions .ghost-btn{padding:10px 14px;font-size:13px}.section{padding:46px 18px}}
.doc-table.compact th,.doc-table.compact td{padding:7px 8px;font-size:12.5px}.invoice-paper.compact-doc{max-width:820px;padding:30px}.invoice-paper.compact-doc .invoice-head{padding-bottom:14px}.invoice-paper.compact-doc h1{font-size:28px;margin:0 0 8px}.invoice-paper.compact-doc h2{font-size:20px}.invoice-paper.compact-doc p{font-size:12.5px;line-height:1.45}.line-note{display:block;color:#64748b;font-size:11.5px;margin-top:3px}.signature-box{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:28px}.signature-box div{border:1px solid #d1d5db;min-height:72px;padding:10px;font-size:12px}.legal-small{font-size:11px;color:#64748b;margin-top:16px}.devis-grid{display:grid;grid-template-columns:1.1fr .9fr .7fr .7fr .8fr .8fr 1.2fr;gap:6px;align-items:start}.devis-grid input,.devis-grid select{margin:0}.devis-head{font-size:12px;font-weight:900;color:#64748b;margin-bottom:6px}@media(max-width:900px){.devis-grid{grid-template-columns:1fr 1fr}.devis-head{display:none}}
@media print{.invoice-paper.compact-doc{max-width:none;padding:8mm}.doc-table.compact th,.doc-table.compact td{padding:5px 6px;font-size:11px}.signature-box div{min-height:55px}.legal-small{font-size:10px}}

/* v11: mobile hamburger premium header */
.drawer-backdrop,.mobile-drawer,.hamburger-btn,.mobile-devis-cta{display:none}
@media(max-width:850px){
  html,body{overflow-x:hidden!important;width:100%}
  .top.mobile-pro-header{position:sticky!important;top:0;z-index:1000;display:grid!important;grid-template-columns:minmax(92px,1fr) auto 42px;align-items:center;gap:8px;padding:9px 12px!important;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-bottom:1px solid rgba(15,23,42,.08);box-shadow:0 10px 30px rgba(15,23,42,.08)}
  body.theme-dark .top.mobile-pro-header{background:rgba(11,17,32,.96)}
  .top.mobile-pro-header .brand{margin:0!important;justify-content:flex-start!important;min-width:0;overflow:hidden}
  .top.mobile-pro-header .brand img{max-height:48px!important;max-width:142px!important;width:auto;object-fit:contain;display:block}
  .top.mobile-pro-header .brand span{font-size:17px!important;max-width:136px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .top.mobile-pro-header .desktop-nav{display:none!important}
  .mobile-devis-cta{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 12px;border-radius:999px;background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff!important;font-size:11px;font-weight:950;letter-spacing:-.02em;white-space:nowrap;box-shadow:0 10px 22px rgba(220,38,38,.28);border:1px solid rgba(255,255,255,.35);max-width:142px;text-align:center;line-height:1}
  .hamburger-btn{display:inline-flex;width:42px;height:42px;border:0;border-radius:15px;background:#111827;align-items:center;justify-content:center;flex-direction:column;gap:4px;box-shadow:0 12px 24px rgba(17,24,39,.22);cursor:pointer;padding:0}
  .hamburger-btn span{width:18px;height:2px;border-radius:999px;background:#fff;transition:.2s ease}
  .hamburger-btn.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .hamburger-btn.is-open span:nth-child(2){opacity:0}
  .hamburger-btn.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .drawer-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.44);z-index:1001;opacity:0;pointer-events:none;transition:.22s ease;backdrop-filter:blur(2px)}
  .drawer-backdrop.is-open{opacity:1;pointer-events:auto}
  .mobile-drawer{display:block;position:fixed;top:0;left:0;width:min(82vw,320px);height:100dvh;background:#fff;color:#172033;z-index:1002;transform:translateX(-105%);transition:transform .28s cubic-bezier(.22,.8,.2,1);padding:18px;box-shadow:24px 0 60px rgba(15,23,42,.22);border-radius:0 24px 24px 0}
  body.theme-dark .mobile-drawer{background:#101827;color:#f8fafc}
  .mobile-drawer.is-open{transform:translateX(0)}
  .drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid rgba(100,116,139,.18)}
  .drawer-head strong{font-size:20px}.drawer-close{border:0;background:#f1f5f9;border-radius:12px;width:38px;height:38px;font-size:24px;line-height:1;cursor:pointer;color:#111827}.theme-dark .drawer-close{background:#1f2937;color:#fff}
  .mobile-drawer a{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;margin:8px 0;border-radius:16px;background:rgba(15,23,42,.045);font-weight:900;color:inherit!important}.theme-dark .mobile-drawer a{background:rgba(255,255,255,.07)}
  .mobile-drawer .drawer-devis{background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff!important;box-shadow:0 12px 25px rgba(220,38,38,.25)}
  body.menu-open{overflow:hidden!important}
  .pro-hero,.pro-hero .slide{height:auto!important;min-height:575px!important;max-height:none!important}.pro-hero .slide{padding:86px 18px 170px!important}.hero-content{padding-bottom:0!important}.hero-panel.stats-panel{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:5;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:-118px 14px 24px!important;border-radius:22px!important;overflow:visible!important;box-shadow:0 18px 45px rgba(15,23,42,.18)!important;background:rgba(255,255,255,.96)!important}.hero-panel.stats-panel div{padding:14px 10px!important;border-right:0!important;border-bottom:1px solid rgba(15,23,42,.08)!important}.hero-panel.stats-panel div:nth-child(odd){border-right:1px solid rgba(15,23,42,.08)!important}.hero-panel.stats-panel b{font-size:20px!important}.hero-panel.stats-panel span{font-size:11px!important;line-height:1.2;display:block}.intro-band{margin-top:12px!important}
}
@media(max-width:380px){.top.mobile-pro-header{grid-template-columns:minmax(74px,1fr) auto 38px;gap:6px;padding:8px 9px!important}.top.mobile-pro-header .brand img{max-height:43px!important;max-width:112px!important}.mobile-devis-cta{height:34px;padding:0 9px;font-size:10px;max-width:118px}.hamburger-btn{width:38px;height:38px;border-radius:13px}.hamburger-btn span{width:16px}}
/* v12 galerie projets terminés */
.gallery-hero{margin:26px auto 0;max-width:1180px;padding:54px 24px;border-radius:34px;background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(30,64,175,.84)),url('../img/texture.jpg');color:#fff;box-shadow:0 26px 70px rgba(15,23,42,.18);overflow:hidden;position:relative}.gallery-hero:after{content:"";position:absolute;right:-80px;top:-100px;width:260px;height:260px;background:rgba(255,255,255,.12);border-radius:50%;filter:blur(2px)}.gallery-hero h1{font-size:clamp(2rem,4vw,4rem);margin:.25rem 0}.gallery-hero p{max-width:680px;color:rgba(255,255,255,.82);font-size:1.08rem}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:.78rem;font-weight:900;color:#fbbf24}.gallery-section{max-width:1180px;margin:auto}.gallery-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:28px}.gallery-tab{display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 28px rgba(15,23,42,.07);font-weight:900;color:#172033;text-decoration:none;transition:.25s}.gallery-tab span{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;border-radius:999px;background:#f1f5f9;font-size:.82rem}.gallery-tab:hover,.gallery-tab.active{transform:translateY(-2px);background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff}.gallery-tab.active span,.gallery-tab:hover span{background:rgba(255,255,255,.2);color:#fff}.gallery-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.gallery-title h2{margin:0;font-size:clamp(1.5rem,3vw,2.4rem)}.gallery-title p{max-width:620px;color:#64748b}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-item{position:relative;display:block;height:270px;border-radius:24px;overflow:hidden;background:#0f172a;box-shadow:0 18px 45px rgba(15,23,42,.13);color:#fff;text-decoration:none}.gallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s ease,filter .35s ease}.gallery-item:hover img{transform:scale(1.08);filter:saturate(1.08)}.gallery-item:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(15,23,42,.82),rgba(15,23,42,.08) 55%,transparent)}.gallery-item div{position:absolute;left:18px;right:18px;bottom:16px;z-index:2}.gallery-item strong{display:block;font-size:1.08rem}.gallery-item small{display:block;color:rgba(255,255,255,.76);margin-top:4px}.empty-state{padding:30px;border-radius:22px;background:#fff;border:1px dashed rgba(15,23,42,.15);color:#64748b}.theme-dark .gallery-tab,.theme-dark .empty-state{background:#111827;color:#f8fafc;border-color:rgba(255,255,255,.1)}.theme-dark .gallery-title p{color:#cbd5e1}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-item{height:230px}.gallery-title{display:block}.gallery-hero{margin:16px 12px 0;border-radius:26px;padding:38px 20px}.gallery-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px}.gallery-tab{white-space:nowrap;flex:0 0 auto}}
@media(max-width:560px){.gallery-grid{grid-template-columns:1fr}.gallery-item{height:235px}.gallery-section{padding-left:14px!important;padding-right:14px!important}}
/* v13 slider admin */
.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.admin-toolbar h1{margin:0}.admin-toolbar p{margin:4px 0 0;color:#64748b}.admin-grid-2{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr);gap:18px}.slider-preview-box{height:210px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:10px 0 16px}.slider-preview-box img{width:100%;height:100%;object-fit:cover}.slider-preview-box span{color:#94a3b8}.slider-list-admin{display:grid;gap:12px}.slider-row-admin{display:flex;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.05)}.slider-thumb{width:128px;height:78px;border-radius:14px;background:#e2e8f0;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#64748b;flex:0 0 auto}.slider-thumb img{width:100%;height:100%;object-fit:cover}.slider-row-info{flex:1}.slider-row-info small{display:block;margin:5px 0 8px;color:#64748b}.actions-line{display:flex;flex-wrap:wrap;gap:6px}@media(max-width:850px){.admin-toolbar,.admin-grid-2{display:block}.admin-toolbar .btn{display:inline-flex;margin-top:12px}.slider-row-admin{align-items:flex-start}.slider-thumb{width:104px;height:70px}}

/* v14 compact slider admin + smooth public slider */
.compact-slider-list{gap:8px!important}.compact-slider-row{display:grid!important;grid-template-columns:118px minmax(0,1fr) auto;align-items:center;gap:14px!important;padding:10px 12px!important;border-radius:16px!important;box-shadow:0 6px 18px rgba(15,23,42,.045)!important}.compact-slider-thumb{position:relative!important;width:118px!important;height:68px!important;border-radius:13px!important}.slider-status{position:absolute;left:7px;top:7px;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;box-shadow:0 6px 14px rgba(0,0,0,.16);backdrop-filter:blur(6px)}.slider-status.on{background:#16a34a;color:#fff}.slider-status.off{background:#dc2626;color:#fff}.compact-slider-info{min-width:0}.slider-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.slider-title-line strong{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slider-title-line small{font-size:12px;color:#64748b;white-space:nowrap}.compact-actions{justify-content:flex-end;flex-wrap:nowrap!important;gap:7px!important}.compact-actions .small-btn{margin:0!important;padding:8px 12px!important;border-radius:10px!important}.compact-actions .small-btn:nth-child(2){background:#334155!important}.compact-actions .danger{background:#c81e1e!important}
.pro-hero{background:#0b1120}.pro-hero .slide{display:flex!important;position:absolute;inset:0;opacity:0;visibility:hidden;transform:scale(1.035);transition:opacity 1.1s ease,transform 5.8s ease,visibility 1.1s ease;will-change:opacity,transform}.pro-hero .slide.active{opacity:1;visibility:visible;transform:scale(1);z-index:2}.pro-hero .slide:before{z-index:0}.pro-hero .hero-content{z-index:3;opacity:0;transform:translateY(18px);transition:opacity .75s ease .22s,transform .75s ease .22s}.pro-hero .slide.active .hero-content{opacity:1;transform:translateY(0)}.hero-dots{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:5;display:flex;gap:9px}.hero-dot{width:10px;height:10px;border-radius:999px;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.32);transition:.28s ease}.hero-dot.active{width:28px;background:#fff}.stats-panel{z-index:6}
@media(max-width:900px){.compact-slider-row{grid-template-columns:96px 1fr!important;align-items:start}.compact-slider-thumb{width:96px!important;height:62px!important}.compact-actions{grid-column:2;justify-content:flex-start!important;flex-wrap:wrap!important}.compact-actions .small-btn{padding:7px 9px!important;font-size:12px}.slider-title-line{display:block}.slider-title-line strong{display:block;white-space:normal}.slider-title-line small{display:block;margin-top:4px}.hero-dots{bottom:14px}}

/* v14.1 - mobile hero stats placement fix
   The home statistics must stay inside the slider area, not under the logo/header. */
@media(max-width:850px){
  .signature-home.pro-hero{
    position:relative!important;
    height:620px!important;
    min-height:620px!important;
    max-height:620px!important;
    overflow:hidden!important;
  }
  .signature-home.pro-hero .slide{
    height:620px!important;
    min-height:620px!important;
    max-height:620px!important;
    padding:92px 18px 205px!important;
  }
  .signature-home.pro-hero .hero-content{
    padding-bottom:0!important;
    max-width:100%!important;
  }
  .signature-home.pro-hero .hero-panel.stats-panel{
    position:absolute!important;
    left:14px!important;
    right:14px!important;
    bottom:52px!important;
    z-index:7!important;
    margin:0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    border-radius:20px!important;
    overflow:hidden!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 18px 45px rgba(15,23,42,.22)!important;
  }
  .signature-home.pro-hero .hero-panel.stats-panel div{
    padding:12px 10px!important;
    min-width:0!important;
    border-right:0!important;
    border-bottom:1px solid rgba(15,23,42,.08)!important;
  }
  .signature-home.pro-hero .hero-panel.stats-panel div:nth-child(odd){
    border-right:1px solid rgba(15,23,42,.08)!important;
  }
  .signature-home.pro-hero .hero-panel.stats-panel b{
    font-size:19px!important;
    line-height:1.05!important;
  }
  .signature-home.pro-hero .hero-panel.stats-panel span{
    font-size:11px!important;
    line-height:1.15!important;
    display:block!important;
  }
  .signature-home.pro-hero .hero-dots{
    bottom:20px!important;
  }
  .intro-band{
    margin-top:26px!important;
  }
}
@media(max-width:380px){
  .signature-home.pro-hero{height:650px!important;min-height:650px!important;max-height:650px!important;}
  .signature-home.pro-hero .slide{height:650px!important;min-height:650px!important;max-height:650px!important;padding-bottom:220px!important;}
}

/* v14.2 - Galerie mobile compacte */
.gallery-section{
  width:100%;
}
.gallery-tabs{
  align-items:center;
}
.gallery-tab{
  min-height:42px;
}
.gallery-item{
  isolation:isolate;
}
@media(max-width:760px){
  .gallery-hero{
    margin:12px 10px 0!important;
    padding:26px 16px!important;
    border-radius:22px!important;
  }
  .gallery-hero h1{
    font-size:28px!important;
    line-height:1.04!important;
    margin:4px 0 8px!important;
  }
  .gallery-hero p{
    font-size:13px!important;
    line-height:1.45!important;
    margin:0!important;
  }
  .gallery-section{
    padding:18px 10px 34px!important;
  }
  .gallery-tabs{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    overflow:visible!important;
    padding:0!important;
    margin-bottom:16px!important;
  }
  .gallery-tab{
    width:100%!important;
    min-width:0!important;
    flex:none!important;
    justify-content:space-between!important;
    gap:6px!important;
    padding:9px 10px!important;
    border-radius:14px!important;
    font-size:12px!important;
    line-height:1.15!important;
    box-shadow:0 6px 16px rgba(15,23,42,.07)!important;
    white-space:normal!important;
  }
  .gallery-tab span{
    min-width:22px!important;
    height:22px!important;
    font-size:11px!important;
    flex:0 0 auto!important;
  }
  .gallery-title{
    margin:4px 2px 12px!important;
  }
  .gallery-title h2{
    font-size:21px!important;
    line-height:1.15!important;
    margin-bottom:4px!important;
  }
  .gallery-title p{
    font-size:12px!important;
    line-height:1.35!important;
    margin:0!important;
  }
  .gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .gallery-item{
    height:138px!important;
    border-radius:14px!important;
    box-shadow:0 8px 20px rgba(15,23,42,.12)!important;
  }
  .gallery-item div{
    left:9px!important;
    right:9px!important;
    bottom:8px!important;
  }
  .gallery-item strong{
    font-size:12px!important;
    line-height:1.1!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .gallery-item small{
    font-size:10px!important;
    line-height:1.15!important;
    display:-webkit-box!important;
    -webkit-line-clamp:1!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    margin-top:2px!important;
  }
  .empty-state{
    padding:16px!important;
    border-radius:16px!important;
    font-size:13px!important;
  }
}
@media(max-width:390px){
  .gallery-tabs{gap:6px!important;}
  .gallery-tab{font-size:11px!important;padding:8px!important;border-radius:12px!important;}
  .gallery-grid{gap:7px!important;}
  .gallery-item{height:124px!important;border-radius:12px!important;}
}

/* v14.2 - Admin galerie compacte sur mobile */
@media(max-width:760px){
  .admin-main .admin-card h2{
    font-size:18px!important;
    margin-top:0!important;
  }
  .admin-main .admin-card{
    padding:14px!important;
    border-radius:16px!important;
  }
  .admin-main input,
  .admin-main textarea,
  .admin-main select{
    padding:10px 11px!important;
    border-radius:10px!important;
    margin:6px 0 10px!important;
    font-size:13px!important;
  }
  .admin-main label{
    font-size:12px!important;
  }
  .admin-main .btn{
    padding:9px 12px!important;
    font-size:12px!important;
    border-radius:12px!important;
  }
  .admin-main .small-btn{
    padding:7px 9px!important;
    font-size:11px!important;
    border-radius:9px!important;
    margin:1px!important;
  }
  .admin-main .preview-img{
    max-height:52px!important;
    max-width:76px!important;
    object-fit:cover!important;
    border-radius:9px!important;
  }
  .admin-main .table th,
  .admin-main .table td{
    padding:8px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
}

/* v14.3 - Galerie popup et titre compact */
.gallery-hero{padding-top:42px!important;padding-bottom:42px!important;}
.gallery-hero p{display:none!important;}
.gallery-modal{position:fixed;inset:0;z-index:9999;background:rgba(2,6,23,.86);display:none;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(8px)}
.gallery-modal.is-open{display:flex}
.gallery-modal-box{position:relative;width:min(980px,96vw);max-height:90vh;background:#0f172a;border-radius:22px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.gallery-modal-box img{display:block;width:100%;max-height:76vh;object-fit:contain;background:#020617}
.gallery-modal-caption{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:13px 16px;color:#fff;background:linear-gradient(135deg,#0f172a,#111827)}
.gallery-modal-caption strong{font-size:15px;line-height:1.2}.gallery-modal-caption small{color:#cbd5e1;text-align:right;font-size:12px;line-height:1.25;max-width:55%}
.gallery-modal-close{position:fixed;top:18px;right:18px;z-index:10000;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:#ef4444;color:#fff;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 14px 34px rgba(239,68,68,.35)}
.gallery-item{cursor:zoom-in}
body.gallery-modal-open{overflow:hidden}
@media(max-width:760px){
  .gallery-hero{padding:22px 16px!important}.gallery-hero h1{margin-bottom:0!important}.gallery-modal{padding:10px}.gallery-modal-box{width:100%;border-radius:16px}.gallery-modal-box img{max-height:72vh}.gallery-modal-caption{padding:10px 12px;display:block}.gallery-modal-caption small{display:block;max-width:100%;text-align:left;margin-top:3px}.gallery-modal-close{top:10px;right:10px;width:38px;height:38px;font-size:24px}
}
/* v16 employees/customers */
.compact-form textarea{min-height:70px}.filter-row{display:flex;gap:10px;align-items:center;margin:10px 0 16px}.filter-row input{max-width:220px}.workday-form{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin:14px 0}.mini-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:16px 0}.cal-day{min-height:64px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:8px;display:flex;flex-direction:column;gap:3px}.cal-day.worked{background:#ecfdf5;border-color:#86efac}.cal-day b{font-size:13px}.cal-day span{font-size:12px;font-weight:800;color:#047857}.cal-day small{font-size:11px;color:#0f172a}.badge.no{background:#fee2e2;color:#991b1b}.badge.ok{background:#dcfce7;color:#166534}.badge.info{background:#dbeafe;color:#1d4ed8}.badge.warn{background:#fef3c7;color:#92400e}@media(max-width:760px){.mini-calendar{grid-template-columns:repeat(4,1fr);gap:6px}.cal-day{min-height:50px;padding:6px;border-radius:10px}.filter-row{flex-wrap:wrap}.table td,.table th{font-size:12px}.workday-form{padding:12px}}

/* v17 employees compact calendar */
.employees-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}.employees-toolbar h2{margin:0;font-size:24px}.employees-toolbar p{margin:4px 0 0}.employee-layout-v17{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.employee-calendar-panel,.employee-list-panel{padding:18px}.employee-headline{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}.employee-headline h2{margin:8px 0 2px;font-size:22px}.pay-mini{min-width:128px;background:linear-gradient(135deg,#111827,#263447);color:#fff;border-radius:18px;padding:12px;text-align:right}.pay-mini b,.pay-mini span{display:block}.pay-mini b{font-size:19px}.pay-mini span{font-size:12px;color:#e5e7eb}.v17-month{justify-content:flex-start;margin:8px 0 12px}.v17-month input{height:40px;padding:8px 12px;margin:0}.v17-calendar{gap:7px;margin:10px 0}.v17-calendar .cal-day{appearance:none;text-align:left;cursor:pointer;min-height:58px;border-radius:13px;padding:8px;background:linear-gradient(135deg,#fff,#f8fafc);transition:.18s ease;position:relative}.v17-calendar .cal-day:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.08)}.v17-calendar .cal-day.worked{background:linear-gradient(135deg,#dcfce7,#bbf7d0);border-color:#22c55e;box-shadow:0 8px 20px rgba(34,197,94,.12)}.v17-calendar .cal-day strong{position:absolute;right:8px;top:6px;width:22px;height:22px;border-radius:50%;background:#16a34a;color:#fff;display:grid;place-items:center;font-size:20px;line-height:1}.v17-calendar .cal-day em{font-style:normal;color:#94a3b8;font-weight:900;position:absolute;right:10px;bottom:6px}.month-summary{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px;margin-top:12px}.month-summary span{color:#64748b;font-weight:800}.month-summary b{font-size:15px}.side-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.side-title h2{font-size:18px;margin:0}.side-title span{background:#111827;color:#fff;border-radius:999px;padding:4px 10px;font-weight:900}.employee-list-v17{display:flex;flex-direction:column;gap:8px}.employee-item{display:grid;grid-template-columns:42px 1fr 12px;gap:10px;align-items:center;border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:10px;transition:.18s ease}.employee-item.active,.employee-item:hover{border-color:#c89b3c;box-shadow:0 12px 24px rgba(200,155,60,.12);transform:translateY(-1px)}.employee-item .avatar{width:42px;height:42px;border-radius:14px;background:#111827;color:#fff;display:grid;place-items:center;font-weight:900}.employee-item b{display:block;font-size:14px}.employee-item small{display:block;color:#64748b;font-size:11px;margin-top:2px}.status-dot{width:10px;height:10px;border-radius:50%;background:#ef4444}.status-dot.on{background:#22c55e}.employee-actions{display:flex;gap:6px;justify-content:flex-end;margin:-4px 4px 4px}.employee-actions .small-btn{font-size:11px;padding:6px 9px;border-radius:9px}.compact-payroll input,.compact-payroll select{padding:10px 12px}.v17-modal{position:fixed;inset:0;background:rgba(2,6,23,.62);backdrop-filter:blur(7px);display:none;align-items:center;justify-content:center;z-index:9999;padding:16px}.v17-modal.open{display:flex}.v17-modal-card{position:relative;width:min(780px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:24px;border:1px solid rgba(255,255,255,.2);box-shadow:0 30px 100px rgba(2,6,23,.35);padding:22px}.v17-modal-card h2{margin-top:0}.modal-x{position:absolute;right:12px;top:12px;border:0;background:#ef4444;color:#fff;width:36px;height:36px;border-radius:999px;font-size:24px;line-height:1;cursor:pointer}.day-card{width:min(620px,96vw)}.x-check{display:flex!important;align-items:center;gap:12px;margin:8px 0 16px;padding:14px;border-radius:18px;background:linear-gradient(135deg,#fee2e2,#fff7ed);border:1px solid #fecaca;cursor:pointer}.x-check input{width:auto;margin:0;transform:scale(1.25)}.x-check span{width:40px;height:40px;border-radius:13px;background:#dc2626;color:#fff;display:grid;place-items:center;font-size:34px;font-weight:900;line-height:1}.x-check b{color:#7f1d1d}.empty-state{padding:30px;text-align:center;color:#64748b}.empty-state h2{color:#111827}@media(max-width:1000px){.employee-layout-v17{grid-template-columns:1fr}.employee-list-panel{order:2}.employee-calendar-panel{order:1}.employees-toolbar{align-items:flex-start}.employees-toolbar .btn{white-space:nowrap}}@media(max-width:620px){.employees-toolbar{display:block}.employees-toolbar .btn{width:100%;margin-top:10px;padding:11px}.employee-calendar-panel,.employee-list-panel{padding:12px;border-radius:18px}.employee-headline{display:block}.pay-mini{text-align:left;margin-top:10px}.v17-calendar{grid-template-columns:repeat(7,1fr)!important;gap:4px}.v17-calendar .cal-day{min-height:42px;border-radius:9px;padding:5px}.v17-calendar .cal-day b{font-size:11px}.v17-calendar .cal-day span,.v17-calendar .cal-day small{font-size:9px}.v17-calendar .cal-day strong{width:16px;height:16px;font-size:16px;right:4px;top:4px}.month-summary{grid-template-columns:1fr;gap:4px}.employee-item{grid-template-columns:36px 1fr 10px;padding:8px}.employee-item .avatar{width:36px;height:36px}.v17-modal-card{padding:16px}.v17-modal-card .row{grid-template-columns:1fr}.x-check{padding:10px}.x-check span{width:34px;height:34px;font-size:28px}}

/* v18 employee photo + employee portal */
.employee-profile-line{display:flex;align-items:center;gap:14px}.employee-photo-lg{width:66px;height:66px;border-radius:20px;object-fit:cover;border:2px solid #fff;box-shadow:0 10px 24px rgba(15,23,42,.12)}.employee-photo-lg.placeholder{background:#111827;color:#fff;display:grid;place-items:center;font-size:28px;font-weight:900}.employee-item .avatar.img{object-fit:cover;border:0}.employee-form-top{display:flex;align-items:center;gap:16px;margin-bottom:14px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:12px}.employee-form-top img{width:72px;height:72px;border-radius:18px;object-fit:cover}.employee-form-top small{display:block;color:#64748b;margin-top:5px}.employee-login-body,.employee-portal-body{min-height:100vh;background:radial-gradient(circle at top left,#fef3c7,transparent 32%),linear-gradient(135deg,#0f172a,#1e293b 58%,#111827);font-family:Inter,Arial,sans-serif}.employee-login-card{width:min(430px,92vw);margin:8vh auto;background:rgba(255,255,255,.96);border-radius:28px;padding:30px;box-shadow:0 30px 100px rgba(2,6,23,.35)}.employee-login-brand{height:72px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}.employee-login-brand img{max-height:68px;max-width:210px;object-fit:contain}.employee-login-card h1{margin:0 0 6px;color:#111827}.employee-login-card p{color:#64748b;margin:0 0 18px}.employee-login-card label{display:block;font-weight:800;margin:12px 0 6px}.employee-login-card input{width:100%;height:46px;border-radius:14px;border:1px solid #dbe2ea;padding:0 14px}.employee-login-btn{width:100%;margin-top:18px}.employee-back{display:block;text-align:center;margin-top:16px;color:#64748b;font-weight:800}.employee-portal{width:min(1120px,94vw);margin:24px auto}.employee-portal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;background:rgba(255,255,255,.96);border-radius:26px;padding:18px;box-shadow:0 18px 50px rgba(2,6,23,.18)}.employee-identity{display:flex;align-items:center;gap:14px}.employee-identity img,.employee-identity span{width:72px;height:72px;border-radius:22px;object-fit:cover;background:#111827;color:#fff;display:grid;place-items:center;font-size:30px;font-weight:900}.employee-identity h1{font-size:24px;margin:0;color:#111827}.employee-identity p{margin:5px 0 0;color:#64748b;font-weight:800}.employee-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}.employee-kpis div,.employee-card{background:rgba(255,255,255,.96);border-radius:24px;padding:18px;box-shadow:0 18px 50px rgba(2,6,23,.14)}.employee-kpis span{display:block;color:#64748b;font-weight:800;font-size:13px}.employee-kpis b{display:block;color:#111827;font-size:28px;margin-top:4px}.employee-card{margin-bottom:16px}.employee-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.employee-card-head h2,.employee-card h2{margin:0 0 12px;color:#111827}.employee-card-head form{display:flex;gap:8px}.employee-readonly-calendar .cal-day{cursor:default}.employee-payroll-list{display:grid;gap:10px}.employee-payroll-list a{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px;color:#111827}.employee-payroll-list span{color:#64748b}.employee-payroll-list strong{color:#16a34a}@media(max-width:720px){.employee-portal-head{align-items:flex-start}.employee-identity img,.employee-identity span{width:58px;height:58px;border-radius:18px}.employee-identity h1{font-size:18px}.employee-kpis{grid-template-columns:1fr}.employee-card-head{display:block}.employee-card-head form{margin-top:10px}.employee-payroll-list a{grid-template-columns:1fr}.employee-profile-line{align-items:flex-start}.employee-photo-lg{width:54px;height:54px;border-radius:16px}}

/* v18.1 REAL employee mobile compact fix */
.employee-rate-chip{
  display:inline-flex!important;align-items:center;gap:7px;margin:6px 0 0!important;
  background:#dcfce7;color:#166534;border:1px solid #86efac;border-radius:999px;
  padding:5px 9px;font-weight:900;font-size:12px;line-height:1.1;box-shadow:none!important;
}
.employee-rate-chip strong{font-size:12px;line-height:1;white-space:nowrap}.employee-rate-chip small{font-size:11px;color:#15803d;font-weight:900;white-space:nowrap}
.employee-kpis.employee-kpis-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.employee-kpis.employee-kpis-compact div{padding:11px 10px;border-radius:16px;text-align:center}
.employee-kpis.employee-kpis-compact span{font-size:11px;line-height:1.1;white-space:normal}.employee-kpis.employee-kpis-compact b{font-size:17px;line-height:1.05;margin-top:4px;white-space:nowrap}
.employee-readonly-calendar{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:5px!important}
.employee-readonly-calendar .cal-day{
  min-height:44px!important;height:44px!important;padding:5px!important;border-radius:10px!important;
  display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;position:relative!important;overflow:hidden!important;
}
.employee-readonly-calendar .cal-day b{font-size:11px!important;line-height:1!important;position:relative;z-index:2}
.employee-readonly-calendar .cal-day.worked{background:#fff!important;border-color:#fecaca!important;box-shadow:inset 0 0 0 1px rgba(239,68,68,.10)!important}
.employee-readonly-calendar .cal-day .work-x,
.employee-readonly-calendar .cal-day strong{
  position:absolute!important;right:4px!important;bottom:4px!important;top:auto!important;
  width:15px!important;height:15px!important;border-radius:5px!important;background:#dc2626!important;color:#fff!important;
  display:grid!important;place-items:center!important;font-size:12px!important;line-height:1!important;font-weight:900!important;
}
.employee-readonly-calendar .cal-day span,
.employee-readonly-calendar .cal-day small{display:none!important}
@media(max-width:720px){
  .employee-portal{width:96vw;margin:10px auto}.employee-portal-head{padding:12px;border-radius:18px;gap:8px}.employee-identity{gap:9px}.employee-identity img,.employee-identity span{width:50px!important;height:50px!important;border-radius:15px!important}.employee-identity h1{font-size:16px!important;line-height:1.1}.employee-rate-chip{padding:4px 7px;font-size:10px;gap:5px}.employee-rate-chip strong{font-size:10px}.employee-rate-chip small{font-size:10px}
  .employee-kpis.employee-kpis-compact{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:9px 0!important}.employee-kpis.employee-kpis-compact div{padding:8px 5px!important;border-radius:13px!important}.employee-kpis.employee-kpis-compact span{font-size:9.5px!important}.employee-kpis.employee-kpis-compact b{font-size:14px!important}.employee-card{padding:12px!important;border-radius:18px!important}.employee-card-head h2,.employee-card h2{font-size:16px!important}.employee-card-head form{display:grid!important;grid-template-columns:1fr auto;gap:6px}.employee-card-head input{min-width:0;width:100%}.employee-card-head .small-btn{padding:8px 10px;font-size:11px}.employee-readonly-calendar{gap:4px!important}.employee-readonly-calendar .cal-day{min-height:38px!important;height:38px!important;border-radius:8px!important;padding:4px!important}.employee-readonly-calendar .cal-day b{font-size:10px!important}.employee-readonly-calendar .cal-day .work-x,.employee-readonly-calendar .cal-day strong{width:13px!important;height:13px!important;border-radius:4px!important;font-size:10px!important;right:3px!important;bottom:3px!important}
}
@media(max-width:380px){.employee-kpis.employee-kpis-compact span{font-size:8.5px!important}.employee-kpis.employee-kpis-compact b{font-size:12.5px!important}.employee-readonly-calendar .cal-day{height:34px!important;min-height:34px!important}}

/* v18.2 employee portal cleanup */
.employee-portal-signature{
  margin:18px auto 8px;
  text-align:center;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  color:#94a3b8;
}
@media(max-width:640px){
  .employee-portal-signature{font-size:11px;margin-top:14px}
}

/* v19 comptabilité */
.accounting-filter{align-items:end;margin-bottom:14px}.accounting-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.metric-card{background:#fff;border:1px solid #e6eaf0;border-radius:18px;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.06)}.metric-card span{display:block;color:#64748b;font-weight:700;font-size:13px}.metric-card b{font-size:24px;color:#0f172a}.metric-card.red b,.money-minus{color:#c81e1e}.metric-card.green b,.money-plus{color:#07883f}.metric-card.gold b{color:#c69224}.inline-pay{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.inline-pay input{max-width:120px}.inline-pay select{max-width:150px}.accounting-two{align-items:flex-start}.accounting-two>.admin-card{width:100%}
@media(max-width:900px){.accounting-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-card{padding:12px;border-radius:14px}.metric-card b{font-size:18px}.inline-pay{display:grid;grid-template-columns:1fr 1fr}.inline-pay .small-btn{grid-column:span 2}.accounting-two{display:block}.accounting-two>.admin-card{margin-bottom:12px}}
