/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  site-footer.css — footer riche 4 colonnes UNIFIÉ pour TOUTES les pages║
   ║                                                                          ║
   ║  Chargé par : landing.html, fonctionnalites.html, features/*.html,      ║
   ║               confidentialite.html, mentions-legales.html                ║
   ║                                                                          ║
   ║  Source UNIQUE des styles → drift visuel impossible.                    ║
   ║  Markup généré par :                                                     ║
   ║    • footer.jsx (React) pour landing.html                                ║
   ║    • site-footer.js (vanilla) pour les 16 pages statiques               ║
   ║                                                                          ║
   ║  Tokens consommés (avec fallback pour pages sans styles.css) :           ║
   ║    --bg-soft / --bg-main, --ink, --ink-soft, --ink-mute / --ink-faint,  ║
   ║    --accent / --terracotta, --rule, --mono, --serif                     ║
   ║                                                                          ║
   ║  ⚠️  Les rules .footer-* existent aussi dans styles.css (lignes ~2422)   ║
   ║  pour compat héritée. À long terme, supprimer de styles.css pour avoir  ║
   ║  une vraie source unique. Pour l'instant, site-footer.css charge APRÈS  ║
   ║  styles.css → ce fichier gagne par cascade.                              ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.footer {
  background: var(--bg-soft, var(--bg-main, #F5EDE2));
  color: var(--ink, #3A3530);
  padding: clamp(64px, 8vw, 120px) 0 32px;
  border-top: 1px solid var(--rule, #E5D9CA);
}
.footer .container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
}

.footer-mark {
  display: block;
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.9;
  margin: 0 0 64px;
  color: var(--ink, #3A3530);
  letter-spacing: -0.012em;
}
.footer-mark .logo-em,
.footer-mark .logo-infty {
  color: var(--accent, var(--terracotta, #C26241));
}
.footer-mark .logo-infty { font-weight: 700; }

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule, #E5D9CA);
}

.footer-col h3 {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute, var(--ink-faint, #7A6E62));
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--ink-soft, #6B5C52);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent, var(--terracotta, #C26241));
}

.footer-blurb {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft, #6B5C52);
  max-width: 32ch;
  line-height: 1.4;
  margin: 0 0 16px;
}
/* Footer bottom : 2 rangées centrées hiérarchisées.
   Ligne 1 = liens fonctionnels (légal + admin) — Inter sentence-case
   Ligne 2 = signature (brand + hosting + compliance) — même typo, ton plus discret
   Séparateurs : middot `·` injecté via ::before (pas de pipe pleine — trop dur sur
   un footer artisan-chaleureux). Source : synthèse 4 experts UX/Brand/Légal/UI. */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 28px;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute, var(--ink-faint, #7A6E62));
  text-align: center;
}
.footer-bottom .fb-links,
.footer-bottom .fb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
}
.footer-bottom .fb-meta { font-size: 13px; opacity: 0.88; } /* échelle 15-texte : palier note */
.footer-bottom .fb-links > * + *::before,
.footer-bottom .fb-meta > * + *::before {
  content: "·";
  margin-right: 8px;
  opacity: 0.5;
}
.footer-bottom a {
  color: var(--ink-mute, var(--ink-faint, #7A6E62));
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--accent, var(--terracotta, #C26241));
}
.footer-bottom .fb-team { margin-top: 12px; text-align: center; }
.footer-bottom .team-link {
  opacity: 0.4;
  transition: color 0.2s, opacity 0.2s;
}
.footer-bottom .team-link:hover,
.footer-bottom .team-link:focus-visible {
  color: var(--accent, var(--terracotta, #C26241));
  opacity: 1;
}
.footer-bottom .flag-svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}

@media (max-width: 820px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  /* Mobile : chaque lien/meta sur sa propre ligne, sans middots orphelins en début de ligne. */
  .footer-bottom .fb-links,
  .footer-bottom .fb-meta {
    flex-direction: column;
    gap: 6px 0;
  }
  .footer-bottom .fb-links > * + *::before,
  .footer-bottom .fb-meta > * + *::before {
    content: none;
  }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
