/* =====================================================================
   CONTACT - cartes de contact et notification « copié »
   ===================================================================== */

.grille-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.contact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.3rem;
  border-radius: var(--rayon);
  border: 1px solid var(--bordure);
  background: var(--carte);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

/* Ombre sur une couche à part dont on anime l'opacité */
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--ombre);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact:hover { transform: translateY(-4px); border-color: var(--bordure-forte); }
.contact:hover::after { opacity: 1; }

.contact-icone {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  transition: transform 0.4s ease;
}

.contact:hover .contact-icone { transform: rotate(-8deg) scale(1.08); }
.contact-icone svg { width: 22px; height: 22px; fill: currentColor; }

.contact-nom { display: block; font-weight: 600; }
.contact-valeur { display: block; font-size: 0.85rem; color: var(--texte-doux); overflow-wrap: anywhere; }

/* ---------- Notification ---------- */
.notification {
  position: fixed;
  left: 50%; bottom: 2rem;
  z-index: 200;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--bordure-forte);
  background: color-mix(in srgb, var(--fond) 95%, transparent);
  box-shadow: var(--ombre);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.notification.visible { opacity: 1; transform: translate(-50%, 0); }
