/**
 * EasyCM — Dock mobile (barre horizontale fixe en bas), toutes les pages layouts.app
 */
:root {
  --eg-blue: #2563eb;
  --eg-blue-deep: #1d4ed8;
  --eg-green: #059669;
  --eg-green-deep: #047857;
  --eg-red: #dc2626;
  --eg-muted: #64748b;
  --eg-safe-bottom: env(safe-area-inset-bottom, 0px);
}

body.ecm-has-mobile-dock {
  padding-bottom: calc(4.75rem + var(--eg-safe-bottom));
}

@media (min-width: 992px) {
  body.ecm-has-mobile-dock {
    padding-bottom: 0;
  }
}

.eg-mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  padding: 0.35rem 0.5rem calc(0.35rem + var(--eg-safe-bottom));
  pointer-events: none;
}

.eg-mobile-dock-inner {
  pointer-events: auto;
  max-width: min(420px, calc(100vw - 0.75rem));
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.15rem;
  padding: 0.35rem 0.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 -6px 32px rgba(15, 23, 42, 0.1),
    0 12px 40px rgba(37, 99, 235, 0.08);
}

.eg-dock-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--eg-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

button.eg-dock-item {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  margin: 0;
  line-height: 1.1;
}

.eg-dock-item--chat i {
  color: var(--eg-green-deep);
  opacity: 1;
}

.eg-dock-item--chat:hover,
.eg-dock-item--chat:focus-visible {
  color: var(--eg-blue-deep);
  background: rgba(37, 99, 235, 0.08);
}

.eg-dock-item i {
  font-size: 1.15rem;
  opacity: 0.88;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.eg-more-icon {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 3px;
  width: 18px;
  height: 18px;
  place-content: center;
}
.eg-more-icon i { width: 5px; height: 5px; border-radius: 2px; background: currentColor; opacity: .9; }
.eg-dock-item--more[aria-expanded="true"] { color: #ed5700; background: #fff2e8; }

.eg-dock-item:hover,
.eg-dock-item:focus-visible {
  color: var(--eg-blue-deep);
  background: rgba(37, 99, 235, 0.06);
}

.eg-dock-item.is-active {
  color: var(--eg-green-deep);
  background: rgba(5, 150, 105, 0.1);
}

.eg-dock-item.is-active i {
  transform: scale(1.08);
}

.eg-mobile-dock-glow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--eg-green), var(--eg-blue), var(--eg-red), var(--eg-blue), var(--eg-green));
  background-size: 240% 100%;
  animation: ecm-dock-glow-flow 5s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}

@keyframes ecm-dock-glow-flow {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 240% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-mobile-dock-glow {
    animation: none !important;
  }
}

@media (min-width: 992px) {
  .eg-mobile-dock {
    display: none !important;
  }
}

/* Homepage — premium glass dock with EasyBot as the central mobile action. */
.ecm-home-dock {
  padding-inline: .45rem;
  padding-bottom: calc(.42rem + var(--eg-safe-bottom));
}

.ecm-home-dock .eg-mobile-dock-inner {
  position: relative;
  min-height: 68px;
  align-items: center;
  gap: .1rem;
  padding: .38rem .42rem;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(243,247,255,.93)),
    radial-gradient(circle at 50% 0, rgba(79,70,229,.14), transparent 55%);
  box-shadow:
    0 -1px 0 rgba(255,255,255,.9),
    0 16px 45px rgba(15,23,42,.2),
    0 5px 16px rgba(37,99,235,.1);
}

.ecm-home-dock .eg-mobile-dock-inner::before {
  content: '';
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border: 1px solid rgba(99,102,241,.06);
  border-radius: 19px;
}

.ecm-home-dock .eg-dock-item {
  position: relative;
  z-index: 1;
  min-height: 54px;
  gap: 4px;
  padding: 7px 3px 5px;
  border-radius: 16px;
  color: #718096;
  font-size: .56rem;
  letter-spacing: -.01em;
}

