
/* ============= 15) FOOTER ============= */

.site-footer-wrapper {
  /* Équivalents Bootstrap */
  padding-left: 1rem;       /* px-3 */
  padding-right: 1rem;      /* px-3 */
  padding-top: 1rem;        /* py-3 */
  padding-bottom: 1rem;     /* py-3 */
  margin-top: 0.25rem;      /* mt-1 */

  /* Responsive : px-md-5 */
  @media (min-width: 768px) {
    padding-left: 3rem;     /* Bootstrap .px-md-5 */
    padding-right: 3rem;
  }

  /* Apparence */
  background: var(--surface);
  box-shadow: inset 0 8px 12px rgba(0, 0, 0, 0.08);
}

/* Variante sombre (thème Bootstrap dark) */
[data-bs-theme="dark"] .site-footer-wrapper {
  box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.05);
}

/* Footer grid robust au contenu manquant/variable */
.footer-grid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:.75rem;
}
.footer-left{ justify-self:start; }
.footer-center{ justify-self:center; }
.footer-right{ justify-self:end; display:flex; align-items:center; flex-wrap:wrap; }

/* Footer */
.footer {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: .8rem;
  opacity: .60;
}

/* Lien */
.site-footer__link {
  color: var(--footer-link);
  text-decoration: none;
  font-weight: 500; /* petit boost de lisibilité */
}
.site-footer__link:hover,
.site-footer__link:focus {
  text-decoration: none;
}

/* Mobile portrait */
@media (max-width: 767.98px){
  .site-footer-wrapper {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .footer-grid{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .footer-left,.footer-center{
    justify-self:center;
  }
  .footer-right {display: none;}
  .footer {font-size: .7rem;}
}

/* ============= 16) FOOTER MASONRY ============= */

.footer-masonry {
  margin-top: 3rem;
  margin-bottom: 3rem;
  background: var(--surface);
  border-top: 1px solid var(--border-color, rgba(128,128,128,0.15));
}

.footer-masonry__section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color, rgba(128,128,128,0.1));
}

.footer-masonry__section:last-child {
  border-bottom: none;
}

/* Section 1: Other Collections */
.footer-masonry__others {
  background: var(--surface);
}

.footer-masonry__subheading {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.footer-masonry__others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.footer-masonry__other-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg, rgba(128,128,128,0.05));
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-masonry__other-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.footer-masonry__other-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--surface-alt, rgba(128,128,128,0.1));
}

.footer-masonry__other-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.3;
}

.footer-masonry__other-title {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section 3: Navigation Menu */
.footer-masonry__nav {
  background: var(--surface);
}

.footer-masonry__navmenu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
}

.footer-masonry__navlink {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.75;
  padding: 0.4rem 0;
  transition: opacity 0.2s;
}

.footer-masonry__navlink:hover {
  opacity: 1;
  text-decoration: none;
}

/* Section 4: Bottom Bar */
.footer-masonry__bottom {
  padding: 1rem 0;
  padding-bottom: 2rem; /* Espace pour le bouton scroll-to-top */
  background: var(--surface);
}

.footer-masonry__bottom .footer-grid {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .footer-masonry {
  background: var(--surface, #1a1a1a);
}

[data-bs-theme="dark"] .footer-masonry__other-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Mobile responsive */
@media (max-width: 767.98px) {
  .footer-masonry {
    margin-top: 2rem;
  }

  .footer-masonry__section {
    padding: 1.5rem 0;
  }

  .footer-masonry__subheading {
    text-align: center;
  }

  .footer-masonry__others-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .footer-masonry__navmenu {
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .footer-masonry__bottom .footer-right {
    display: none;
  }
}

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


/* ============= 17) FOOTER HOME PREMIUM ============= */

.footer-home {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.03) 100%);
  border-top: 1px solid rgba(128,128,128,0.1);
  margin-top: 0;
}

.footer-home__container {
  margin: 0 auto;
  padding: 0 var(--pad-x, clamp(24px, 8vw, 120px));
}

/* Section principale */
.footer-home__main {
  padding: clamp(48px, 8vh, 80px) 0;
}

.footer-home__main .footer-home__container {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* Branding */
.footer-home__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-home__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.footer-home__logo:hover {
  opacity: 0.8;
  text-decoration: none;
}

.footer-home__logo-svg {
  height: 28px;
  width: auto;
}

.footer-home__tagline {
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.5;
  max-width: 260px;
  margin: 0;
}

.footer-home__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-home__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(128,128,128,0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.footer-home__social-link:hover {
  background: var(--accent, #E85B79);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Navigation colonnes */
.footer-home__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.footer-home__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-home__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin: 0 0 0.5rem 0;
}

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

.footer-home__links li {
  margin: 0;
  padding: 0;
}

.footer-home__links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.75;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-home__links a:hover {
  opacity: 1;
  color: var(--accent, #E85B79);
  text-decoration: none;
  transform: translateX(3px);
}

/* Barre inferieure */
.footer-home__bottom {
  border-top: 1px solid rgba(128,128,128,0.1);
  padding: 1.25rem 0;
  background: rgba(0,0,0,0.02);
}

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

.footer-home__copyright {
  font-size: 0.8rem;
  opacity: 0.55;
}

.footer-home__languages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-home__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  opacity: 0.5;
  background: transparent;
  transition: all 0.2s ease;
}

.footer-home__lang:hover {
  opacity: 1;
  background: rgba(128,128,128,0.1);
  text-decoration: none;
}

.footer-home__lang.is-active {
  opacity: 1;
  background: var(--accent, #E85B79);
  color: #fff;
}

.footer-home__lang-flag {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.footer-home__made {
  font-size: 0.8rem;
  opacity: 0.55;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-home__heart {
  color: #E85B79;
  font-size: 0.75rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Dark theme */
[data-bs-theme="dark"] .footer-home {
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.02) 100%);
}

[data-bs-theme="dark"] .footer-home__bottom {
  background: rgba(255,255,255,0.02);
}

[data-bs-theme="dark"] .footer-home__social-link {
  background: rgba(255,255,255,0.08);
}

/* Responsive Tablet */
@media (max-width: 991.98px) {
  .footer-home__main .footer-home__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-home__brand {
    align-items: center;
    text-align: center;
  }

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

  .footer-home__social {
    justify-content: center;
  }

  .footer-home__nav {
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
  }

  .footer-home__col {
    align-items: center;
  }

  .footer-home__links a:hover {
    transform: none;
  }
}

/* Responsive Mobile */
@media (max-width: 767.98px) {
  .footer-home__main {
    padding: clamp(32px, 6vh, 48px) 0;
  }

  .footer-home__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .footer-home__bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-home__languages {
    order: -1;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Responsive Small Mobile */
@media (max-width: 479.98px) {
  .footer-home__nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  .footer-home__title {
    font-size: 0.7rem;
  }

  .footer-home__links a {
    font-size: 0.8rem;
  }
}