/* === FOOTER STYLES - DESIGN 2025 === */

/* === CTA FINAL === */
.footer-cta {
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: white;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #8b5cf6 20%,
    #6366f1 50%,
    #8b5cf6 80%,
    transparent 100%
  );
  opacity: 0.6;
}

.footer-cta-container {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-cta-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.footer-cta-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  color: #0f172a;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.footer-cta-title em {
  font-style: normal;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-cta-text {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: #475569;
  margin: 0 0 2.5rem 0;
}

.footer-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-cta-primary,
.footer-cta-secondary {
  padding: 1rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.footer-cta-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.footer-cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.footer-cta-primary:hover::before {
  left: 100%;
}

.footer-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.footer-cta-primary svg {
  transition: transform 0.3s ease;
}

.footer-cta-primary:hover svg {
  transform: translateX(2px);
}

.footer-cta-secondary {
  background: transparent;
  color: #6366f1;
  border: 1px solid #e2e8f0;
}

.footer-cta-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* === FOOTER PRINCIPAL === */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  position: relative;
}

.footer-main {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem 0;
}

.footer-container {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 3rem);
}

/* === COLONNES FOOTER === */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-about {
  max-width: 400px;
}

/* === BRAND === */
.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo img {
  max-height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-site-title a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  text-decoration: none;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
background-clip: text;
}

.footer-description {
 font-size: 0.95rem;
 line-height: 1.6;
 color: #94a3b8;
 margin: 0;
}

/* === RÉSEAUX SOCIAUX === */
.footer-social {
 margin-top: 1rem;
}

.footer-social-title {
 font-size: 0.875rem;
 font-weight: 600;
 color: #f8fafc;
 margin: 0 0 1rem 0;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.footer-social-links {
 display: flex;
 gap: 0.75rem;
}

.social-link {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 44px;
 height: 44px;
 background: rgba(255, 255, 255, 0.05);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 12px;
 color: #94a3b8;
 text-decoration: none;
 transition: all 0.3s ease;
 position: relative;
 overflow: hidden;
}

.social-link::before {
 content: '';
 position: absolute;
 inset: 0;
 background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
 opacity: 0;
 transition: opacity 0.3s ease;
}

.social-link svg {
 position: relative;
 z-index: 2;
 transition: transform 0.3s ease;
}

.social-link:hover {
 border-color: rgba(99, 102, 241, 0.5);
 color: white;
 transform: translateY(-2px);
}

.social-link:hover::before {
 opacity: 1;
}

.social-link:hover svg {
 transform: scale(1.1);
}

/* === TITRES COLONNES === */
.footer-column-title {
 font-size: 1.1rem;
 font-weight: 600;
 color: #f8fafc;
 margin: 0 0 1.5rem 0;
 position: relative;
 padding-bottom: 0.5rem;
}

.footer-column-title::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 30px;
 height: 2px;
 background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
 border-radius: 1px;
}

/* === MENUS FOOTER === */
.footer-nav {
 margin: 0;
}

.footer-menu {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: 0.2rem;
}

.footer-menu-item {
 margin: 0;
}

.footer-menu-link {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 0.5rem 0;
 color: #94a3b8;
 text-decoration: none;
 font-size: 0.9rem;
 transition: all 0.3s ease;
 position: relative;
}

.footer-menu-link:hover {
 color: #f8fafc;
 padding-left: 0.5rem;
}

.footer-menu-link svg {
 opacity: 0;
 transform: translateX(-5px);
 transition: all 0.3s ease;
}

.footer-menu-link:hover svg {
 opacity: 1;
 transform: translateX(0);
 color: #6366f1;
}

