/* ============================================================
   FOOTER.CSS
   Styles du pied de page — Le Domaine de Négan
   ============================================================ */

/* ============================================================
   1. FOOTER GÉNÉRAL
   ============================================================ */

.site-footer {
  background-color: #989E79;
  color: #ffffff;
  margin-top: 0;
}

/* Partie haute — grille 4 colonnes */
.footer-top {
  padding: 4rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

/* ============================================================
   2. COLONNE 1 — BRAND
   ============================================================ */

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Logo footer */
.footer-col__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

/* Override GP custom logo dans footer */
.footer-col__logo .custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-col__logo .custom-logo,
.footer-col__logo .custom-logo-link img,
.footer-logo-img {
  height: 52px !important;
  width: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.92;
  flex-shrink: 0;
  display: block;
}

.footer-logo-placeholder {
  flex-shrink: 0;
}

.footer-col__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-col__logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.25;
}

.footer-col__logo-sub {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Description */
.footer-col__desc {
  font-family: 'Jost', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

/* Téléphone */
.footer-col__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col__tel:hover {
  color: #ffffff;
}

/* ============================================================
   3. COLONNES 2 & 3 — LIENS
   ============================================================ */

.footer-col__title {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.125rem;
  margin-top: 0;
}

/* Menus WordPress dans le footer */
.footer-col--links ul,
.footer-col--info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col--links ul li a,
.footer-col--info ul li a {
  font-family: 'Jost', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-col--links ul li a:hover,
.footer-col--info ul li a:hover {
  color: #ffffff;
}

/* ============================================================
   4. COLONNE 4 — SOCIAL & GALERIE
   ============================================================ */

.footer-col--social {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Icônes réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.footer-social-link:hover {
  background-color: #C4717A;
  color: #ffffff;
}

/* Grille galerie 3×2 */
.footer-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}

.footer-gallery__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
}

.footer-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.3s ease;
  display: block;
}

.footer-gallery__item:hover img {
  opacity: 1;
  transform: scale(1.06);
}

/* Placeholder galerie (avant upload) */
.footer-gallery--placeholder .footer-gallery__placeholder-item {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ============================================================
   5. FOOTER BOTTOM — Copyright + liens légaux
   ============================================================ */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

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

.footer-bottom__copy {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-bottom__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom__links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom__links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   6. RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* Tablette (≤ 1024px) */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }

  .footer-col--brand {
    grid-column: 1 / -1; /* pleine largeur */
  }

  .footer-col__desc {
    max-width: 100%;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {

  .footer-top {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2rem;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-col--social {
    grid-column: 1 / -1;
  }

  /* Galerie 4 colonnes sur mobile pour avoir plus de photos */
  .footer-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .footer-bottom__links {
    gap: 1rem;
  }
}

/* Petit mobile (≤ 480px) */
@media (max-width: 480px) {

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col--brand {
    grid-column: 1;
  }

  .footer-col--social {
    grid-column: 1;
  }

  .footer-bottom__links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ── Articles de blog dans le footer ── */
.footer-blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.footer-blog-post {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}
.footer-blog-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.footer-blog-post:hover img {
    transform: scale(1.07);
}
.footer-blog-post__placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
}
/* Overlay au hover */
.footer-blog-post__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(40,25,15,0.82) 0%, rgba(40,25,15,0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
    opacity: 0;
    transition: opacity 0.25s;
}
.footer-blog-post:hover .footer-blog-post__overlay {
    opacity: 1;
}
.footer-blog-post__cat {
    font-family: 'Nunito', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #C4717A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 3px;
}
.footer-blog-post__title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: block;
}