.ecm-home-dock .eg-dock-item > i {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  color: #68758b;
  font-size: 1rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.ecm-home-dock .eg-dock-item:is(:hover, :focus-visible),
.ecm-home-dock .eg-dock-item.is-active {
  color: #155e52;
  background: rgba(16,185,129,.08);
}

.ecm-home-dock .eg-dock-item:is(:hover, :focus-visible) > i,
.ecm-home-dock .eg-dock-item.is-active > i {
  color: #0f8c75;
  background: rgba(16,185,129,.1);
  transform: translateY(-1px);
}

button.ecm-home-dock__bot {
  appearance: none;
  -webkit-appearance: none;
  min-width: 66px;
  margin-top: -27px;
  border: 0;
  color: #39425b;
  background: transparent !important;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ecm-home-dock__bot-icon {
  position: relative;
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border: 4px solid rgba(255,255,255,.96);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #1f7aff 0%, #5748e8 54%, #9c3fd0 100%);
  box-shadow: 0 11px 25px rgba(72,72,214,.35), inset 0 1px 0 rgba(255,255,255,.28);
  transform: rotate(-2deg);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.ecm-home-dock__bot-icon i { font-size: 1.22rem; transform: rotate(2deg); }
.ecm-home-dock__bot-icon b {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #20c997;
  box-shadow: 0 0 0 3px rgba(32,201,151,.16);
}

.ecm-home-dock__bot:is(:hover, :focus-visible) .ecm-home-dock__bot-icon,
.ecm-home-dock__bot.is-chat-open .ecm-home-dock__bot-icon {
  box-shadow: 0 15px 32px rgba(72,72,214,.43), 0 0 0 5px rgba(99,102,241,.1);
  transform: translateY(-3px) rotate(2deg) scale(1.04);
}

.ecm-home-dock__bot.is-chat-open { color: #5146cc; }
.ecm-home-dock__bot.is-chat-open .ecm-home-dock__bot-icon b { background: #fbbf24; }

.ecm-home-dock .eg-mobile-dock-glow {
  left: 17%;
  right: 17%;
  bottom: 1px;
  height: 2px;
  opacity: .7;
  background: linear-gradient(90deg, transparent, #10b981, #4f46e5, #a855f7, transparent);
}

@media (max-width: 359.98px) {
  .ecm-home-dock .eg-mobile-dock-inner { min-height: 64px; padding-inline: .28rem; }
  .ecm-home-dock .eg-dock-item { min-height: 50px; font-size: .51rem; }
  .ecm-home-dock__bot-icon { width: 49px; height: 49px; }
  button.ecm-home-dock__bot { min-width: 58px; margin-top: -24px; }
}
/* Feuille de navigation EasyGas : expose sur mobile tous les espaces du menu PC. */
.eg-mobile-fullmenu,.eg-mobile-fullmenu-backdrop{display:none}
@media(max-width:991.98px){
  body.eg-mobile-menu-open{overflow:hidden}
  .eg-mobile-fullmenu-backdrop{position:fixed;inset:0;z-index:2140;display:block!important;background:rgba(7,18,12,.62);backdrop-filter:blur(5px)}
  .eg-mobile-fullmenu[hidden],.eg-mobile-fullmenu-backdrop[hidden]{display:none!important}
  .eg-mobile-fullmenu{position:fixed;right:0;bottom:0;left:0;z-index:2150;display:block;max-height:86dvh;padding:18px 16px calc(22px + env(safe-area-inset-bottom));overflow-y:auto;border-radius:22px 22px 0 0;background:#f5f8f6;color:#14231c;box-shadow:0 -24px 70px rgba(0,0,0,.3)}
  .eg-mobile-fullmenu header{display:flex;align-items:center;justify-content:space-between;max-width:680px;margin:0 auto 14px}.eg-mobile-fullmenu header small{display:block;color:#718078;font-size:10px;font-weight:800;letter-spacing:.12em}.eg-mobile-fullmenu h2{margin:2px 0 0;font-size:22px;font-weight:850;letter-spacing:0}
  .eg-mobile-fullmenu header button{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;background:#e3eae6;color:#14231c;font-size:18px}
  .eg-mobile-fullmenu nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:680px;margin:auto}.eg-mobile-fullmenu nav a{display:flex;align-items:center;gap:11px;min-width:0;min-height:70px;padding:11px;border:1px solid #dfe7e2;border-radius:8px;background:#fff;color:#14231c;text-decoration:none;box-shadow:0 4px 14px rgba(14,30,21,.05)}
  .eg-mobile-fullmenu nav>a>i{display:grid;flex:0 0 38px;place-items:center;width:38px;height:38px;border-radius:8px;background:#eaf7ef;color:#16894c}.eg-mobile-fullmenu nav a:nth-child(3n+2)>i{background:#eaf1ff;color:#2869ce}.eg-mobile-fullmenu nav a:nth-child(3n)>i{background:#fff0e6;color:#e96910}.eg-mobile-fullmenu nav a.is-business{border-color:#ffd3b3;background:#fffaf6}
  .eg-mobile-fullmenu nav span{display:flex;min-width:0;flex-direction:column}.eg-mobile-fullmenu nav strong{font-size:13px;line-height:1.15}.eg-mobile-fullmenu nav small{margin-top:3px;overflow:hidden;color:#748179;font-size:10px;white-space:nowrap;text-overflow:ellipsis}
  .eg-mobile-fullmenu .eg-mobile-assistant{grid-column:1/-1;display:flex;align-items:center;gap:12px;min-height:78px;padding:13px 14px;border:0;border-radius:16px;background:linear-gradient(125deg,#ff7a18,#f04400);color:#fff;text-align:left;box-shadow:0 12px 28px rgba(214,68,0,.25)}
  .eg-mobile-fullmenu .eg-mobile-assistant>i{display:grid;flex:0 0 46px;width:46px;height:46px;place-items:center;border-radius:15px;background:rgba(255,255,255,.2);font-size:21px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
  .eg-mobile-fullmenu .eg-mobile-assistant span{flex:1}.eg-mobile-fullmenu .eg-mobile-assistant strong{font-size:14px}.eg-mobile-fullmenu .eg-mobile-assistant small{color:rgba(255,255,255,.82);font-size:11px}
  .eg-mobile-fullmenu .eg-mobile-assistant b{padding:7px 10px;border-radius:999px;background:#fff;color:#c2410c;font-size:10px}
}
@media(max-width:360px){.eg-mobile-fullmenu nav{grid-template-columns:1fr}.eg-mobile-fullmenu nav a{min-height:62px}}
