/* ==========================================================================
   VARIABLES FOOTER
   ========================================================================== */
:root {
  --footer-bg: #2c4a1e;
  --footer-bg-light: #3f6b2a;
  --footer-text: #e8e8e8;
  --footer-text-muted: #b0b0b0;
  --footer-accent: #826E08;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-hover: #e0c872;
}

/* ==========================================================================
   FOOTER PRINCIPAL
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 4rem;
}

.footer-main {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--footer-border);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 3rem;
}

/* ==========================================================================
   COLONNES FOOTER
   ========================================================================== */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer-icon {
  font-size: 1.5rem;
}

/* ==========================================================================
   COLONNE À PROPOS
   ========================================================================== */
.footer-about .footer-logo {
  max-width: 180px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-description {
  line-height: 1.7;
  color: var(--footer-text-muted);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--footer-accent);
  transform: translateY(-3px);
  border-color: var(--footer-accent);
}

.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #e6683c;
}

/* ==========================================================================
   COLONNE HORAIRES
   ========================================================================== */
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hour-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--footer-accent);
  transition: all 0.3s ease;
}

.hour-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.hour-weekend {
  border-left-color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.hour-closed {
  border-left-color: #666;
  opacity: 0.6;
}

.hour-item .day {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.hour-item .time {
  color: var(--footer-text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   COLONNE CONTACT
   ========================================================================== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--footer-accent);
  margin-top: 0.2rem;
}

.contact-item a {
  color: var(--footer-text);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--footer-accent);
}

/* ==========================================================================
   COLONNE NEWSLETTER
   ========================================================================== */
.newsletter-text {
  color: var(--footer-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.btn-newsletter,
.btn-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-newsletter {
  background: var(--footer-accent);
  color: white;
  margin-top: 0.5rem;
}

.btn-newsletter:hover {
  background: var(--footer-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(130, 110, 8, 0.3);
}

.footer-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
}

.btn-shop {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  width: 100%;
}

.btn-shop:hover {
  background: white;
  color: var(--footer-bg);
  border-color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   BAS DU FOOTER
   ========================================================================== */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
}

.footer-bottom-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--footer-text-muted);
}

.footer-credit {
  font-size: 0.85rem !important;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--footer-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--footer-accent);
  text-decoration: underline;
}

.footer-legal .separator {
  color: var(--footer-text-muted);
  opacity: 0.5;
}

/* ==========================================================================
   BOUTON RETOUR EN HAUT
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--footer-accent);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--footer-hover);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(130, 110, 8, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE - TABLETTE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .footer-main {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .footer-about {
    text-align: center;
    grid-column: auto;
  }
  
  .footer-about .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-title {
    font-size: 1.2rem;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-legal .separator {
    display: none;
  }
  
  .hour-item {
    padding: 0.6rem;
  }
  
  .contact-item {
    font-size: 0.9rem;
  }
  
  .btn-newsletter,
  .btn-shop {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column {
  animation: fadeInUp 0.6s ease-out backwards;
}

.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; }

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .footer-column,
  .back-to-top,
  .social-link,
  .hour-item,
  .contact-item a,
  .btn-newsletter,
  .btn-shop {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus visible pour navigation au clavier */
.social-link:focus-visible,
.footer-legal a:focus-visible,
.btn-newsletter:focus-visible,
.btn-shop:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid var(--footer-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  .site-footer {
    background: white;
    color: black;
  }
  
  .footer-social,
  .back-to-top,
  .btn-newsletter,
  .btn-shop {
    display: none;
  }
}