/* ================================================
   FOOTER PAVELYS — CSS COMPLET
   Fichier : pavelys-child/footer-pavelys.css
   À enqueuer dans functions.php
   ================================================ */

/* === STRUCTURE GÉNÉRALE === */

#pavelys-footer {
  background-color: #754211;
  background-image: linear-gradient(180deg, #7a4614 0%, #6b3c0f 100%);
  color: #e0e0e0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  padding: 0;
  margin-top: 0;
  width: 100%;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  /* Même marge gauche/droite que l'en-tête, la bannière et les sections
     de l'accueil (--site-gutter, style.css) : tout démarre au même endroit. */
  padding: 3.5rem var(--site-gutter, 24px) 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-width: none;
  margin: 0;
}

/* === COLONNE GÉNÉRIQUE === */

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

.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  color: #f0c070;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 16px;
  font-family: inherit;
}

/* === BLOC LOGO + SLOGAN + CONTACT === */

.footer-brand .footer-logo img {
  background-color: whitesmoke;
  max-width: 140px;
  height: 140px;
  margin-bottom: 14px;
  border-radius: 50%;
  object-fit: contain;
  padding: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s cubic-bezier(.22,1,.36,1);
}

.footer-brand .footer-logo img:hover {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.footer-site-name {
  font-size: 21px;
  font-weight: 700;
  color: #f0c070;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

.footer-slogan {
  font-size: 13px;
  color: #c9b299;
  margin: 0 0 22px;
  font-style: normal;
}

.footer-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact span {
  font-size: 13px;
  color: #cccccc;
  line-height: 1.5;
}

.footer-contact a {
  color: #f0c070;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* === CATÉGORIES & NAVIGATION === */

.footer-categories ul,
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-categories ul li,
.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-categories ul li a,
.footer-nav ul li a,
.footer-links li a {
  color: #cfc2b3;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-categories ul li a:hover,
.footer-nav ul li a:hover,
.footer-links li a:hover {
  padding-left: 4px;
}

.footer-categories ul li a:hover,
.footer-nav ul li a:hover,
.footer-links li a:hover {
  color: #f0c070;
}

/* wp_list_categories ajoute un .children */
.footer-categories .children {
  padding-left: 12px;
  margin-top: 4px;
}

/* === RÉSEAUX SOCIAUX === */

.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(240, 192, 112, 0.1);
  border: 1px solid rgba(240, 192, 112, 0.3);
  color: #f0c070;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s cubic-bezier(.22,1,.36,1), border-color 0.25s cubic-bezier(.22,1,.36,1), transform 0.25s cubic-bezier(.22,1,.36,1);
}

.social-links li a:hover {
  background: #f0c070;
  border-color: #f0c070;
  color: #5c3109;
  transform: translateY(-3px);
}

/* === MOYENS DE PAIEMENT === */

/* Bandeau intercalé entre les colonnes du footer et la barre copyright.
   Le filet supérieur reprend l'opacité des séparateurs existants pour
   rester discret sur le fond sombre. */
.footer-payments {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: none;
  margin: 0;
  padding: 1rem var(--site-gutter, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-payments-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b09a82;
}

.footer-payments-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Pastille claire : le logo PayPal est bicolore (bleu marine + cyan) et
   deviendrait illisible posé directement sur le fond sombre du footer. */
.footer-payment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  line-height: 1;
}

/* Les logos n'ont pas tous le même ratio : VISA est un wordmark large,
   Mastercard deux disques, PayPal un pictogramme carré. On fixe donc la
   hauteur et on laisse la largeur suivre, sinon les marques larges seraient
   écrasées. La hauteur commune aligne optiquement les badges entre eux. */
.footer-payment img {
  display: block;
  width: auto;
  height: 20px;
}

.footer-payment span {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
}

@media (max-width: 480px) {
  .footer-payments {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 1rem var(--site-gutter, 24px);
  }
}

/* === BARRE COPYRIGHT === */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 1.25rem var(--site-gutter, 24px);
  max-width: none;
  margin: 0;
}

.footer-copyright {
  font-size: 12px;
  color: #b09a82;
  margin: 0;
}

.footer-copyright a {
  color: #888888;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #f0c070;
}

.legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.legal-links li a {
  font-size: 12px;
  color: #b09a82;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links li a:hover {
  color: #f0c070;
}

/* === RESPONSIVE TABLETTE === */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* === RESPONSIVE MOBILE === */

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem var(--site-gutter, 24px) 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--site-gutter, 24px);
  }
  .legal-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}



/* ================================================
   CORRECTIFS — listes, coordonnées, réseaux
   ================================================ */

/* Filet de sécurité : toute liste du footer est sans puce.
   Les règles existantes ciblaient « .footer-categories ul li » ; or
   wp_list_categories() n'imprime que des <li>. Le <ul> est désormais posé
   dans footer.php, mais cette règle évite que le problème réapparaisse
   ailleurs (widget, menu ajouté plus tard). */
.footer-col ul,
.footer-col ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

/* Couleur des liens de listes, quel que soit le conteneur : sans cela, un
   lien sorti du sélecteur attendu retombe sur le bleu par défaut du
   navigateur, illisible sur le fond brun. */
.footer-col li > a {
  color: #cfc2b3;
  text-decoration: none;
  font-size: 13.5px;
  transition: color .2s ease, padding-left .2s ease;
}

.footer-col li > a:hover {
  color: #f0c070;
  padding-left: 4px;
}

/* ── Coordonnées : icône + texte alignés ── */
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #f0c070;
}

/* ── Réseaux sociaux : pictogrammes au lieu du texte ──
   Le libellé « Instagram » débordait de la pastille de 38 px ; il est
   conservé en aria-label/title pour l'accessibilité. */
.social-links li {
  margin-bottom: 0;
}

.social-links li a svg {
  width: 17px;
  height: 17px;
}
