/* TREYA VTC V0.3 — composants ajoutés au socle V0.2 (même palette : bleu nuit, émeraude, or). */
.metrics-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.metric-card{position:relative}
.metric-link{position:absolute;inset:0;border-radius:10px;z-index:1}
.metric-card:hover{border-color:#9fd9d3}
.metric-icon.amber{background:linear-gradient(140deg,#f6b23b,#e8900f)}
.metric-icon.navy{background:#0d3a57}
.metric-icon.teal{background:#058e91}
.status.amber{background:#fff1d9;color:#c46f00}
.pill{display:inline-block;border-radius:6px;padding:3px 8px;font-weight:700;font-size:.72rem}
.pill.success{background:#dcf8ef;color:#008c77}.pill.warning{background:#fff1d9;color:#d47d06}.pill.danger{background:#ffe2e7;color:#df2741}
.text-danger{color:#df2741;font-weight:700}
.block{display:block}
.selected-row td{background:#effaf9}
.period-form{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.period-form .tab{border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 12px;font-size:.78rem;font-weight:700;color:var(--ink)}
.period-form .tab.active{background:#03283d;color:#fff;border-color:#03283d}
.period-dates{display:flex;align-items:center;gap:4px;font-size:.78rem}
.period-dates input{border:1px solid var(--line);border-radius:7px;padding:6px;font-size:.78rem}
.period-caption{margin:-6px 0 12px}
.grid-dashboard{display:grid;grid-template-columns:1.05fr 1.2fr .85fr;gap:14px;margin:14px 0}
.panel-late{background:linear-gradient(180deg,#fff6f7,#fff)}
.chart{width:100%;height:auto;display:block}
.chart-grid{stroke:#e4eef5;stroke-width:1}
.chart-axis{fill:#7a90a8;font-size:10px}
.chart-bar{fill:#08a59c}
.chart-bar:hover{fill:#04776f}
.chart-line{fill:none;stroke:#03283d;stroke-width:2;stroke-linejoin:round}
.chart-legend{display:flex;gap:16px;align-items:center;font-size:.76rem;color:var(--muted);margin-top:6px}
.lg-bar{display:inline-block;width:12px;height:12px;border-radius:3px;background:#08a59c}
.lg-line{display:inline-block;width:18px;height:2px;background:#03283d}
.detail-list{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:.83rem;margin:12px 0}
.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;font-weight:650}
.doc-list{list-style:none;padding:0;margin:8px 0 14px;display:grid;gap:6px}
.doc-list li{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline;font-size:.82rem;border-bottom:1px solid #eef4f8;padding:6px 0}
.doc-list li span{color:var(--muted)}
.doc-list li.unread b{color:#048e91}
.doc-list a{color:#048e91;font-weight:700}
.detail-panel h4{margin:14px 0 4px;color:#0b3a5c}
.inline-details summary{cursor:pointer;color:#048e91;font-weight:700;font-size:.82rem;margin:6px 0}
.inline-details[open]{background:#f6fbfd;border-radius:8px;padding:6px 8px}
.action-stack{display:grid;gap:8px;margin:10px 0}
.action-stack form{display:grid;gap:6px}
.action-stack input{border:1px solid var(--line);border-radius:7px;padding:8px}
.inline-form{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.inline-form input,.inline-form select{border:1px solid var(--line);border-radius:7px;padding:7px;font-size:.8rem;max-width:220px}
.company-switch select{border:1px solid var(--line);border-radius:7px;padding:5px 8px;font-size:.78rem;margin-left:10px}
.day-checks{display:flex;flex-wrap:wrap;gap:6px 14px}
fieldset{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0}
legend{font-size:.8rem;font-weight:700;color:#0b3a5c;padding:0 6px}
.modal-wide{width:min(760px,96vw)}
.panel-warning{border-color:#f3c46b!important;background:#fffaf0}
.steps{list-style:none;display:flex;gap:10px;padding:0;margin:0 0 14px;flex-wrap:wrap}
.steps li{flex:1;min-width:160px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px 14px;font-weight:700;font-size:.82rem;color:var(--muted)}
.steps li.done{border-color:#7fd3c9;color:#008c77;background:#f0fbf8}
.steps li.blocked{border-color:#f2a3b0;color:#df2741;background:#fff4f6}
.checklist li.warning{color:#c46f00}
.events{list-style:none;padding:0;margin:0 0 4px;font-size:.74rem;color:var(--muted)}
.mini-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:6px 0 12px;text-align:center}
.mini-stats div{border:1px solid var(--line);border-radius:9px;padding:10px 6px;background:#fff}
.mini-stats b{display:block;font-size:1.05rem}.mini-stats small{color:var(--muted);font-size:.72rem}
.driver-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.driver-layout .permissions{position:sticky;top:12px}
.welcome{margin:10px 0 14px}
.support-banner{display:flex;align-items:center;gap:12px;justify-content:space-between}
.actions{white-space:nowrap}
.table-link{background:none;border:0;padding:0;color:#048e91;font-weight:700;font-size:inherit}
@media(max-width:1480px){.grid-dashboard{grid-template-columns:1fr 1fr}.grid-dashboard>section:first-child{grid-column:1/-1}}
@media(max-width:1160px){.metrics-5{grid-template-columns:repeat(3,minmax(0,1fr))}.driver-layout{grid-template-columns:1fr}.driver-layout .permissions{position:static}}
@media(max-width:900px){.grid-dashboard{grid-template-columns:1fr}.mini-stats{grid-template-columns:repeat(3,1fr)}.period-form{width:100%}.steps li{min-width:120px}}
@media(max-width:640px){.metrics-5{grid-template-columns:repeat(2,minmax(0,1fr))}.mini-stats{grid-template-columns:repeat(2,1fr)}.detail-list{grid-template-columns:1fr}.inline-form input,.inline-form select{max-width:100%}.period-dates{width:100%}}
@media print{.sidebar,.app-topbar,.page-actions,.btn,form{display:none!important}.app-content{padding:0}}

.handover-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:14px;align-items:start}
.handover-grid>div{display:grid;gap:14px}
.filter-row select{max-width:100%}
.filter-row label{min-width:220px}
form.filter-row label:has(select[name=contrat]){flex:1;min-width:280px}
@media(max-width:900px){.handover-grid{grid-template-columns:1fr}}
.driver-layout .metric-value{font-size:1.2rem;line-height:1.2;overflow-wrap:anywhere}.driver-layout .metric-card{min-height:112px}
@media(max-width:1160px){.driver-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.handover-grid{grid-template-columns:minmax(0,1fr)}.filter-row{flex-wrap:wrap}.filter-row label,form.filter-row label:has(select[name=contrat]){min-width:0;width:100%}.steps li{min-width:0;flex:1 1 30%}}
@media(max-width:640px){.app-content{overflow-x:hidden}.metrics-6,.metrics-8{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Recette visuelle V0.3.1 */
img.flag{display:inline-block;width:18px;height:12px;border-radius:2px;vertical-align:-1px;box-shadow:0 0 0 1px rgba(0,0,0,.12);mix-blend-mode:normal}
.locale{display:inline-flex;align-items:center;gap:6px}
.language-menu a{display:flex;align-items:center;gap:8px}
@media(min-width:901px){.grid-dashboard table,.grid-2 table,.grid-2-1 table,.driver-layout table{min-width:0}}
.driver-layout .page-actions .btn,.driver-actions .btn{width:auto;justify-self:start}
.remise-select select,select[name=contrat]{min-width:0;width:100%;text-overflow:ellipsis}
.btn-start{justify-self:start}
.schedule-filters{margin:0 0 10px}.schedule-filters input[type=search]{max-width:none;width:300px}.schedule-filters select{max-width:160px}@media(max-width:640px){.schedule-filters input[type=search]{width:100%}}
.panel-form{align-content:start}.grid>.panel-form{align-self:start}
form.filter-row label:has(select[name=contrat]){max-width:560px}.driver-layout table{margin-top:12px}

/* ═══ V0.3.2 — Alignement sur les maquettes validées (pictogrammes au trait, cartes, onglets, boutons) ═══ */
.ic{width:20px;height:20px;flex:none;display:inline-block;vertical-align:-4px;fill:none;stroke:currentColor}
/* Boutons */
.btn{min-height:40px;padding:9px 16px;font-size:.81rem;font-weight:700;border-radius:8px;gap:8px;transition:box-shadow .15s,transform .15s}
.btn .ic{width:17px;height:17px;vertical-align:-3px}
.btn-primary{background:linear-gradient(135deg,#008a83,#05ab9f);color:#fff;box-shadow:0 4px 12px rgba(0,138,131,.22)}
.btn-primary:hover{box-shadow:0 6px 16px rgba(0,138,131,.32);filter:none}
.btn-outline{background:#fff;color:#007770;border:1px solid #11a99f}
.btn-outline:hover{background:#f0fbfa;filter:none}
.btn-danger-outline{border-radius:8px}
.btn-wide{width:100%}
/* Barre latérale */
.sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#1c5168 transparent;background:linear-gradient(170deg,#002a3e 0%,#03283f 55%,#032a3c 100%)}
.side-nav{flex:none;overflow:visible;padding:14px 14px 10px}
.side-nav a{min-height:44px;gap:15px;font-size:.89rem;padding:9px 14px;border-radius:9px;margin:3px 0;color:#eaf6fb;font-weight:500}
.side-nav a .side-icon{width:23px;height:23px;min-width:23px;stroke-width:1.7;color:#eaf6fb}
.side-nav a.active{background:linear-gradient(100deg,#078c89 0%,#0b7d80 100%);font-weight:700;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.side-nav a.active .side-icon{color:#fff}
.side-text{flex:1;min-width:0}
.side-badge{margin-left:auto;background:#f2b33d;color:#05263a;border-radius:99px;min-width:23px;height:23px;display:grid;place-items:center;font-size:.74rem;font-weight:800;padding:0 6px}
.side-help{margin:auto 18px 22px;padding:18px 16px;border-radius:14px;background:linear-gradient(140deg,#03374e,#062f47);border:1px solid #0d7f86}
.side-help .headset{width:30px;height:30px;color:#6bf0e2;stroke-width:1.7}
.side-help strong{margin-top:10px}
.side-support{align-items:center;padding:10px 14px;border-radius:9px;border:1px solid #7fa6b5;transition:background .15s}
.side-support:hover{background:#0b4258}
.side-support .ic{width:17px;height:17px}
/* Barre du haut */
.app-topbar{height:66px}
.company-disc{width:42px;height:42px;background:#04304a;color:#6fe3d8;border:2px solid #0e8f90;font-size:1rem}
.company-disc .ic{width:20px;height:20px}
.locale{display:inline-flex;align-items:center;gap:7px;border-radius:10px;padding:8px 12px;color:#08365a;border:1px solid #d8e7f2}
.locale .ic{width:14px;height:14px;color:#5a7f9e}
.bell{position:relative;display:inline-grid;place-items:center;color:#0b3a5c;padding:6px;border:0;background:none}
.bell .ic{width:24px;height:24px;stroke-width:1.8}
.bell-badge{position:absolute;top:-1px;right:-3px;background:#e5364f;color:#fff;font-size:.62rem;font-weight:800;border-radius:99px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border:2px solid #fff;line-height:1}
.top-user{display:flex;align-items:center;gap:11px;padding-left:20px;border-left:1px solid #e3eef5;height:42px}
.user-disc{width:42px;height:42px;font-size:1.05rem}
.logout button{color:#0a6f9a;display:grid;place-items:center;padding:6px}
.logout .ic{width:22px;height:22px}
.menu-toggle .ic{width:26px;height:26px}
/* Titres de page */
.page-heading h1{font-size:clamp(1.55rem,2vw,2rem);letter-spacing:-.03em}
.page-heading p{color:#3f6f93;font-size:.86rem}
/* Cartes d'indicateurs : pictogramme à gauche, texte à droite */
.metric-card{flex-direction:row;align-items:flex-start;gap:15px;min-height:0;padding:18px 18px 16px;border-radius:12px;transition:box-shadow .15s,transform .15s}
.metric-card.has-link:hover{box-shadow:0 10px 26px rgba(17,65,102,.10);transform:translateY(-1px);border-color:#bfe3df}
.metric-icon{width:48px;height:48px;flex:none;margin:0;font-size:0;box-shadow:0 5px 12px rgba(0,50,70,.16)}
.metric-icon .ic{width:23px;height:23px;color:#fff;stroke-width:2}
.metric-icon.teal{background:linear-gradient(140deg,#0b8f8b,#06706f)}
.metric-icon.green{background:linear-gradient(140deg,#14a083,#078069)}
.metric-icon.gold{background:linear-gradient(140deg,#c4a043,#a07f22)}
.metric-icon.blue{background:linear-gradient(140deg,#2b8ae6,#1667c4)}
.metric-icon.navy{background:linear-gradient(140deg,#0f4560,#062d44)}
.metric-icon.red{background:linear-gradient(140deg,#ef3b56,#c81d3e)}
.metric-icon.amber{background:linear-gradient(140deg,#f7b638,#e8900f)}
.metric-body{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.metric-label{font-size:.86rem;font-weight:600;color:#0b2f52}
.metric-value{font-size:clamp(1.15rem,1.55vw,1.5rem);font-weight:800;color:#06264a}
.metric-card small{font-size:.75rem;color:#56799a;line-height:1.4}
.metric-more{margin-top:8px;color:#008b86;font-weight:700;font-size:.78rem;display:inline-flex;gap:6px;align-items:center}
.metric-more .ic{width:15px;height:15px}
/* Pastilles de statut avec pictogramme */
.status{gap:5px;padding:4px 10px 4px 7px;font-size:.72rem}
.status .st-ic{width:13px;height:13px;stroke-width:2.4;vertical-align:0}
/* Période : contrôle segmenté + plage de dates */
.period-form{gap:10px}
.period-form .segmented{display:inline-flex;background:#fff;border:1px solid #d8e7f2;border-radius:10px;padding:3px;gap:2px}
.period-form .segmented .tab{border:0;background:transparent;border-radius:8px;padding:8px 13px;font-size:.78rem;font-weight:700;color:#0b2f52}
.period-form .segmented .tab.active{background:#03283d;color:#fff}
.period-form .period-dates{background:#fff;border:1px solid #d8e7f2;border-radius:10px;padding:0 10px;gap:6px;height:42px;color:#0b2f52}
.period-form .period-dates input{border:0;padding:4px 2px;font-size:.78rem;color:#0b2f52;background:transparent;font-weight:600}
.period-form .period-dates .ic{width:17px;height:17px;color:#0b5f7a}
/* Onglets */
.subtabs{gap:2px;padding:0 10px;border-radius:12px;align-items:stretch}
.subtabs a{display:inline-flex;align-items:center;gap:9px;padding:15px 18px;font-size:.85rem;color:#1d4466;font-weight:650;border-bottom:3px solid transparent}
.subtabs a .ic{width:18px;height:18px;color:#3c6f92}
.subtabs a.active{color:#007770;border-bottom:3px solid #00a19c;font-weight:750}
.subtabs a.active .ic{color:#007770}
.subtabs a:hover:not(.active){background:#f4fafc}
/* En-têtes de panneaux */
.panel{padding:16px 18px;border-radius:12px}
.detail-panel{border-radius:12px;padding:18px}
.panel-heading h2,.detail-panel h2{display:flex;align-items:center;gap:10px;font-size:1rem;color:#06264a}
.h-ic{width:22px;height:22px;color:#0b7c7a;stroke-width:1.9}
.panel-heading a{display:inline-flex;align-items:center;gap:5px;font-weight:700}
.panel-heading a .ic{width:14px;height:14px}
/* Filtres : boîte avec pictogramme, libellé et valeur */
.filter-row>label.filter-box{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:1px;align-items:center;padding:10px 14px;min-height:62px;max-width:300px;border-radius:10px}
.filter-box .f-ic{grid-row:1/3;width:34px;height:34px;padding:7px;border:1px solid #d5e5f0;border-radius:9px;color:#0b4d6e;stroke-width:1.8}
.filter-box .f-name{font-size:.76rem;font-weight:700;color:#0b2f52}
.filter-box select{font-size:.82rem;color:#355d80;font-weight:600}
form.filter-row label.filter-box:has(select[name=contrat]){max-width:620px;flex:1}
/* Recherche */
.search-inline,input[type=search]{padding-left:40px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f86a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 13px center/17px no-repeat}
/* Tableaux */
th{background:#f2f8fb;color:#2f5678;font-size:.72rem;font-weight:750}
td{font-size:.79rem;color:#1f4a6e}
.thumb-cell{width:78px;padding-right:0}
.car-thumb{width:66px;height:31px;object-fit:cover;border-radius:6px;display:block;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.detail-hero .car-photo{width:140px;height:80px;object-fit:cover;border-radius:10px;flex:none}
.detail-hero{gap:16px}
.big-symbol .ic{width:44px;height:44px;color:#0b8c88}
/* Messages, listes de contrôle */
.toast{display:flex;align-items:center;gap:9px}
.toast .ic{width:19px;height:19px}
.checklist li{display:flex;gap:10px;align-items:center}
.checklist li .ic{width:19px;height:19px;flex:none}
.checklist .positive .ic{color:#0b9a7f}.checklist .negative .ic{color:#e0334d}.checklist .warning .ic{color:#e8900f}.checklist .neutral .ic{color:#7d98b0}
.inline-details summary{display:inline-flex;align-items:center;gap:6px}
.inline-details summary .ic{width:15px;height:15px}
@media(max-width:1300px){.metric-card{padding:15px 14px;gap:12px}.metric-icon{width:42px;height:42px}.metric-icon .ic{width:20px;height:20px}}
@media(max-width:900px){.top-user{border-left:0;padding-left:0}.top-profile{display:none}.filter-row>label.filter-box{max-width:none}}
@media(max-width:640px){.metric-card{flex-direction:column}.subtabs a{padding:12px 12px}.period-form .segmented{width:100%;overflow:auto}}
/* Connexion / inscription : la voiture reste visible quelle que soit la hauteur d'écran (maquettes 07/08) */
@media(min-width:1101px){
 .auth-login .auth-stage,.auth-forgot .auth-stage{min-height:clamp(560px,calc(100vh - 86px),780px)}
 .auth-login .auth-story,.auth-forgot .auth-story{min-height:0}
 .auth-story:before{background:linear-gradient(to bottom,#03283c 0%,#03283c 40%,rgba(3,40,60,.72) 50%,rgba(3,40,60,.18) 66%,rgba(3,40,60,0) 78%),url('/static/img/hero.jpg') 34% 100% / auto 60% no-repeat}
 .auth-story:after{background:linear-gradient(90deg,#03283c 0%,rgba(3,40,60,0) 14%,rgba(3,40,60,0) 78%,#03283c 100%)}
 .auth-signup .auth-story:before{background:linear-gradient(to bottom,#03283c 0%,#03283c 52%,rgba(3,40,60,.7) 60%,rgba(3,40,60,.15) 74%,rgba(3,40,60,0) 84%),url('/static/img/hero.jpg') 34% 100% / auto 48% no-repeat}
}
.nowrap{white-space:nowrap}
.person{display:flex;align-items:center;gap:9px}.person b{font-weight:700;color:#0b2f52}
.person .avatar-inline{flex:none;width:30px;height:30px;margin:0}
.grid-dashboard td{padding:9px 7px}
.panel-late .text-danger{font-weight:800}
.chart-axis{font-size:9px}
/* Cartes en grille serrée (6 indicateurs, espace chauffeur) : pictogramme au-dessus */
.metric-value{overflow-wrap:normal;word-break:normal}
.metrics-6 .metric-card,.metrics-5 .metric-card{flex-direction:column;gap:10px}
.metrics-6 .metric-value,.metrics-5 .metric-value{font-size:clamp(1.05rem,1.25vw,1.3rem)}
.driver-layout .metric-value{font-size:1.12rem;line-height:1.25;overflow-wrap:normal}
@media(max-width:1700px){.driver-layout .metrics-6{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1400px){.metrics-6{grid-template-columns:repeat(3,minmax(0,1fr))}.metrics-6 .metric-card{flex-direction:row}}
@media(max-width:640px){.metrics-6,.driver-layout .metrics-6{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics-6 .metric-card{flex-direction:column}}
.filter-row>.btn{align-self:center}
input[type=file]{font-size:.8rem;color:#355d80}
input[type=file]::file-selector-button{border:1px solid #11a99f;background:#fff;color:#007770;border-radius:7px;padding:7px 12px;font-weight:700;margin-right:10px;cursor:pointer}
.steps li{display:flex;align-items:center;gap:9px}
.steps li .ic{width:18px;height:18px}
@media(max-width:640px){.top-left b{display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-left small{display:none}.company-disc{display:none}}
/* ═══ V0.3.2 — photos, onglets de fiche, menu utilisateur, animations ═══ */
.avatar-img{object-fit:cover;padding:0;background:#e6f2f7}
.avatar-inline{flex:none}
.avatar-sm{width:26px!important;height:26px!important;font-size:.75rem}
.avatar-md{width:38px!important;height:38px!important;font-size:.95rem}
.user-portrait{width:78px;height:78px;border-radius:50%;object-fit:cover;flex:none;font-size:1.9rem;display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,50,70,.18)}
.detail-hero .car-photo{width:150px;height:92px}
.car-photo-lg{width:210px!important;height:126px!important}
.hero-meta{display:flex;flex-direction:column;gap:5px;min-width:0}
.hero-meta h3{font-size:1.12rem}
.meta-line{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:.75rem;color:#4b7193}
.meta-line .ic{width:14px;height:14px}
.photo-form{margin:4px 0 10px}
.photo-pick{display:inline-flex!important;align-items:center;gap:8px;cursor:pointer;border:1px dashed #8fcfc8;color:#007770;background:#f3fbfa;border-radius:8px;padding:7px 12px;font-size:.78rem;font-weight:700;transition:background .15s,border-color .15s}
.photo-pick:hover{background:#e6f7f5;border-color:#00a19c}
.photo-pick .ic{width:16px;height:16px}
.photo-pick input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.photo-pick.busy{opacity:.6;pointer-events:none}
.photo-pick.busy span::after{content:' …'}
.drop-zone{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:2px dashed #b6d8e6;border-radius:12px;padding:16px;text-align:center;color:#3d6888;cursor:pointer;background:#f7fbfd;transition:border-color .15s,background .15s;position:relative}
.drop-zone .ic{width:28px;height:28px;color:#0b8c88}
.drop-zone.drag,.drop-zone:hover{border-color:#00a19c;background:#effaf9}
.drop-zone input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop-zone img.preview{width:120px;height:80px;object-fit:cover;border-radius:8px}
.ptabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:8px 0 6px}
.ptab{background:none;border:0;border-bottom:3px solid transparent;padding:10px 14px;font-size:.84rem;font-weight:700;color:#4b7193;display:inline-flex;align-items:center;gap:6px;margin-bottom:-1px}
.ptab.active{color:#007770;border-bottom-color:#00a19c}
.ptab .count{background:#e7f4f3;color:#007770;border-radius:99px;padding:1px 7px;font-size:.7rem}
.ptab-pane{animation:fade .2s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.sec{display:flex;align-items:center;gap:8px;font-size:.9rem;color:#06264a;margin:16px 0 4px}
.sec .ic{width:19px;height:19px;color:#0b7c7a}
.doc-list.compact li{padding:4px 0}
.action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:6px 0 10px}
/* Barre du haut : logo, menu utilisateur */
.company-disc{overflow:hidden}.company-disc img{width:100%;height:100%;object-fit:cover}
details.top-user{position:relative}
details.top-user summary{list-style:none;display:flex;align-items:center;gap:11px;cursor:pointer}
details.top-user summary::-webkit-details-marker{display:none}
details.top-user summary>.ic{width:16px;height:16px;color:#5a7f9e;transition:transform .2s}
details.top-user[open] summary>.ic{transform:rotate(180deg)}
.user-disc{overflow:hidden;display:grid;place-items:center}.user-disc img{width:100%;height:100%;object-fit:cover}
.user-menu{position:absolute;right:0;top:calc(100% + 10px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px rgba(10,40,70,.16);padding:8px;min-width:220px;z-index:30;display:grid;gap:4px}
.user-menu a,.user-menu .photo-pick{display:flex!important;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;font-size:.82rem;font-weight:650;color:#0b2f52;border:0;background:none;width:100%}
.user-menu a:hover,.user-menu .photo-pick:hover{background:#f2f8fb}
.user-menu .ic{width:17px;height:17px;color:#0b7c7a}
.user-menu .photo-form{margin:0}
/* Paramètres : identité visuelle */
.identity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.identity-item{display:flex;gap:16px;align-items:flex-start}
.logo-preview{width:86px;height:86px;border-radius:14px;border:1px solid var(--line);background:#f2f8fb;display:grid;place-items:center;overflow:hidden;flex:none;font-size:2rem;font-weight:800;color:#0b7c7a}
.logo-preview.round{border-radius:50%}
.logo-preview img{width:100%;height:100%;object-fit:cover}.logo-preview .ic{width:34px;height:34px}
.welcome{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.welcome>span{flex:1;min-width:180px}.welcome .photo-form{margin:0}
/* Pictogrammes vivants */
.metric-card.has-link:hover .metric-icon{transform:scale(1.08) rotate(-4deg)}
.metric-icon{transition:transform .25s cubic-bezier(.2,.8,.2,1.4)}
.metric-card.has-link:hover .metric-more .ic{transform:translateX(4px)}
.metric-more .ic,.panel-heading a .ic,.side-support .ic{transition:transform .2s}
.panel-heading a:hover .ic,.side-support:hover .ic{transform:translateX(3px)}
.side-nav a:hover .side-icon{transform:scale(1.12)}
.side-nav a .side-icon{transition:transform .2s}
.bell .ic{transform-origin:50% 10%}
.bell:hover .ic,.bell-badge~.ic{animation:ring 1.6s ease 1}
.bell-badge{animation:pop .4s ease}
@keyframes ring{0%,100%{transform:rotate(0)}15%{transform:rotate(14deg)}30%{transform:rotate(-12deg)}45%{transform:rotate(8deg)}60%{transform:rotate(-5deg)}75%{transform:rotate(2deg)}}
@keyframes pop{from{transform:scale(0)}to{transform:scale(1)}}
.chart-tip{position:absolute;pointer-events:none;background:#03283d;color:#fff;font-size:.74rem;font-weight:650;padding:6px 9px;border-radius:7px;transform:translate(-50%,-100%);opacity:0;transition:opacity .12s;white-space:nowrap;z-index:5}
.chart-tip.on{opacity:1}
.chart-bar{transition:fill .15s}
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}*{animation:none!important;transition:none!important}}
@media(max-width:640px){.detail-hero{flex-wrap:wrap}.car-photo-lg{width:100%!important;height:auto!important;aspect-ratio:5/3}.user-menu{right:-40px}}
.hero-meta .status{align-self:flex-start}
details.top-user:not([open]) .user-menu{display:none}
@media(max-width:640px){.app-topbar{padding:0 10px;gap:6px}.top-actions{gap:6px}.top-left{gap:6px;min-width:0}.locale{padding:6px 8px}.locale .ic{display:none}details.top-user summary>.ic{display:none}.user-disc{width:36px;height:36px}.logout button{padding:4px}.bell{padding:4px}.user-menu{right:-50px}}
.ptabs{overflow-x:auto;scrollbar-width:none}.ptab{white-space:nowrap;flex:none}.detail-panel{min-width:0;overflow:hidden}
.drop-zone .fname{font-size:.78rem;color:#00776f;word-break:break-all}.drop-zone.small{padding:10px}.drop-zone.small .ic{width:22px;height:22px}
/* Fiche véhicule / chauffeur : photo en grand au-dessus, informations lisibles */
.detail-panel .detail-hero{flex-direction:column;align-items:stretch;gap:12px;border-bottom:1px solid var(--line);padding-bottom:14px}
.detail-panel .detail-hero .car-photo{width:100%!important;height:auto!important;aspect-ratio:16/8;border-radius:12px}
.detail-panel .detail-hero .user-portrait{align-self:center;width:96px;height:96px}
.detail-panel .hero-meta{gap:7px}
.detail-panel .hero-meta h3{font-size:1.25rem;color:#06264a}
.detail-panel .hero-meta>p:not(.meta-line){font-size:.92rem;font-weight:700;color:#21486c;margin:0}
.detail-panel .meta-line{font-size:.85rem;color:#2f5678;gap:6px 12px}
.detail-panel .meta-line .ic{width:16px;height:16px;color:#0b7c7a}
.detail-panel .detail-list{grid-template-columns:minmax(0,46%) minmax(0,54%);font-size:.86rem}
.detail-panel .detail-list dd{color:#0b2f52;font-weight:700}
.detail-panel .ptab{font-size:.86rem;padding:10px 12px}
.detail-panel .doc-list li{font-size:.86rem}
.two-zone{grid-template-columns:minmax(0,1fr) minmax(300px,380px)}
@media(max-width:1500px){.two-zone{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1200px){.two-zone{grid-template-columns:1fr}.detail-panel .detail-hero{flex-direction:row;align-items:center}.detail-panel .detail-hero .car-photo{width:220px!important;aspect-ratio:16/10}}
@media(max-width:640px){.detail-panel .detail-hero{flex-direction:column}.detail-panel .detail-hero .car-photo{width:100%!important}}
.secret-box{display:flex;gap:14px;align-items:flex-start;background:#fff8e6;border:1px solid #f3cf78;border-radius:12px;padding:16px}
.secret-box>.ic{width:28px;height:28px;color:#c58a10}
.secret-box code{display:block;font-size:1.3rem;font-weight:800;letter-spacing:.06em;background:#fff;border:1px dashed #e5b54c;border-radius:8px;padding:8px 12px;margin:6px 0;user-select:all;width:max-content}
.secret-box small{color:#6b5212}
.setup-steps{margin:8px 0 14px;padding-left:20px;display:grid;gap:8px;font-size:.86rem;color:#21486c}
.otp-key{display:block;font-size:1.05rem;font-weight:800;letter-spacing:.08em;background:#f2f8fb;border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin:6px 0;user-select:all;word-break:break-all}
/* V0.3.5 — invitation à rejoindre une société */
.toast.invite{background:#ecfdf5;border:1px solid #a7f3d0;color:#064e3b;flex-wrap:wrap;padding:12px 14px;border-radius:12px;margin-bottom:12px}
.toast.invite .inline-form{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
/* V0.10.4 (lot P1) : versements saisis hors ligne (panneau de l'écran Versements, notification des autres écrans) */
.offline-queue[hidden],.offline-queue [hidden],#hl-reemettre [hidden],#hl-toast[hidden]{display:none!important}
.ds .offline-summary{font-weight:600;color:var(--ink-2);margin:4px 0}
.ds .offline-message{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:10px 12px;font-size:.875rem;color:var(--ink-2);margin:8px 0}
.ds .offline-message:empty{display:none}
.ds .offline-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:10px}
.ds .offline-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.ds .offline-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.ds .offline-main span{overflow-wrap:anywhere}
.ds .offline-state{justify-self:end}
.ds .offline-motif,.ds .offline-note{grid-column:1/-1;margin:0;font-size:.85rem;overflow-wrap:anywhere}
.ds .offline-motif{color:var(--bad)}
.ds .offline-note{color:var(--ink-2)}
.ds .offline-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.ds .offline-actions .btn{min-height:44px}
.ds .offline-details{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;font-size:.875rem;margin:0}
.ds .offline-details dt{color:var(--ink-3)}
.ds .offline-details dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.ds .offline-toast{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:560px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;background:var(--warn-bg);border:1px solid #f3c46b;color:var(--ink);box-shadow:0 8px 24px rgba(3,25,42,.18)}
.ds .offline-toast span{flex:1 1 220px}
.ds .offline-toast .btn{min-height:44px;min-width:44px}
@media (max-width:640px){.ds .offline-item{grid-template-columns:minmax(0,1fr)}.ds .offline-state{justify-self:start}.ds .offline-actions .btn{flex:1 1 auto}}
