/*
 * design-system/vitrine.css : en-tête (barre flottante) et pied de page des pages vitrine.
 *
 * UNE source pour l'accueil, /logiciel-devis-facture, le blog et les pages publiques
 * (demande de Tuan, 2026-10-10 : des pages cohérentes, sans copie). Règles DÉPLACÉES
 * depuis le <style> de index.html, à l'identique ; la preuve du déplacement pur est
 * une capture avant/après de l'accueil identique à l'octet.
 *
 * Ajouts pour les pages qui n'ont pas la remise à zéro de l'accueil (sans effet sur
 * l'accueil, qui les a déjà) : marges, puces et liens neutralisés dans le pied, largeur
 * du conteneur de l'en-tête et du pied (1200 px, marges 32/24/16 px comme l'accueil).
 * Les sélecteurs de largeur sont à double classe (.wrap.top-wrap) : ils doivent l'emporter
 * sur la règle .wrap de chaque page quel que soit l'ordre de chargement.
 */

/* Bouton Connexion de la barre : variante violette des .btn du design system. */
.btn--violet { background: var(--pi-violet); color: var(--pi-ink); }
.btn--violet:hover { background: var(--pi-violet-2); }

/* ===== En-tête (barre flottante) ===== */
.top { position: sticky; top: 16px; padding: 0; z-index: 50; }
.top-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--pi-divider);
  border-radius: var(--r-pill);
  padding: 10px 14px 10px 22px;
  box-shadow: var(--sh-1);
}
.logo {
  font-family: var(--ff-display); font-weight: var(--fw-display);
  font-size: 30px; letter-spacing: -0.02em; color: var(--pi-ink);
  line-height: 1; display: inline-flex; align-items: baseline;
}
.logo .dot { color: var(--pi-lime); }
.nav { display: flex; gap: 28px; justify-content: center; font-size: 14px; font-weight: 500; color: var(--pi-ink); }
.nav a:hover { color: var(--pi-purple); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.nav a { color: inherit; text-decoration: none; }
.logo { text-decoration: none; }
/* width: 100 % : sur une page dont le corps est une colonne flexible (partenaires), un bloc
   centré par marges automatiques prendrait la largeur de son contenu. */
.wrap.top-wrap { width: 100%; box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 16px 32px 0; }

/* ===== Pied de page ===== */
.foot p { margin: 0; }
.foot a { color: inherit; text-decoration: none; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot h4 { margin: 0; line-height: 1.02; }
footer.foot > .wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
footer.foot { background: var(--pi-ink); color: #fff; padding: 80px 0 28px; margin-top: 96px; }
.foot a:hover { color: var(--pi-lime); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .logo { color: #fff; font-size: 32px; }
.foot-brand .logo .dot { color: var(--pi-lime); }
.foot-brand p { margin-top: 16px; color: rgba(255, 255, 255, 0.55); font-size: 13px; max-width: 260px; line-height: 1.55; }
.foot-meta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.foot-loc { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.7); }
.foot-loc svg { flex: none; color: var(--pi-lime); }
.foot-pills { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.foot-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 500;
  width: fit-content;
}
.foot-pill .swatch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05); flex: none; overflow: hidden;
}
.foot-pill svg { flex: none; }
.foot-flag { width: 18px; height: 14px; border-radius: 3px; overflow: hidden; display: inline-flex; }
.foot-flag i { display: block; width: 6px; height: 100%; }
.foot-flag i:nth-child(1) { background: #0055A4; }
.foot-flag i:nth-child(2) { background: #fff; }
.foot-flag i:nth-child(3) { background: #EF4135; }
.foot-social { display: flex; gap: 10px; margin-top: 22px; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.75);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.foot-social a:hover { color: #0A0A0A; background: var(--pi-lime); border-color: var(--pi-lime); }
.foot-social svg { width: 18px; height: 18px; flex: none; }
.foot h4 { font-family: var(--ff-body); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.92); margin-bottom: 16px; }
.foot ul { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.foot-bottom .links { display: flex; gap: 18px; }

/* ===== Paliers responsive (mêmes seuils que l'accueil) ===== */
@media (max-width: 1024px) {
  /* Comme la règle .wrap de l'accueil à ce palier : marges latérales réduites ET marge haute de l'en-tête à 0. */
  .wrap.top-wrap, footer.foot > .wrap { padding: 0 24px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .wrap.top-wrap, footer.foot > .wrap { padding: 0 16px; }
  .top { top: 8px; }
  .top-inner { grid-template-columns: auto auto; gap: 12px; padding: 8px 10px 8px 16px; }
  .nav { display: none; }
  .logo { font-size: 24px; }
  footer.foot { padding: 56px 0 20px; margin-top: 64px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-brand p { max-width: none; }
  .foot-bottom { flex-direction: column; gap: 12px; margin-top: 40px; }
}
@media (max-width: 480px) {
  .top-inner .btn--violet { padding-left: 12px; padding-right: 12px; font-size: 12.5px; }
}
