/* ========== FOOTER ========== */
.footer {
  background: #e8e8f0;
  position: relative;
  overflow: hidden;
}

/* ---- Barre colorée tout en haut du footer ---- */
.footer-top-bar {
  height: 4px;
  background: linear-gradient(90deg, #312e81 0%, #4f46e5 35%, #06b6d4 65%, #fbbf24 100%);
}

/* ---- Forme grise coin haut-gauche (inchangée) ---- */
.footer::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: #312e81;
  transform: rotate(18deg);
  border-radius: 24px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* ---- Forme grise coin bas-droit (inchangée) ---- */
.footer::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -90px;
  width: 320px;
  height: 320px;
  background: #312e81;
  transform: rotate(18deg);
  border-radius: 28px;
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}

/* ====================================
   COIN HAUT-GAUCHE : 3 barres colorées
   ==================================== */

.footer-shape-tl-1 {
  position: absolute;
  top: -90px;
  left: -20px;
  width: 52px;
  height: 200px;
  background: #06b6d4;
  transform: rotate(18deg);
  border-radius: 8px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.footer-shape-tl-2 {
  position: absolute;
  top: -90px;
  left: 42px;
  width: 52px;
  height: 200px;
  background: #f97316;
  transform: rotate(18deg);
  border-radius: 8px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

.footer-shape-tl-3 {
  position: absolute;
  top: -90px;
  left: 104px;
  width: 52px;
  height: 200px;
  background: #fbbf24;
  transform: rotate(18deg);
  border-radius: 8px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* ====================================
   COIN BAS-DROIT : 3 barres colorées
   ==================================== */

.footer-shape-br-1 {
  position: absolute;
  bottom: -90px;
  right: -20px;
  width: 52px;
  height: 200px;
  background: #06b6d4;
  transform: rotate(18deg);
  border-radius: 8px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.footer-shape-br-2 {
  position: absolute;
  bottom: -90px;
  right: 42px;
  width: 52px;
  height: 200px;
  background: #f97316;
  transform: rotate(18deg);
  border-radius: 8px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

.footer-shape-br-3 {
  position: absolute;
  bottom: -90px;
  right: 104px;
  width: 52px;
  height: 200px;
  background: #fbbf24;
  transform: rotate(18deg);
  border-radius: 8px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* ---- Contenu principal ---- */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 60px 5% 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-section img {
  height: 40px;
  width: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-section p {
  color: #4a4870 !important;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 280px;
}

.footer-section h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #312e81;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links li a {
  color: #2d2b50;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.footer-links li a::before {
  content: '';
  width: 0;
  height: 2px;
  background: #4f46e5;
  transition: width 0.2s ease;
  display: inline-block;
  margin-right: 0;
}

.footer-links li a:hover {
  color: #4f46e5;
  padding-left: 6px;
}

.footer-links li a:hover::before {
  width: 10px;
  margin-right: 6px;
}

/* ---- Séparation & copyright ---- */
.footer-bottom {
  border-top: 1px solid rgba(49, 46, 129, 0.12);
  padding: 1.25rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  color: #6b6890;
  font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 48px 5% 32px;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
  }

  .footer-section p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}