/* Éléments communs à l'espace client et à MekaGarage Pro : cloche, notifications, historique. */
.bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;color:inherit;text-decoration:none}
.bell svg{width:22px;height:22px}
.bell:hover{background:rgba(127,127,127,.12)}
.bell-n{position:absolute;top:4px;right:2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#C62828;color:#fff;font:700 11px/18px var(--font-sans,Arial,sans-serif);text-align:center}
.bell-n[hidden]{display:none}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.notif-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.notifs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.notif{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-md,12px);background:var(--surface-raised);color:var(--ink);text-decoration:none}
.notif:hover{border-color:var(--border-control)}
.notif .dot{flex:none;width:9px;height:9px;margin-top:7px;border-radius:50%;background:transparent}
.notif.new{border-color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
.notif.new .dot{background:var(--brand)}
.notif .nt{display:flex;flex-direction:column;gap:2px;min-width:0}
.notif .nt span{color:var(--ink-muted);font-size:14px;overflow-wrap:anywhere}
.notif small,.timeline small{color:var(--ink-muted);font-size:12.5px}
.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.filters select,.filters input{min-height:44px;padding:8px 10px;border-radius:10px;border:1px solid var(--border-control);background:var(--surface-raised);color:var(--ink);font:500 15px var(--font-sans,Arial,sans-serif);width:100%}
.filters .wide{grid-column:1/-1}
.hist{display:flex;flex-direction:column;gap:10px}
.hcase{border:1px solid var(--border);border-radius:var(--radius-md,12px);background:var(--surface-raised)}
.hcase>summary{list-style:none;cursor:pointer;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.hcase>summary::-webkit-details-marker{display:none}
.hcase>summary .row{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.hcase>summary small{color:var(--ink-muted);font-size:13.5px}
.hcase .body{padding:0 16px 16px;display:flex;flex-direction:column;gap:12px}
.pill{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12.5px;font-weight:700;background:var(--brand-tint);color:var(--brand-strong);white-space:nowrap}
.pill.fini{background:var(--success-tint);color:var(--success-ink)}
.pill.annule{background:var(--danger-tint);color:var(--danger-ink)}
.timeline{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--border);display:flex;flex-direction:column;gap:10px}
.timeline .ev{position:relative;display:flex;flex-direction:column}
.timeline .ev::before{content:"";position:absolute;left:-24px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--surface-raised);border:2px solid var(--border-control)}
.timeline .ev-rdv_confirme::before,.timeline .ev-demande_envoyee::before{border-color:var(--brand);background:var(--brand)}
.timeline .ev-rdv_annule::before,.timeline .ev-creneau_refuse::before{border-color:#C62828}
.hcount{color:var(--ink-muted);font-size:14px;margin:0}
@media (max-width:420px){.filters{grid-template-columns:1fr}}
.hcase>summary,.hcase>summary small{text-align:left;align-items:stretch}
/* ---------- Carte ---------- */
.mk-map{position:relative;overflow:hidden;background:#E8ECEF;touch-action:none;user-select:none;outline-offset:-2px;border-radius:var(--radius-md,14px)}
.mk-tiles,.mk-pins{position:absolute;inset:0}
.mk-tile{position:absolute;top:0;left:0;width:256px;height:256px;max-width:none}
.mk-pin,.mk-cluster,.mk-user{position:absolute;top:0;left:0}
.mk-pin{width:34px;height:34px;margin:-32px 0 0 -17px;padding:0;border:0;background:none;cursor:pointer;color:#2858F3;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.mk-pin svg{width:34px;height:34px}
.mk-pin path{fill:currentColor;stroke:#fff;stroke-width:1.4}
.mk-pin circle{fill:#fff}
.mk-pin.leasing{color:#B26A00}
.mk-pin.mine{color:#1B6B3A}
.mk-pin.on{color:#C62828;z-index:2;transform-origin:50% 100%}
.mk-pin.on svg{width:42px;height:42px;margin:-8px 0 0 -4px}
.mk-cluster{min-width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:18px;border:3px solid #fff;background:#2858F3;color:#fff;font:700 14px Arial,sans-serif;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.mk-user{width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:#1A73E8;border:3px solid #fff;box-shadow:0 0 0 6px rgba(26,115,232,.25)}
.mk-ctrls{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:6px}
.mk-zoom{width:40px;height:40px;border-radius:10px;border:1px solid rgba(0,0,0,.15);background:#fff;color:#1C1F24;font:700 22px/1 Arial,sans-serif;cursor:pointer}
.mk-zoom:disabled{opacity:.4}
.mk-attr{position:absolute;right:0;bottom:0;padding:2px 6px;background:rgba(255,255,255,.85);font:11px Arial,sans-serif;color:#333;border-top-left-radius:6px}
.mk-attr a{color:#333}
.carte-recherche{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start}
.carte-recherche .btn{white-space:nowrap}
.carte-recherche svg{width:18px;height:18px}
.sugg-wrap{position:relative}
.sugg{position:absolute;z-index:5;top:calc(100% + 4px);left:0;right:0;margin:0;padding:6px;list-style:none;background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 24px rgba(0,0,0,.15)}
.sugg li{padding:10px 12px;border-radius:8px;cursor:pointer}
.sugg li[role=option]:hover,.sugg li[role=option]:focus{background:var(--brand-tint);outline:none}
.carte-barre{display:flex;align-items:center;justify-content:space-between;gap:10px}
.seg{display:inline-flex;border:1px solid var(--border-control);border-radius:999px;overflow:hidden}
.seg button{border:0;background:var(--surface-raised);color:var(--ink);padding:8px 14px;font:600 14px var(--font-sans,Arial,sans-serif);cursor:pointer;min-height:40px}
.seg button[aria-pressed=true]{background:var(--brand);color:var(--on-brand)}
.carte-wrap{display:grid;grid-template-columns:1fr;gap:12px}
.carte-col{position:relative}
.carte{height:min(62vh,520px)}
.carte-wrap[data-vue=carte] .carte-liste{display:none}
.carte-wrap[data-vue=liste] .carte-col{display:none}
.carte-liste{display:flex;flex-direction:column;gap:10px}
.carte-fiche{position:absolute;left:8px;right:8px;bottom:22px;z-index:4;display:flex;flex-direction:column;gap:8px;padding:14px 16px;background:var(--surface-raised);border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 26px rgba(0,0,0,.2);max-height:70%;overflow:auto}
.carte-fiche[hidden]{display:none}
.carte-fiche .drawer-x{position:absolute;top:4px;right:4px}
.carte-fiche .btn,.carte-liste .actions .btn{width:auto;min-height:42px;font-size:15px}
.gtags{display:flex;flex-wrap:wrap;gap:6px}
.tag{display:inline-block;padding:3px 9px;border-radius:999px;background:var(--surface,#F3F6FA);border:1px solid var(--border);font-size:12.5px;font-weight:600;color:var(--ink-muted)}
.gcard.on{border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.gtitle.as-link{border:0;background:none;padding:0;text-align:left;cursor:pointer;color:inherit;font:inherit}
.gtitle.as-link span{display:flex;flex-direction:column}
.check.small{font-size:14px;align-items:center}
.muted.small{font-size:12.5px}
.carte-entree{display:flex;align-items:center;gap:12px;padding:16px;border-radius:var(--radius-md,14px);background:var(--brand-tint);color:var(--brand-strong);text-decoration:none}
.carte-entree svg{width:26px;height:26px;flex:none}
.carte-entree span{display:flex;flex-direction:column}
@media (min-width:900px){
  .carte-wrap{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
  .carte-wrap[data-vue] .carte-liste,.carte-wrap[data-vue] .carte-col{display:flex}
  .carte-col{display:block!important}
  .carte{height:560px}
  .carte-liste{max-height:560px;overflow:auto;padding-right:4px}
  .seg{display:none}
}
.mini-carte{height:260px}
@media (max-width:560px){
  .carte-recherche{grid-template-columns:1fr}
  .carte-filtres{grid-template-columns:1fr 1fr!important;gap:6px}
  .carte-filtres select{min-height:40px;font-size:14px;padding:6px 8px}
  .carte{height:58vh}
}
/* ---------- Fiche garage ---------- */
.fiche-tete{display:flex;gap:14px;align-items:center}
.fiche-tete h1{margin:0}
.fiche-tete p{margin:2px 0 6px}
.fiche-logo{width:72px;height:72px;border-radius:14px;object-fit:contain;background:#fff;border:1px solid var(--border);flex:none}
.ico.big{width:72px;height:72px;border-radius:14px}
.ico.big svg{width:36px;height:36px}
.fiche-photos{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
.fiche-photos img{flex:none;width:min(78%,420px);aspect-ratio:4/3;object-fit:cover;border-radius:12px;scroll-snap-align:start;background:var(--surface)}
.horaires{display:flex;flex-direction:column;margin:0}
.horaires div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--border)}
.horaires div:first-child{border-top:0}
.horaires dt{font-weight:600}
.horaires dd{margin:0;text-align:right}
.horaires .auj{font-weight:700;color:var(--brand-strong)}
.oui-non{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.oui-non li{display:flex;gap:10px}
.oui-non .oui span:first-child{color:var(--success-ink);font-weight:700}
.oui-non .non{color:var(--ink-muted)}
.pre{white-space:pre-line;margin:0}
.glogo{width:40px;height:40px;border-radius:10px;object-fit:contain;background:#fff;border:1px solid var(--border);flex:none}
.gname{color:inherit;text-decoration:none}
.gname:hover{text-decoration:underline}
/* ---------- Direction artistique « bleu nuit » (novembre 2026) ---------- */
/* Inter, hébergée sur le site (aucun appel à Google : pas d'adresse IP transmise). Licence : fonts/LICENCE-Inter.txt */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-400.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-500.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-600.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/inter-700.woff") format("woff")}
@font-face{font-family:"Inter";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/inter-800.woff") format("woff")}
/* Logo : carré bleu nuit « M » + MekaGarage */
.brandmark{display:inline-flex;align-items:center;gap:9px;font-weight:800!important;letter-spacing:-.6px!important;white-space:nowrap}
.brandmark .mark{flex:none;width:30px;height:30px;border-radius:9px;background:var(--navy);display:inline-flex;align-items:center;justify-content:center}
.brandmark .mark svg{width:20px;height:20px}
.gtop .brandmark .mark,.nav .brandmark .mark{background:var(--brand)}
/* Barre de navigation basse (téléphone) : 4 entrées, au pouce, au-dessus de la zone sûre */
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(var(--n,4),1fr);gap:2px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:var(--surface-raised);border-top:1px solid var(--border);box-shadow:0 -10px 28px rgba(18,36,61,.05)}
.bnav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border-radius:12px;color:var(--ink-muted);text-decoration:none;font-size:11.5px;font-weight:600;line-height:1.1;text-align:center}
.bnav a svg{width:22px;height:22px}
.bnav a[aria-current="page"]{color:var(--brand);background:var(--brand-tint)}
.bnav .bn-n{position:absolute;top:4px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#C62828;color:#fff;font-size:11px;font-weight:700;line-height:18px}
@media (min-width:900px){.bnav{display:none}}
@media (max-width:899px){body.has-bnav{padding-bottom:calc(72px + env(safe-area-inset-bottom))}body.has-bnav #notice{bottom:calc(84px + env(safe-area-inset-bottom))}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
[data-theme="dark"] .brandmark .mark{background:#2858F3}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .brandmark .mark{background:#2858F3}}
/* Devis en PDF : aperçu dans la page */
.pdf-view{display:flex;flex-direction:column;gap:10px}
.pdf-frame{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#525659}
.pdf-frame iframe{display:block;width:100%;height:min(72vh,720px);border:0;background:#fff}
.quote{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:16px;border:1px solid var(--brand);background:var(--brand-tint);color:var(--ink)}
.quote.old{border-color:var(--border);background:var(--surface)}
.quote-head{display:flex;align-items:center;gap:12px}
.quote-head .ico,.quote-head>svg{flex:none}
.quote-head strong{display:block}
.quote-head small{display:block;color:var(--ink-muted);font-size:13px}
.quote dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0;font-size:14.5px}
.quote dt{color:var(--ink-muted)}.quote dd{margin:0;font-weight:600}
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:132px;padding:18px;border:2px dashed var(--border-control);border-radius:16px;background:var(--surface);text-align:center;cursor:pointer;transition:border-color .15s,background-color .15s}
.drop:hover,.drop:focus-within,.drop.over{border-color:var(--brand);background:var(--brand-tint)}
.drop strong{font-size:15.5px}
.drop small{color:var(--ink-muted);font-size:13px}
.drop svg{width:28px;height:28px;color:var(--brand)}
.drop.has{border-style:solid;border-color:var(--brand);background:var(--brand-tint)}

/* ==========================================================================
   Champs de formulaire — un seul style pour MekaGarage, Pro et Gestion
   (texte, e-mail, téléphone, adresse, mot de passe, dates, listes). 16 px minimum : pas de zoom forcé sur iPhone.
   ========================================================================== */
html body label.f{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;color:var(--ink);letter-spacing:.01em}
html body label.f :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),textarea,select){
  width:100%;min-height:50px;padding:12px 14px;border-radius:12px;border:1.5px solid var(--border-control);
  background-color:var(--surface-raised);color:var(--ink);font-family:inherit;font-size:16px;font-weight:500;line-height:1.35;letter-spacing:normal;
  box-shadow:0 1px 0 rgba(16,28,49,.03);transition:border-color .15s,box-shadow .15s,background-color .15s;-webkit-appearance:none;appearance:none}
html body label.f textarea{min-height:110px;resize:vertical;line-height:1.45}
html body label.f select:not([multiple]){padding-right:40px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2356637A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
html body label.f :is(input,textarea,select)::placeholder{color:var(--ink-muted);opacity:.75;font-weight:400}
html body label.f :is(input,textarea,select):hover:not(:focus):not([readonly]):not(:disabled){border-color:#9AA7BD}
html body label.f :is(input,textarea,select):focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-tint)}
html body label.f :is(input,textarea,select):user-invalid{border-color:var(--danger-ink,#B42318);box-shadow:0 0 0 4px rgba(180,35,24,.10)}
html body label.f :is(input,textarea)[readonly],html body label.f :is(input,textarea,select):disabled{background-color:var(--surface);color:var(--ink-muted);cursor:default}
html body label.f input[type=tel],html body label.f input[inputmode=numeric]{font-variant-numeric:tabular-nums;letter-spacing:.02em}
html body label.f .hint,html body label.f .muted.small{font-weight:500;font-size:13px;color:var(--ink-muted)}

/* Mot de passe : bouton « Afficher » dans la case, à droite */
.pw{position:relative;display:block;width:100%}
html body .pw input{padding-right:116px!important}
.pw-toggle{position:absolute;top:50%;right:6px;transform:translateY(-50%);display:inline-flex;align-items:center;gap:6px;
  height:38px;min-width:96px;justify-content:center;padding:0 12px;border:0;border-radius:9px;background:var(--brand-tint);color:var(--brand);
  font-family:inherit;font-size:14px;font-weight:600;line-height:1;cursor:pointer;transition:background-color .15s,color .15s}
.pw-toggle svg{width:18px;height:18px;flex:none}
.pw-toggle:hover{background:var(--brand);color:var(--on-brand,#fff)}
.pw-toggle:focus-visible{outline:none;box-shadow:0 0 0 3px var(--brand)}
.pw-toggle[aria-pressed="true"]{background:var(--surface);color:var(--ink)}
@media (prefers-color-scheme:dark){html body label.f :is(input,textarea,select){box-shadow:none}}
