/* Barre de navigation Ferr : version autonome pour les pages au gabarit Webflow (projets, blog).
   Extraite de brand.css : memes regles, sans les resets globaux. */
@font-face {
  font-family: Archivo;
  src: url("/brand/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("/brand/fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("/brand/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("/brand/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("/brand/fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Caveat;
  src: url("/brand/fonts/caveat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #e4002b;
  --brand-600: #c10024;
  --ink: #141414;
  --muted: #6a6a72;
  --line: rgb(20 20 20 / 0.12);
  --surface: #ffffff;
  --surface-alt: #f7f7f8;
  --card: #f4f4f5;
  --white: #ffffff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav: 72px;
  --z-nav: 40;
  --z-overlay: 50;
}

header.nav, header.nav * { box-sizing: border-box; }
header.nav { font-family: Archivo, ui-sans-serif, system-ui, sans-serif; }
header.nav a, header.nav button, header.nav span, header.nav b { font-family: Archivo, ui-sans-serif, system-ui, sans-serif; color: inherit; text-decoration: none; line-height: normal; }
/* Webflow : button avec padding/line-height, et .w--current pose par son JS sur le lien courant */
header.nav .nav-drop { display: flex; align-items: center; line-height: normal; }
header.nav .nav-drop > button { padding: 0; margin: 0; line-height: normal; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none; }
header.nav a.w--current, header.nav a.w--current:hover { color: inherit; background: none; }
.nav-links > a { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
header.nav button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
header.nav img { max-width: 100%; display: block; }
.nav-menu a b, .nav-menu a span { margin: 0; }
.nav-spacer { height: var(--nav); }
/* le gabarit Webflow definit .cta en Montserrat 16px : on reprend la main dans la barre */
header.nav .cta { font-family: inherit; font-size: 15px; line-height: 1.2; }
header.nav .nav-menu { float: none; }
/* NAV */
header.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  color: var(--white);
  overflow: visible;
}
header.nav.is-solid {
  color: var(--ink);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-avatar {
  display: inline-flex;
  align-items: center;
  height: 42px;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.nav-avatar:hover { transform: scale(1.04); }
.nav-avatar img { width: auto; height: 30px; object-fit: contain; }
.cta-face {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  flex: none; margin: -2px 2px -2px -12px;
  /* stroke inside : l outline avec offset negatif se dessine par-dessus la photo, sans la rogner */
  outline: 2px solid var(--ink, #141414); outline-offset: -2px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links > a:hover,
.nav-drop > button:hover { opacity: 0.7; }

.nav-drop { position: relative; }
.nav-drop > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.nav-drop svg { width: 10px; height: 10px; }
.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 260px;
  padding: 14px 10px 10px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgb(20 20 20 / 0.12);
  display: none;
}
.nav-drop.open .nav-menu,
.nav-drop:focus-within .nav-menu { display: grid; gap: 2px; }
@media (hover: hover) and (pointer: fine) {
  .nav-drop:hover .nav-menu { display: grid; gap: 2px; }
}
.nav-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}
/* icone a gauche, libelle + sous-titre a droite */
.nav-menu a { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: start; }
.nav-menu a .nav-ico { grid-row: 1 / 3; width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--surface-alt); color: var(--ink); fill: currentColor; box-sizing: border-box; transition: background-color .18s var(--ease), color .18s var(--ease); }
.nav-menu a:hover .nav-ico, .nav-menu a[aria-current="page"] .nav-ico { background: var(--brand); color: var(--white); }
.nav-menu a b { font-weight: 600; }
.nav-menu a span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
}
.nav-menu a:hover { background: var(--surface-alt); color: var(--brand); }
.nav-menu a[aria-current="page"] { color: var(--brand); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  mix-blend-mode: normal;
  box-shadow: 0 8px 24px rgb(20 20 20 / 0.12);
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: scale(0.98); }
.cta-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--white);
}
.cta-ico svg { width: 16px; height: 16px; }
header.nav.is-solid .cta,
header.nav.is-open .cta,
.work .cta {
  background: var(--ink);
  color: var(--white);
}
header.nav.is-solid .cta,
header.nav.is-open .cta,
.work .cta {
  background: var(--ink);
  color: var(--white);
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.35);
  mix-blend-mode: normal;
}
header.nav.is-solid .nav-burger { border-color: var(--line); }



/* Webflow style aussi .nav-menu (menu mobile plein ecran) : on neutralise pour le menu deroulant */
header.nav .nav-drop .nav-menu a { row-gap: 0; column-gap: 12px; line-height: 1.25; white-space: nowrap; }
header.nav .nav-drop .nav-menu a b { display: block; line-height: 1.2; }
header.nav .nav-drop .nav-menu a span { line-height: 1.3; }
header.nav .nav-drop .nav-menu { position: absolute; height: auto; min-height: 0; width: auto; inset: auto; top: 100%; left: 50%; margin: 0; flex-flow: column; }
@media (max-width: 900px) {
  header.nav { grid-template-columns: auto auto; }
  .nav-links, header.nav .cta { display: none; }
  .nav-burger { display: grid; place-items: center; justify-self: end; }
  header.nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav) 16px 16px;
    background: var(--white);
    color: var(--ink);
    border-radius: 20px;
    padding: 24px;
    gap: 18px;
    mix-blend-mode: normal;
    z-index: var(--z-overlay);
    box-shadow: 0 20px 50px rgb(20 20 20 / 0.18);
    overflow: auto;
  }
  header.nav.is-open .nav-drop .nav-menu {
    position: static;
    transform: none;
    display: none;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  header.nav.is-open .nav-drop.open .nav-menu { display: grid; }
  header.nav.is-open .cta {
    display: inline-flex;
    position: fixed;
    right: 28px;
    bottom: 36px;
    z-index: calc(var(--z-overlay) + 1);
  }
}
