/* ═══════════════════════════════════════════════════════════════════════════
   Fair4Pitch — habillage commun (header + footer).

   Base : le header fourni par Alex (classes .f4h__*, maquette d'origine).
   Objectif : rendu et comportement IDENTIQUES sur les 6 pages, alors que
   chacune embarque son propre CSS.

   Trois précautions, sans lesquelles le header se déformait d'une page à
   l'autre :
     1. cette feuille est chargée APRÈS le <style> de chaque page, donc elle
        gagne à spécificité égale ;
     2. reset local (.f4h *, .f4p-ft *) : marges, polices, interlignage,
        graisses et espacements ne sont plus hérités du <body> de la page ;
     3. tout est en px — les pages ne déclarent pas la même taille de police
        de référence, donc des rem donneraient des tailles différentes.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1 · Reset local : on coupe tout héritage venant de la page ─────────── */
.f4h,
.f4h *,
.f4h *::before,
.f4h *::after,
.f4p-ft,
.f4p-ft *,
.f4p-ft *::before,
.f4p-ft *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  list-style: none;
  border: 0;
  background: none;
  float: none;
  position: static;
  max-width: none;
  min-width: 0;
  text-align: left;
  text-shadow: none;
  box-shadow: none;
  border-radius: 0;
  transform: none;
  opacity: 1;
}

/* ─── 2 · Header (maquette Alex) ─────────────────────────────────────────── */
.f4h {
  background: #000;
  border-bottom: 1px solid #141414;
  box-shadow: 0 1px 0 #F7DFE9;
  display: block;
}
.f4h a { text-decoration: none; color: inherit; }

/* Bandeau du haut */
.f4h .f4h__top {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  border-bottom: 1px solid #0F0F0F;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}
.f4h .f4h__tl {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}
.f4h .f4h__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7EB0A7;
  flex: 0 0 auto;
}
.f4h .f4h__strong { color: #fff; font-weight: 600; }
.f4h .f4h__muted { color: #D5D5D3; }
.f4h .f4h__signup { color: #8BC2B8; margin-left: 7px; }
.f4h .f4h__signup:hover { color: #a7d5cd; }

.f4h .f4h__tr {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #A3A3A1;
  font-size: 12.5px;
  line-height: 1;
}
.f4h .f4h__tr a:hover { color: #fff; }
.f4h .f4h__div { width: 1px; height: 14px; background: #2A2A2A; flex: 0 0 auto; }

/* Sélecteur de langue : rendu identique à la maquette (FR en magenta, EN
   grisé), mais en <button> pour rester câblé au script de chaque page. */
.f4h .f4h__lang { display: flex; align-items: center; gap: 5px; color: #6E6E6C; }
.f4h .f4h__lang button {
  font-size: 12.5px;
  line-height: 1;
  color: #6E6E6C;
  font-weight: 400;
  cursor: pointer;
  transition: color .16s;
}
.f4h .f4h__lang button:hover { color: #fff; }
.f4h .f4h__lang button.is-active,
.f4h .f4h__lang button.on { color: #EB459E; font-weight: 600; }
.f4h .f4h__lang-sep { color: #3A3A3A; }

/* Barre principale */
.f4h .f4h__main {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
}
.f4h .f4h__logo {
  height: 50px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.f4h .f4h__init {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #808080;
  text-transform: uppercase;
  white-space: nowrap;
}
.f4h .f4h__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14.5px;
  line-height: 1;
  color: #BFBFBF;
  white-space: nowrap;
}
.f4h .f4h__nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.f4h .f4h__nav a:hover { color: #fff; border-bottom-color: #EB459E; }
.f4h .f4h__nav a[aria-current="page"] { color: #fff; border-bottom-color: #EB459E; }
.f4h .f4h__cta {
  background: #EB459E;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  height: 37px;
  padding: 0 22px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  margin-left: 40px;
  transition: background .16s;
  flex: 0 0 auto;
}
.f4h .f4h__cta:hover { background: #d63a8d; }

/* ─── 3 · Footer, même palette que le header ─────────────────────────────── */
.f4p-ft {
  display: block;
  background: #0E1A2E;
  border-top: 1px solid #1E2C45;
  color: #A8B4C8;
  font-size: 14px;
  padding: 44px 0 0;
  margin-top: 64px;
}
.f4p-ft a { color: inherit; text-decoration: none; }
.f4p-ft__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px 36px;
  display: grid;
  gap: 34px;
}
.f4p-ft__brand img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.f4p-ft__baseline { max-width: 34em; color: #8996AC; font-size: 13.5px; line-height: 1.6; }
.f4p-ft__h {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #6E7B91;
  margin-bottom: 14px;
}
.f4p-ft__col ul { display: grid; gap: 8px; }
.f4p-ft__col a:hover { color: #EB459E; }
.f4p-ft__next {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  color: #8BC2B8;
  margin-bottom: 16px;
}
.f4p-ft__cta {
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 20px;
  background: #EB459E;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transition: background .16s;
}
.f4p-ft__cta:hover { background: #d63a8d; }
.f4p-ft__legal { border-top: 1px solid #1E2C45; }
.f4p-ft__legal-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  color: #6E7B91;
}
.f4p-ft__legal-in a:hover { color: #8BC2B8; }

/* ─── 4 · Accessibilité ─────────────────────────────────────────────────── */
.f4h a:focus-visible,
.f4h button:focus-visible,
.f4p-ft a:focus-visible {
  outline: 2px solid #EB459E;
  outline-offset: 2px;
}

/* ─── 5 · Responsive : exactement le comportement de la maquette ─────────── */
@media (min-width: 861px) {
  .f4p-ft__in { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
@media (max-width: 1150px) {
  .f4h .f4h__top { gap: 14px; }
  .f4h .f4h__tl { flex: 1 1 auto; }
  .f4h .f4h__main { gap: 12px; }
  .f4h .f4h__init { display: none; }
  .f4h .f4h__nav { gap: 16px; font-size: 13.5px; }
  .f4h .f4h__cta { margin-left: 18px; }
}
@media (max-width: 860px) {
  .f4h .f4h__top { height: auto; padding: 8px 16px; flex-wrap: wrap; white-space: normal; line-height: 1.4; }
  .f4h .f4h__tr { margin-left: 0; gap: 14px; flex-wrap: wrap; }
  .f4h .f4h__main { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .f4h .f4h__logo { height: 40px; }
  .f4h .f4h__nav { margin-left: 0; order: 3; width: 100%; flex-wrap: wrap; gap: 14px; }
  .f4h .f4h__cta { margin-left: auto; }
  .f4p-ft__in { padding: 0 16px 30px; }
  .f4p-ft__legal-in { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .f4h .f4h__cta,
  .f4h .f4h__lang button,
  .f4p-ft__cta { transition: none; }
}
