/* ═══════════════════════════════════════════════
   FOOTER — Matsukaze Bordeaux
   Structure :
   1. Conteneur principal
   2. Filigrane 松風 (Yuji Syuku)
   3. Grille principale (left + right)
   4. Réseaux sociaux
   5. Bouton CTA "Soutenir"
   6. Liens légaux & contact
   7. Carte
   8. Copyright
   9. Responsive
   ═══════════════════════════════════════════════ */

@font-face {
	font-family: 'Yuji Syuku';
	src: url('{$fonts_url}/YujiSyuku-Regular.ttf') format('truetype');
	font-weight: 400; font-style: normal; font-display: swap;
}


/* ───── 1. CONTENEUR PRINCIPAL ───── */

#site-footer {
  position: relative;
  background: #B9D3B1;
  color: #000000;
  padding: 60px 80px 30px;
  overflow: hidden;          
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body { position: relative; }

/* ───── MOTIF BAMBOU et motifs aléatoires ───── */
.bamboo-decor {
  position: absolute;
  left: 130px;
  bottom: var(--footer-height, 600px);  /* base posée sur le bord HAUT du footer */
  width: 200px;
  height: 800px;                         /* hauteur de la colonne qui remonte */
  background-image: url('img/bamboo.svg');
  background-repeat: no-repeat;
  background-position: bottom center;    /* la base reste l'ancrage */
  background-size: 200px auto;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: 0.9;
}

@media (max-width: 782px) {
  .bamboo-decor {
    width: 130px;
    background-size: 130px auto;
    opacity: 0.8;
  }
  .random-decor {
    width: 90px !important;   /* écrase la largeur inline du PHP */
    opacity: 0.4;
  }
}

/* ───── Motif aléatoire (style de base, hors media query) ───── */
.random-decor {
  position: absolute;
  aspect-ratio: 100 / 55;
  background-image: url('img/branche-matsu.svg');
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: 0.5;
}

/* ───── 2. FILIGRANE 松風 (Yuji Syuku) ───── */
#site-footer .footer-watermark {
  position: absolute;
  right: -40px;
  bottom: -120px;
  font-family: 'Yuji Syuku', serif;
  font-size: 420px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -30px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}


/* ───── 3. GRILLE PRINCIPALE ───── */
#site-footer .footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

#site-footer .footer-left {
  display: flex;
  flex-direction: column;
}


/* ───── 4. RÉSEAUX SOCIAUX ───── */
#site-footer .footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

#site-footer .footer-social-label {
  font-family: 'Calistoga', serif;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}

#site-footer .footer-social-icons {
  display: flex;
  gap: 14px;
}

#site-footer .footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}

#site-footer .footer-social-icons a:hover {
  transform: translateY(-4px) scale(1.08);
  background: #000;
}

#site-footer .footer-social-icons svg {
  width: 18px;
  height: 18px;
}


/* ───── 5. BOUTON CTA "SOUTENIR" ───── */
#site-footer .footer-cta {
  display: inline-block;
  background: #c8453d;
  color: var(--color-white);
  text-decoration: none;
  font-family: 'Calistoga', serif;
  font-size: 20px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 40px;
  width: fit-content;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#site-footer .footer-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
  background: #b03a32;
}

#site-footer .footer-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}


/* ───── 6. LIENS LÉGAUX & CONTACT ───── */
#site-footer .footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin: 36px 0 22px;
  border: none;
}

#site-footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#site-footer .footer-links li {
  list-style: none;
}

#site-footer .footer-links a {
  color: #000000;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  position: relative;
  width: fit-content;
  padding-bottom: 2px;
}

/* Soulignement animé de gauche à droite */
#site-footer .footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #000000;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform .3s ease;
}

#site-footer .footer-links a:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* Lien "Nous contacter" mis en avant */
#site-footer .footer-contact-link {
  margin-top: 14px;
  color: #000000;
}

#site-footer .footer-contact-link a {
  font-weight: 700 !important;
  font-size: 20px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#site-footer .footer-contact-link a::before {
  content: '→';
  display: inline-block;
  transition: transform .25s ease;
}

#site-footer .footer-contact-link a:hover::before {
  transform: translateX(4px);
}


/* ───── 7. CARTE ───── */
#site-footer .footer-map-wrapper {
  display: flex;
  flex-direction: column;
}

#site-footer .footer-map-title {
  font-family: 'Calistoga', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #000000;
  margin: 0 0 16px;
}

#site-footer .footer-map {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#site-footer .footer-map:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}


/* ───── 8. COPYRIGHT ───── */
#site-footer .footer-copyright {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  opacity: 0.9;
  margin-top: 50px;
  padding-top: 20px;
}


/* ═══════════════════════════════════════════════
   9. RESPONSIVE
   ═══════════════════════════════════════════════ */

/* ───── DESKTOP ≥ 783px : footer pleine largeur sous la sidebar ───── */
@media (min-width: 783px) {
  #site-footer {
    margin-left: -110px;    /* annule le padding-left du body (largeur sidebar) */
    padding-left: 190px;    /* 110 (sous la sidebar) + 80 (respiration) */
  }
}

/* ───── TABLETTE 783px – 1024px : padding réduit, décalage conservé ───── */
@media (min-width: 783px) and (max-width: 1024px) {
  #site-footer {
    margin-left: -110px;
    padding: 50px 50px 30px;
    padding-left: 160px;    /* 110 (sidebar) + 50 (respiration réduite) */
  }

  #site-footer .footer-grid {
    gap: 40px;
    grid-template-columns: 1fr 280px;
  }

  #site-footer .footer-watermark {
    font-size: 320px;
  }
}

/* ───── MOBILE ≤ 782px : sidebar masquée, footer normal ───── */
@media (max-width: 782px) {
  #site-footer {
    padding: 40px 30px 25px;
  }

  #site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Sur mobile, la map passe en dessous */
  #site-footer .footer-map-wrapper {
    order: 2;
  }

  #site-footer .footer-left {
    order: 1;
    align-items: center;
    text-align: center;
  }

  #site-footer .footer-social {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
  }

  #site-footer .footer-cta {
    align-self: center;
  }

  #site-footer .footer-divider {
    margin: 30px 0 18px;
    width: 100%;
  }

  #site-footer .footer-links {
    align-items: center;
  }

  #site-footer .footer-map-title {
    text-align: center;
  }

  #site-footer .footer-map {
    height: 200px;
  }

  /* Filigrane plus petit sur mobile */
  #site-footer .footer-watermark {
    font-size: 220px;
    right: -20px;
    bottom: -50px;
    letter-spacing: -15px;
  }

  #site-footer .footer-copyright {
    margin-top: 36px;
  }
}