/* =================================================================
   PIXEL PROS — Boutons flottants réseaux + WhatsApp
   ================================================================= */

.fsoc {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: 'Inter', sans-serif;
}

.fsoc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity .25s, transform .25s;
  transform-origin: bottom right;
}

.fsoc-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink-shadow);
  border: 2px solid var(--ink-shadow);
  box-shadow: 4px 4px 0 var(--ink-shadow);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  transition: transform .15s, box-shadow .15s;
  order: 99;  /* toujours en dernier en bas */
}
.fsoc-toggle:hover { transform: translate(-1px, -1px) rotate(36deg); box-shadow: 6px 6px 0 var(--ink-shadow); }
.fsoc-toggle:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-shadow); }

.fsoc.is-collapsed .fsoc-list {
  opacity: 0;
  transform: scale(.5) translateY(20px);
  pointer-events: none;
}

.fsoc-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fsoc-color, var(--blue));
  color: #fff;
  border: 2px solid var(--ink-shadow);
  box-shadow: 3px 3px 0 var(--ink-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.fsoc-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink-shadow); }
.fsoc-btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink-shadow); }

.fsoc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
}
.fsoc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #ffffff !important;
}
.fsoc-icon svg path { fill: #ffffff; }

/* Tooltip au survol */
.fsoc-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ink-shadow);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.fsoc-tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--ink-shadow);
}
.fsoc-btn:hover .fsoc-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 520px) {
  .fsoc { right: 14px; bottom: 14px; }
  .fsoc-toggle { width: 46px; height: 46px; font-size: 18px; }
  .fsoc-btn { width: 44px; height: 44px; }
}

/* En print : on cache */
@media print { .fsoc { display: none; } }

/* =================================================================
   MODAL EXPLICATIF (clic sur un bouton réseau)
   ================================================================= */

.fsoc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 13, 26, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}
.fsoc-modal.is-show { opacity: 1; }

.fsoc-modal-card {
  background: var(--bg-elev);
  border: 3px solid var(--ink-shadow);
  border-radius: 18px;
  box-shadow: 10px 10px 0 var(--yellow), 14px 14px 0 var(--ink-shadow);
  padding: 36px 32px 28px;
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: scale(.9);
  transition: transform .25s cubic-bezier(.2,.7,.3,1.3);
  max-height: 90vh;
  overflow-y: auto;
}
.fsoc-modal.is-show .fsoc-modal-card { transform: scale(1); }

.fsoc-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink-shadow);
  color: var(--ink-shadow);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--ink-shadow);
  transition: transform .12s, box-shadow .12s;
}
.fsoc-modal-close:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink-shadow); }
.fsoc-modal-close:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink-shadow); }

.fsoc-modal-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink-shadow);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  padding: 7px 12px;
  border-radius: 5px;
  border: 2px solid var(--ink-shadow);
  box-shadow: 3px 3px 0 var(--ink-shadow);
  margin-bottom: 18px;
}

.fsoc-modal-card h2 {
  font-weight: 900;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  color: var(--fg);
}

.fsoc-modal-lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-bottom: 22px;
}
.fsoc-modal-lead strong { color: var(--fg); }

.fsoc-modal-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}
.fsoc-modal-feat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fsoc-modal-feat-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--ink-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
.fsoc-modal-feat strong {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 2px;
  color: var(--fg);
}
.fsoc-modal-feat div {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.45;
}

.fsoc-modal-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fsoc-modal-cta {
  background: var(--yellow);
  color: var(--ink-shadow);
  font-weight: 900;
  font-size: 15px;
  padding: 14px 22px;
  border: 2px solid var(--ink-shadow);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--blue);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.fsoc-modal-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--blue); }
.fsoc-modal-cta:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--blue); }
.fsoc-modal-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.fsoc-modal-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .fsoc-modal-card { padding: 28px 22px 22px; box-shadow: 6px 6px 0 var(--yellow), 10px 10px 0 var(--ink-shadow); }
}
