/* Estim Travaux — shell vitrine publique (NDD dossier, thème + accent par site) */
html[data-accent="bleu"]{--v-acc:#3b82f6;--v-acc2:#22d3ee;--v-glow:rgba(59,130,246,.45)}
html[data-accent="feu"]{--v-acc:#f97316;--v-acc2:#f43f5e;--v-glow:rgba(249,115,22,.45)}
html[data-accent="foret"]{--v-acc:#10b981;--v-acc2:#84cc16;--v-glow:rgba(16,185,129,.45)}
html[data-accent="multi"]{--v-acc:#8b5cf6;--v-acc2:#ec4899;--v-glow:rgba(139,92,246,.45)}
html[data-theme="light"][data-accent="bleu"]{--v-acc:#2563eb;--v-acc2:#0891b2;--v-glow:rgba(37,99,235,.28)}
html[data-theme="light"][data-accent="feu"]{--v-acc:#ea580c;--v-acc2:#e11d48;--v-glow:rgba(234,88,12,.28)}
html[data-theme="light"][data-accent="foret"]{--v-acc:#059669;--v-acc2:#65a30d;--v-glow:rgba(5,150,105,.28)}
html[data-theme="light"][data-accent="multi"]{--v-acc:#7c3aed;--v-acc2:#db2777;--v-glow:rgba(124,58,237,.28)}

html[data-theme="dark"]{
  color-scheme:dark;
  --v-base:#0b0f1a;--v-card:#161d30;--v-border:#232c42;--v-hair:#1b2338;
  --v-text:#eef1f8;--v-muted:#a5aec6;--v-faint:#707b96;
}
html[data-theme="light"]{
  color-scheme:light;
  --v-base:#f4f6fb;--v-card:#ffffff;--v-border:#dde3f0;--v-hair:#e8edf6;
  --v-text:#141a2b;--v-muted:#4f5a76;--v-faint:#828da6;
}
html:not([data-theme="light"]){
  color-scheme:dark;
  --v-base:#0b0f1a;--v-card:#161d30;--v-border:#232c42;--v-hair:#1b2338;
  --v-text:#eef1f8;--v-muted:#a5aec6;--v-faint:#707b96;
}

html:has(body.estim-vitrine-body){
  overflow-x:hidden;
  scroll-behavior:smooth;
}
.estim-vitrine-body{
  margin:0;min-height:100vh;display:flex;flex-direction:column;
  background:var(--v-base);color:var(--v-text);
  font-family:Manrope,system-ui,sans-serif;
  -webkit-text-size-adjust:100%;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:manipulation;
  overscroll-behavior-y:auto;
}
.estim-vitrine-wrap{max-width:1180px;margin:0 auto;padding:0 22px;width:100%}
.estim-vitrine-head{
  position:sticky;top:0;z-index:120;
  padding-top:env(safe-area-inset-top,0);
  background:color-mix(in srgb,var(--v-base) 88%,transparent);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--v-hair);
}
.estim-vitrine-head-inner{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;
  min-height:58px;padding:10px 22px;
}
.estim-vitrine-brand{
  display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:inherit;font-weight:800;
  font-family:Outfit,system-ui,sans-serif;letter-spacing:-.02em;
}
.estim-vitrine-logo{
  width:26px;height:26px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--v-acc),var(--v-acc2));color:#fff;flex-shrink:0;
}
.estim-vitrine-logo svg{display:block}
.estim-vitrine-brand-txt{font-size:1.02rem}
.estim-vitrine-brand-txt em{font-style:normal;background:linear-gradient(92deg,var(--v-acc),var(--v-acc2));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.estim-vitrine-nav{display:flex;flex-wrap:wrap;gap:4px;justify-content:center}
.estim-vitrine-nav-link{
  text-decoration:none;color:var(--v-muted);font-size:.82rem;font-weight:700;
  padding:7px 14px;border-radius:999px;border:1px solid transparent;transition:color .15s,background .15s,border-color .15s;
}
.estim-vitrine-nav-link:hover{color:var(--v-text);background:var(--v-card);border-color:var(--v-border)}
.estim-vitrine-nav-link.is-on{
  color:var(--v-text);background:var(--v-card);border-color:var(--v-border);
}
.estim-vitrine-head-tools{display:flex;align-items:center;gap:10px;justify-content:flex-end}
.estim-vitrine-zone-badge{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.72rem;font-weight:700;letter-spacing:.04em;
  padding:5px 12px;border-radius:999px;white-space:nowrap;
  color:var(--v-text);background:var(--v-card);border:1px solid var(--v-border);
}
.estim-vitrine-zone-badge .estim-vitrine-zone-lock{
  font-family:IBM Plex Mono,ui-monospace,monospace;font-size:.62rem;
  text-transform:uppercase;color:var(--v-faint);letter-spacing:.06em;
}
.estim-vitrine-link{
  color:var(--v-muted);font-size:.82rem;font-weight:600;text-decoration:none;
  background:none;border:0;padding:0;cursor:pointer;font-family:inherit;
}
.estim-vitrine-link:hover{color:var(--v-text);text-decoration:underline}
body.estim-hub-auth-open{overflow:hidden}
.estim-hub-auth{
  position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:18px;
}
.estim-hub-auth[hidden]{display:none!important}
.estim-hub-auth-backdrop{
  position:absolute;inset:0;background:rgba(5,8,16,.58);backdrop-filter:blur(4px);
}
.estim-hub-auth-panel{
  position:relative;width:min(440px,calc(100vw - 28px));max-height:min(90vh,640px);overflow:auto;
  background:var(--v-card);border:1px solid var(--v-border);border-radius:16px;
  box-shadow:0 24px 64px -24px rgba(0,0,0,.45);padding:22px 22px 20px;
}
.estim-hub-auth-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.estim-hub-auth-head h2{margin:0;font-family:Outfit,system-ui,sans-serif;font-size:1.25rem;font-weight:800;letter-spacing:-.02em}
.estim-hub-auth-x{
  border:0;background:var(--v-hair);color:var(--v-muted);width:32px;height:32px;border-radius:999px;
  font-size:1.35rem;line-height:1;cursor:pointer;flex-shrink:0;
}
.estim-hub-auth-x:hover{color:var(--v-text);background:var(--v-border)}
.estim-hub-auth-sub{margin:0 0 14px;font-size:.84rem;color:var(--v-muted);line-height:1.45}
.estim-hub-auth-register-nudge{
  margin:0 0 12px;font-size:.78rem;color:var(--v-faint);line-height:1.45;text-align:center;
}
.estim-hub-auth-form[hidden]{display:none!important}
.estim-hub-auth-tabs{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
.estim-hub-auth-tab{
  border:1px solid var(--v-border);background:var(--v-base);color:var(--v-muted);
  border-radius:999px;padding:7px 14px;font-size:.78rem;font-weight:700;cursor:pointer;
}
.estim-hub-auth-tab.on{
  color:#fff;border-color:transparent;
  background:linear-gradient(92deg,var(--v-acc),var(--v-acc2));
  box-shadow:0 8px 22px -12px var(--v-glow);
}
.estim-hub-auth-err{
  margin:0 0 12px;padding:10px 12px;border-radius:10px;font-size:.82rem;
  color:#fecaca;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.28);
}
.estim-hub-auth-form label{display:block;margin-bottom:12px;font-size:.78rem;font-weight:700;color:var(--v-muted)}
.estim-req{color:#f87171;font-weight:800;margin-left:2px}
.estim-hub-auth-form input{
  display:block;width:100%;margin-top:6px;padding:10px 12px;border-radius:10px;
  border:1px solid var(--v-border);background:var(--v-base);color:var(--v-text);font-size:.88rem;
  box-sizing:border-box;
}
.estim-hub-auth-form input:focus{outline:none;border-color:var(--v-acc)}
.estim-hub-auth-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.estim-hub-auth-hint{margin:0 0 12px;font-size:.76rem;color:var(--v-faint);line-height:1.4}
.estim-hub-auth-pro-fields{margin-bottom:4px;padding-bottom:4px;border-bottom:1px solid var(--v-hair)}
.estim-hub-opt{font-weight:600;color:var(--v-muted)}
.estim-hub-auth-submit{
  width:100%;margin-top:4px;padding:11px 16px;border:0;border-radius:999px;cursor:pointer;
  font-weight:800;font-size:.88rem;color:#fff;
  background:linear-gradient(92deg,var(--v-acc),var(--v-acc2));
  box-shadow:0 10px 26px -14px var(--v-glow);
}
.estim-hub-auth-submit:hover{filter:brightness(1.05)}
.estim-hub-auth-forgot-wrap{margin:0 0 12px;text-align:right}
.estim-hub-auth-forgot{
  background:none;border:none;padding:0;font:inherit;font-size:.76rem;font-weight:700;
  color:var(--v-acc);cursor:pointer;text-decoration:underline;text-underline-offset:2px;
}
.estim-hub-auth-forgot:hover{color:var(--v-acc2)}
.estim-hub-auth-ok{
  margin:0 0 12px;padding:10px 12px;border-radius:10px;font-size:.78rem;line-height:1.45;
  background:color-mix(in srgb,var(--v-acc) 12%,transparent);color:var(--v-text);
  border:1px solid color-mix(in srgb,var(--v-acc) 28%,var(--v-border));
}
.estim-vitrine-main{
  flex:1 0 auto;display:flex;flex-direction:column;
  min-height:auto;overflow:visible;
}
.estim-vitrine-main.is-embed{padding:0;background:var(--v-base);overflow:visible}
.estim-vitrine-main.is-embed > .estim-vitrine-wrap.estim-vitrine-content{
  max-width:none;width:100%;padding-left:0;padding-right:0;overflow:visible;
  position:relative;isolation:isolate;
  padding-top:0;padding-bottom:56px;
}
/* Bandeau dégradé continu : titre page + hero + wizard (toutes zones / accents) */
.estim-vitrine-main.is-embed > .estim-vitrine-wrap.estim-vitrine-content::before{
  content:"";position:absolute;z-index:0;left:50%;transform:translateX(-50%);
  width:100vw;max-width:none;top:0;height:min(960px,94vh);pointer-events:none;
  background:
    radial-gradient(ellipse 900px 620px at 8% 22%,color-mix(in srgb,var(--v-acc) 26%,transparent),transparent 72%),
    radial-gradient(ellipse 680px 520px at 92% 8%,color-mix(in srgb,var(--v-acc2) 17%,transparent),transparent 66%);
  opacity:.92;filter:blur(56px);
}
.estim-vitrine-main.is-embed .estim-page-head,
.estim-vitrine-main.is-embed .estim-public-root,
.estim-vitrine-main.is-embed .estim-page-foot{
  position:relative;z-index:1;
}
.estim-vitrine-main.is-embed .estim-page-head,
.estim-vitrine-main.is-embed .estim-page-foot{
  max-width:1180px;margin-left:auto;margin-right:auto;padding-left:22px;padding-right:22px;
}
.estim-vitrine-main.is-embed .estim-page-head{padding-top:28px;padding-bottom:6px}
.estim-vitrine-main.is-embed .estim-page-foot{
  margin-top:12px;background:color-mix(in srgb,var(--v-base) 92%,transparent);
}
.estim-vitrine-content{padding:32px 0 56px;line-height:1.55;overflow:visible}
.estim-vitrine-content .estim-public-home{max-width:760px}
.estim-vitrine-content .estim-zone-badge{
  display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:5px 12px;border-radius:999px;margin:0 0 16px;
  color:var(--v-text);background:var(--v-card);border:1px solid var(--v-border);
}
.estim-vitrine-content h1{
  font-family:Outfit,system-ui,sans-serif;font-size:clamp(1.75rem,4.2vw,2.55rem);
  font-weight:800;line-height:1.12;margin:0 0 14px;letter-spacing:-.02em;
}
.estim-vitrine-content p{color:var(--v-muted);margin:0 0 14px;font-size:1rem}
.estim-page-head,.estim-page-foot{padding:20px 0}
.estim-page-head h1{font-size:clamp(1.35rem,3.5vw,2rem);font-weight:800;line-height:1.15;margin:0 0 10px;letter-spacing:-.02em}
.estim-page-head p,.estim-page-foot p{margin:0;color:var(--v-muted);font-size:.95rem}
.estim-page-foot{border-top:1px solid var(--v-hair);margin-top:8px;padding-top:24px}
.estim-page-foot a{color:var(--v-acc);text-decoration:none;font-weight:700}
.estim-page-foot a:hover{text-decoration:underline}
.estim-chrome-custom .estim-vitrine-wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 22px}
.estim-vitrine-content p strong{color:var(--v-text)}
.estim-vitrine-content .estim-cta{
  display:inline-flex;align-items:center;gap:8px;margin:6px 12px 6px 0;
  padding:11px 18px;border-radius:999px;text-decoration:none;font-weight:800;font-size:.88rem;
  color:#fff;background:linear-gradient(92deg,var(--v-acc),var(--v-acc2));
  box-shadow:0 8px 28px -12px var(--v-glow);
}
.estim-vitrine-content .estim-cta-ghost{
  background:transparent;color:var(--v-muted);border:1px solid var(--v-border);box-shadow:none;
}
.estim-vitrine-content .estim-cta-ghost:hover{color:var(--v-text);border-color:var(--v-acc)}
.estim-vitrine-foot{
  border-top:1px solid var(--v-hair);padding:16px 0 calc(16px + env(safe-area-inset-bottom,0));
  color:var(--v-faint);font-size:.78rem;background:var(--v-base);
}
.estim-vitrine-foot-inner{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}

/* Embed Estim — une seule barre (vitrine), pas de double appbar Magic */
.estim-public-root{
  min-height:min(78vh,920px);display:flex;flex-direction:column;
  flex:1 0 auto;width:100%;overflow:visible;
}
.estim-public-root.estim-root{
  flex:1 0 auto;width:100%;max-width:none;border-radius:0;background:var(--v-base);
  overflow:visible;height:auto;
  --estim-appbar-h:0px;
}
body.estim-vitrine-body .estim-public-root .appbar{display:none!important}
body.estim-vitrine-body .estim-public-root .wrap{max-width:1180px;margin:0 auto;padding:0 22px;overflow:visible}
body.estim-vitrine-body .estim-public-root .hero{padding-top:8px;overflow:visible}
body.estim-vitrine-body .estim-public-root #espace-visiteur{overflow:visible}
/* Dégradé porté par .estim-vitrine-content::before — évite la coupure sous la bannière */
body.estim-vitrine-body .estim-public-root .hero::before{opacity:0}
body.estim-vitrine-body .estim-public-root #vueEstimer,
body.estim-vitrine-body .estim-public-root #vueAnnuaire{padding-bottom:32px}
body.estim-vitrine-body .estim-public-root .seg.spaces{display:none!important}
.estim-public-error{padding:24px;color:#f87171;text-align:center}
.estim-map-loading{
  padding:28px 16px;text-align:center;font-size:.88rem;color:var(--v-muted, var(--muted));
  border:1px dashed color-mix(in srgb,var(--v-acc, var(--acc)) 28%,var(--v-border, var(--border)));
  border-radius:14px;background:color-mix(in srgb,var(--v-card, var(--card)) 88%,transparent);
}
body.estim-vitrine-body .estim-public-root .estim-map-loading{color:var(--muted)}

/* Boot skeleton — affiché avant chargement du bundle Estim */
@keyframes estim-sk-shimmer{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}
.estim-public-mount.estim-is-booting,
.estim-public-root.estim-is-booting{min-height:min(78vh,920px);width:100%}
.estim-boot-sk{width:100%;padding:0 0 40px;position:relative;overflow:visible}
.estim-boot-sk-wrap{max-width:1180px;margin:0 auto;padding:0 22px;width:100%;box-sizing:border-box}
.estim-sk-line{
  display:block;border-radius:999px;height:14px;margin:0 0 12px;
  background:linear-gradient(90deg,color-mix(in srgb,var(--v-border) 55%,var(--v-card)) 0%,color-mix(in srgb,var(--v-acc) 18%,var(--v-card)) 48%,color-mix(in srgb,var(--v-border) 55%,var(--v-card)) 100%);
  background-size:200% 100%;animation:estim-sk-shimmer 1.15s ease-in-out infinite;
}
.estim-sk-h1{height:clamp(32px,5.2vw,48px);width:min(100%,680px);max-width:680px;margin-bottom:16px;border-radius:12px}
.estim-sk-lead{width:min(100%,560px);max-width:560px;opacity:.92}
.estim-sk-lead.estim-sk-short{width:min(100%,420px);max-width:420px}
.estim-sk-sm{width:140px;height:16px;margin-bottom:6px}
.estim-sk-xs{width:200px;height:11px;opacity:.75}
.estim-boot-sk-chrono{display:flex;align-items:center;gap:14px;margin:22px 0 8px}
.estim-sk-circle{
  width:52px;height:52px;border-radius:50%;flex:none;
  background:linear-gradient(135deg,color-mix(in srgb,var(--v-acc) 35%,var(--v-card)),color-mix(in srgb,var(--v-acc2) 28%,var(--v-card)));
  background-size:200% 200%;animation:estim-sk-shimmer 1.15s ease-in-out infinite;
}
.estim-boot-sk-seg-row{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 4px;width:100%;max-width:720px}
.estim-boot-sk-seg-row span{
  flex:1 1 140px;height:38px;border-radius:999px;max-width:220px;
  background:linear-gradient(90deg,var(--v-card) 0%,color-mix(in srgb,var(--v-border) 70%,var(--v-card)) 50%,var(--v-card) 100%);
  background-size:200% 100%;animation:estim-sk-shimmer 1.15s ease-in-out infinite;
  border:1px solid var(--v-hair);
}
.estim-boot-sk-wizard{
  border:1px solid var(--v-border);border-radius:18px;background:var(--v-card);
  padding:16px 16px 20px;width:100%;
  box-shadow:0 18px 40px -28px rgba(10,12,20,.18);
}
.estim-boot-sk-wizard.estim-boot-sk-narrow{max-width:780px;margin:26px auto 0}
.estim-boot-sk-search{
  display:block;height:44px;width:100%;border-radius:10px;margin:14px 0 10px;
  background:linear-gradient(90deg,var(--v-base) 0%,color-mix(in srgb,var(--v-border) 40%,var(--v-base)) 50%,var(--v-base) 100%);
  background-size:200% 100%;animation:estim-sk-shimmer 1.15s ease-in-out infinite;
  border:1px solid var(--v-hair);
}
.estim-boot-sk-steps{
  height:38px;border-radius:12px;margin-bottom:14px;
  background:linear-gradient(90deg,var(--v-base) 0%,color-mix(in srgb,var(--v-acc) 12%,var(--v-base)) 50%,var(--v-base) 100%);
  background-size:200% 100%;animation:estim-sk-shimmer 1.15s ease-in-out infinite;
}
.estim-sk-h2{height:22px;width:min(78%,420px);border-radius:10px;margin-bottom:10px}
.estim-sk-hint{height:13px;width:min(90%,480px);opacity:.8;margin-bottom:16px}
.estim-boot-sk-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(162px,1fr));gap:10px;width:100%;
}
.estim-boot-sk-grid span{
  display:block;min-height:132px;height:132px;border-radius:13px;
  background:linear-gradient(90deg,var(--v-base) 0%,color-mix(in srgb,var(--v-border) 45%,var(--v-base)) 50%,var(--v-base) 100%);
  background-size:200% 100%;animation:estim-sk-shimmer 1.15s ease-in-out infinite;
}
.estim-public-root:not(.estim-is-booting) .estim-boot-sk{display:none}
.estim-public-root.estim-is-ready #espace-visiteur.space.on{animation:estim-ready-in .32s ease}
@keyframes estim-ready-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .estim-sk-line,.estim-sk-circle,.estim-boot-sk-seg-row span,.estim-boot-sk-steps,.estim-boot-sk-search,.estim-boot-sk-grid span{animation:none;background:var(--v-card)}
}
@media(max-width:640px){
  .estim-boot-sk-wrap{padding:0 16px}
  .estim-vitrine-main.is-embed .estim-page-head,
  .estim-vitrine-main.is-embed .estim-page-foot{padding-left:16px;padding-right:16px}
}
@media(max-width:900px){
  .estim-vitrine-head-inner{grid-template-columns:1fr auto;grid-template-rows:auto auto}
  .estim-vitrine-nav{grid-column:1/-1;justify-content:flex-start;order:3}
}
@media(max-width:640px){
  .estim-vitrine-wrap{padding:0 16px}
  .estim-vitrine-head-inner{padding:8px 16px;min-height:52px;gap:8px}
  .estim-vitrine-nav-link{padding:8px 12px;font-size:.8rem}
  .estim-vitrine-zone-badge{display:none}
  .estim-vitrine-content{padding:24px 0 calc(48px + env(safe-area-inset-bottom,0))}
  .estim-hub-auth-form input,
  body.estim-vitrine-body .estim-public-root input,
  body.estim-vitrine-body .estim-public-root select,
  body.estim-vitrine-body .estim-public-root textarea{
    font-size:16px;
  }
  body.estim-vitrine-body .estim-public-root .wrap{padding:0 16px}
  body.estim-vitrine-body .estim-public-root .hero h1{font-size:clamp(1.45rem,6vw,2rem)}
  body.estim-vitrine-body .estim-public-root .wizard{margin:18px 0 40px}
  body.estim-vitrine-body .estim-public-root .wnav{
    position:sticky;bottom:0;z-index:40;
    padding:10px 0 calc(10px + env(safe-area-inset-bottom,0));
    background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--v-base) 92%,transparent) 28%);
  }
}
