/* ============================================
   DESIGN SYSTEM — La Tarzonie
   ============================================ */
:root {
  --white: #f5f4f0;
  --black: #0d0d0d;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --faint: #e8e7e3;
  --accent: #1a1a1a;
  --line: rgba(0,0,0,0.08);
  --mono: 'DM Mono', monospace;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', sans-serif;
  --max: 1120px;
  --nav-h: 68px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { background: var(--white); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.6; overflow-x: hidden; }

/* LANG */
[data-lang="en"] { display: none !important; }
body.en [data-lang="fr"] { display: none !important; }
body.en div[data-lang="en"]    { display: block !important; }
body.en section[data-lang="en"]{ display: block !important; }
body.en p[data-lang="en"]      { display: block !important; }
body.en h1[data-lang="en"]     { display: block !important; }
body.en h2[data-lang="en"]     { display: block !important; }
body.en h3[data-lang="en"]     { display: block !important; }
body.en h4[data-lang="en"]     { display: block !important; }
body.en span[data-lang="en"]   { display: inline !important; }
body.en a[data-lang="en"]      { display: inline-block !important; }
body.en button[data-lang="en"] { display: inline-block !important; }
body.en li[data-lang="en"]     { display: list-item !important; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); background: rgba(245,244,240,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); z-index: 100; display: flex; align-items: center; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.5px; color: var(--ink); text-decoration: none; }
.nav-logo span { font-style: italic; font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-btn { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 3px; padding: 5px 10px; cursor: pointer; transition: all 0.2s; }
.lang-btn:hover { color: var(--ink); border-color: var(--ink); }
.nav-join { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--ink); border: none; padding: 9px 20px; cursor: pointer; text-decoration: none; transition: all 0.2s; border-radius: 2px; }
.nav-join:hover { background: #333; }

/* PAGE HERO (for inner pages) */
.page-hero { padding-top: var(--nav-h); padding-bottom: 0; min-height: 38vh; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.page-hero-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; opacity: 0.5; }
.page-hero-inner { max-width: var(--max); margin: 0 auto; padding: 60px 40px 56px; width: 100%; position: relative; z-index: 2; }
.page-hero-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.page-hero-title { font-family: var(--serif); font-size: clamp(48px, 7vw, 96px); font-weight: 300; line-height: 1.0; letter-spacing: -2px; color: var(--ink); }
.page-hero-title em { font-style: italic; }

/* SECTIONS */
section { padding: 100px 40px; max-width: var(--max); margin: 0 auto; }
.section-full { max-width: 100%; padding: 100px 0; }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.section-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -1px; color: var(--ink); margin-bottom: 24px; }
.section-title em { font-style: italic; }
.section-divider { width: 100%; height: 1px; background: var(--line); }

/* BUTTONS */
.btn-primary { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--ink); border: none; padding: 14px 32px; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.25s; }
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-secondary { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.btn-secondary:hover { color: var(--ink); }
.btn-secondary::after { content: '→'; transition: transform 0.2s; }
.btn-secondary:hover::after { transform: translateX(4px); }

/* PROJECTS */
.projects-section { background: var(--ink); color: var(--white); }
.projects-section .section-tag { color: rgba(245,244,240,0.4); }
.projects-section .section-title { color: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.06); margin-top: 60px; }
.projects-grid-2 { grid-template-columns: repeat(2, 1fr); }
.project-card { background: var(--ink); padding: 40px; transition: background 0.25s; cursor: pointer; text-decoration: none; display: block; position: relative; overflow: hidden; }
.project-card:hover { background: #222; }
.project-card::after { content: '↗'; position: absolute; top: 32px; right: 32px; font-size: 18px; color: rgba(245,244,240,0.2); transition: all 0.25s; }
.project-card:hover::after { color: rgba(245,244,240,0.7); transform: translate(3px, -3px); }
.project-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(245,244,240,0.35); margin-bottom: 20px; }
.project-name { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.project-desc { font-size: 14px; color: rgba(245,244,240,0.5); line-height: 1.6; margin-bottom: 28px; }
.project-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: rgba(245,244,240,0.4); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(245,244,240,0.3); }
.status-dot.active { background: #7fff9a; box-shadow: 0 0 6px #7fff9a; }
.status-dot.building { background: #ffe57f; box-shadow: 0 0 6px #ffe57f; }
.status-dot.planned { background: rgba(245,244,240,0.25); }

/* FORMS */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.form-input, .form-textarea { font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--ink); background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 12px 0; outline: none; transition: border-color 0.2s; resize: none; }
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--ink); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(107,107,107,0.4); }
.form-submit { align-self: flex-start; margin-top: 8px; }
.form-success { display: none; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); padding: 12px 0; }

/* FOOTER */
footer { border-top: 1px solid var(--line); padding: 40px; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.footer-copy { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* MOBILE NAV BURGER */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-burger:hover { background: var(--faint); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245,244,240,0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 40px 24px 48px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}
.mobile-menu-links li { border-bottom: 1px solid var(--line); }
.mobile-menu-links li:first-child { border-top: 1px solid var(--line); }
.mobile-menu-links a {
  display: block;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu-links a.active { font-style: italic; }
.mobile-menu-links a:hover { color: var(--muted); padding-left: 8px; }
.mobile-menu-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right .nav-join { display: none; }
  .nav-burger { display: flex; }
  .page-hero-inner { padding: 40px 24px 40px; }
  section { padding: 72px 24px; }
  .projects-grid, .projects-grid-2 { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; padding: 32px 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
