/* ============================================================
   Horlogix — Précision automatisée pour la manufacture suisse
   Style typographique sobre, esprit manufacture horlogère.
   ============================================================ */

:root {
  /* Palette Vallée de Joux : bleu nuit profond (Nuit du Brassus) + ivoire + champagne */
  --ink: #0d1820;
  --ink-deep: #0a1218;
  --paper: #f6f4ef;
  --paper-warm: #efeae0;
  --champagne: #c2a16a;
  --champagne-deep: #9a7e4a;
  --forest: #1f3a2e;
  --graphite: #2a323a;
  --line: rgba(13, 24, 32, 0.12);
  --line-dark: rgba(246, 244, 239, 0.18);
  --muted: #6c6f73;
  --muted-dark: #a8aeb5;
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  aspect-ratio: 1 / 1;
  color: var(--champagne-deep);
  flex: 0 0 38px;
  overflow: visible;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Si jamais on imbrique un <svg> dans un wrapper <span class="brand-mark"> */
.brand-mark > svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand:hover .brand-mark {
  color: var(--champagne);
  transform: rotate(-2deg);
}

@media (max-width: 600px) {
  .nav {
    height: 64px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    flex-basis: 32px;
  }
  .brand-name {
    font-size: 18px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 16px;
  }
  .lang-switch {
    font-size: 11px;
  }
  .container {
    padding: 0 20px;
  }
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--graphite);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--champagne-deep);
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s ease;
}

.lang-switch a:hover {
  color: var(--champagne-deep);
}

.lang-switch a.active {
  color: var(--ink);
  font-weight: 500;
}

.lang-switch .sep {
  margin: 0 10px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  margin: 0 0 24px;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}

.display em {
  font-style: italic;
  color: var(--champagne-deep);
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 720px;
  margin: 0 0 48px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--champagne-deep);
  border-color: var(--champagne-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero-decor {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  color: var(--champagne);
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
}

.hero-decor svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .hero {
    padding: 160px 0 100px;
  }
  .hero-decor {
    right: -260px;
    width: 560px;
    height: 560px;
    opacity: 0.35;
  }
}

/* ---------- Sections génériques ---------- */

.section {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
  border-top: none;
}

.section-dark .section-title,
.section-dark h3 {
  color: var(--paper);
}

.section-dark .section-number {
  color: var(--champagne);
}

.section-dark p {
  color: var(--muted-dark);
}

.section-number {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--champagne-deep);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
}

.section-head {
  max-width: 720px;
  margin: 0 0 72px;
}

.section-intro {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 0;
}

.section-dark .section-intro {
  color: var(--muted-dark);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.two-col .col-left {
  position: sticky;
  top: 120px;
}

.two-col p.lead {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 28px;
  color: var(--graphite);
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .two-col .col-left {
    position: static;
  }
}

/* ---------- Strates (approche) ---------- */

.strates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.strate {
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}

.strate-tag {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 0 0 12px;
}

.strate h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.strate p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted-dark);
  margin: 0;
}

@media (max-width: 880px) {
  .strates {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Métiers ---------- */

.metiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 80px;
}

.metier h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.metier p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 880px) {
  .metiers {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Manifeste ---------- */

.manifeste {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: manifeste;
}

.manifeste li {
  position: relative;
  padding: 36px 0 36px 100px;
  border-top: 1px solid var(--line-dark);
  counter-increment: manifeste;
}

.manifeste li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.manifeste li::before {
  content: counter(manifeste, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 40px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--champagne);
  letter-spacing: 0.06em;
}

.manifeste h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--paper);
}

.manifeste p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted-dark);
  margin: 0;
  max-width: 760px;
}

@media (max-width: 700px) {
  .manifeste li {
    padding-left: 0;
    padding-top: 60px;
  }
  .manifeste li::before {
    top: 22px;
  }
}

/* ---------- Contact ---------- */

.contact-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-block:first-of-type {
  border-top: 1px solid var(--ink);
}

.contact-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  margin: 0 0 6px;
}

.contact-value {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}

.contact-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--champagne);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.contact-value a:hover {
  color: var(--champagne-deep);
  border-color: var(--champagne-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 60px;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
}

.footer-brand .brand-mark {
  width: 72px;
  height: 72px;
  min-width: 72px;
  max-width: 72px;
  flex-basis: 72px;
  color: var(--champagne);
}

.footer-brand .brand-name {
  font-size: 28px;
  letter-spacing: 0.08em;
}

.footer-brand {
  gap: 18px;
}

@media (max-width: 600px) {
  .footer-brand .brand-mark {
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    flex-basis: 56px;
  }
  .footer-brand .brand-name {
    font-size: 24px;
  }
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted-dark);
  margin: 0;
}

.footer-mentions {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin: 24px 0 0;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Pages secondaires (équipe, mentions légales)
   ============================================================ */

/* ---------- Page hero (plus court que le hero principal) ---------- */

.page-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
}

.page-hero .display {
  font-size: clamp(40px, 6vw, 76px);
}

.display-small {
  font-size: clamp(36px, 5vw, 60px) !important;
}

.page-hero-narrow .lede {
  max-width: 640px;
}

/* ---------- Menu : item actif ---------- */

.nav-links a.active {
  color: var(--champagne-deep);
}

/* ---------- Footer links ---------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 12px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-dark);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--champagne);
}

/* ---------- Équipe : grille et cartes ---------- */

.team-grid {
  display: grid;
  gap: 48px;
}

.team-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.team-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 880px) {
  .team-grid-2,
  .team-grid-3 {
    grid-template-columns: 1fr;
  }
}

.team-card {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-dark .team-card,
.team-card-dark {
  border-top-color: var(--line-dark);
}

.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-warm);
}

.section-dark .team-avatar,
.team-card-dark .team-avatar {
  border-color: var(--line-dark);
}

.team-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.team-role {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  margin: 0 0 8px;
}

.section-dark .team-role,
.team-card-dark .team-role {
  color: var(--champagne);
}

.team-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
}

.section-dark .team-name,
.team-card-dark .team-name {
  color: var(--paper);
}

.team-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 12px;
}

.section-dark .team-bio,
.team-card-dark .team-bio {
  color: var(--muted-dark);
}

/* ---------- Positions ouvertes ---------- */

.positions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.position {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.position:last-child {
  border-bottom: 1px solid var(--line);
}

.position-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.position-status,
.position-loc {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

.position-loc {
  color: var(--muted);
}

.position-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink);
}

.position-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 820px;
}

.join-cta {
  margin-top: 56px;
  text-align: center;
}

/* ---------- Pages légales ---------- */

.legal-inner {
  max-width: 780px;
  margin: 0 auto;
}

.legal-block {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.legal-block:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-block h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 18px;
}

.legal-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--graphite);
  margin: 0 0 14px;
}

.legal-block ul {
  margin: 14px 0;
  padding-left: 22px;
  color: var(--graphite);
}

.legal-block ul li {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 6px;
}

.legal-block a {
  color: var(--ink);
  border-bottom: 1px solid var(--champagne);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.legal-block a:hover {
  color: var(--champagne-deep);
  border-color: var(--champagne-deep);
}
