/* famysh.com — styles communs. La couleur vive se change ici : --accent. */
:root {
  --accent: #FF6A1A; /* orange. Autres essais : rose #FF3D8B, vert #12C98A, rouge #FF4B4B */
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: #1F4FD6; }
a:hover { color: #0B1B3F; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #1F4FD6;
  outline-offset: 2px;
}
img, svg { max-width: 100%; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: #0B1B3F; color: #FFFFFF; padding: 12px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; color: #FFFFFF; }

/* Boutons : léger retour au survol */
main a[style*="border-radius: 8px"], header a[style*="border-radius: 8px"], button[type="submit"] {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
main a[style*="border-radius: 8px"]:hover, header a[style*="border-radius: 8px"]:hover, button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 27, 63, 0.15);
}

/* Cycle animé de l'accueil */
.track { height: 6px; border-radius: 3px; background: #D9E0EE; overflow: hidden; }
.track-bar { height: 6px; width: 100%; border-radius: 3px; background: var(--accent); transition: width 0.6s ease; }
.js .track-bar { width: 20%; }
.step { transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.step .step-dot { transition: background 0.4s ease; }
.step.is-done .step-dot, .step.is-on .step-dot { background: var(--accent) !important; }
.step.is-on {
  border-color: var(--accent) !important;
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(11, 27, 63, 0.12);
}
html:not(.js) .step .step-dot { background: var(--accent) !important; }

/* Filtres du Labo */
.filter[aria-pressed="true"] { background: #0B1B3F !important; color: #FFFFFF !important; }
.filter[aria-pressed="false"] { background: #FFFFFF !important; color: #0B1B3F !important; }
.projects > [hidden] { display: none !important; }

/* Formulaire de contact */
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box;
  padding: 10px 16px; border-radius: 999px; border: 1px solid #0B1B3F;
  background: #FFFFFF; color: #0B1B3F; font-size: 15px; font-weight: 600; cursor: pointer;
}
.choice input:checked + span { background: #0B1B3F; color: #FFFFFF; }
.choice input:focus-visible + span { outline: 3px solid #1F4FD6; outline-offset: 2px; }
.branch[hidden] { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Petits écrans */
@media (max-width: 760px) {
  header nav { gap: 2px 16px !important; }
  header nav a { padding: 8px 2px !important; font-size: 14px !important; }
  header nav a:last-child { padding: 10px 14px !important; }
  section > div { padding-left: 20px !important; padding-right: 20px !important; }
  form { padding: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
