:root{
  --dd-bg:#0b1220;
  --dd-surface:#111827;
  --dd-surface-2:#162235;
  --dd-border:#243246;
  --dd-text:#f8fafc;
  --dd-muted:#94a3b8;
  --dd-accent:#38bdf8;
  --dd-accent-2:#0ea5e9;
  --dd-danger:#ef4444;
  --dd-success:#22c55e;
  --dd-radius:20px;
}

.drivedex-app-shell{
  position:fixed;
  inset:0;
  z-index:2147483647; 
  display:grid;
  grid-template-rows:64px 1fr auto;
  background:linear-gradient(180deg,#08101d 0%, #0b1220 100%);
  color:var(--dd-text);
  width:100vw;
  height:100vh;
  height:100dvh;
  max-width:none;
  overflow:hidden;
  margin:0 !important;
  padding:0 !important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.drivedex-app-shell *{box-sizing:border-box}

.drivedex-topbar{
  display:grid;
  grid-template-columns:52px 1fr 52px;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(8,16,29,.92);
  backdrop-filter:blur(14px);
}

.drivedex-topbar-title{
  text-align:center;
  font-weight:700;
  font-size:1rem;
  letter-spacing:.02em;
}

.drivedex-icon-btn,
.drivedex-primary-btn{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  color:#fff !important;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:1.2rem;
}

.drivedex-primary-btn{
  background:linear-gradient(180deg,var(--dd-accent),var(--dd-accent-2));
  border:none;
}

.drivedex-content-wrapper{
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.drivedex-content{
  padding:10px 14px;
  width: 100%;
}

.drivedex-view{
  min-height:100%;
}

.drivedex-view-head{
  margin-bottom:10px;
}

.drivedex-view-head h1{
  margin:0 0 2px;
  font-size:1.3rem;
  line-height:1.1;
  color:var(--dd-text);
}

.drivedex-view-head p,
.drivedex-card-body p,
.drivedex-subtitle{
  color:var(--dd-muted);
  font-size: 0.85rem;
}

.drivedex-back-link {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--dd-border);
  border-radius: 12px;
  color: var(--dd-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.drivedex-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.drivedex-chart-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--dd-border);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}
.drivedex-circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 65px;
  max-height: 65px;
}
.circle-bg {
  fill: none;
  stroke: rgba(255,255,255,.05);
  stroke-width: 3.8;
}
.circle {
  fill: none;
  stroke-width: 3.8;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
}
.circle-global { stroke: var(--dd-accent); }
.circle-vw { stroke: #3b82f6; } 
.percentage {
  fill: #fff;
  font-size: 0.5em;
  text-anchor: middle;
  font-weight: bold;
}
.drivedex-chart-title {
  margin: 8px 0 2px;
  font-size: 0.9rem;
  color: var(--dd-text);
}
.drivedex-chart-sub {
  font-size: 0.7rem;
  color: var(--dd-muted);
  margin: 0;
  line-height: 1.2;
}
@keyframes progress {
  0% { stroke-dasharray: 0 100; }
}

.drivedex-dashboard-stats{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.drivedex-dashboard-stats--three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.drivedex-stat-card{
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  border: 1px solid var(--dd-border);
  border-radius: 14px;
  padding: 8px 4px;
  min-height: 72px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  min-width: 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.drivedex-stat-link {
  text-decoration: none !important;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.drivedex-stat-link:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.drivedex-stat-card span{
  display: block;
  font-size: 0.62rem;
  color: var(--dd-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  white-space: nowrap;
}
.drivedex-stat-card strong{
  display: block;
  font-size: 1.15rem;
  color: var(--dd-accent);
  line-height: 1;
}

.drivedex-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}
.drivedex-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 11px;
  min-height: 48px;
}
.drivedex-badge-unlocked {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
}
.drivedex-badge-locked {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--dd-border);
  opacity: 0.5;
  filter: grayscale(100%);
}
.badge-icon {
  font-size: 1.15rem;
  line-height: 1;
}
.badge-text {
  display: flex;
  flex-direction: column;
}
.badge-name {
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--dd-text);
  line-height: 1.1;
}
.badge-req {
  font-size: 0.58rem;
  color: var(--dd-muted);
  line-height: 1.1;
}
.drivedex-badge-unlocked .badge-req {
  color: #86efac;
}

.drivedex-section-title {
    font-size: 1.15rem;
    margin: 0 0 10px;
    color: var(--dd-text);
}

.drivedex-recent-section {
  display: block;
}

.drivedex-grid{
  display:grid;
  gap:12px;
}
.drivedex-brand-grid,
.drivedex-model-grid,
.drivedex-entry-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drivedex-card{
  position: relative;
  display:block;
  overflow:hidden;
  border-radius:20px;
  border:1px solid var(--dd-border);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  color:inherit;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:transform 0.2s, box-shadow 0.2s;
}

.drivedex-card:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 28px rgba(0,0,0,.25);
  border-color: rgba(56,189,248,.3);
}

.drivedex-edit-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--dd-border);
  color: #fff !important;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.drivedex-card-image{
  aspect-ratio:16/9;
  background:#0c1628;
}

.drivedex-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.drivedex-card-brand-logo{
  position:absolute;
  right:10px;
  bottom:10px;
  max-width:min(42%, 96px);
  height:30px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  pointer-events:none;
}
.drivedex-card-brand-logo img{
  max-width:96px;
  max-height:30px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

.drivedex-brand-card .drivedex-card-image img {
  object-fit: contain;
  padding: 12px;
}

.drivedex-card-body{
  padding:10px 12px;
}
.drivedex-card-body h3{
  margin:0 0 4px;
  font-size:0.95rem;
  color:var(--dd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drivedex-card-body p{
  font-size: 0.8rem;
  margin: 0;
}

.drivedex-pill{
  display:inline-block;
  margin-top:6px;
  margin-right:4px;
  padding:4px 8px;
  font-size:.75rem;
  border-radius:999px;
  background:rgba(56,189,248,.12);
  border:1px solid rgba(56,189,248,.25);
  color:#bae6fd;
}

.drivedex-placeholder,
.drivedex-detail-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#dbeafe;
  font-weight:800;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.28), transparent 34%),
    linear-gradient(135deg,#0d182a,#1b2940);
}
.drivedex-placeholder span{font-size:2rem}
.drivedex-detail-placeholder{
  min-height:240px;
  border-radius:24px;
  font-size:2rem;
}

/* --- BOUTONS D'ACTION FLOTTANTS (Fiche détaillée) --- */
.drivedex-back-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff !important;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(4px);
}
.drivedex-detail-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.drivedex-action-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff !important;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.2s;
}
.drivedex-action-badge-danger {
  background: rgba(220, 38, 38, 0.85);
}

