/* Badge Devlooper flottant — styles dédiés (formulaires = .sr-* dans app.css). */

.devlooper-widget {
  --devlooper-brand: #3c5088;
  --devlooper-brand-dim: #c3d0e8;
  --devlooper-logo-w: 90px;
  --devlooper-logo-h: 20px;
  --devlooper-pad-x: 14px;
  --devlooper-pad-y: 11px;

  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: calc(var(--devlooper-logo-w) + var(--devlooper-pad-x) * 2);
  max-width: calc(100vw - 40px);
  border-radius: var(--radius, 8px);
  transition: width 0.38s ease, box-shadow 0.38s ease;
}

.devlooper-widget:hover,
.devlooper-widget:focus-within {
  width: min(400px, calc(100vw - 32px));
  box-shadow: 0 22px 56px #2a355622;
}

.devlooper-widget__inner {
  position: relative;
  width: 100%;
  border: 1px solid var(--line, #dce2dc);
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 16px 44px #17312814;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.devlooper-widget:hover .devlooper-widget__inner,
.devlooper-widget:focus-within .devlooper-widget__inner {
  border-color: var(--devlooper-brand-dim);
}

.devlooper-widget__orbit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.devlooper-widget__orbit-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.devlooper-widget__orbit-path {
  stroke: var(--devlooper-brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 44 6 44;
  filter: drop-shadow(0 0 4px #3c508866);
  animation: devlooper-widget-dash 9.2s linear infinite;
}

@keyframes devlooper-widget-dash {
  to {
    stroke-dashoffset: -100;
  }
}

.devlooper-widget__chrome {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: var(--devlooper-pad-y) var(--devlooper-pad-x);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.devlooper-widget:hover .devlooper-widget__chrome,
.devlooper-widget:focus-within .devlooper-widget__chrome {
  border-bottom-color: var(--line, #dce2dc);
}

.devlooper-widget__byline {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  color: var(--muted, #64736d);
}

.devlooper-widget__logo {
  display: block;
  width: var(--devlooper-logo-w);
  height: var(--devlooper-logo-h);
  object-fit: contain;
  object-position: center;
}

.devlooper-widget__body {
  position: relative;
  z-index: 1;
  max-height: 0;
  opacity: 0;
  padding: 0 14px;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.32s ease, padding 0.32s ease;
}

.devlooper-widget:hover .devlooper-widget__body,
.devlooper-widget:focus-within .devlooper-widget__body {
  max-height: 440px;
  opacity: 1;
  padding: 14px 14px 16px;
}

.devlooper-widget__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--devlooper-brand);
}

.devlooper-widget__headline {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 750;
  color: var(--ink, #10251f);
  letter-spacing: -0.02em;
}

.devlooper-widget__copy {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #43534d;
}

.devlooper-widget__copy strong {
  color: var(--ink, #10251f);
  font-weight: 650;
}

.devlooper-widget__points {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #64736d);
}

.devlooper-widget__points li {
  padding: 6px 0;
  border-top: 1px solid var(--line, #dce2dc);
}

.devlooper-widget__points li:first-child {
  border-top: 0;
  padding-top: 0;
}

.devlooper-widget__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.devlooper-widget__cta {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: var(--radius, 8px);
  background: var(--devlooper-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.devlooper-widget__cta:hover {
  background: #324678;
}

.devlooper-widget__ghost {
  display: block;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--line, #dce2dc);
  color: var(--ink, #10251f);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  background: #fbfbf7;
}

@media (max-width: 760px) {
  .devlooper-widget {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .devlooper-widget__orbit-path {
    animation: none;
    stroke-dasharray: 6 94;
    stroke-dashoffset: 0;
  }
}
