/* ═══════════════════════════════════════════════════════════════
   CHEZ PAULETTE STUDIO — Footer CSS
   Chargé sur toutes les pages.
   Layout : bloc marque + contact à gauche, colonnes de liens à droite.
   Référence UI : footer sombre à filet accent + titres colonnes colorés.
   ═══════════════════════════════════════════════════════════════ */

.footer {
  /* Même dark que les sections sombres (--surface-dark) : le footer rejoint la
     leap-section sans couture. Token unique défini dans global.css. */
  background: var(--surface-dark);
  color: rgba(255,255,255,0.72);
  /* `flow-root` garde DANS le bordeaux la marge basse de la dernière ligne
     (.footer__bottom, 40px). Sans lui, elle « traversait » le pied de page
     et laissait une bande crème de 40px sous le site, sur toutes les pages
     (vu le 29 septembre 2026). */
  display: flow-root;
}

/* Focus clavier : le thème pose un anneau global en --primary-700 (bleu foncé),
   peu lisible sur le fond quasi-noir du footer. On le repasse en --primary-500 (plus
   clair) pour un contraste net sur fond sombre. Portée : tous les liens du footer
   (logo, contact, colonnes, mentions, crédit). */
.footer a:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Layout : marque à gauche, colonnes poussées à droite ────────── */
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 56px 48px;
  padding-top: 40px;
  padding-bottom: 48px;
}

/* ── Bloc marque + contact ──────────────────────────────────────── */
.footer__brand-block {
  flex: 0 1 340px;
  min-width: 260px;
}
/* Le logo est un PNG noir sur fond transparent : sur le bordeaux du pied de
   page il fallait l'inverser, comme le fait déjà la nav. Même blanc que le
   header, sans l'ombre portée — le fond est plat, elle n'apporterait que du bruit. */
.footer__logo {
  width: 260px;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer__tagline {
  color: rgba(255,255,255,0.6);
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 32ch;
}

.footer__contact { display: flex; flex-direction: column; gap: 16px; }
.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}
.footer__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--primary-500);
  transition: background 0.2s, color 0.2s;
}
.footer__contact-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.92);
  transition: color 0.2s;
}
a.footer__contact-row:hover .footer__badge { background: var(--primary-700); color: var(--white); }
a.footer__contact-row:hover .footer__contact-text { color: var(--white); }

/* ── Colonnes de liens ──────────────────────────────────────────── */
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.footer__col { min-width: 150px; }
.footer__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--primary-500);
  margin: 0 0 24px;
}

.footer__list { display: flex; flex-direction: column; gap: 14px; }
.footer__list a,
.footer__list li {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.footer__list a:hover { color: var(--white); }

/* ── Barre légale ───────────────────────────────────────────────── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--ivory);
  flex-wrap: wrap;
}
.footer__bottom p { margin: 0; color: inherit; }

.footer__bottom-left { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.footer__legal { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.footer__legal li { position: relative; padding-left: 15px; }
.footer__legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.95em;
  background: rgba(255,255,255,0.22);
}
.footer__legal a { color: var(--ivory); transition: opacity 0.2s; }
.footer__legal a:hover { opacity: 0.75; }

.footer__credit { color: var(--ivory); white-space: nowrap; }
.footer__credit a { color: var(--ivory); font-weight: 600; transition: opacity 0.2s; }
.footer__credit a:hover { opacity: 0.75; }

/* ── Responsive ─────────────────────────────────────────────────── */

/* Tablette : la marque passe au-dessus, les colonnes s'étalent en pleine largeur */
@media (max-width: 900px) {
  .footer__inner { gap: 48px; }
  .footer__cols { justify-content: flex-start; flex: 1 1 100%; }
}

/* Mobile : footer entièrement centré (logo, contact, colonnes, mentions) */
@media (max-width: 640px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 44px;
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .footer__brand-block { flex: 1 1 auto; min-width: 0; max-width: 100%; }
  /* img est en display:block (reset global) → centrer via marges auto, pas text-align */
  .footer__brand { display: block; }
  .footer__logo { margin-left: auto; margin-right: auto; }
  .footer__tagline { max-width: none; }
  .footer__contact { align-items: center; gap: 18px; }

  .footer__cols {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    width: 100%;
  }
  .footer__col { min-width: 0; width: 100%; }
  .footer__heading { margin-bottom: 16px; }
  .footer__list { align-items: center; gap: 12px; }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
  }
  .footer__bottom-left { justify-content: center; }
  .footer__legal { justify-content: center; }
  /* copyright sur sa propre ligne : pas de séparateur orphelin en tête des mentions */
  .footer__legal li:first-child { padding-left: 0; }
  .footer__legal li:first-child::before { display: none; }
  .footer__credit { white-space: normal; }
}

