/* ═══════════════════════════════════════════════════════
   FOOTER PARTAGÉ — porté depuis le footer de l'index v0.4.7
   À utiliser sur toutes les pages sauf l'index lui-même.
   Inclus via <link rel="stylesheet" href="/assets/footer.css">
   et <script src="/assets/footer.js"></script>
   ═══════════════════════════════════════════════════════ */

/* Fallbacks variables si la page hôte ne les définit pas */
.site-footer-shell {
  --ff-bg-elevated: var(--bg-elevated, var(--bg-window-solid, #FFFFFF));
  --ff-bg: var(--bg, #FBFBFD);
  --ff-bg-hover: var(--bg-hover, rgba(0,0,0,0.04));
  --ff-separator: var(--separator, var(--border, rgba(0,0,0,0.08)));
  --ff-border: var(--border, rgba(0,0,0,0.08));
  --ff-text: var(--text, #1D1D1F);
  --ff-text-secondary: var(--text-secondary, #424248);
  --ff-text-tertiary: var(--text-tertiary, #6E6E73);
  --ff-accent: var(--accent, #007AFF);
  --ff-hand: var(--hand, #1E5BC6);
  --ff-hand-red: var(--hand-red, #B5263A);
  --ff-hand-blue: var(--hand-blue, #1E5BC6);
  --ff-postit-pink: var(--postit-pink, #FFD9E2);
}
body[data-theme="dark"] .site-footer-shell {
  --ff-bg-elevated: var(--bg-elevated, var(--bg-window-solid, #2C2C2E));
  --ff-bg-hover: var(--bg-hover, rgba(255,255,255,0.06));
}

.site-footer-shell footer {
  border-top: 1px solid var(--ff-separator);
  padding: 56px 0 28px;
  margin-top: 60px;
  background: var(--ff-bg-elevated);
  position: relative;
}
.site-footer-shell .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer-shell .footer-postit {
  position: absolute;
  top: -16px;
  right: 60px;
  background: var(--ff-postit-pink);
  padding: 12px 16px;
  transform: rotate(3deg);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.12);
  font-family: 'Caveat', 'Kalam', cursive;
  font-size: 15px;
  color: #1D1D1F;
  max-width: 200px;
  line-height: 1.3;
  border-radius: 2px;
}
body[data-theme="dark"] .site-footer-shell .footer-postit { color: #fff; }
.site-footer-shell .footer-postit strong {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
}

.site-footer-shell .footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer-shell .footer-brand-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--ff-text);
}
.site-footer-shell .footer-tagline {
  color: var(--ff-text-secondary);
  font-size: 13.5px;
  max-width: 320px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.site-footer-shell .footer-tagline strong { color: var(--ff-text); font-weight: 700; }
.site-footer-shell .footer-tagline-hand-blue {
  font-family: 'Caveat', cursive;
  font-size: 17px;
  color: var(--ff-hand-blue);
  font-weight: 600;
  letter-spacing: 0;
}
.site-footer-shell .footer-tagline-pill-red {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--ff-hand-red);
  padding: 1px 7px;
  background: rgba(181, 38, 58, 0.10);
  border: 1px solid rgba(181, 38, 58, 0.25);
  border-radius: 4px;
  vertical-align: 1px;
}
body[data-theme="dark"] .site-footer-shell .footer-tagline-pill-red {
  color: #FF8C9C;
  background: rgba(181, 38, 58, 0.20);
  border-color: rgba(255, 140, 156, 0.30);
}
.site-footer-shell .footer-tagline-em-red {
  color: var(--ff-hand-red);
  font-style: italic;
  font-weight: 700;
}
body[data-theme="dark"] .site-footer-shell .footer-tagline-em-red { color: #FF8C9C; }

.site-footer-shell .footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ff-text);
  color: var(--ff-bg);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  letter-spacing: -0.01em;
}
.site-footer-shell .footer-cta:hover { transform: translateY(-2px); }
.site-footer-shell .footer-cta-arrow { transition: transform 0.2s ease; display: inline-block; }
.site-footer-shell .footer-cta:hover .footer-cta-arrow { transform: translateX(3px); }

.site-footer-shell .footer-tag {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--ff-accent);
  text-transform: uppercase;
  vertical-align: 1px;
}
.site-footer-shell .footer-tag.tag-yellow {
  background: rgba(255, 149, 0, 0.13);
  color: #B36800;
}
body[data-theme="dark"] .site-footer-shell .footer-tag.tag-yellow { color: #FFB84D; }

.site-footer-shell .footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-text);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer-shell .footer-col ul { list-style: none; padding: 0; margin: 0; }
.site-footer-shell .footer-col li { margin-bottom: 6px; }
.site-footer-shell .footer-col a {
  color: var(--ff-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.site-footer-shell .footer-col a:hover { color: var(--ff-text); }

.site-footer-shell .footer-bottom {
  border-top: 1px solid var(--ff-separator);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ff-text-tertiary);
  font-size: 12px;
}
.site-footer-shell .easter-hint {
  text-align: center;
  margin-top: 16px;
  width: 100%;
  font-family: 'Caveat', cursive;
  color: var(--ff-hand);
  font-size: 18px;
}
.site-footer-shell .easter-hint kbd {
  background: var(--ff-bg-hover);
  border: 1px solid var(--ff-border);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ff-text-secondary);
}

@media (max-width: 900px) {
  .site-footer-shell .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-shell .footer-brand { grid-column: 1 / -1; }
  .site-footer-shell .footer-postit { display: none; }
}

@media (max-width: 600px) {
  .site-footer-shell footer { padding: 40px 0 24px; margin-top: 40px; }
  .site-footer-shell .container { padding: 0 20px; }
  .site-footer-shell .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 28px;
  }
  .site-footer-shell .footer-brand { grid-column: auto; }
  .site-footer-shell .footer-brand-title { font-size: 17px; }
  .site-footer-shell .footer-tagline { max-width: none; font-size: 13px; margin-bottom: 14px; }
  .site-footer-shell .footer-cta { padding: 7px 12px; font-size: 12.5px; }
  .site-footer-shell .footer-col h4 { margin-bottom: 10px; }
  .site-footer-shell .footer-col a { font-size: 13.5px; }
  .site-footer-shell .footer-bottom { font-size: 11.5px; padding-top: 18px; gap: 12px; }
  .site-footer-shell .easter-hint { font-size: 14.5px; line-height: 1.5; margin-top: 10px; }
  .site-footer-shell .easter-hint kbd { font-size: 10.5px; }
}
