/* YM DIGITAL — Barre d'action flottante (js/dock.js) */
.dock { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 18;
  transform: translate(-50%, 24px); opacity: 0; visibility: hidden;
  transition: transform .3s cubic-bezier(.32,.72,0,1), opacity .25s ease, visibility 0s linear .3s; }
.dock.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
/* Formulaire ouvert : il passe au-dessus de la barre du menu (le tiroir du menu reste au-dessus) */
.dock.is-form { z-index: 30; }

.dock-bar { display: flex; align-items: center; gap: 8px; }
.dock-b, .dock-go { transition: transform .2s ease, background-color .2s ease, border-color .2s ease, opacity .25s ease; }
.dock-b { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer; text-decoration: none; color: #FFFFFF;
  background: rgba(12, 18, 30, .8); border: 1px solid rgba(140, 170, 215, .24);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.dock-b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-b svg.fill { fill: currentColor; stroke: none; }
.dock-go { height: 48px; min-width: 148px; padding: 0 28px; border: 0; border-radius: 24px; cursor: pointer;
  background: #FFFFFF; color: #050505; font: 600 1rem/1 var(--font, 'Archivo', sans-serif); font-stretch: 112%; letter-spacing: .01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
@media (hover: hover) {
  .dock-b:hover { transform: translateY(-2px); background: rgba(26, 40, 66, .92); border-color: rgba(169, 200, 255, .55); }
  .dock-go:hover { transform: translateY(-2px); background: #E4ECFB; }
  /* Petite étiquette au survol */
  .dock-b[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px);
    transform: translate(-50%, 4px); padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none;
    background: #FFFFFF; color: #050505; font: 600 .875rem/1.2 var(--font, 'Archivo', sans-serif); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
  .dock-b[data-tip]:hover::after, .dock-b[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
  .dock-b[aria-expanded="true"]::after { opacity: 0 !important; }
}
.dock-b:focus-visible, .dock-go:focus-visible, .dock-x:focus-visible, .dock-send:focus-visible,
.dock-pop a:focus-visible, .dock-ck a:focus-visible { outline: 2px solid #A9C8FF; outline-offset: 3px; }

/* Pastille rouge sur « Infos » (disparaît une fois les infos ouvertes) */
.dock-dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%;
  background: #FF453A; box-shadow: 0 0 0 2px #050505; }
.dock-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #FF453A; animation: dock-ping 2.4s ease-out infinite; }
.dock-info.seen .dock-dot { display: none; }
@keyframes dock-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* Formulaire : le bouton « Commencer » s'ouvre en panneau */
.dock.is-form .dock-bar > * { opacity: 0; transform: scale(.92); pointer-events: none; }
.dock-panel { position: absolute; left: 50%; bottom: 0; width: min(384px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain; transform: translateX(-50%); border-radius: 20px;
  background: linear-gradient(165deg, #15274A 0%, #0B1628 52%, #070B12 100%); border: 1px solid rgba(140, 170, 215, .26);
  clip-path: inset(0 round 20px); transition: clip-path .32s cubic-bezier(.32,.72,0,1); }
.dock-panel[hidden] { display: none; }
.dock-in { padding: 20px 24px 24px; opacity: 0; transition: opacity .16s ease; }
.dock.is-form .dock-in { opacity: 1; transition: opacity .22s ease .12s; }
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dock-ft, .dock-pt { margin: 0; color: #FFFFFF; font-weight: 700; font-stretch: 112%; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.dock-x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  border-radius: 50%; border: 1px solid rgba(140, 170, 215, .26); background: transparent; color: #FFFFFF; cursor: pointer; transition: background-color .2s ease; }
.dock-x:hover { background: rgba(255, 255, 255, .08); }
.dock-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dock-pick { margin: -4px 0 16px; padding: 8px 12px; border-radius: 10px; background: rgba(169, 200, 255, .12); color: #DCE7FF; font-size: .9375rem; line-height: 1.4; }
.dock-pick[hidden] { display: none; }
.dock-f { margin: 0; }
.dock-fl { margin-bottom: 12px; }
.dock-fl label { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, .82); font-size: .9375rem; line-height: 1.4; }
.dock-fl input, .dock-fl textarea { display: block; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #2E3949; background: rgba(255, 255, 255, .04); color: #FFFFFF; font: 400 1rem/1.4 var(--font, 'Archivo', sans-serif);
  transition: border-color .2s ease, background-color .2s ease; }
.dock-fl textarea { min-height: 88px; padding: 12px 14px; resize: vertical; }
/* Exemples dans les champs (comme « Jean Dupont ») : gris clair, pour ne pas les confondre avec une saisie */
.dock-fl input::placeholder, .dock-fl textarea::placeholder { color: rgba(255, 255, 255, .34); opacity: 1; }
.dock-fl input:focus-visible, .dock-fl textarea:focus-visible { outline: 2px solid #A9C8FF; outline-offset: 1px; border-color: #A9C8FF; background: rgba(255, 255, 255, .06); }
.dock-fl [aria-invalid="true"] { border-color: #FF8A80; }
.dock-err { margin: 6px 0 0; color: #FF9C94; font-size: .875rem; line-height: 1.4; }
.dock-ck { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; color: rgba(255, 255, 255, .78); font-size: .875rem; line-height: 1.5; cursor: pointer; }
.dock-ck input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #A9C8FF; }
.dock-ck a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.dock-send { display: block; width: 100%; height: 48px; margin-top: 16px; border: 0; border-radius: 24px; cursor: pointer;
  background: #FFFFFF; color: #050505; font: 600 1rem/1 var(--font, 'Archivo', sans-serif); font-stretch: 112%; transition: background-color .2s ease; }
.dock-send:hover { background: #E4ECFB; }
.dock-send:disabled { opacity: .6; cursor: wait; }
.dock-note { margin: 10px 0 0; text-align: center; color: rgba(255, 255, 255, .62); font-size: .875rem; line-height: 1.4; }
.dock-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .9375rem; line-height: 1.5; background: rgba(255, 90, 80, .12); color: #FFB4AD; }
.dock-msg.ok { background: rgba(120, 220, 160, .12); color: #A8F0C6; }

/* Infos */
.dock-pop { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(320px, calc(100vw - 32px)); padding: 20px; border-radius: 16px;
  background: linear-gradient(165deg, #15274A 0%, #0B1628 60%, #070B12 100%); border: 1px solid rgba(140, 170, 215, .26);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.dock-pop.is-open { opacity: 1; transform: none; }
.dock-pop[hidden] { display: none; }
.dock-facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.dock-facts b { display: block; color: #FFFFFF; font-size: 1rem; font-weight: 600; }
.dock-facts span { display: block; color: rgba(255, 255, 255, .72); font-size: .9375rem; line-height: 1.45; }
.dock-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #2E3949; }
.dock-links a { display: inline-flex; align-items: center; min-height: 32px; color: #A9C8FF; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }

/* Place libre sous le pied de page pour ne rien cacher */
.has-dock .ftr { padding-bottom: 104px; }

@media (max-width: 767px) {
  .dock { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .dock-b { width: 44px; height: 44px; }
  .dock-go { height: 44px; min-width: 0; padding: 0 22px; }
  .dock-panel { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .has-dock .ftr { padding-bottom: 88px; }
}
@media (max-width: 379px) {
  .dock-mail { display: none; }
  .dock-bar { gap: 6px; }
  .dock-go { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dock, .dock-b, .dock-go, .dock-panel, .dock-in, .dock-pop { transition: none !important; }
  .dock-dot::after { animation: none; }
}
@media print { .dock { display: none !important; } }
