footer {
  position: relative;
  overflow: hidden;
  padding-inline: clamp(20px, 6vw, 110px);
  background:
    radial-gradient(circle at 15% 10%, rgba(140, 182, 255, .45), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(222, 184, 255, .45), transparent 60%),
    linear-gradient(135deg, #eef5ff 0%, #e4ecff 30%, #f5e7ff 100%);
  color: #2b2950;
}

footer::before,
footer::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), rgba(255,255,255,0));
  opacity: .6;
  pointer-events: none;
}

footer::before {
  top: -140px;
  left: clamp(-120px, -8vw, 0px);
  filter: blur(30px);
}

footer::after {
  bottom: -160px;
  right: clamp(-120px, -8vw, 0px);
  background: radial-gradient(circle at 30% 20%, rgba(120, 89, 233, .5), rgba(67, 41, 165, 0));
  filter: blur(24px);
}

footer .container {
  position: relative;
  padding-block: clamp(45px, 7vw, 90px);
  z-index: 1;
}

/* --- Calque décoratif --- */
.footer-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none; /* pourquoi: décor uniquement */
  z-index: 0;
}

/* Orb lumineux en mouvement (adapté du snippet Uiverse) */
.footer-ambient .glow-dot {
  width: 10px; aspect-ratio: 1;
  position: absolute;
  right: clamp(48px, 9vw, 120px);
  top: clamp(28px, 6vw, 70px);
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(255,255,255,.85),
    0 0 52px color-mix(in oklab, var(--secondary), transparent 10%),
    0 0 110px color-mix(in oklab, var(--accent, #ad5094), 20%);
  animation: footerMoveDot 8s linear infinite;
}

@keyframes footerMoveDot {
  0%, 100% {
    top: clamp(28px, 6vw, 70px);
    right: clamp(48px, 9vw, 120px);
  }
  25% {
    top: clamp(28px, 6vw, 70px);
    right: calc(100% - clamp(48px, 9vw, 120px) - 10px);
  }
  50% {
    top: calc(100% - clamp(28px, 6vw, 70px) - 10px);
    right: calc(100% - clamp(48px, 9vw, 120px) - 10px);
  }
  75% {
    top: calc(100% - clamp(28px, 6vw, 70px) - 10px);
    right: clamp(48px, 9vw, 120px);
  }
}

/* Rayon doux qui balaie le fond */
.footer-ambient .glow-ray {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60vmin;
  height: 14vmin;
  transform: rotate(35deg);
  border-radius: 999px;
  background: radial-gradient(70% 120% at 50% 50%, rgba(255,255,255,.6), rgba(255,255,255,0) 70%);
  filter: blur(14px);
  opacity: .35;
  animation: footerRay 10s ease-in-out infinite alternate;
}

@keyframes footerRay {
  from { transform: translateX(0) rotate(35deg); opacity: .25; }
  to   { transform: translateX(35%) rotate(25deg); opacity: .55; }
}

/* Lignes “néon” subtiles */
.footer-ambient .glow-line {
  position: absolute;
  background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,0));
  opacity: .16;
}
.footer-ambient .glow-line.topl    { top: 14%; height: 1px; left: 6%; right: 6%; }
.footer-ambient .glow-line.bottoml { bottom: 12%; height: 1px; left: 10%; right: 10%; opacity: .10; }
.footer-ambient .glow-line.leftl   { top: 8%; bottom: 8%; left: 10%; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0)); }
.footer-ambient .glow-line.rightl  { top: 12%; bottom: 12%; right: 8%; width: 1px; background: linear-gradient(0deg, rgba(255,255,255,.24), rgba(255,255,255,0)); }

/* --- Surélévation des blocs de contenu --- */
footer .glow-surface {
  position: relative;
  z-index: 1; /* au-dessus du décor */
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  backdrop-filter: blur(6px); /* pourquoi: lisibilité sur fond lumineux */
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 18px 32px rgba(108,125,172,.25),
    inset 0 1px 0 rgba(255,255,255,.8);
  padding: clamp(16px, 2.5vw, 28px);
}

/* Grille existante, juste plus “clean” */
footer .footer-content {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}

footer .footer-content .footer-column {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

footer .footer-content .footer-column p {
  color: rgba(64, 62, 96, .8);
  font-size: 0.975rem;
  line-height: 1.6;
  margin: 0;
}

footer .footer-content .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.footer-brand {
  align-items: center;
}

.footer-brand .footer-logo {
  width: 140px;
  max-width: 60%;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.12));
}

footer .footer-content .footer-column h3 {
  font-weight: 700;
  letter-spacing: .2px;
  color: #29274a;
  text-shadow: 0 1px 0 rgba(255,255,255,.04);
}

