@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#152b3c;--muted:#788a96;--line:#e4ebef;--blue:#286cdf;--navy:#10293a;--bg:#f5f8fb;--shadow:0 12px 38px rgba(18,44,60,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px/1.55 'DM Sans',sans-serif;color:var(--ink)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:clamp(27px,3vw,38px);font-weight:800;letter-spacing:-1.4px;margin-bottom:5px}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:17px}a{text-decoration:none;color:inherit}.muted{color:var(--muted)}.app-shell{display:flex;min-height:100vh}.sidebar{width:254px;flex-shrink:0;background:var(--navy);color:#fff;display:flex;flex-direction:column;padding:31px 18px;min-height:100vh;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:13px;padding:0 12px 47px}.brand-symbol{display:grid;place-items:center;background:linear-gradient(135deg,#64b5fa,#2677ed);border-radius:13px;color:white;font:800 23px Manrope;width:43px;height:43px;box-shadow:0 8px 18px #1359b933}.brand strong{font:800 22px Manrope;display:block;letter-spacing:-.8px}.brand small{display:block;color:#9bb2c3;font-size:11px;margin-top:-4px}.side-label{color:#668397;font-size:10px;letter-spacing:1.6px;padding:0 17px 16px;font-weight:700}.side-nav{display:flex;flex-direction:column;gap:7px}.nav-link{display:flex;gap:13px;align-items:center;padding:12px 15px;border-radius:11px;font-size:14px;color:#abc1d0;font-weight:600}.nav-link:hover,.nav-link.active{background:#24445d;color:#fff}.nav-link.active{box-shadow:inset 3px 0 #65b3ff}.nav-icon{font-size:19px;width:23px;text-align:center}.side-bottom{margin-top:auto;border-top:1px solid #29465a;padding:23px 4px 2px;display:flex;align-items:center;gap:10px}.avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#375c75;font-weight:800}.account-name{font-weight:700;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.account-name small{display:block;color:#95adbd;font-size:10px;font-weight:400}.logout-link{font-size:22px;color:#9fb9c9}.main-wrap{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:75px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 45px;justify-content:space-between}.topbar-caption{font-size:12px;color:var(--muted)}.topbar-user{font-size:13px;font-weight:700}.mobile-brand{display:none}.content{width:100%;max-width:1440px;margin:0 auto;padding:42px 48px 70px;flex:1}.footer{text-align:center;color:#9daeb7;padding:0 12px 25px;font-size:11px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:38px}.page-head .muted{margin-bottom:0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2.1px;color:#327aca;margin-bottom:6px}.wave{font-size:27px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:10px;padding:11px 18px;font:700 13px 'DM Sans',sans-serif;cursor:pointer;white-space:nowrap}.btn-primary{background:#2674e8;color:white;box-shadow:0 7px 15px #2674e824}.btn-primary:hover{background:#135ecf}.btn-outline{border:1px solid var(--line);background:white;color:var(--ink)}.btn-danger{background:#fff2f2;color:#bf4040}.btn-full{width:100%;justify-content:space-between}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:44px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 23px;display:flex;align-items:flex-start;flex-direction:column;box-shadow:var(--shadow)}.stat-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;font-size:19px;margin-bottom:20px}.stat-icon.blue{background:#eaf3ff;color:#2277df}.stat-icon.green{background:#e5f8ef;color:#18a36a}.stat-icon.amber{background:#fff1df;color:#d18c2a}.stat-icon.violet{background:#efeaff;color:#795fc4}.stat-label{font-size:12px;color:#788b97}.stat-number{font:800 35px/1.4 Manrope,sans-serif;letter-spacing:-1px}.stat-note{color:#a0afba;font-size:11px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px;gap:10px}.section-head h2{margin:0}.section-head p{font-size:12px;margin-bottom:0}.text-link{color:var(--blue);font-weight:700;font-size:12px}.vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.vehicle-card{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;box-shadow:var(--shadow);transition:transform .2s,border-color .2s}.vehicle-card:hover{transform:translateY(-3px);border-color:#a4c8f7}.vehicle-icon{height:116px;border-radius:11px;background:linear-gradient(135deg,#f0f6fe,#e4eefb);display:grid;place-items:center;font-size:48px;margin-bottom:18px}.vehicle-icon.boat{background:linear-gradient(135deg,#e8f8fa,#dbeefa)}.vehicle-icon.motorcycle{background:linear-gradient(135deg,#f1eafa,#e9e6f7)}.vehicle-meta{display:flex;justify-content:space-between;gap:8px;align-items:center}.mini-label{text-transform:uppercase;font-size:10px;letter-spacing:1px;color:#8595a5;font-weight:800}.status{font-size:10px;padding:3px 8px;border-radius:30px}.status-active{background:#e9f8ed;color:#24955a}.status-inactive{background:#f1f2f4;color:#8795a0}.vehicle-card h3{margin:9px 0 2px}.vehicle-card p{font-size:12px}.vehicle-card-foot{border-top:1px solid #edf1f4;padding-top:13px;margin-top:18px;display:flex;justify-content:space-between;color:#899cab;font-size:11px}.empty-state{border:1px dashed #cbd7e2;background:white;border-radius:17px;text-align:center;padding:66px 20px}.empty-state .empty-icon{font-size:56px;display:block;margin-bottom:15px}.empty-state p{color:var(--muted);margin-bottom:24px}.coming-next{margin-top:42px;background:#eaf1f9;border-radius:13px;padding:18px 22px;color:#496779;font-size:13px}.coming-next strong{color:#1f455d}.coming-next p{margin:3px 0 0}.back-link{display:inline-block;color:#527ea1;font-size:12px;margin-bottom:18px;font-weight:700}.form-panel,.detail-panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:28px;box-shadow:var(--shadow)}.form-panel{max-width:900px}.form-panel h2{padding-bottom:12px;border-bottom:1px solid #edf1f4;margin:0 0 22px}.form-panel h2:not(:first-child){margin-top:30px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 23px}.form-panel label,.login-card label{display:block;font-weight:700;font-size:12px;margin-bottom:7px}.form-panel input:not([type=checkbox]),.form-panel select,.form-panel textarea,.login-card input{display:block;width:100%;border:1px solid #dce5eb;border-radius:9px;padding:11px 12px;font:inherit;color:var(--ink);background:#fff;outline:none;margin-bottom:15px}.form-panel input:focus,.form-panel select:focus,.form-panel textarea:focus,.login-card input:focus{border-color:#4b93ed;box-shadow:0 0 0 3px #2674e811}.checkbox-wrap label{display:inline-block;margin-left:6px}.checkbox-wrap input{accent-color:var(--blue)}.form-actions{border-top:1px solid var(--line);padding-top:22px;margin-top:27px;display:flex;justify-content:flex-end;gap:10px}.form-panel ul{color:#c64747;font-size:12px}.detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.detail-main,.detail-side{display:flex;flex-direction:column;gap:22px}.detail-hero{background:linear-gradient(135deg,#eef6ff,#dceafa);border-radius:17px;min-height:240px;display:flex;align-items:center;justify-content:center;flex-direction:column}.detail-hero span{font-size:66px}.detail-hero strong{font:800 21px Manrope}.detail-hero small{color:#708ba1}.details{margin:0}.details>div{display:flex;justify-content:space-between;border-bottom:1px solid #edf1f4;padding:14px 0;gap:15px}.details>div:last-child{border-bottom:0}.details dt,.counter span{color:var(--muted);font-size:12px}.details dd{margin:0;font-weight:700;font-size:13px;text-align:right}.counter{border-top:1px solid var(--line);padding:15px 0;display:flex;align-items:center;justify-content:space-between}.counter strong{font:800 19px Manrope}.notes{white-space:pre-line;color:#607789;font-size:13px}.danger-zone{border-color:#f8e5e5}.danger-zone h2{color:#a54a4a}.flash{padding:13px 18px;border-radius:10px;margin-bottom:20px;font-size:13px}.flash-success{background:#e6f8ee;color:#167848}.flash-error{background:#ffe8e8;color:#ad3c3c}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 75% 15%,#dceafa,transparent 45%),#f4f8fc}.login-card{width:min(100%,420px);background:#fff;border:1px solid #e4edf3;border-radius:22px;padding:38px;box-shadow:0 25px 60px #123b5a14}.login-brand{display:flex;align-items:center;gap:13px;margin-bottom:43px}.login-brand strong{display:block;font:800 22px Manrope}.login-brand small{color:var(--muted);font-size:11px}.login-card h1{font-size:27px}.login-card .muted{font-size:13px;margin-bottom:31px}.login-card form .btn{margin-top:10px}.login-foot{text-align:center;color:#95a6b2;font-size:11px;margin-top:24px}.mobile-brand{font-weight:800;color:var(--blue)}
@media(max-width:1120px){.stats-grid{grid-template-columns:repeat(2,1fr)}.vehicle-grid{grid-template-columns:repeat(2,1fr)}.content{padding:35px 30px}}@media(max-width:760px){.sidebar{width:75px;padding:25px 10px}.sidebar .brand{padding:0 6px 35px}.sidebar .brand>span:last-child,.side-label,.nav-link:not(.active) .nav-icon+span,.account-name,.logout-link{display:none}.side-nav{align-items:center}.nav-link{font-size:0;justify-content:center;padding:12px}.nav-icon{font-size:20px}.side-bottom{justify-content:center}.topbar{padding:0 20px}}@media(max-width:560px){.sidebar{display:none}.mobile-brand{display:block}.topbar-caption{display:none}.topbar{height:61px}.content{padding:27px 18px 50px}.page-head{align-items:flex-start;flex-direction:column;margin-bottom:25px}.page-head .btn{width:100%}.stats-grid{gap:10px}.stat-card{padding:16px}.stat-number{font-size:29px}.vehicle-grid,.form-grid,.detail-grid{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.form-panel,.detail-panel{padding:20px}.form-actions{flex-direction:column-reverse}.form-actions .btn{width:100%}.login-card{padding:28px}}

/* FLEET V1.1 — palette sombre par défaut et thème clair à la demande */
:root,html[data-theme="dark"]{color-scheme:dark;--ink:#e8f1fc;--muted:#94a7bf;--line:#263950;--blue:#40a6ff;--navy:#071624;--bg:#0b1523;--surface:#111f31;--surface-2:#17283d;--field:#0d1a2b;--shadow:0 14px 42px rgba(0,0,0,.20)}
html[data-theme="light"]{color-scheme:light;--ink:#152b3c;--muted:#788a96;--line:#e4ebef;--blue:#286cdf;--navy:#10293a;--bg:#f5f8fb;--surface:#fff;--surface-2:#eff5fa;--field:#fff;--shadow:0 12px 38px rgba(18,44,60,.045)}
html{background:var(--bg)}body{background:var(--bg);color:var(--ink);transition:background-color .2s,color .2s}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .vehicle-card,html[data-theme="dark"] .empty-state,html[data-theme="dark"] .form-panel,html[data-theme="dark"] .detail-panel{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .sidebar{background:#081624;border-right:1px solid #203951}
html[data-theme="dark"] .nav-link:hover,html[data-theme="dark"] .nav-link.active{background:#193552}
html[data-theme="dark"] .stat-icon.blue{background:#143d5f;color:#74c2ff}
html[data-theme="dark"] .stat-icon.green{background:#163d34;color:#65dcb2}
html[data-theme="dark"] .stat-icon.amber{background:#47351d;color:#ffca79}
html[data-theme="dark"] .stat-icon.violet{background:#372d53;color:#c8b1ff}
html[data-theme="dark"] .vehicle-icon{background:linear-gradient(135deg,#192e47,#1d3c59)}
html[data-theme="dark"] .vehicle-icon.boat{background:linear-gradient(135deg,#123443,#1b5064)}
html[data-theme="dark"] .vehicle-icon.motorcycle{background:linear-gradient(135deg,#2c2a48,#263851)}
html[data-theme="dark"] .vehicle-card-foot,html[data-theme="dark"] .details>div,html[data-theme="dark"] .form-panel h2,html[data-theme="dark"] .form-actions{border-color:var(--line)}
html[data-theme="dark"] .btn-outline{background:#17283e;color:var(--ink);border-color:#35506b}
html[data-theme="dark"] .btn-outline:hover{background:#203950}
html[data-theme="dark"] .status-active{background:#173d32;color:#81e7b6}
html[data-theme="dark"] .status-inactive{background:#283441;color:#b0bbc9}
html[data-theme="dark"] .coming-next{background:#132940;color:#a9cee9}
html[data-theme="dark"] .coming-next strong{color:#e2f3ff}
html[data-theme="dark"] .detail-hero{background:linear-gradient(135deg,#173047,#244663)}
html[data-theme="dark"] .detail-hero small,html[data-theme="dark"] .notes{color:var(--muted)}
html[data-theme="dark"] .form-panel input:not([type=checkbox]),html[data-theme="dark"] .form-panel select,html[data-theme="dark"] .form-panel textarea{background:var(--field);border-color:#344860;color:var(--ink)}
html[data-theme="dark"] .form-panel input:focus,html[data-theme="dark"] .form-panel select:focus,html[data-theme="dark"] .form-panel textarea:focus{border-color:#3897fa}
html[data-theme="dark"] .flash-success{background:#143a2e;color:#a6efcd}
html[data-theme="dark"] .flash-error{background:#4d242e;color:#ffb9c3}
html[data-theme="dark"] .danger-zone{border-color:#49303c}
html[data-theme="dark"] .btn-danger{background:#442631;color:#ffb5c1}
.topbar{background:var(--surface);border-color:var(--line)}.footer{color:var(--muted)}.eyebrow{color:var(--blue)}.text-link{color:var(--blue)}.back-link{color:var(--blue)}
.theme-toggle{border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:999px;padding:9px 13px;font:600 12px 'DM Sans',sans-serif;cursor:pointer;display:inline-flex;gap:8px;align-items:center;white-space:nowrap}
.theme-toggle:hover{border-color:var(--blue)}.topbar-actions{display:flex;align-items:center;gap:15px}
/* Portail de connexion — aucun champ n'est intégré à l'image, le formulaire reste accessible */
.auth-page{padding:0;display:block;min-height:100vh;background:#071624}
.login-layout{display:grid;grid-template-columns:minmax(280px,28%) minmax(0,72%);min-height:100vh;background:#091728;color:#edf6ff}
.login-left{display:flex;flex-direction:column;padding:clamp(26px,4vw,64px) clamp(24px,3.4vw,55px);position:relative;z-index:1}
.login-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.login-mark{display:flex;align-items:center;gap:12px}.login-mark strong{font:800 28px Manrope;letter-spacing:-1px;display:block}.login-mark small{font-size:11px;color:#94b4d3;letter-spacing:2px}
.login-content{width:100%;max-width:470px;margin:auto 0;padding:55px 0}
.login-overline{letter-spacing:2.5px;color:#4eb7ff;font-weight:800;font-size:11px;margin-bottom:16px}
.login-content h1{font-size:clamp(32px,3.1vw,50px);line-height:1.13;letter-spacing:-1.7px;margin:0 0 19px}
.login-content h1 em{font-style:normal;color:#4bb5ff}.login-subtitle{font-size:15px;color:#a5bacf;line-height:1.75;margin:0 0 35px}
.login-form label{font-weight:700;font-size:13px;display:block;margin:16px 0 8px;color:#e7f2ff}
.login-form input{display:block;width:100%;padding:15px 16px;background:#0c1d30;border:1px solid #31516b;border-radius:11px;color:#f2f7ff;font:inherit;outline:none}
.login-form input::placeholder{color:#738fa9}.login-form input:focus{border-color:#42aafb;box-shadow:0 0 0 3px #279df929}
.login-form .btn{margin-top:27px;padding:15px 18px;font-size:14px;justify-content:center;width:100%;background:#178df3}
.login-help{font-size:12px;color:#8ba7c2;margin-top:23px;line-height:1.6}
.login-bottom{border-top:1px solid #254158;padding-top:19px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#91a7bc;font-size:11px}
.login-visual{min-height:100vh;background:#071829;position:relative;overflow:hidden}
.login-visual img{height:100%;width:100%;object-fit:cover;object-position:center center;position:absolute;inset:0}
.login-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,23,40,.22),transparent 32%),linear-gradient(0deg,rgba(5,17,31,.85),transparent 42%)}
.visual-caption{position:absolute;z-index:1;left:clamp(25px,5vw,70px);right:40px;bottom:clamp(35px,6vw,90px);color:#fff}
.visual-caption .visual-tag{border:1px solid #74b7e777;background:#09294488;backdrop-filter:blur(10px);display:inline-block;padding:7px 14px;border-radius:30px;font-weight:700;font-size:11px;letter-spacing:1px;margin-bottom:16px}
.visual-caption h2{font-size:clamp(25px,2.8vw,42px);max-width:590px;line-height:1.15;letter-spacing:-1.1px;margin:0 0 12px}.visual-caption p{font-size:14px;max-width:510px;color:#c4dded;margin:0}
html[data-theme="light"] .login-layout{background:#f6f9fd;color:#192b3c}
html[data-theme="light"] .login-left{background:#f6f9fd}
html[data-theme="light"] .login-mark small,html[data-theme="light"] .login-subtitle,html[data-theme="light"] .login-help,html[data-theme="light"] .login-bottom{color:#697c90}
html[data-theme="light"] .login-form label{color:#24384d}
html[data-theme="light"] .login-form input{background:#fff;border-color:#cbd7e4;color:#1a2f44}
html[data-theme="light"] .login-bottom{border-color:#d5e1ec}
html[data-theme="light"] .login-visual{color:#fff}
.login-left{padding:clamp(22px,4vw,58px) clamp(22px,4vw,62px);}.login-content{max-width:470px}@media(max-width:1050px){.login-layout{grid-template-columns:minmax(280px,32%) minmax(0,68%)}.login-left{padding:36px}.login-visual img{object-position:60% center}}
@media(max-width:720px){.login-layout{display:flex;flex-direction:column}.login-left{min-height:100vh;padding:25px 24px}.login-content{padding:50px 0}.login-visual{min-height:250px;max-height:340px}.login-visual img{position:absolute;object-position:center 38%}.visual-caption{bottom:25px;left:25px}.visual-caption h2{font-size:23px}.visual-caption p{display:none}.topbar-actions{gap:8px}.topbar-user{display:none}}
@media(max-width:560px){.theme-toggle{padding:8px 10px;font-size:11px}.login-mark strong{font-size:23px}.login-content h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){body,.vehicle-card{transition:none}}
.vehicle-owner{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.vehicle-owner strong{color:var(--ink)}
.helper-text{font-size:12px;color:var(--muted);margin-top:-8px;margin-bottom:14px}
select[multiple]{min-height:148px}
.login-subtitle code,.login-help code{background:rgba(255,255,255,.08);padding:2px 6px;border-radius:7px;font-size:.95em}
.owner-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.owner-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:11px;color:var(--ink)}

/* Fleet V1.3 — module de gestion des utilisateurs */
.account-panel{max-width:1200px}.account-form{max-width:800px}
.table-scroll{overflow-x:auto}.fleet-table{width:100%;border-collapse:collapse;text-align:left;min-width:650px}
.fleet-table th{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);padding:15px 13px;border-bottom:1px solid var(--line)}
.fleet-table td{font-size:13px;vertical-align:middle;padding:15px 13px;border-bottom:1px solid var(--line)}
.fleet-table tbody tr:last-child td{border-bottom:0}.table-user{display:flex;align-items:center;gap:11px}
.table-user strong{display:block;color:var(--ink);font-weight:700}.table-user small{display:block;color:var(--muted)}
.row-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.row-actions form{margin:0}.btn-small{padding:7px 10px;font-size:11px}
.account-form .form-grid{align-items:start}.account-form .checkbox-wrap{padding-top:30px}
@media(max-width:560px){.account-form .checkbox-wrap{padding-top:0}.table-scroll{margin:0 -6px}}

/* Fleet Login V4 : écran fixe desktop, adapté aux faibles hauteurs */
@media (min-width: 721px) {
  html:has(.login-layout), body:has(.login-layout), .auth-page { height: 100%; }
  body:has(.login-layout) { overflow: hidden; }
  .login-layout { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .login-left { height: 100%; min-height: 0; padding-top: clamp(16px, 3vh, 36px); padding-bottom: clamp(14px, 3vh, 34px); }
  .login-content { margin: auto 0; padding: clamp(10px, 3vh, 26px) 0; }
  .login-content h1 { font-size: clamp(25px, 2.5vw, 42px); margin-bottom: 18px; }
  .login-form label { margin: 11px 0 5px; }
  .login-form input { padding: 11px 13px; }
  .login-form .btn { margin-top: 17px; padding: 12px 16px; }
  .login-bottom { padding-top: 11px; }
  .login-visual { height: 100%; min-height: 0; }
  .visual-caption { bottom: clamp(20px, 4vh, 50px); }
  .visual-caption h2 { font-size: clamp(22px, 2.25vw, 34px); }
}
@media (min-width: 721px) and (max-height: 650px) {
  .login-left { padding-top: 12px; padding-bottom: 12px; }
  .login-content { padding: 6px 0; }
  .login-content h1 { font-size: 25px; margin-bottom: 8px; }
  .login-form label { margin: 7px 0 4px; }
  .login-form input { padding: 8px 11px; }
  .login-form .btn { margin-top: 10px; padding: 9px 12px; }
  .visual-caption p { display: none; }
}
@media (max-width: 720px) {
  body:has(.login-layout) { overflow-y: auto; }
  .login-layout { height: auto; }
}

/* Fleet v1.4 — identité visuelle et formulaires nautiques */
.fleet-logo{display:block;height:auto;max-width:100%;object-fit:contain;object-position:left center}
.fleet-logo-login{width:clamp(152px,14vw,195px);height:auto}
.fleet-logo-sidebar{width:180px;height:auto}
.login-mark{min-width:0}
.login-header{gap:8px}
.login-header .theme-toggle{flex-shrink:0}
.fleet-vehicle-form [hidden]{display:none!important}
.fleet-vehicle-form .form-grid>div{min-width:0}
.fleet-vehicle-form .helper-text{margin-top:0}
.fleet-boat-choice>div>div{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 20px}
.fleet-boat-choice>div>div>div{padding:11px 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px}
.fleet-boat-choice input{accent-color:#2c92f0;margin-right:8px}
.fleet-boat-choice label{display:inline!important;margin-bottom:0!important;cursor:pointer}
@media(max-width:1050px){.fleet-logo-login{width:145px}}
@media(max-width:720px){.fleet-logo-login{width:175px}.fleet-logo-sidebar{width:145px}}

html[data-theme="light"] .fleet-logo{filter:drop-shadow(0 0 0 transparent)}
html[data-theme="light"] .login-left .fleet-logo{background:#0a2036;border-radius:12px;padding:5px 10px}


/* Fleet 1.4.2 — édition en cartes, respect du thème sombre / clair */
.fleet-vehicle-editor {
  --fe-bg: #0b1523;
  --fe-card: #111f31;
  --fe-input: #0d1b2c;
  --fe-border: #293e56;
  --fe-text: #eaf2fd;
  --fe-muted: #a0b3cd;
  --fe-heading: #f1f6ff;
  --fe-accent: #4ba9ff;
  --fe-accent-bg: #162f4b;
  --fe-tab-border: #243b53;
  --fe-shadow: 0 8px 24px rgba(0,0,0,.12);
  color: var(--fe-text);
  font-family: 'DM Sans',sans-serif;
}
html[data-theme="light"] .fleet-vehicle-editor {
  --fe-bg: #f5f7fb;
  --fe-card: #fff;
  --fe-input: #fff;
  --fe-border: #dfe6f0;
  --fe-text: #17283e;
  --fe-muted: #74849b;
  --fe-heading: #12243b;
  --fe-accent: #146def;
  --fe-accent-bg: #f0f6ff;
  --fe-tab-border: #e0e7f0;
  --fe-shadow: 0 5px 18px rgba(26,63,107,.035);
}
body:has(.fleet-vehicle-editor) .main-wrap { background:var(--bg); }
body:has(.fleet-vehicle-editor) .content { max-width:1510px;padding:24px 34px 52px; }
.fleet-vehicle-editor [hidden]{display:none!important}
.fleet-editor-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}
.fleet-editor-heading h1{font-size:clamp(23px,2.3vw,32px);margin:6px 0 0;letter-spacing:-.8px;color:var(--fe-heading)}
.fleet-breadcrumb{display:flex;align-items:center;gap:11px;font-size:12px;color:var(--fe-muted)}
.fleet-breadcrumb a{color:var(--fe-accent)}
.fleet-breadcrumb span:last-child{color:var(--fe-text);font-weight:700}
.fleet-editor-actions,.fleet-editor-bottom{display:flex;align-items:center;gap:12px}
.fleet-action-save,.fleet-action-cancel{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:0 18px;border-radius:9px;cursor:pointer;font:700 13px 'DM Sans',sans-serif;white-space:nowrap}
.fleet-action-save{border:1px solid #166cec;background:linear-gradient(180deg,#3988fa,#1269eb);color:#fff;box-shadow:0 5px 12px #176ce624}
.fleet-action-save:hover{background:#1058d2}
.fleet-action-cancel{background:var(--fe-card);border:1px solid var(--fe-border);color:var(--fe-text)}
.fleet-editor-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--fe-tab-border);margin:0 0 22px;overflow-x:auto;scrollbar-width:thin}
.fleet-editor-tab{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:var(--fe-muted);font-size:12px;font-weight:700;padding:12px 10px;border-bottom:3px solid transparent}
.fleet-editor-tab span{font-size:18px}
.fleet-editor-tab:hover,.fleet-editor-tab.is-current{color:var(--fe-accent)}
.fleet-editor-tab.is-current{border-bottom-color:var(--fe-accent)}
.fleet-edit-card{border:1px solid var(--fe-border);box-shadow:var(--fe-shadow);background:var(--fe-card);border-radius:14px;padding:23px 25px 20px;margin:0 0 16px;scroll-margin-top:24px}
.fleet-card-heading{display:flex;gap:12px;align-items:center;margin:0 0 20px}
.fleet-card-heading h2{margin:0;color:var(--fe-heading);font-size:17px;letter-spacing:-.25px;font-weight:800}
.fleet-section-icon{display:grid;place-items:center;min-width:30px;height:30px;border-radius:8px;background:var(--fe-accent-bg);color:var(--fe-accent);font-size:19px}
.fleet-control-grid{display:grid;gap:16px;margin:0 0 14px}.fleet-control-grid:last-child{margin-bottom:0}
.fleet-control-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.fleet-control-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.fleet-control-grid-single{grid-template-columns:minmax(0,1fr)}
.fleet-control-grid>div{min-width:0}
.fleet-vehicle-editor label{display:block;color:var(--fe-text);font-size:12px;font-weight:700;margin-bottom:7px}
.fleet-vehicle-editor input:not([type=checkbox]):not([type=radio]),.fleet-vehicle-editor select,.fleet-vehicle-editor textarea{
  background:var(--fe-input);color:var(--fe-text);border:1px solid var(--fe-border);border-radius:8px;min-height:42px;width:100%;padding:9px 12px;font:13px 'DM Sans',sans-serif;outline:0;margin:0;
}
.fleet-vehicle-editor select[multiple]{min-height:105px}
.fleet-vehicle-editor textarea{min-height:95px;resize:vertical}
.fleet-vehicle-editor input:focus,.fleet-vehicle-editor select:focus,.fleet-vehicle-editor textarea:focus{border-color:var(--fe-accent)!important;box-shadow:0 0 0 3px rgba(53,134,255,.17)}
.fleet-vehicle-editor .form-help,.fleet-vehicle-editor .help-text{color:var(--fe-muted);font-size:11px;margin-top:6px}
/* Rad ios : structure explicite, évite les styles hérités de V1.4 */
.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid .fleet-boat-option{
  display:flex;align-items:center;gap:12px;min-width:0;min-height:80px;padding:14px 17px;
  background:var(--fe-input);border:1.5px solid var(--fe-border);border-radius:11px;
  margin:0;flex-wrap:nowrap;
}
.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid .fleet-boat-option:has(input:checked){border-color:var(--fe-accent);background:var(--fe-accent-bg);box-shadow:inset 0 0 0 1px rgba(74,164,255,.12)}
.fleet-vehicle-editor .fleet-boat-choice input[type=radio]{appearance:auto;display:block;flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--fe-accent);cursor:pointer}
.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid .fleet-boat-option label{display:flex!important;align-items:center;gap:12px;flex:1;margin:0!important;font-size:14px;font-weight:700;line-height:1.25;cursor:pointer;color:var(--fe-text)}
.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid .fleet-boat-option label:before{content:'⛵';font-size:28px;line-height:1}
.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid .fleet-boat-option:has(input[value="motor"]) label:before{content:'🚤'}
.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid .fleet-boat-option:has(input:checked) label{color:var(--fe-heading)}
.fleet-active-switch{display:flex;align-items:center;gap:10px;margin-top:15px}
.fleet-active-switch input{accent-color:var(--fe-accent)}
.fleet-active-switch label{display:inline;margin:0 0 0 8px}
.fleet-editor-bottom{justify-content:flex-end;padding:5px 0 15px}
.fleet-vehicle-editor ul{color:#f49db4;font-size:12px}
@media(max-width:950px){.fleet-editor-tabs{gap:6px}.fleet-edit-card{padding:20px}.fleet-control-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body:has(.fleet-vehicle-editor) .content{padding:18px 14px 42px}.fleet-editor-header{align-items:flex-start;flex-direction:column;gap:13px}.fleet-editor-actions{width:100%}.fleet-editor-actions>*{flex:1}.fleet-editor-tabs{gap:0}.fleet-editor-tab{padding:10px;font-size:11px}.fleet-edit-card{padding:17px 15px}.fleet-control-grid-three,.fleet-control-grid-two,.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid{grid-template-columns:1fr}.fleet-vehicle-editor .fleet-boat-choice .fleet-boat-grid .fleet-boat-option{min-height:66px}.fleet-editor-bottom{flex-direction:column}.fleet-editor-bottom>*{width:100%}}

/* Fleet V1.5 - tableau de bord compact et suivi des dépenses/entretiens */
@media(min-width:1220px){.content{max-width:1600px;padding:28px 35px 55px}.fleet-dashboard .vehicle-grid,.content .vehicle-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stats-grid{gap:12px;margin-bottom:27px}.stat-card{padding:14px 16px;border-radius:13px}.stat-icon{height:29px;width:29px;font-size:16px;margin-bottom:9px}.stat-number{font-size:28px}.stat-note{font-size:10px}.section-head{margin-bottom:12px}.page-head{margin-bottom:24px}}
@media(min-width:1500px){.content .vehicle-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.content .vehicle-card{padding:12px 13px;border-radius:13px}.content .vehicle-icon{height:66px;margin-bottom:9px;font-size:31px}.content .vehicle-card h3{font-size:14px;margin:6px 0 1px}.content .vehicle-card p{font-size:11px;margin:0 0 5px}.content .vehicle-card-foot{margin-top:9px;padding-top:8px}.content .vehicle-owner{font-size:11px}.content .vehicle-card .mini-label{font-size:9px}
.fleet-dashboard-quicklinks,.fleet-record-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}.fleet-record-shortcuts{margin:0 0 22px}.fleet-upcoming-head{margin-top:25px}.fleet-upcoming-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}.fleet-upcoming-item{display:flex;gap:12px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:12px;color:var(--ink)}.fleet-upcoming-item>span:first-child{color:var(--blue);font-size:23px}.fleet-upcoming-item>span:nth-child(2){flex:1;min-width:0}.fleet-upcoming-item strong,.fleet-upcoming-item small{display:block}.fleet-upcoming-item small{color:var(--muted);font-size:11px}.fleet-upcoming-item time{color:var(--blue);font-size:12px}.fleet-upcoming-item time.is-overdue{color:#e46b66}.fleet-empty-upcoming{border:1px dashed var(--line);background:var(--surface);border-radius:12px;padding:18px;color:var(--muted);font-size:13px}
.fleet-record-panel{max-width:1050px}.fleet-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.fleet-list-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:15px}.fleet-table-scroll{overflow-x:auto}.fleet-data-table{width:100%;border-collapse:collapse;min-width:700px}.fleet-data-table th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:12px 10px;border-bottom:1px solid var(--line)}.fleet-data-table td{padding:13px 10px;border-bottom:1px solid var(--line);font-size:12px}.fleet-data-table td strong,.fleet-data-table td small{display:block}.fleet-data-table td small{color:var(--muted)}.fleet-data-table tbody tr:last-child td{border-bottom:0}.fleet-delete-record{margin-top:15px}.fleet-tight-head{margin-bottom:18px}
@media(max-width:720px){.fleet-record-grid{grid-template-columns:1fr}.fleet-upcoming-list{grid-template-columns:1fr}.fleet-record-shortcuts .btn{flex:1}.content .vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.content .vehicle-icon{height:60px}}
@media(max-width:420px){.content .vehicle-grid{grid-template-columns:1fr}}

/* Fleet V1.6 – Carnet de suivi : palette du thème actif */
.followup-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0 22px}
.followup-list{display:flex;flex-direction:column;gap:12px}
.followup-list-item{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:18px 22px;transition:border-color .15s}
.followup-list-item:hover{border-color:var(--blue)}
.followup-list-main{min-width:0}.followup-kicker{font-size:11px;font-weight:700;letter-spacing:.25px;color:var(--blue);display:block;margin-bottom:6px}
.followup-list-main h2{font-size:17px;margin:0 0 5px}.followup-list-main p{font-size:12px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.followup-list-meta{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:240px}
.followup-list-date{font-size:12px;color:var(--muted)}
.followup-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;padding:6px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);color:var(--ink);white-space:nowrap}
.followup-pill.ongoing{background:#143957;border-color:#286196;color:#aedaff}.followup-pill.resolved{background:#123b33;border-color:#246858;color:#8de6b7}
.followup-pill.priority-high,.followup-pill.priority-urgent{background:#512d31;border-color:#86444b;color:#ffb0b6}
html[data-theme="light"] .followup-pill.ongoing{background:#e5f2ff;color:#174d7f;border-color:#b8d9f5}
html[data-theme="light"] .followup-pill.resolved{background:#e6f8ee;color:#126246;border-color:#b7e5ce}
html[data-theme="light"] .followup-pill.priority-high,html[data-theme="light"] .followup-pill.priority-urgent{background:#ffeded;color:#99383e;border-color:#f3c5c5}
.followup-form{max-width:1000px}.followup-details{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr);gap:18px;margin-bottom:36px}
.followup-description{white-space:pre-line;line-height:1.65;font-size:13px;margin:20px 0 0;color:var(--ink)}
.followup-kpi{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:13px 0;color:var(--muted);font-size:12px}
.followup-kpi strong{font-size:19px;color:var(--ink)}.followup-actions-header{margin:20px 0}.followup-timeline{display:flex;flex-direction:column;gap:0}
.followup-event{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px}.followup-event-marker{border-radius:50%;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);display:grid;place-items:center;width:30px;height:30px;margin-top:18px;font-weight:bold}
.followup-event-marker.done{background:#123b33;color:#80e6b3;border-color:#246858}.followup-event-content{margin:0 0 16px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.followup-event-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.followup-event-top h3{margin:0;font-size:16px}.followup-event-notes{white-space:pre-line;color:var(--muted);font-size:13px;margin:16px 0 0}
.followup-event-bottom{display:flex;align-items:center;gap:15px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:15px;padding-top:12px;font-size:11px;color:var(--muted)}
.followup-event-bottom .text-link{margin-left:auto}.followup-link-danger{background:none;border:none;color:#f18893;cursor:pointer;font:inherit;padding:0}
.followup-danger{display:flex;justify-content:flex-end;margin:35px 0 0}
@media(max-width:760px){.followup-details{grid-template-columns:1fr}.followup-list-item{flex-direction:column;align-items:stretch}.followup-list-meta{justify-content:flex-start;min-width:0}}


/* Fleet V1.6.4 : largeur de grille de connexion confirmée dans Chromium. */
@media (min-width: 721px) {
  .auth-page { width: 100% !important; max-width: none !important; padding: 0 !important; display: block !important; }
  .auth-page .login-layout {
    display: grid !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 28fr) minmax(0, 72fr) !important;
    margin: 0 !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .auth-page .login-left, .auth-page .login-visual { min-width: 0 !important; }
}
@media (max-width: 720px) {
  .auth-page .login-layout { width: 100% !important; max-width: none !important; height: auto !important; }
}
