/**
* Footer Component Styles - Morais Cleaning
* Classes préfixées .mc- pour éviter les collisions
*/

/* ===== VARIABLES ===== */
.mc-footer {
  --mc-primary: #2C5AA0;
  --mc-primary-dark: #1A4478;
  --mc-secondary: #3DB166;
  --mc-white: #ffffff;
  --mc-light: #F8F9FA;
  --mc-dark: #2C3E50;
  --mc-gray: #6C757D;
  --mc-border: #E0E6EF;
  --mc-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  --mc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== STRUCTURE PRINCIPALE ===== */
.mc-footer {
  position: relative;
  background: linear-gradient(to bottom, var(--mc-dark) 0%, #1a252f 100%);
  color: var(--mc-white);
  margin-top: 80px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mc-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION PRINCIPALE ===== */
.mc-footer-main {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  padding: 60px 0 40px;
  align-items: flex-start;
}

/* ===== BLOC ABOUT ===== */
.mc-footer-about {
  max-width: 280px;
}

.mc-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mc-white);
  margin-bottom: 20px;
}

.mc-footer-logo i {
  color: var(--mc-secondary);
  font-size: 1.8rem;
}

.mc-footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.mc-footer-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mc-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(61, 177, 102, 0.15);
  color: var(--mc-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(61, 177, 102, 0.3);
}

.mc-cert-badge i {
  font-size: 0.9rem;
}

/* ===== SECTIONS FOOTER ===== */
.mc-footer-section {
  display: flex;
  flex-direction: column;
}

.mc-footer-title {
  color: var(--mc-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mc-secondary);
  display: inline-block;
}

/* ===== LIENS FOOTER ===== */
.mc-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--mc-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mc-footer-links a::before {
  content: "→";
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--mc-transition);
}

.mc-footer-links a:hover {
  color: var(--mc-white);
  padding-left: 8px;
}

.mc-footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== CONTACT INFO ===== */
.mc-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mc-footer-contact li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.mc-footer-contact i {
  width: 20px;
  color: var(--mc-secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.mc-footer-contact div {
  flex: 1;
}

.mc-footer-contact strong {
  display: block;
  color: var(--mc-white);
  font-size: 0.85rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mc-footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--mc-transition);
}

.mc-footer-contact a:hover {
  color: var(--mc-secondary);
}

.mc-footer-contact span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* ===== SOCIAL MEDIA ===== */
.mc-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.mc-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mc-white);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--mc-transition);
  font-size: 1.1rem;
}

.mc-footer-social a:hover {
  background: var(--mc-secondary);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(61, 177, 102, 0.4);
}

/* ===== FOOTER BOTTOM ===== */
.mc-footer-bottom {
  padding: 25px 0;
}

.mc-footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.mc-footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.mc-footer-legal {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.mc-footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--mc-transition);
}

.mc-footer-legal a:hover {
  color: var(--mc-white);
}

.mc-footer-separator {
  color: rgba(255, 255, 255, 0.3);
}

.mc-footer-credit {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mc-footer-credit i {
  color: var(--mc-red-light);
  animation: mc-heartbeat 1.5s ease-in-out infinite;
}

@keyframes mc-heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ===== BACK TO TOP BUTTON ===== */
.mc-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--mc-primary), var(--mc-primary-dark));
  color: var(--mc-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--mc-transition);
  z-index: 999;
}

.mc-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mc-back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.5);
}

/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 1024px) {
  .mc-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .mc-footer-about {
    max-width: 100%;
    grid-column: 1 / -1;
  }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  .mc-footer {
    margin-top: 60px;
  }

  .mc-footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 40px 0 30px;
  }

  .mc-footer-about {
    text-align: center;
    max-width: 100%;
  }

  .mc-footer-logo {
    justify-content: center;
  }

  .mc-footer-certifications {
    justify-content: center;
  }

  .mc-footer-section {
    text-align: center;
  }

  .mc-footer-title {
    margin: 0 auto 20px;
  }

  .mc-footer-links {
    align-items: center;
  }

  .mc-footer-contact {
    align-items: center;
  }

  .mc-footer-contact li {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .mc-footer-social {
    justify-content: center;
  }

  .mc-footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .mc-footer-legal {
    justify-content: center;
    font-size: 0.85rem;
  }

  .mc-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes mc-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mc-footer-section {
  animation: mc-fadeInUp 0.6s ease;
  animation-fill-mode: both;
}

.mc-footer-section:nth-child(1) {
  animation-delay: 0.1s;
}

.mc-footer-section:nth-child(2) {
  animation-delay: 0.2s;
}

.mc-footer-section:nth-child(3) {
  animation-delay: 0.3s;
}

.mc-footer-section:nth-child(4) {
  animation-delay: 0.4s;
}

/* ==========================================================================
   OVERRIDES LOGO
   "Morais" rouge / "Cleaning" blanc
   ========================================================================== */
.mc-footer .mc-logo-morais { color: var(--secondary) !important; }
.mc-footer .mc-logo-cleaning { color: #ffffff !important; }

/* Footer logo white */
.footer .logo, .footer .logo *{ color:#fff !important; }
