/* === FOOTER === */
#footer {
  background: var(--brand-ink);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
  margin-top: 0;
  color: var(--ring);
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 0.95rem;
  color: white;
  text-decoration: none;
  line-height: 1.5;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lang-switch a {
  text-decoration: none;
  color: var(--ring);
  font-weight: 600;
}

.lang-switch a.active {
  color: white;
}

.lang-switch a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.footer-privacy {
  display: inline-block;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-privacy:hover {
  color: rgba(255,255,255,0.9);
}

.footer-social {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.footer-social-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff; /* adapte à ta charte */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--bg);
}

.social-btn {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  text-decoration: none;

  /* IMPORTANT: le tooltip doit pouvoir dépasser */
  overflow: visible;

  transition: transform 0.4s ease;
}

.social-btn:hover {
  transform: translateY(-16px);
}

/* couche interne: garde ton style glass + overflow hidden */
.social-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 45px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  background-color: var(--bg);

  overflow: hidden; /* OK ici */
}

/* shine (ton ancien ::before) */
.social-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  transform: skewX(45deg) translateX(150px);
  transition: 0.5s ease;
}

.social-btn:hover .social-inner::before {
  transform: skewX(45deg) translateX(-150px);
}

.social-inner svg {
  width: 90%;
}

/* TOOLTIP */
.social-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* FLÈCHE */
.social-btn::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-btn:hover::after,
.social-btn:focus-visible::after,
.social-btn:hover::before,
.social-btn:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* couleurs */

#facebook1 {
  color: rgba(10, 128, 236, 0.7);
}

#facebook2 {
  color: #1b7709;
}

#instagram {
  color: rgba(225, 48, 108, 0.75);
}
