/* ==========================================================
   Portfolio Idan Wizen — feuille de style partagée
   Utilisée par index.html, cv.html et les 7 case studies
   ========================================================== */

:root {
  --bg: #f5f3ea;
  --card: #ffffff;
  --border: #d4c4b0;
  --accent: #96562c;
  --accent-light: #b88d75;
  --accent-dark: #7a4421;
  --text: #141413;
  --text-gray: #555555;
  --text-dim: #666666;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=JetBrains+Mono:wght@400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.site {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  padding: 32px 24px 48px;
  width: auto;
  min-width: 0;
  margin: 0;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== TOP LINE ===== */
.site-top-line { display: none; }

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--accent);
}
.site-header-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-left: 5px solid var(--accent);
  display: flex;
  align-items: center;
  margin-right: auto;
}
.site-header-name a {
  color: var(--text);
  text-decoration: none;
}
.site-header-cols {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.site-header-col {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.3px;
  border-left: 1px solid var(--accent);
  padding: 0 14px;
}
.site-header-col:first-child { border-left: none; }
.site-header-col a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header-col a:hover { color: var(--accent); }

/* ===== TITLE BLOCK (index) ===== */
.site-title-block {
  margin-top: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--accent);
}
.site-title-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.site-title-sub {
  font-size: 17px;
  color: var(--text);
  margin-top: 4px;
  font-style: italic;
}

/* ===== CTA BUTTONS ===== */
.site-cta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.2;
}
.site-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.site-btn-alt {
  background: transparent;
  color: var(--accent);
}
.site-btn-alt:hover {
  background: var(--accent);
  color: var(--bg);
}
.site-btn .arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

/* ===== PAGE CONTENT WRAPPER ===== */
.site-content {
  margin-top: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 48px;
}
.site-footer-line {
  height: 1px;
  background: var(--accent);
  margin-bottom: 10px;
}
.site-footer-text {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.site-footer-text a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-text a:hover { color: var(--accent); }

/* ===== LANGUAGE SWITCHER ===== */
.site-header-col.lang-switch {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switch a, .lang-switch .lang-active {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch .lang-active {
  color: var(--accent);
  font-weight: 700;
}
@media print { .site-header-col.lang-switch { display: none !important; } }

/* ===== LIGHTBOX (case studies) ===== */
.phase-img-wrapper img { cursor: zoom-in; }
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  cursor: default;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  body.site { padding: 22px 16px 36px; }
  .site-header-name { font-size: 22px; }
  .site-title-main { font-size: 18px; }
  .site-title-sub { font-size: 15px; }
  .site-cta-row { justify-content: flex-start; }
}

/* ===== PRINT ===== */
@media print {
  .site-cta-row,
  .lightbox-overlay { display: none !important; }
  body.site { padding: 0; }
}