/* === CONTACT INFO === */
.footer-contact-info {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.contact-item {
 display: flex;
 align-items: center;
 gap: 0.75rem;
}

.contact-icon {
 flex-shrink: 0;
 width: 36px;
 height: 36px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: rgba(99, 102, 241, 0.1);
 border: 1px solid rgba(99, 102, 241, 0.2);
 border-radius: 8px;
 color: #6366f1;
}

.contact-link {
 color: #94a3b8;
 text-decoration: none;
 font-size: 0.9rem;
 transition: all 0.3s ease;
}

.contact-link:hover {
 color: #f8fafc;
}

.contact-text {
 color: #94a3b8;
 font-size: 0.9rem;
}

/* === FOOTER BOTTOM === */
.footer-bottom {
 padding: 2rem 0;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 1rem;
}

.footer-copyright {
 margin: 0;
}

.footer-copyright p {
 color: #64748b;
 font-size: 0.875rem;
 margin: 0;
}

.footer-legal {
 display: flex;
 gap: 1.5rem;
}

.legal-link {
 color: #64748b;
 text-decoration: none;
 font-size: 0.875rem;
 transition: color 0.3s ease;
}

.legal-link:hover {
 color: #94a3b8;
}

/* === SCROLL TO TOP === */
.scroll-to-top {
 position: fixed;
 bottom: 2rem;
 right: 2rem;
 width: 50px;
 height: 50px;
 background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
 border: none;
 border-radius: 12px;
 color: white;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
 transition: all 0.3s ease;
 transform: translateY(100px);
 opacity: 0;
 z-index: 1000;
}

.scroll-to-top.show {
 transform: translateY(0);
 opacity: 1;
}

.scroll-to-top:hover {
 transform: translateY(-2px);
 box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.scroll-to-top svg {
 transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
 transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
 .footer-grid {
   grid-template-columns: 1fr;
   gap: 2rem;
 }
 
 .footer-cta-actions {
   flex-direction: column;
   align-items: center;
 }
 
 .footer-cta-primary,
 .footer-cta-secondary {
   width: 100%;
   max-width: 280px;
   justify-content: center;
 }
 
 .footer-bottom-content {
   flex-direction: column;
   text-align: center;
   gap: 1rem;
 }
 
 .footer-legal {
   justify-content: center;
 }
 
 .scroll-to-top {
   bottom: 1rem;
   right: 1rem;
   width: 45px;
   height: 45px;
 }
}

@media (max-width: 480px) {
 .footer-social-links {
   justify-content: center;
 }
 
 .footer-about {
   text-align: center;
 }
 
 .contact-item {
   justify-content: center;
 }
 
 .footer-menu-link {
   justify-content: center;
 }
 
 .footer-column-title::after {
   left: 50%;
   transform: translateX(-50%);
 }
}

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

.footer-column {
 animation: fadeInUp 0.6s ease-out;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
 .footer-column,
 .social-link,
 .footer-menu-link,
 .contact-link,
 .scroll-to-top {
   animation: none;
   transition: none;
 }
}

/* === FOCUS STATES === */
.social-link:focus,
.footer-menu-link:focus,
.contact-link:focus,
.legal-link:focus,
.scroll-to-top:focus {
 outline: 2px solid #6366f1;
 outline-offset: 2px;
}

.footer-cta-primary:focus,
.footer-cta-secondary:focus {
 outline: 2px solid #6366f1;
 outline-offset: 2px;
}

/* === DARK MODE DÉJÀ APPLIQUÉ === */
/* Le footer est déjà en mode sombre par défaut */

/* === HOVER EFFECTS AVANCÉS === */
.footer-column:hover .footer-column-title::after {
 width: 50px;
 transition: width 0.3s ease;
}

.contact-item:hover .contact-icon {
 background: rgba(99, 102, 241, 0.2);
 border-color: rgba(99, 102, 241, 0.4);
 transform: scale(1.05);
}

/* === RESPONSIVE GRID AVANCÉ === */
@media (min-width: 1200px) {
 .footer-grid {
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
 }
}

@media (max-width: 1024px) {
 .footer-grid {
   grid-template-columns: repeat(2, 1fr);
 }
}

@media (max-width: 640px) {
 .footer-grid {
   grid-template-columns: 1fr;
 }
}