/* --- OVERLAY DE L'IMAGE DETAIL --- */
.drivedex-detail-media {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    background: linear-gradient(135deg,#0d182a,#1b2940);
}
.drivedex-detail-media img,
.drivedex-detail-media .drivedex-detail-placeholder{
    display:block;
    width:100% !important;
    height:100% !important;
}
.drivedex-detail-media img{
    object-fit:cover !important;
    object-position:center center;
    background:#0b1220;
}
.drivedex-detail-media .drivedex-detail-placeholder{
    min-height:0;
}
.drivedex-detail-media::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(11,18,32,0.95) 0%, rgba(11,18,32,0.6) 40%, transparent 100%);
    pointer-events: none;
}
.drivedex-detail-overlay-header {
    position: absolute;
    bottom: 16px;
    right: 16px;
    right: 16px;
    z-index: 10;
}
.drivedex-detail-overlay-header h1 {
    margin: 0 0 4px;
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.drivedex-detail-overlay-header p {
    margin: 0;
    color: var(--dd-accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* --- GRILLE DES FICHE TECHNIQUES --- */
.drivedex-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* --- STYLE : LA FICHE TECHNIQUE EN LISTE --- */
.drivedex-fiche-technique {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--dd-border);
    border-radius: 16px;
    padding: 16px;
}
.drivedex-fiche-title {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    color: var(--dd-accent);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-bottom: 10px;
}
.drivedex-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drivedex-spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.drivedex-spec-list li:last-child { border-bottom: none; padding-bottom: 0; }
.drivedex-spec-list li:first-child { padding-top: 0; }
.drivedex-spec-label {
    color: var(--dd-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.drivedex-spec-val {
    color: var(--dd-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

.drivedex-empty{
  padding:18px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.14);
  background:rgba(255,255,255,.03);
  color:var(--dd-muted);
}

.drivedex-form{
  display:grid;
  grid-template-rows:1fr auto;
  min-height:calc(100vh - 156px);
}

.drivedex-form-steps{
  display:grid;
  gap:12px;
}

.drivedex-form-card{
  padding:16px;
  border-radius:20px;
  border:1px solid var(--dd-border);
  background:rgba(255,255,255,.03);
}

.drivedex-form-card label{
  display:block;
  margin:0 0 6px;
  font-size:.92rem;
  font-weight:700;
  color:var(--dd-text);
}

.drivedex-form-card input,
.drivedex-form-card select,
.drivedex-form-card textarea{
  width:100%;
  min-height:48px;
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--dd-text);
}
.drivedex-form-card select{ appearance: none; }
.drivedex-form-card textarea{ min-height:96px; resize:none; margin-bottom:0; }

.drivedex-sticky-actions{
  position:sticky;
  bottom:0;
  padding:12px 0 calc(8px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(11,18,32,0),rgba(11,18,32,1) 40%);
}

.drivedex-main-action{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:12px 16px;
  border-radius:16px;
  border:none;
  font-weight:700;
  color:#fff !important;
  text-decoration:none !important;
  background:linear-gradient(180deg,var(--dd-accent),var(--dd-accent-2));
  cursor:pointer;
  box-shadow:0 12px 26px rgba(14,165,233,.22);
}

.drivedex-description{
  padding:16px;
  border-radius:20px;
  border:1px solid var(--dd-border);
  background:rgba(255,255,255,.03);
}
.drivedex-description,
.drivedex-description p,
.drivedex-description li,
.drivedex-description h1,
.drivedex-description h2,
.drivedex-description h3,
.drivedex-description h4{
  color:var(--dd-text);
}
.drivedex-description > :first-child{margin-top:0}
.drivedex-description > :last-child{margin-bottom:0}

/* ========================================================= */
/* ADAPTATIONS TABLETTE ET BUREAU (FULL WIDTH & MULTICOLUMN) */
/* ========================================================= */

@media (min-width: 700px){
  .drivedex-recent-section { display: block; }
  .drivedex-circular-chart { max-width: 65px; max-height: 65px; }
  .drivedex-stat-card strong{ font-size: 1.8rem; }
  .drivedex-chart-title { font-size: 1rem; }
  .drivedex-brand-grid, .drivedex-model-grid, .drivedex-entry-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap: 20px; }
  .drivedex-form-steps{ grid-template-columns:repeat(2, 1fr); align-items: start; gap: 20px; }
}

@media (min-width: 980px){
  .drivedex-app-shell{ grid-template-rows: 76px 1fr auto; }
  .drivedex-topbar{ padding: 10px 40px; gap: 30px; }
  .drivedex-topbar-title { font-size: 1.4rem; }
  .drivedex-content{ padding: 30px 40px; max-width: 1400px; margin: 0 auto; }
  .drivedex-brand-grid, .drivedex-model-grid, .drivedex-entry-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap: 24px;
  }

  /* Vue détail côté à côte pour les ordinateurs */
  .drivedex-detail{
    grid-template-columns: minmax(520px, 0.95fr) minmax(420px, 1fr);
    align-items: start;
    gap: 40px;
    display: grid;
  }

  .drivedex-detail-main{
    min-width: 0;
  }
  
  /* Image large en paysage sur desktop */
  .drivedex-detail-media{
    position: sticky;
    top: 20px;
    width: 100%;
    max-width: none;
    min-height: 280px;
  }

  .drivedex-detail-overlay-header h1{ font-size: 2.2rem; }

  /* Les deux encarts d'info côte à côte */
  .drivedex-specs-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
  }
}

@media (min-width: 1300px){
  .drivedex-brand-grid, .drivedex-model-grid, .drivedex-entry-grid{ grid-template-columns:repeat(5,minmax(0,1fr)); }
  .drivedex-form-steps{ grid-template-columns:repeat(4, 1fr); }
}

.drivedex-year-filter{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:8px 0 12px;padding-bottom:2px}
.drivedex-year-filter::-webkit-scrollbar{display:none}
.drivedex-year-filter-label{flex:0 0 auto;font-size:.72rem;color:var(--dd-muted);margin-right:2px;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.drivedex-owner-filter{margin:0 0 16px}
.drivedex-owner-filter-label{display:block;font-size:.72rem;color:var(--dd-muted);margin:0 0 8px;text-transform:uppercase;letter-spacing:.06em}
.drivedex-owner-filter-row{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.drivedex-owner-autocomplete{position:relative;flex:1 1 280px;min-width:0}
.drivedex-owner-input{width:100%;min-height:42px;padding:10px 14px;border-radius:14px;border:1px solid var(--dd-border);background:rgba(255,255,255,.04);color:var(--dd-text)}
.drivedex-owner-input::placeholder{color:var(--dd-muted)}
.drivedex-owner-suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto;padding:6px;border-radius:14px;border:1px solid var(--dd-border);background:rgba(11,18,32,.98);box-shadow:0 14px 28px rgba(0,0,0,.32)}
.drivedex-owner-suggestion{appearance:none;width:100%;text-align:left;min-height:38px;padding:9px 12px;border:0;border-radius:10px;background:transparent;color:var(--dd-text);cursor:pointer}
.drivedex-owner-suggestion:hover,.drivedex-owner-suggestion:focus{background:rgba(56,189,248,.12);outline:none}
.drivedex-owner-suggestion.is-empty{opacity:.65;cursor:default}
.drivedex-owner-submit,.drivedex-owner-reset{min-height:42px;padding:10px 14px;border-radius:14px;border:1px solid var(--dd-border);text-decoration:none;font-weight:700}
.drivedex-owner-submit{background:rgba(56,189,248,.16);color:var(--dd-text);cursor:pointer}
.drivedex-owner-reset{display:inline-flex;align-items:center;background:rgba(255,255,255,.04);color:var(--dd-text)}
.drivedex-year-chip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:32px;padding:6px 10px;border-radius:999px;border:1px solid var(--dd-border);background:rgba(255,255,255,.03);color:var(--dd-text);text-decoration:none;font-size:.82rem;white-space:nowrap}
.drivedex-year-chip.is-active{background:rgba(56,189,248,.14);border-color:rgba(56,189,248,.4);color:#bae6fd}
.drivedex-priority-strip{margin:8px 0 14px;padding:10px;border-radius:16px;border:1px solid var(--dd-border);background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02))}
.drivedex-priority-strip-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.drivedex-priority-hint{font-size:.62rem;color:var(--dd-muted);text-transform:uppercase;letter-spacing:.08em}
.drivedex-priority-mini-grid{display:grid;grid-template-columns:1fr;gap:8px}
.drivedex-priority-mini-card{display:grid;grid-template-columns:26px 44px 1fr;gap:8px;align-items:center;min-height:52px;padding:7px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(8,16,29,.55);color:var(--dd-text);text-decoration:none}
.drivedex-priority-rank{font-size:.78rem;font-weight:800;color:#7dd3fc;text-align:center}
.drivedex-priority-thumb,.drivedex-priority-thumb img,.drivedex-mini-thumb-placeholder{width:44px;height:44px;border-radius:10px;display:block;overflow:hidden}
.drivedex-priority-thumb img{object-fit:cover}
.drivedex-mini-thumb-placeholder{display:flex;align-items:center;justify-content:center;background:#132238;color:#cbd5e1;font-size:.78rem;font-weight:700}
.drivedex-priority-copy{min-width:0}
.drivedex-priority-copy strong{display:block;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drivedex-priority-brand{font-weight:700}
.drivedex-priority-copy small{display:block;font-size:.66rem;color:var(--dd-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drivedex-inline-hint{display:block;margin-top:6px;color:var(--dd-muted);font-size:.72rem;line-height:1.35}
.drivedex-priority-mini-card.is-manual{background:rgba(14,165,233,.08);border-color:rgba(56,189,248,.24)}
.drivedex-recent-title{margin-top:20px}
.drivedex-empty-state{padding:18px;border-radius:16px;border:1px solid var(--dd-border);background:rgba(255,255,255,.03);color:var(--dd-muted)}
@media (max-width:699px){
  .drivedex-priority-strip{padding:8px}
  .drivedex-priority-mini-card{min-height:48px;padding:6px;grid-template-columns:22px 38px 1fr}
  .drivedex-priority-thumb,.drivedex-priority-thumb img,.drivedex-mini-thumb-placeholder{width:38px;height:38px;border-radius:9px}
  .drivedex-priority-copy strong{font-size:.74rem}
  .drivedex-priority-copy small{font-size:.62rem}
}
@media (min-width:700px){.drivedex-priority-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media (max-width:699px){.drivedex-badges{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.drivedex-badge{padding:5px 7px;min-height:44px}.badge-icon{font-size:1rem}.badge-name{font-size:.68rem}.badge-req{font-size:.54rem}}

.drivedex-view .adsbygoogle,
.drivedex-view [class*="sponsor"],
.drivedex-view [class*="sponso"],
.drivedex-view [class*="parrain"],
.drivedex-view [id*="sponsor"],
.drivedex-view [id*="sponso"],
.drivedex-view [id*="parrain"],
.drivedex-view [aria-label*="Sponsor" i],
.drivedex-view [aria-label*="Parrain" i]{display:none !important}


.drivedex-detail-overlay-header p.is-primary{font-size:1.05rem;font-weight:800;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.45)}
.drivedex-host [class*="sponsor"],
.drivedex-host [class*="parrain"],
.drivedex-host [id*="sponsor"],
.drivedex-host [id*="parrain"],
.drivedex-container [class*="sponsor"],
.drivedex-container [class*="parrain"],
.drivedex-container [id*="sponsor"],
.drivedex-container [id*="parrain"]{display:none !important}


/* Dashboard compact */
.drivedex-home-view .drivedex-section-title{margin-bottom:8px}
.drivedex-home-view .drivedex-charts{margin-bottom:12px}
.drivedex-home-view .drivedex-dashboard-stats{margin-bottom:12px}
.drivedex-home-view .drivedex-year-filter{margin:6px 0 12px}
.drivedex-home-view .drivedex-priority-strip{margin:6px 0 10px}
.drivedex-home-view .drivedex-priority-strip-head .drivedex-section-title{font-size:1rem;line-height:1.1}
.drivedex-home-view .drivedex-priority-mini-grid{gap:6px}
.drivedex-home-view .drivedex-priority-mini-card{min-height:46px;padding:6px}
.drivedex-home-view .drivedex-priority-copy strong{font-size:.76rem}
.drivedex-home-view .drivedex-priority-copy small{font-size:.63rem}
.drivedex-home-view .drivedex-priority-hint{display:none}
.drivedex-home-view .drivedex-badges{gap:5px}
.drivedex-home-view .drivedex-badge{padding:4px 7px;min-height:42px}
.drivedex-home-view .badge-icon{font-size:1rem}
.drivedex-home-view .badge-name{font-size:.66rem}
.drivedex-home-view .badge-req{font-size:.52rem}

/* Remove sponsored/promoted blocks on home */
.drivedex-home-view .adsbygoogle,
.drivedex-home-view [class*="sponsor"],
.drivedex-home-view [class*="sponso"],
.drivedex-home-view [class*="parrain"],
.drivedex-home-view [id*="sponsor"],
.drivedex-home-view [id*="sponso"],
.drivedex-home-view [id*="parrain"],
.drivedex-home-view [aria-label*="Sponsor" i],
.drivedex-home-view [aria-label*="Parrain" i]{display:none !important}

@media (max-width:699px){
  .drivedex-home-view .drivedex-view-head h1{font-size:1.2rem;margin-bottom:8px}
  .drivedex-home-view .drivedex-charts{gap:8px;margin-bottom:10px}
  .drivedex-home-view .drivedex-chart-card{padding:10px 8px}
  .drivedex-home-view .drivedex-chart-title{font-size:.82rem}
  .drivedex-home-view .drivedex-chart-sub{font-size:.62rem}
  .drivedex-home-view .drivedex-dashboard-stats{gap:8px;margin-bottom:10px}
  .drivedex-home-view .drivedex-stat-card{padding:9px 6px;border-radius:14px}
  .drivedex-home-view .drivedex-stat-card span{font-size:.65rem;margin-bottom:3px}
  .drivedex-home-view .drivedex-stat-card strong{font-size:1.35rem}
  .drivedex-home-view .drivedex-section-title{font-size:.96rem;margin-bottom:7px}
  .drivedex-home-view .drivedex-badges{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:10px}
  .drivedex-home-view .drivedex-badge{gap:4px;padding:4px 5px;min-height:38px;border-radius:10px}
  .drivedex-home-view .badge-icon{font-size:.9rem}
  .drivedex-home-view .badge-name{font-size:.58rem;line-height:1}
  .drivedex-home-view .badge-req{font-size:.46rem;line-height:1}
  .drivedex-home-view .drivedex-year-filter{gap:5px;margin:4px 0 9px}
  .drivedex-home-view .drivedex-year-filter-label{font-size:.6rem}
  .drivedex-home-view .drivedex-year-chip{min-height:26px;padding:4px 8px;font-size:.7rem}
  .drivedex-home-view .drivedex-priority-strip{padding:6px;border-radius:12px;margin:4px 0 8px}
  .drivedex-home-view .drivedex-priority-strip-head{margin-bottom:6px}
  .drivedex-home-view .drivedex-priority-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .drivedex-home-view .drivedex-priority-mini-card{grid-template-columns:12px 20px 1fr;gap:4px;min-height:34px;padding:4px;border-radius:10px;align-items:center}
  .drivedex-home-view .drivedex-priority-rank{font-size:.58rem}
  .drivedex-home-view .drivedex-priority-thumb,.drivedex-home-view .drivedex-priority-thumb img,.drivedex-home-view .drivedex-mini-thumb-placeholder{width:20px;height:20px;border-radius:6px}
  .drivedex-home-view .drivedex-priority-copy strong{font-size:.58rem;line-height:1.02;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .drivedex-home-view .drivedex-priority-copy small{display:none}
  .drivedex-home-view .drivedex-priority-brand{display:none}
}


/* Extra compact mobile dashboard */
@media (max-width:699px){
  .drivedex-home-view .drivedex-year-filter{display:none !important}
  .drivedex-home-view .drivedex-badges{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-bottom:8px}
  .drivedex-home-view .drivedex-badge{padding:3px 4px;min-height:34px}
  .drivedex-home-view .badge-icon{font-size:.78rem}
  .drivedex-home-view .badge-name{font-size:.52rem}
  .drivedex-home-view .badge-req{font-size:.42rem}
  .drivedex-home-view .drivedex-priority-strip{padding:5px 6px;margin:3px 0 7px}
  .drivedex-home-view .drivedex-priority-strip-head{margin-bottom:4px}
  .drivedex-home-view .drivedex-priority-strip-head .drivedex-section-title{font-size:.88rem}
  .drivedex-home-view .drivedex-priority-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  .drivedex-home-view .drivedex-priority-mini-card{grid-template-columns:10px 18px 1fr;gap:4px;min-height:32px;padding:4px}
  .drivedex-home-view .drivedex-priority-thumb,.drivedex-home-view .drivedex-priority-thumb img,.drivedex-home-view .drivedex-mini-thumb-placeholder{width:18px;height:18px;border-radius:5px}
  .drivedex-home-view .drivedex-priority-rank{font-size:.56rem}
  .drivedex-home-view .drivedex-priority-copy strong{font-size:.56rem;line-height:1.02;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .drivedex-home-view .drivedex-priority-copy small{display:none}
  .drivedex-home-view .drivedex-priority-brand{display:none}
}

.drivedex-home-view .drivedex-home-view .drivedex-year-filter{display:none !important}
@media (max-width:699px){.drivedex-card-brand-logo{right:8px;bottom:8px;max-width:min(44%, 76px);height:24px}.drivedex-card-brand-logo img{max-width:76px;max-height:24px}}


.brand-logo {
  position: relative;
  right: 10px;
  top: 0;
}

.drivedex-install-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 12px 0;padding:10px 12px;border:1px solid rgba(56,189,248,.26);border-radius:14px;background:rgba(14,165,233,.10);color:var(--dd-text)}
.drivedex-install-banner[hidden]{display:none !important}
.drivedex-install-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.drivedex-install-copy strong{font-size:.86rem;line-height:1.15}
.drivedex-install-copy span{font-size:.68rem;line-height:1.3;color:var(--dd-muted)}
.drivedex-install-btn{appearance:none;border:0;border-radius:999px;padding:8px 12px;font-size:.76rem;font-weight:800;background:#38bdf8;color:#082032;cursor:pointer;white-space:nowrap}

@media (max-width:699px){
  .drivedex-home-view .drivedex-badges{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:8px}
  .drivedex-home-view .drivedex-badge{padding:4px 5px;min-height:38px}
  .drivedex-home-view .badge-icon{font-size:.86rem}
  .drivedex-home-view .badge-name{font-size:.56rem;line-height:1.02}
  .drivedex-home-view .badge-req{font-size:.44rem;line-height:1}
  .drivedex-install-banner{margin:8px 10px 0;padding:9px 10px;gap:10px}
  .drivedex-install-copy strong{font-size:.8rem}
  .drivedex-install-copy span{font-size:.64rem}
  .drivedex-install-btn{padding:7px 10px;font-size:.72rem}
}


.drivedex-topbar-title-rich{display:flex;align-items:center;justify-content:flex-start;text-align:left}
.drivedex-topbar-branding{display:flex;align-items:center;gap:12px;min-width:0}
.drivedex-topbar-appicon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(255,255,255,.1)}
.drivedex-topbar-appicon img{width:100%;height:100%;object-fit:cover;display:block}
.drivedex-topbar-appicon-placeholder{display:block;width:20px;height:20px;border-radius:8px;border:1px dashed rgba(255,255,255,.35)}
.drivedex-topbar-copy{display:flex;flex-direction:column;min-width:0}
.drivedex-topbar-copy strong{font-size:16px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drivedex-topbar-copy span{font-size:12px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drivedex-topbar-actions{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.drivedex-role-toggle{display:inline-flex;align-items:center;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1)}
.drivedex-role-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;color:#cbd5e1;text-decoration:none;font-size:13px;font-weight:600;transition:all .2s ease}
.drivedex-role-pill.is-active{background:#fff;color:#0f172a;box-shadow:0 6px 18px rgba(15,23,42,.18)}
@media (max-width: 640px){
  .drivedex-topbar{grid-template-columns:44px minmax(0,1fr);grid-template-areas:"home title" "actions actions";row-gap:10px}
  .drivedex-topbar > .drivedex-icon-btn:first-child{grid-area:home}
  .drivedex-topbar-title-rich{grid-area:title}
  .drivedex-topbar-actions{grid-area:actions;justify-content:space-between}
  .drivedex-role-toggle{flex:1;justify-content:space-between}
  .drivedex-role-pill{flex:1}
}


.drivedex-topbar{
  grid-template-columns:52px minmax(0,1fr) 52px;
  gap:12px;
}
.drivedex-topbar-title{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  text-align:center;
}
.drivedex-topbar-center{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:0;
  max-width:100%;
}
.drivedex-topbar-appicon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
}
.drivedex-topbar-appicon img{width:100%;height:100%;object-fit:cover;display:block}
.drivedex-topbar-appicon-placeholder{display:block;width:18px;height:18px;border-radius:7px;border:1px dashed rgba(255,255,255,.35)}
.drivedex-topbar-appname{
  font-size:1rem;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
}
.drivedex-role-switch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff !important;
  text-decoration:none !important;
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
  flex:0 0 auto;
}
.drivedex-role-switch:hover{background:rgba(255,255,255,.12)}
.drivedex-icon-btn-placeholder{opacity:0;pointer-events:none}
.drivedex-install-banner{display:none}
@media (max-width:699px){
  .drivedex-topbar{
    grid-template-columns:44px minmax(0,1fr) 44px;
    gap:8px;
    padding:10px;
  }
  .drivedex-topbar-center{
    gap:8px;
    width:100%;
  }
  .drivedex-topbar-appicon{
    width:28px;
    height:28px;
    flex-basis:28px;
    border-radius:9px;
  }
  .drivedex-topbar-appname{
    font-size:.95rem;
  }
  .drivedex-role-switch{
    min-height:30px;
    padding:0 10px;
    font-size:.74rem;
  }
  .drivedex-icon-btn,
  .drivedex-primary-btn{
    width:44px;
    height:44px;
  }
}
@media (min-width:700px){
  .drivedex-install-banner{display:none !important}
}


/* v4.3.2 mobile-only header fixes */
.drivedex-role-switch-text{display:block}
@media (max-width:699px){
  .drivedex-topbar{
    grid-template-columns:44px minmax(0,1fr) 44px !important;
    gap:6px !important;
    padding:8px 10px !important;
    min-height:60px;
  }
  .drivedex-topbar-title{
    min-width:0;
    overflow:hidden;
  }
  .drivedex-topbar-center{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    width:100%;
    min-width:0;
    overflow:hidden;
  }
  .drivedex-topbar-appicon{
    width:24px !important;
    height:24px !important;
    flex:0 0 24px !important;
    border-radius:8px !important;
  }
  .drivedex-topbar-appname{
    flex:0 1 auto;
    min-width:0;
    max-width:calc(100% - 82px);
    font-size:.88rem !important;
    line-height:1.1;
  }
  .drivedex-role-switch{
    flex:0 0 auto !important;
    min-height:28px !important;
    padding:0 8px !important;
    font-size:.7rem !important;
    max-width:84px;
  }
  .drivedex-icon-btn,
  .drivedex-primary-btn{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    flex:0 0 44px !important;
  }
  .drivedex-primary-btn{
    font-size:1.2rem !important;
  }
  .drivedex-install-banner{
    margin:6px 10px 0 !important;
    padding:8px 10px !important;
  }
  .drivedex-install-copy strong{font-size:.76rem !important}
  .drivedex-install-copy span{display:none !important}
  .drivedex-install-btn{padding:7px 10px !important;font-size:.72rem !important}
}
@media (min-width:700px){
  .drivedex-topbar,
  .drivedex-topbar-title,
  .drivedex-topbar-center,
  .drivedex-topbar-appicon,
  .drivedex-topbar-appname,
  .drivedex-role-switch,
  .drivedex-icon-btn,
  .drivedex-primary-btn{
    /* no desktop layout changes beyond existing v4.3.1 rules */
  }
}


/* v4.3.3 login button */
.drivedex-login-btn{
  width:auto !important;
  min-width:52px;
  padding:0 14px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  text-decoration:none !important;
}
.drivedex-login-shell{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:18px;
}
@media (max-width:699px){
  .drivedex-login-btn{
    min-width:44px;
    padding:0 10px;
    font-size:.72rem;
  }
}


/* v4.3.4 mobile guest topbar fix */
.drivedex-topbar-action{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:44px;
}
.drivedex-login-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto !important;
  min-width:52px;
  padding:0 14px;
  white-space:nowrap;
  overflow:visible;
}
.drivedex-login-btn-icon{
  font-size:1rem;
  line-height:1;
}
.drivedex-login-btn-text{
  display:inline-block;
  line-height:1;
}
@media (max-width:699px){
  .drivedex-topbar--guest{
    grid-template-columns:44px minmax(0,1fr) auto !important;
  }
  .drivedex-topbar--guest .drivedex-topbar-action{
    min-width:0;
  }
  .drivedex-topbar--guest .drivedex-login-btn{
    min-width:44px !important;
    height:44px !important;
    padding:0 10px !important;
    border-radius:14px !important;
    font-size:.72rem !important;
    gap:6px;
  }
  .drivedex-topbar--guest .drivedex-login-btn-text{
    display:none;
  }
  .drivedex-topbar--guest .drivedex-login-btn-icon{
    font-size:1.1rem;
  }
}

@media (max-width:699px){.drivedex-year-filter{gap:6px;margin:6px 0 10px}.drivedex-year-filter-label{font-size:.64rem}.drivedex-year-chip{min-height:28px;padding:4px 8px;font-size:.72rem}.drivedex-owner-filter-row{align-items:stretch}.drivedex-owner-autocomplete{flex:1 1 100%;width:100%}.drivedex-owner-submit,.drivedex-owner-reset{justify-content:center;flex:1 1 auto}}


.drivedex-view-head--vehicles{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.drivedex-view-head-main{min-width:0;flex:1 1 auto}.drivedex-view-head-actions{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:flex-end}.drivedex-owner-filter--compact{margin:0}.drivedex-owner-filter--compact .drivedex-owner-filter-row{gap:6px;align-items:center;flex-wrap:nowrap}.drivedex-owner-input--compact{width:104px;min-width:0;min-height:34px;padding:6px 8px;border-radius:12px;font-size:.82rem}.drivedex-owner-input--compact::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.drivedex-owner-submit--icon,.drivedex-owner-reset--icon{min-width:34px;width:34px;min-height:34px;height:34px;padding:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;line-height:1}.drivedex-owner-reset--icon{font-size:1.1rem}.drivedex-owner-submit--icon{background:rgba(255,255,255,.05)}
@media (max-width:699px){.drivedex-view-head--vehicles{align-items:center}.drivedex-view-head--vehicles .drivedex-view-head-main h1{font-size:1.08rem}.drivedex-view-head--vehicles .drivedex-view-head-main p{font-size:.72rem}.drivedex-year-filter-label{display:none}.drivedex-year-filter{margin:4px 0 8px}.drivedex-year-chip{min-height:26px;padding:3px 7px;font-size:.68rem}.drivedex-owner-input--compact{width:78px;min-height:30px;padding:4px 6px;font-size:.76rem}.drivedex-owner-submit--icon,.drivedex-owner-reset--icon{min-width:30px;width:30px;min-height:30px;height:30px;border-radius:10px}}

.drivedex-owner-filter-label,.drivedex-owner-suggestions,.drivedex-owner-autocomplete{display:none !important}
.drivedex-owner-filter--compact .drivedex-owner-filter-row{gap:4px;align-items:center;flex-wrap:nowrap}
.drivedex-owner-input--compact{width:92px;min-width:0;min-height:32px;padding:4px 8px;border-radius:10px;font-size:.74rem;background:rgba(255,255,255,.04)}
.drivedex-owner-input--compact::placeholder{color:transparent}
.drivedex-owner-submit--icon,.drivedex-owner-reset--icon{min-width:32px;width:32px;min-height:32px;height:32px;border-radius:10px}
@media (max-width:699px){.drivedex-owner-input--compact{width:68px;min-height:28px;padding:3px 6px;font-size:.7rem}.drivedex-owner-submit--icon,.drivedex-owner-reset--icon{min-width:28px;width:28px;min-height:28px;height:28px;border-radius:9px}}


/* v4.4.0 mobile simplifié */
.drivedex-search-filter--compact{margin:0}
.drivedex-search-filter-row{display:flex;align-items:center;gap:6px;min-height:34px;padding:4px 8px;border-radius:12px;border:1px solid var(--dd-border);background:rgba(255,255,255,.04)}
.drivedex-search-icon{font-size:.9rem;line-height:1;opacity:.85;flex:0 0 auto}
.drivedex-search-input--compact{width:112px;min-width:0;border:0;background:transparent;color:var(--dd-text);padding:0;font-size:.78rem;outline:none;box-shadow:none}
.drivedex-search-input--compact::placeholder{color:var(--dd-muted)}
.drivedex-search-reset{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;text-decoration:none;color:var(--dd-text);background:rgba(255,255,255,.08);font-size:.72rem;line-height:1;flex:0 0 auto}
.drivedex-search-filter input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.drivedex-card-body{position:relative;padding-right:92px}
.drivedex-card-brand-logo{right:10px;bottom:12px;width:72px;max-width:72px;height:26px;justify-content:center;overflow:visible}
.drivedex-card-brand-logo img{width:100%;height:100%;object-fit:contain;object-position:center center;max-width:none;max-height:none}
@media (max-width:699px){
  .drivedex-back-link{display:none}
  .drivedex-view-head--vehicles{align-items:center}
  .drivedex-search-filter-row{min-height:30px;padding:3px 7px;border-radius:10px}
  .drivedex-search-input--compact{width:84px;font-size:.72rem}
  .drivedex-card-body{padding-right:78px}
  .drivedex-card-brand-logo{right:8px;bottom:10px;width:62px;max-width:62px;height:22px}
}



/* v4.4.0 cartes véhicules : titre inchangé, logo seulement déplacé à gauche de la marque */
.drivedex-entry-card .drivedex-card-body{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 12px;
}
.drivedex-entry-card .drivedex-card-body h3{
  margin:0;
  line-height:1.2;
  white-space:normal;
  overflow-wrap:anywhere;
}
.drivedex-entry-card .drivedex-card-brand-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.drivedex-entry-card .drivedex-card-brand-logo{
  position:static;
  flex:0 0 30px;
  width:30px;
  height:24px;
  min-width:30px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  overflow:visible;
}
.drivedex-entry-card .drivedex-card-brand-logo img{
  width:auto;
  height:auto;
  max-width:30px;
  max-height:24px;
  object-fit:contain;
  object-position:left center;
}
.drivedex-entry-card .drivedex-card-brand{
  margin:0;
  min-width:0;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.drivedex-entry-card .drivedex-card-model{
  margin:0;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.drivedex-detail-back-link{margin-bottom:10px}
@media (max-width:699px){
  .drivedex-detail-back-link{display:none}
  .drivedex-entry-card .drivedex-card-body{
    padding:9px 10px;
    gap:3px;
  }
  .drivedex-entry-card .drivedex-card-brand-row{
    gap:6px;
  }
  .drivedex-entry-card .drivedex-card-brand-logo{
    flex-basis:26px;
    width:26px;
    height:20px;
    min-width:26px;
  }
  .drivedex-entry-card .drivedex-card-brand-logo img{
    max-width:26px;
    max-height:20px;
  }
  .drivedex-entry-card .drivedex-card-brand{
    font-size:.8rem;
  }
  .drivedex-entry-card .drivedex-card-body h3{
    font-size:.9rem;
  }
  .drivedex-entry-card .drivedex-card-model{
    font-size:.76rem;
  }
}


.drivedex-chart-link{display:block;color:inherit;text-decoration:none}
.drivedex-chart-link .drivedex-chart-card{transition:transform .2s,border-color .2s,box-shadow .2s}
.drivedex-chart-link:hover .drivedex-chart-card{transform:translateY(-3px);border-color:rgba(56,189,248,.4);box-shadow:0 8px 24px rgba(0,0,0,.2)}
.drivedex-brand-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.drivedex-brand-head-main{min-width:0;flex:1 1 auto}
.drivedex-brand-head-actions{flex:0 0 auto}
.drivedex-create-folder-btn,.drivedex-primary-action-btn,.drivedex-secondary-btn,.drivedex-folder-mini-btn{
  appearance:none;border:1px solid var(--dd-border);background:rgba(255,255,255,.06);color:var(--dd-text);border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer
}
.drivedex-create-folder-btn{white-space:nowrap}
.drivedex-primary-action-btn{background:linear-gradient(180deg,var(--dd-accent),var(--dd-accent-2));border:none}
.drivedex-folder-card{overflow:hidden}
.drivedex-folder-card__main{display:block;text-decoration:none;color:inherit}
.drivedex-folder-card__actions{display:flex;gap:8px;padding:0 12px 12px}
.drivedex-folder-delete-form{margin:0;flex:1 1 auto}
.drivedex-folder-mini-btn{width:100%;padding:8px 10px;font-size:.85rem}
.drivedex-folder-mini-btn.is-danger{border-color:rgba(239,68,68,.35);color:#fecaca}
.drivedex-folder-modal[hidden]{display:none !important}
.drivedex-folder-modal{position:fixed;inset:0;z-index:2147483647}
.drivedex-folder-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.drivedex-folder-modal__dialog{position:relative;max-width:560px;width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;margin:12px auto;background:var(--dd-surface);border:1px solid var(--dd-border);border-radius:18px;padding:16px}
.drivedex-folder-modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.drivedex-folder-modal__head h2{margin:0;font-size:1.1rem}
.drivedex-folder-close{border:none;background:transparent;color:var(--dd-text);font-size:1.7rem;line-height:1;cursor:pointer}
.drivedex-folder-form label{display:block;margin:10px 0 6px;font-weight:600}
.drivedex-folder-form input[type="text"], .drivedex-folder-form input[type="file"]{width:100%}
.drivedex-folder-vehicles{display:grid;grid-template-columns:1fr;gap:8px;max-height:240px;overflow:auto;padding:8px;border:1px solid var(--dd-border);border-radius:12px;background:rgba(255,255,255,.03)}
.drivedex-folder-vehicle{display:flex;align-items:center;gap:8px}
.drivedex-folder-form__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.drivedex-notice{margin:0 0 14px;padding:10px 12px;border:1px solid var(--dd-border);border-radius:12px;background:rgba(255,255,255,.04);color:var(--dd-text)}
@media (max-width: 640px){.drivedex-brand-head{align-items:stretch;flex-direction:column}.drivedex-brand-head-actions{display:flex;justify-content:flex-end}.drivedex-create-folder-btn{padding:8px 12px;font-size:.88rem}}


.drivedex-top-complete-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--dd-text);
  text-decoration:none !important;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
}

.drivedex-top-complete-link span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(56,189,248,.18);
  color:var(--dd-accent);
  font-size:.72rem;
}

.drivedex-checkline{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  font-weight:600;
}

.drivedex-checkline input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
}


@media (max-width:699px){.drivedex-view-head--dashboard{align-items:center;gap:8px}.drivedex-top-complete-link{padding:6px 8px;font-size:.68rem;gap:4px}.drivedex-top-complete-link span{min-width:18px;height:18px;padding:0 5px;font-size:.64rem}}
.drivedex-checkline{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 12px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.04);cursor:pointer}.drivedex-checkline span{font-size:.9rem;line-height:1.25}.drivedex-checkline input[type="checkbox"]{width:18px;height:18px;min-width:18px;margin:0}

.drivedex-view-head--folder .drivedex-view-head-actions{display:flex;align-items:center;gap:8px}.drivedex-folder-delete-form--inline{display:inline-flex;margin:0}.drivedex-folder-delete-form--inline .drivedex-folder-mini-btn{width:auto}.drivedex-folder-card__actions{display:none !important}


.drivedex-view-head--folder .drivedex-view-head-main{width:100%}
.drivedex-folder-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.drivedex-folder-title-row h1{margin:0;min-width:0;flex:1 1 auto}
.drivedex-view-head--folder .drivedex-view-head-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.drivedex-view-head--folder .drivedex-folder-mini-btn{width:auto;padding:6px 10px;font-size:.78rem;line-height:1.1;border-radius:10px}
.drivedex-view-head--folder .drivedex-folder-delete-form--inline{margin:0;display:inline-flex}
@media (max-width:699px){
  .drivedex-folder-title-row{align-items:flex-start}
  .drivedex-view-head--folder .drivedex-folder-mini-btn{padding:5px 8px;font-size:.74rem}
}

.drivedex-checkline-subtle{
  opacity:.72;
  margin-top:10px;
}
.drivedex-main-action[disabled]{
  opacity:.7;
  cursor:wait;
}


/* Compact home stats: Marques / Catégories / Véhicules on one line */
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  align-items:stretch;
}
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card{
  padding:6px 4px;
  border-radius:12px;
  min-height:0;
}
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card span{
  font-size:.58rem;
  margin-bottom:2px;
  letter-spacing:.02em;
  line-height:1;
}
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card strong{
  font-size:1.05rem;
  line-height:1;
}
@media (max-width: 480px){
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three{gap:5px;}
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card{padding:5px 3px;}
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card span{font-size:.54rem;}
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card strong{font-size:.96rem;}
}


/* Home stats fixed on one line */
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  align-items:stretch;
}
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card{
  flex:1 1 0 !important;
  width:calc((100% - 20px) / 3) !important;
  max-width:calc((100% - 20px) / 3) !important;
  min-width:0 !important;
  min-height:72px !important;
  padding:10px 8px !important;
  border-radius:14px !important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-sizing:border-box;
}
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card span{
  font-size:.68rem !important;
  line-height:1.05 !important;
  margin-bottom:5px !important;
  letter-spacing:.05em !important;
  white-space:nowrap;
}
.drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card strong{
  font-size:1.65rem !important;
  line-height:1 !important;
}
@media (max-width:699px){
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three{
    gap:6px !important;
  }
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card{
    width:calc((100% - 12px) / 3) !important;
    max-width:calc((100% - 12px) / 3) !important;
    min-height:64px !important;
    padding:8px 5px !important;
    border-radius:12px !important;
  }
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card span{
    font-size:.56rem !important;
    margin-bottom:4px !important;
  }
  .drivedex-home-view .drivedex-dashboard-stats.drivedex-dashboard-stats--three .drivedex-stat-card strong{
    font-size:1.2rem !important;
  }
}

/* Detail image zoom */
.drivedex-detail-zoom{
  position:absolute;
  top:14px;
  left:14px;
  z-index:12;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(15,23,42,.86);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  cursor:pointer;
  backdrop-filter:blur(6px);
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.drivedex-detail-zoom:hover{transform:scale(1.04);}
.drivedex-fiche-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px;}
.drivedex-copy-specs-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid rgba(56,189,248,.22);border-radius:999px;background:rgba(56,189,248,.08);color:#e0f2fe;font-size:.92rem;line-height:1;cursor:pointer;flex:0 0 34px;transition:transform .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease;opacity:.88;}
.drivedex-copy-specs-btn:hover{transform:translateY(-1px);background:rgba(56,189,248,.16);border-color:rgba(56,189,248,.42);opacity:1;}
.drivedex-copy-specs-btn.is-copied{background:rgba(34,197,94,.16);border-color:rgba(34,197,94,.42);color:#dcfce7;}
@media (max-width: 640px){.drivedex-fiche-head{align-items:center;}.drivedex-copy-specs-btn{width:32px;height:32px;flex-basis:32px;}}
.drivedex-lightbox[hidden]{display:none !important;}
.drivedex-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(5,10,20,.92);
  overflow:auto;
  padding:clamp(12px, 3vw, 28px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.drivedex-lightbox img{
  display:block;
  width:auto;
  height:auto;
  max-width:min(100%, calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  object-fit:contain;
  margin:0 auto;
  border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.4);
}
@media (max-width: 768px){
  .drivedex-lightbox img{
    max-width:calc(100vw - 16px);
    max-height:calc(100vh - 16px);
    border-radius:12px;
  }
}
.drivedex-lightbox-close{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:1.8rem;
  line-height:1;
  cursor:pointer;
}
body.drivedex-lightbox-open{overflow:hidden;}

.drivedex-home-view .drivedex-dashboard-stats--three{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
.drivedex-home-view .drivedex-dashboard-stats--three .drivedex-stat-card{padding:8px 3px;min-height:68px;}
@media (max-width: 480px){
  .drivedex-home-view .drivedex-dashboard-stats--three{gap:6px !important;}
  .drivedex-home-view .drivedex-dashboard-stats--three .drivedex-stat-card{padding:7px 2px;min-height:64px;border-radius:12px;}
  .drivedex-home-view .drivedex-dashboard-stats--three .drivedex-stat-card span{font-size:.58rem !important;letter-spacing:.02em;}
  .drivedex-home-view .drivedex-dashboard-stats--three .drivedex-stat-card strong{font-size:1.05rem !important;}
}


/* Dex Manager switcher + compact stats */
.drivedex-stats{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}
.drivedex-stat-card{width:auto !important;min-height:0 !important;height:auto !important;padding:10px 12px !important}
.drivedex-stat-card h3{font-size:.85rem !important;margin:0 0 4px !important}
.drivedex-stat-card .value,.drivedex-stat-number{font-size:1.2rem !important;line-height:1.1 !important}
.drivedex-topbar-center{gap:10px}
.drivedex-switcher-group{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.drivedex-app-switcher{position:relative;min-width:0}
.drivedex-app-switcher-toggle{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:inherit;border-radius:999px;cursor:pointer;max-width:100%}
.drivedex-app-switcher-label{display:flex;align-items:center;min-width:0}
.drivedex-app-switcher-title{font-weight:800;font-size:.95rem;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.drivedex-app-switcher-subtitle{font-size:.72rem;opacity:.75;line-height:1.1}
.drivedex-app-switcher-caret{font-size:.8rem;opacity:.8}
.drivedex-app-switcher-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:40;min-width:210px;padding:8px;background:#111827;border:1px solid rgba(255,255,255,.12);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.drivedex-app-switcher-item{display:block;padding:10px 12px;border-radius:10px;color:#fff;text-decoration:none;white-space:nowrap}
.drivedex-app-switcher-item:hover,.drivedex-app-switcher-item.is-active{background:rgba(255,255,255,.08)}
@media (max-width:680px){.drivedex-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.drivedex-stat-card{padding:8px 8px !important}.drivedex-stat-card h3{font-size:.72rem !important}.drivedex-stat-card .value,.drivedex-stat-number{font-size:1rem !important}.drivedex-app-switcher-title{max-width:92px;font-size:.82rem}.drivedex-app-switcher-subtitle{font-size:.64rem}.drivedex-app-switcher-toggle{padding:6px 8px}}

@media (max-width:680px){.drivedex-switcher-group{gap:6px}.drivedex-app-switcher-title{max-width:108px;font-size:.82rem}.drivedex-app-switcher-subtitle{display:none}.drivedex-app-switcher-toggle{padding:6px 8px}.drivedex-app-switcher-menu{min-width:150px;max-width:min(78vw,220px)}.drivedex-app-switcher-menu--right{right:0;left:auto}}

.drivedex-app-switcher-menu--right{left:auto;right:0}


/* v1.0.1 mobile dropdown visibility fix */
.drivedex-app-switcher{z-index:80}
.drivedex-app-switcher.is-open{z-index:9999}
.drivedex-app-switcher-toggle{position:relative;z-index:2;touch-action:manipulation}
.drivedex-app-switcher-menu{display:block;visibility:visible;opacity:1;transform:none}
.drivedex-app-switcher-menu[hidden]{display:none !important;visibility:hidden !important;opacity:0 !important;pointer-events:none !important}
.drivedex-app-switcher.is-open .drivedex-app-switcher-menu{display:block;visibility:visible;opacity:1;pointer-events:auto}
@media (max-width:699px){
  .drivedex-topbar,
  .drivedex-topbar-title,
  .drivedex-topbar-center,
  .drivedex-switcher-group,
  .drivedex-app-switcher{overflow:visible !important}
  .drivedex-topbar{position:relative;z-index:200}
  .drivedex-switcher-group{position:relative;z-index:300;flex-wrap:nowrap}
  .drivedex-app-switcher-menu{top:calc(100% + 6px);z-index:99999;min-width:140px;max-width:min(82vw,220px);max-height:min(50vh,320px);overflow:auto;-webkit-overflow-scrolling:touch}
  .drivedex-app-switcher-title{max-width:84px}
}
/* FIX DriveDex dropdown invisible */
.drivedex select {
    color: #000 !important;
    background-color: #fff !important;
    -webkit-text-fill-color: #000 !important;
}

.drivedex select option {
    color: #000 !important;
    background-color: #fff !important;
}
/* FIX global dropdown (safe) */
select {
    color: #000 !important;
    background-color: #fff !important;
}
/* Force paysage sur la fiche détail */
.drivedex-detail .drivedex-detail-media > img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center center !important;
}
@media (max-width: 699px){
  .drivedex-detail-media{
    min-height: 200px;
  }
}