/* Survol néon sur les liens */
footer .footer-content .footer-links li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 4px 0;
  color: #4b3e8f;
  transition: color .2s ease;
}
footer .footer-content .footer-links li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, #6a8bff, #d468ff);
  transition: width .25s ease;
}
footer .footer-content .footer-links li a:hover {
  color: #6357d1;
  text-shadow: 0 0 12px rgba(107, 146, 255, .45);
}
footer .footer-content .footer-links li a:hover::after {
  width: 100%;
}

/* Barre de copyright “soft” */
footer .copyright {
  margin-top: clamp(18px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(51, 53, 85, .92);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(233,236,250,.9));
  font-size: clamp(.9rem, 1.2vw, 1rem);
  border-radius: 14px;
  padding: clamp(12px, 1.5vw, 18px) clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,.9);
}
footer .copyright a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

footer .copyright svg,
footer .copyright i {
  font-size: 1rem;
  color: #5b6ee6;
}

footer .copyright small {
  opacity: .9;
}

/* Accessibilité : réduit les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .footer-ambient .glow-dot,
  .footer-ambient .glow-ray {
    animation: none !important;
  }
}

:root[data-theme="dark"] footer {
  background:
    radial-gradient(circle at 15% 10%, rgba(99, 154, 255, .35), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(172, 71, 227, .3), transparent 60%),
    linear-gradient(135deg, #080b16 0%, #0f1121 40%, #16182a 100%);
  color: rgba(242, 244, 255, .92);
}

:root[data-theme="dark"] footer .glow-surface {
  background: rgba(16, 20, 35, .82);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow:
    0 14px 32px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);
}

:root[data-theme="dark"] footer .footer-content .footer-column h3 {
  color: #fdfdff;
}

:root[data-theme="dark"] footer .footer-content .footer-column p {
  color: rgba(213, 216, 245, .75);
}

:root[data-theme="dark"] footer .footer-content .footer-links li a {
  color: rgba(226, 230, 255, .85);
}

:root[data-theme="dark"] footer .footer-content .footer-links li a:hover {
  color: #79befd;
}

:root[data-theme="dark"] footer .copyright {
  color: rgba(235, 238, 255, .92);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
  border-color: rgba(255,255,255,.08);
}

:root[data-theme="dark"] footer .copyright i,
:root[data-theme="dark"] footer .copyright svg {
  color: #79befd;
}

@media (max-width: 640px) {
  footer {
    padding-inline: clamp(16px, 4vw, 30px);
  }

  footer .copyright {
    flex-direction: column;
    text-align: center;
  }
}
footer .footer-content .footer-column { text-align: left; }
footer .footer-content .footer-column h3 { text-align: center; }

.footer-brand { align-items: flex-start; }
.footer-brand .footer-logo { width: 140px; max-width: 60%; margin-bottom: 0.75rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.12)); }

.footer-contact {
  text-align: left;
}

.footer-contact h3 {
  text-align: left;
}

.footer-contact .footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: .75rem;
}

.footer-contact .footer-contact-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .6rem;
  color: #454463;
  font-size: .95rem;
}

.footer-contact .footer-contact-list i {
  color: var(--primary);
  margin-top: .2rem;
}

.footer-contact .footer-socials {
  display: flex;
  gap: .6rem;
}

.footer-contact .footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99,154,255,.25);
  color: var(--primary);
  background: rgba(99,154,255,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.footer-contact .footer-socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99,154,255,.2);
}

@media (max-width: 640px) {
  .footer-contact .footer-contact-list li {
    grid-template-columns: 20px 1fr;
  }
}
.footer-brand .footer-logo { margin-left: 0; }

/* Contact list: neat icon/text layout */
.footer-contact .footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-contact .footer-contact-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  column-gap: .6rem;
}
.footer-contact .footer-contact-list i { line-height: 1.4; }

/* Remove decorative underlines and text decorations inside contact + footer generally */
footer li { list-style: none; }
footer a { text-decoration: none; }
.footer-contact .footer-contact-list a { text-decoration: none; color: inherit; }
footer .footer-content .footer-links li a::after { content: none; }

/* Social icons row */
.footer-contact .footer-socials {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .6rem;
}
.footer-contact .footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.footer-contact .footer-socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Responsive: ensure nice spacing on small screens */
@media (max-width: 640px) {
  .footer-contact .footer-contact-list li { grid-template-columns: 20px 1fr; }
}
:root[data-theme="dark"] .footer-contact h3,
:root[data-theme="dark"] .footer-contact .footer-contact-list,
:root[data-theme="dark"] .footer-contact .footer-contact-list li,
:root[data-theme="dark"] .footer-contact .footer-contact-list span,
:root[data-theme="dark"] .footer-contact .footer-contact-list a,
:root[data-theme="dark"] .footer-contact .footer-socials a,
:root[data-theme="dark"] .footer-contact .footer-socials i {
  color: rgba(226, 230, 255, .9);
}
