/* ═══════════════════════════════════════════════════════════════
   TAVEO — CSS COMMUN
   Design system, navigation et footer partagés par toutes les pages
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   TAVEO — DESIGN SYSTEM
   Tokens, reset, base styles
═══════════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --bg-0: #0A0A0A;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1C1C1C;
  --line: rgba(250, 250, 250, 0.08);
  --line-strong: rgba(250, 250, 250, 0.18);
  --text-0: #FAFAFA;
  --text-1: rgba(250, 250, 250, 0.78);
  --text-2: rgba(250, 250, 250, 0.55);
  --text-3: rgba(250, 250, 250, 0.35);
  --accent: #F5C518;
  --accent-dark: #B07800;
  --accent-soft: rgba(245, 197, 24, 0.10);
  --accent-glow: rgba(245, 197, 24, 0.25);

  /* Fonts */
  --font-display: 'Archivo Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --pad-x: clamp(24px, 5vw, 64px);
  --section-y: clamp(80px, 10vw, 160px);
  --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip; /* clip (pas hidden) pour ne pas casser position: sticky */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Reusable atoms
═══════════════════════════════════════════════════════════════ */

/* — Eyebrow label — */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

/* — Display titles — */
.title-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.title-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.title-m {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }
.italic-accent { font-style: italic; color: var(--accent); }
.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text-0);
}

/* — Buttons / CTAs — */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 28px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #0A0A0A;
  border: 1px solid var(--accent);
}
.btn-primary:hover { opacity: 0.92; }
.btn-secondary {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--text-0); }
.btn-arrow {
  width: 22px; height: 10px;
  position: relative;
  flex-shrink: 0;
}
.btn-arrow::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 10px; height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* — Section heading combo — */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .right {
  max-width: 380px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-1);
}
@media (max-width: 800px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* — Grain overlay — */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION — Sticky, glass on scroll
═══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: var(--line);
  padding: 14px var(--pad-x);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.16em;
}
.nav-logo-mark { flex-shrink: 0; display: block; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--text-0);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 12px 22px;
  background: var(--accent);
  color: #0A0A0A;
  text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); opacity: 0.92; }
.nav-links a, .nav-cta { white-space: nowrap; }
/* Écrans moyens : menu resserré pour garder liens et bouton sur une ligne */
@media (max-width: 1360px) {
  .nav-links { gap: 24px; }
  .nav-actions { gap: 12px; }
  .nav-cta { padding: 12px 16px; letter-spacing: 0.12em; }
}

/* Groupe de droite : langue + appel + burger */
.nav-actions { display: flex; align-items: center; gap: 18px; }
/* Bouton de langue, volontairement discret */
.nav-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-2);
  padding: 6px 8px;
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.nav-lang:hover { color: var(--accent); border-color: var(--accent); }

.nav-burger { display: none; }
@media (max-width: 1239px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
  }
  .nav-burger span {
    width: 22px; height: 2px;
    background: var(--text-0);
    transition: transform 0.3s, opacity 0.3s;
  }
}

/* — Menu mobile (burger) — */
.nav-burger { background: none; border: none; color: inherit; }
.nav-burger span { display: block; }
@media (max-width: 1239px) {
  .nav.menu-open { background: var(--bg-0); border-bottom-color: var(--line); }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 12px var(--pad-x) 28px;
    background: var(--bg-0);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav.menu-open .nav-links a { display: block; padding: 12px 0; }
  .nav.menu-open .nav-links a.active::after { display: none; }
  .nav.menu-open .nav-links a.active { color: var(--accent); }
  .nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.footer {
  background: #060607;
  border-top: 1px solid rgba(245, 197, 24, 0.18);
  padding: clamp(52px, 6vw, 84px) var(--pad-x) 28px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 3.4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.foot-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-0);
}
.foot-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.25;
  color: var(--text-0);
  max-width: 26ch;
}
.foot-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.foot-lbl + .foot-val { margin-bottom: 22px; }
.foot-val {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.foot-val a {
  display: block;
  color: var(--text-2);
  transition: color 0.2s;
}
.foot-val a:hover { color: var(--accent); }
.footer-bot {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 250, 250, 0.1);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; gap: 12px; text-align: center; }
}
