:root{
      /* Thème CLAIR — Bleu & Orange */
      --bg:#f4f8ff;
      --panel:rgba(255,255,255,.78);
      --panel2:rgba(255,255,255,.92);
      --stroke:rgba(15,23,42,.10);
      --text:#0f172a;
      --muted:rgba(15,23,42,.70);
      --muted2:rgba(15,23,42,.55);
      --brand:#1d4ed8;  /* bleu */
      --brand2:#ff7a00; /* orange */
      --ok:#16a34a;
      --warn:#d97706;
      --shadow: 0 18px 50px rgba(15,23,42,.12);
      --radius: 18px;
      --radius2: 26px;
    }
    *{box-sizing:border-box}
    html,body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
      color:var(--text);
      background:
        radial-gradient(1200px 600px at 10% 10%, rgba(29,78,216,.18), transparent 60%),
        radial-gradient(900px 500px at 92% 22%, rgba(255,122,0,.16), transparent 62%),
        radial-gradient(900px 520px at 55% 92%, rgba(29,78,216,.10), transparent 58%),
        linear-gradient(180deg, #ffffff, var(--bg));
      overflow-x:hidden;
    }
    a{color:inherit; text-decoration:none}
    .wrap{max-width:1280px; margin:0 auto; padding:0 20px}

    /* Header */
    .topbar{
      position:sticky;
      top:0;
      z-index:50;
      backdrop-filter: blur(12px);
      background: rgba(255,255,255,.78);
      border-bottom:1px solid var(--stroke);
    }
    .topbar .inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:14px;
      padding:14px 0;
    }
    .brand{
      display:flex;
      align-items:center;
      gap:10px;
      font-weight:900;
      letter-spacing:.2px;
    }
    .logo{
      width:26px;
      height:26px;
      border-radius:9px;
      background: #c2410c; /* orange foncé */
      box-shadow: 0 10px 24px rgba(194,65,12,.22);
      position:relative;
      overflow:hidden;
      flex: 0 0 auto;
    }
    .logo:before{content:""; position:absolute; inset:-8px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%)}
    .logo svg{width:100%; height:100%; display:block}
    .logo .mark{filter: drop-shadow(0 6px 10px rgba(15,23,42,.18))}
    .brand span{font-size:16px}
    .brand em{font-style:normal; color:rgba(15,23,42,.78); font-weight:800; margin-left:6px; font-size:12px; padding:4px 8px; border:1px solid var(--stroke); border-radius:999px; background:rgba(15,23,42,.03)}

    .nav{display:flex; align-items:center; gap:10px}
    .nav a{padding:10px 12px; border-radius:12px; color:var(--muted); border:1px solid transparent}
    .nav a:hover{color:var(--text); border-color:var(--stroke); background:rgba(15,23,42,.03)}

    .actions{display:flex; gap:10px; align-items:center}
    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      gap:10px;
      padding:10px 14px;
      border-radius:14px;
      border:1px solid var(--stroke);
      background:rgba(255,255,255,.85);
      color:var(--text);
      cursor:pointer;
      transition:transform .15s ease, background .15s ease, border-color .15s ease;
      font-weight:700;
      user-select:none;
      white-space:nowrap;
    }
    .btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.96)}
    .btn.primary{
      border-color: rgba(29,78,216,.35);
      background: #0b2a6b; /* bleu foncé */
      color: #ffffff;
      box-shadow: 0 14px 34px rgba(11,42,107,.18);
    }
    .btn.primary:hover{transform: translateY(-1px) scale(1.01); background:#0a255f}
    .btn.primary:active{transform: translateY(0px) scale(.99)}
    .btn.small{padding:9px 12px; border-radius:12px; font-size:14px}

    .menuBtn{display:none}

    /* Hero */
    .hero{padding:34px 0 18px}
    .heroGrid{
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:18px;
      align-items:stretch;
    }
    .heroCard{
      border-radius: var(--radius2);
      border:1px solid var(--stroke);
      background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
      box-shadow: var(--shadow);
      overflow:hidden;
      position:relative;
    }
    .heroCard .pad{padding:22px}
    .kicker{
      display:inline-flex; gap:10px; align-items:center;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid var(--stroke);
      background: rgba(255,255,255,.80);
      color: var(--muted);
      font-weight:700;
      font-size:12px;
    }
    .kDot{width:8px; height:8px; border-radius:99px; background:linear-gradient(135deg, var(--brand), var(--brand2))}
    h1{margin:14px 0 10px; font-size:40px; line-height:1.06; letter-spacing:-.6px}
    .sub{color:var(--muted); font-size:15px; line-height:1.6; max-width:58ch}

    .trust{
      display:flex; flex-wrap:wrap; gap:10px;
      margin-top:16px;
    }

    /* Texte rassurant */
    .reassure{margin-top:14px; display:grid; gap:8px}
    .rLine{display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-size:13px; line-height:1.55}
    .rLine strong{color:rgba(15,23,42,.90)}
    .rDot{width:8px; height:8px; border-radius:999px; background:#0b2a6b; margin-top:7px; flex:0 0 8px}

    .pill{
      display:inline-flex; align-items:center; gap:8px;
      padding:8px 10px;
      border-radius:999px;
      border:1px solid var(--stroke);
      background: rgba(255,255,255,.03);
      color: var(--muted);
      font-weight:700;
      font-size:12px;
    }
    .ic{
      width:18px; height:18px;
      border-radius:8px;
      display:grid; place-items:center;
      background: rgba(34,197,94,.14);
      border:1px solid rgba(34,197,94,.28);
      color: rgba(34,197,94,1);
      font-weight:900;
      font-size:12px;
    }

    /* Search panel */
    .search{
      padding:18px;
      border-radius: var(--radius2);
      border:1px solid var(--stroke);
      background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
      box-shadow: var(--shadow);
      position:relative;
      overflow:hidden;
    }
    .search:before{content:""; position:absolute; inset:-1px; background: radial-gradient(700px 350px at 20% 0%, rgba(29,78,216,.16), transparent 60%), radial-gradient(700px 350px at 95% 30%, rgba(255,122,0,.14), transparent 60%); pointer-events:none}

    .search h2{margin:4px 0 12px; font-size:18px; letter-spacing:-.2px}
    .searchGrid{
      display:grid;
      grid-template-columns: 1.15fr 1fr 1fr;
      gap:10px;
      position:relative;
    }
    .field{
      border:1px solid var(--stroke);
      border-radius: 16px;
      background: rgba(255,255,255,.86);
      padding:10px 12px;
      min-height:54px;
    }
    .label{font-size:12px; color:var(--muted2); font-weight:700}
    .input, select{
      width:100%;
      background:transparent;
      border:0;
      color:var(--text);
      outline:none;
      font-size:14px;
      margin-top:6px;
      appearance:none;
    }
    select{cursor:pointer}
    input[type="date"]::-webkit-calendar-picker-indicator{filter: invert(0) opacity(.55)}

    .searchRow{
      display:flex;
      gap:10px;
      margin-top:10px;
      align-items:center;
      position:relative;
      flex-wrap:wrap;
    }
    .searchRow .btn.primary{flex:1; min-width:220px}
    .searchRow .btn.reset{flex:0 0 auto; min-width:160px}

    /* Filtres */
    .filters{margin-top:10px}
    .filtersTitle{font-weight:900; font-size:13px; color:rgba(15,23,42,.85); margin:0 0 10px}
    .chipGrid{display:flex; flex-wrap:wrap; gap:10px}
    .chip{display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; border:1px solid var(--stroke); background: rgba(15,23,42,.02); color:var(--muted); font-weight:800; font-size:12px; cursor:pointer; user-select:none}
    .chip input{appearance:none; width:14px; height:14px; border-radius:4px; border:1px solid rgba(15,23,42,.25); background:rgba(255,255,255,.9); display:inline-block; position:relative}
    .chip input:checked{border-color: rgba(11,42,107,.55); background: rgba(11,42,107,.12)}
    .chip input:checked:after{content:""; position:absolute; inset:2px; border-radius:2px; background:#0b2a6b}
    .filtersGrid{display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:12px}
    .filtersGrid .field{min-height:56px}
    @media (max-width:640px){.filtersGrid{grid-template-columns:1fr}}

    /* Sections */
    .section{padding:18px 0}
    .sectionTitle{display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin:0 0 12px}
    .sectionTitle h3{margin:0; font-size:18px}
    .sectionTitle p{margin:0; color:var(--muted); font-size:13px}

    .grid{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap:12px;
    }
    .card{
      grid-column: span 3;
      border-radius: var(--radius);
      border:1px solid var(--stroke);
      background: rgba(255,255,255,.88);
      overflow:hidden;
      transition: transform .15s ease, background .15s ease, border-color .15s ease;
    }
    .card:hover{transform: translateY(-2px); background: rgba(255,255,255,.96)}
    .thumb{
      height:190px;
      background:
        radial-gradient(220px 120px at 30% 30%, rgba(255,255,255,.55), transparent 55%),
        linear-gradient(135deg, rgba(29,78,216,.18), rgba(255,122,0,.14));
      border-bottom:1px solid var(--stroke);
      position:relative;
    }

    @media (max-width: 640px){
      .thumb{height:170px}
    }

    /* Vehicle cover photo (home + search cards) */
    .thumbImg{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:50% 50%;
      display:block;
      transform: translateZ(0);
    }
    .thumb:after{
      content:"";
      position:absolute;
      inset:0;
      background: linear-gradient(180deg, rgba(15,23,42,.00), rgba(15,23,42,.18));
      pointer-events:none;
    }

    /* Pages véhicule / réservation : image plus grande et mieux cadrée */
    .vehicleHero{
      height:330px;
      border-radius:18px;
      overflow:hidden;
      border:1px solid var(--stroke);
    }
    .bookingHero{
      height:210px;
      border-radius:18px;
      overflow:hidden;
      border:1px solid var(--stroke);
    }
    @media (max-width: 640px){
      .vehicleHero{height:230px}
      .bookingHero{height:180px}
    }

    /* Calendrier disponibilités (gris = réservé/bloqué) */
    .cal-wrap{display:grid; gap:12px}
    .cal-card{border:1px solid var(--stroke); border-radius:16px; background:rgba(255,255,255,.88); overflow:hidden}
    .cal-head{padding:10px 12px; border-bottom:1px solid var(--stroke); background:rgba(248,250,252,.9)}
    .cal-grid{display:grid; grid-template-columns:repeat(7, 1fr); gap:6px; padding:12px}
    .cal-dow{font-size:11px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; color:rgba(15,23,42,.65); text-align:center}
    .cal-cell{height:34px; border-radius:10px; display:grid; place-items:center; font-weight:900; font-size:12px; border:1px solid rgba(15,23,42,.08)}
    .cal-empty{border:none; background:transparent}
    .cal-cell.is-free{background:rgba(34,197,94,.06)}
    .cal-cell.is-pending{background:rgba(148,163,184,.28); color:rgba(15,23,42,.62)}
    .cal-cell.is-booked{background:rgba(148,163,184,.45); color:rgba(15,23,42,.72)}
    .cal-cell.is-blocked{background:rgba(148,163,184,.55); color:rgba(15,23,42,.72)}
    @media (max-width: 640px){
      .cal-grid{gap:5px; padding:10px}
      .cal-cell{height:30px; border-radius:9px}
    }
    .badge{
      position:absolute; left:12px; top:12px;
      padding:7px 10px;
      border-radius:999px;
      font-weight:800;
      font-size:12px;
      border:1px solid rgba(15,23,42,.14);
      background: rgba(255,255,255,.84);
      color: rgba(15,23,42,.86);
    }

    /* Keep badge above photo overlay */
    .badge{z-index:2}
    .price{z-index:2}
    .price{
      position:absolute; right:12px; top:12px;
      padding:7px 10px;
      border-radius:999px;
      font-weight:900;
      font-size:12px;
      border:1px solid rgba(255,122,0,.35);
      background: rgba(255,122,0,.14);
      color: rgba(124,45,18,.92);
    }
    .body{padding:12px}
    .title{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
    .title strong{font-size:14px}
    .rating{display:inline-flex; gap:6px; align-items:center; color:rgba(15,23,42,.82); font-weight:900; font-size:12px}
    .star{width:16px; height:16px; border-radius:8px; background: rgba(217,119,6,.12); border:1px solid rgba(217,119,6,.24); display:grid; place-items:center; color:rgba(217,119,6,1); font-size:12px}

    /* Pricing (under title) */
    .pricing{margin-top:8px; display:flex; flex-wrap:wrap; gap:8px}
    .pillPrice,.pillDeposit{display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:999px; font-weight:900; font-size:12px; border:1px solid var(--stroke); background: rgba(255,255,255,.70)}
    .pillPrice{border-color: rgba(255,41,0,.35); background: rgba(255,41,0,.10); color: rgba(124,45,18,.96)}
    .pillDeposit{border-color: rgba(29,78,216,.30); background: rgba(29,78,216,.08); color: rgba(29,78,216,.95); font-weight:800}


    .meta{margin-top:8px; color:var(--muted); font-size:13px; display:flex; flex-wrap:wrap; gap:10px}
    .tag{padding:6px 9px; border-radius:999px; border:1px solid var(--stroke); background: rgba(15,23,42,.03); font-weight:700; font-size:12px; color:var(--muted)}

    /* Value props */
    .vCard{grid-column: span 4; padding:14px; border-radius: var(--radius); border:1px solid var(--stroke); background: rgba(255,255,255,.88)}
    .vTop{display:flex; gap:10px; align-items:center}
    .vIcon{width:40px; height:40px; border-radius:14px; display:grid; place-items:center; border:1px solid rgba(29,78,216,.24); background: linear-gradient(135deg, rgba(29,78,216,.10), rgba(255,122,0,.10)); font-weight:1000}
    .vCard h4{margin:0; font-size:14px}
    .vCard p{margin:8px 0 0; color:var(--muted); font-size:13px; line-height:1.55}

    /* CTA owner */
    .cta{
      border-radius: var(--radius2);
      border:1px solid var(--stroke);
      background:
        radial-gradient(700px 350px at 15% 0%, rgba(29,78,216,.16), transparent 60%),
        radial-gradient(700px 350px at 95% 30%, rgba(255,122,0,.14), transparent 60%),
        rgba(255,255,255,.88);
      padding:18px;
      display:flex;
      justify-content:space-between;
      gap:16px;
      align-items:center;
    }
    .cta strong{display:block; font-size:16px}
    .cta span{display:block; margin-top:6px; color:var(--muted); font-size:13px; line-height:1.55}

    /* Footer */
    footer{padding:28px 0 40px; color:var(--muted); border-top:1px solid var(--stroke); margin-top:18px; background: rgba(255,255,255,.55)}
    .footGrid{display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap:14px}
    .footTitle{color:rgba(15,23,42,.88); font-weight:900; margin-bottom:10px}
    .foot a{display:block; padding:6px 0; color:var(--muted)}
    .foot a:hover{color:var(--text)}

    /* Responsive */
    @media (max-width: 980px){
      h1{font-size:34px}
      .heroGrid{grid-template-columns: 1fr}
      .card{grid-column: span 6}
      .vCard{grid-column: span 6}
      .footGrid{grid-template-columns: 1fr 1fr}
      .menuBtn{display:inline-flex}
      .nav{display:none}
    }
    @media (max-width: 640px){
      .searchGrid{grid-template-columns: 1fr}
      .card{grid-column: span 12}
      .vCard{grid-column: span 12}
      .cta{flex-direction:column; align-items:stretch}
      .actions .btn{font-size:14px}
    }

    /* Tiny helper */
    .sep{height:1px; background: var(--stroke); margin:14px 0}


/* Loueur Dashboard */
.dashHeader{display:flex; justify-content:space-between; gap:14px; align-items:flex-end; margin-bottom:14px}
.dashHeaderActions{display:flex; gap:10px; flex-wrap:wrap; align-items:center}

.dashLayout{display:grid; grid-template-columns: 260px 1fr; gap:14px}
.dashSide{
  border-radius: var(--radius2);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.88);
  padding:12px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  height: fit-content;
  position: sticky;
  top: 84px;
}
.dashLink{
  display:block;
  padding:10px 12px;
  border-radius:14px;
  color: var(--muted);
  border:1px solid transparent;
  font-weight:900;
}
.dashLink:hover{color:var(--text); border-color:var(--stroke); background: rgba(15,23,42,.03)}
.dashLink.active{color:#ffffff; background:#0b2a6b; border-color: rgba(29,78,216,.35); box-shadow: 0 14px 34px rgba(11,42,107,.14)}

.dashHint{display:grid; gap:6px; padding:12px; border-radius:16px; border:1px solid var(--stroke); background: rgba(15,23,42,.02)}
.dashHint strong{font-size:13px}
.dashHint span{color:var(--muted); font-size:13px; line-height:1.5}

.kpiGrid{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin-bottom:12px}
.kpiCard{
  border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.88);
  padding:12px;
}
.kpiTop{display:flex; justify-content:space-between; gap:10px; align-items:center}
.kpiLabel{color:var(--muted); font-weight:900; font-size:12px}
.kpiPill{padding:6px 9px; border-radius:999px; border:1px solid var(--stroke); background: rgba(15,23,42,.03); font-weight:900; font-size:12px; color:var(--muted)}
.kpiValue{font-size:24px; font-weight:1000; margin-top:8px}
.kpiHint{margin-top:6px; color:var(--muted); font-size:12px}

.dashGrid{display:grid; grid-template-columns: 1.15fr .85fr; gap:12px}
.dashPanel{
  border-radius: var(--radius2);
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.88);
  padding:12px;
  overflow:hidden;
}
.panelTitle{display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:10px}
.panelTitle strong{display:block; font-size:14px}
.panelTitle span{display:block; color:var(--muted); font-size:12px; margin-top:4px}

.tableWrap{overflow:auto; border-radius:16px; border:1px solid var(--stroke); background: rgba(255,255,255,.78)}
.table{width:100%; border-collapse:collapse; min-width:540px}
.table th,.table td{padding:10px 12px; text-align:left; font-size:13px; border-bottom:1px solid var(--stroke)}
.table th{color: rgba(15,23,42,.80); font-weight:1000; background: rgba(15,23,42,.02)}
.table tr:last-child td{border-bottom:0}

.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-weight:900}
.status{display:inline-flex; padding:6px 10px; border-radius:999px; border:1px solid var(--stroke); background: rgba(15,23,42,.02); font-weight:900; color: rgba(15,23,42,.82)}

.dashCtas{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

/* Shared small UI helpers */
.muted{color:var(--muted)}
.rowItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.82);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.rowItem:hover{transform: translateY(-1px); background: rgba(255,255,255,.94)}
.rowItem:active{transform: translateY(0px)}

@media (max-width: 980px){
  .dashLayout{grid-template-columns:1fr}
  .dashSide{position:relative; top:auto}
  .kpiGrid{grid-template-columns: repeat(2, 1fr)}
  .dashGrid{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .kpiGrid{grid-template-columns:1fr}
  .table{min-width: 520px}
}


/* Card link wrapper */
.cardLink{display:block}
.cardLink:hover{text-decoration:none}


/* Calendar (Loueur disponibilités) */
.calLegend{display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 12px}
.calPill{display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; border:1px solid rgba(15,23,42,.10); background: rgba(15,23,42,.02); color: rgba(15,23,42,.72); font-weight:900; font-size:12px}
.calSwatch{width:12px; height:12px; border-radius:4px; border:1px solid rgba(15,23,42,.18); display:inline-block}
.calSwatch.free{background: rgba(255,255,255,.9)}
.calSwatch.booked{background: rgba(11,42,107,.15); border-color: rgba(11,42,107,.35)}
.calSwatch.blocked{background: rgba(255,122,0,.16); border-color: rgba(217,119,6,.35)}

.calGrid{display:grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap:12px}
@media (max-width: 980px){ .calGrid{grid-template-columns:1fr} }

.calMonth{border:1px solid rgba(15,23,42,.10); border-radius:16px; background: rgba(255,255,255,.88); overflow:hidden}
.calHead{padding:10px 12px; font-weight:1000; border-bottom:1px solid rgba(15,23,42,.10); color: rgba(15,23,42,.85)}
.calDow{display:grid; grid-template-columns: repeat(7, 1fr); gap:0; padding:8px 10px; border-bottom:1px solid rgba(15,23,42,.08); color: rgba(15,23,42,.55); font-weight:900; font-size:12px}
.calDow span{text-align:center}

.calBody{display:grid; grid-template-columns: repeat(7, 1fr); gap:0; padding:10px}
.calCell{height:34px; display:grid; place-items:center; border-radius:10px; margin:2px; font-weight:1000; font-size:12px; color: rgba(15,23,42,.82); border:1px solid transparent}
.calCell.empty{background:transparent; border-color:transparent; margin:2px}
.calCell.free{background: rgba(255,255,255,.9); border-color: rgba(15,23,42,.08)}
.calCell.booked{background: rgba(11,42,107,.12); border-color: rgba(11,42,107,.22); color:#0b2a6b}
.calCell.blocked{background: rgba(255,122,0,.12); border-color: rgba(217,119,6,.22); color: rgba(124,45,18,.92)}

