/* ============================================
   APPSM - FOOTER GLOBAL (Toutes les pages)
   Fichier: css/footer.css
============================================ */

/* ============================================
   1. BANDE CTA (Au-dessus du footer)
============================================ */
.footer-cta {
  padding: 45px 0;
  background: linear-gradient(135deg, #4a1e5c 0%, var(--purple) 100%);
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(232, 103, 42, 0.1);
  pointer-events: none;
}

.footer-cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.footer-cta .container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
}

.footer-cta h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
  line-height: 1.3;
  color: var(--white);
}

.footer-cta h2 span {
  color: var(--orange);
  position: relative;
  display: inline-block;
  font-weight: 900;
}

.footer-cta h2 span::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(232, 103, 42, 0.6);
}

.footer-cta p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 22px;
  line-height: 1.6;
  color: var(--white);
}

.footer-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}

.footer-cta .btn-primary {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  color: var(--white);
  box-shadow: 0 8px 25px rgba(232, 103, 42, 0.5);
}

.footer-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(232, 103, 42, 0.6);
}

.footer-cta .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.footer-cta .btn-outline:hover {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   2. FOOTER PRINCIPAL
============================================ */
.footer {
  background: linear-gradient(180deg, var(--navy-dark) 0%, #0a1225 100%);
  color: var(--white);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--navy) 0%,
    var(--purple) 50%,
    var(--orange) 100%
  );
}

.footer-top {
  padding: 80px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

/* Colonne À propos */
.footer-about {
  padding-right: 25px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 55px;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
}

.footer-logo .footer-logo-text {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
}

.footer-about > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(232, 103, 42, 0.4);
}

/* Titres colonnes */
.footer-col h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--orange);
  border-radius: 3px;
}

/* Liens dans les colonnes */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--orange);
  padding-left: 5px;
}

.footer-col ul li a i {
  font-size: 10px;
  color: var(--orange);
}

/* Contact items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-contact-item i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(232, 103, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item div {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-bottom p a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--orange);
}

/* ============================================
   3. BACK TO TOP
============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(232, 103, 42, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(232, 103, 42, 0.6);
}

/* ============================================
   4. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-cta {
    padding: 35px 0;
  }

  .footer-cta h2 {
    font-size: 22px;
  }

  .footer-cta p {
    font-size: 14px;
  }

  .footer-cta .cta-buttons {
    flex-direction: column;
  }

  .footer-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-top {
    padding: 60px 0 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
