/* ===================================================================
   TrueCoding — tokens
   =================================================================== */
:root{
  --ink: #0B0F14;
  --panel: #12181F;
  --panel-2: #171F29;
  --text: #EEEBE2;
  --text-muted: #8D96A3;
  --gold: #C7A467;
  --gold-soft: #9C8352;
  --line: rgba(199,164,103,0.16);
  --line-strong: rgba(199,164,103,0.38);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1180px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }
img, svg{ display: block; max-width: 100%; }

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1{ font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.08; font-weight: 500; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; margin-bottom: 1.1rem; }
h3{ font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }

p{ color: var(--text-muted); }

.eyebrow{
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow-light{ color: var(--gold); }

.section-inner, .header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* faint film-grain / noise texture overlay, purely decorative */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===================================================================
   Header + burger
   =================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.4rem 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: rgba(11,15,20,0.86);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  z-index: 210;
}
.cursor{
  color: var(--gold);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.burger{
  position: relative;
  z-index: 210;
  width: 34px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger span{
  display: block;
  height: 1px;
  width: 100%;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.25s ease, background 0.3s ease;
}
.burger:hover span{ background: var(--gold); }
.burger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(11.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-11.5px) rotate(-45deg);
}

/* ===================================================================
   Nav overlay
   =================================================================== */
.nav-backdrop{
  position: fixed;
  inset: 0;
  z-index: 185;
  background: rgba(6,8,11,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(400px, 82vw);
  z-index: 190;
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7.5rem 2.6rem 2.6rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,0.5);
}
.nav-overlay.open{
  transform: translateX(0);
}
.nav-links{ display: flex; flex-direction: column; gap: 0.2rem; }
.nav-link{
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--text);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.nav-link:hover{ color: var(--gold); padding-left: 0.4rem; }
.nav-footer{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================================================
   Hero
   =================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}
.hero-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1{ margin-bottom: 1.4rem; }
.hero-sub{
  max-width: 46ch;
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

.btn{
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.9rem 1.7rem;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover{ background: #d8b578; transform: translateY(-1px); }
.btn-ghost{
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn-full{ width: 100%; text-align: center; }

/* terminal card */
.hero-terminal{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
}
.terminal-bar{
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.dot{
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.terminal-title{
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.terminal-body{
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: #B9C4D0;
  padding: 1.6rem 1.4rem;
  white-space: pre-wrap;
  min-height: 220px;
}
.terminal-body .ok{ color: var(--gold); }

.scroll-hint{
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-hint span{
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollhint 2s ease-in-out infinite;
}
@keyframes scrollhint{
  0%{ transform: scaleY(0.3); opacity: 0.3; }
  50%{ transform: scaleY(1); opacity: 1; }
  100%{ transform: scaleY(0.3); opacity: 0.3; }
}

/* ===================================================================
   Sections (generic)
   =================================================================== */
.section{ padding: 7rem 0; border-top: 1px solid var(--line); }
.section-alt{ background: var(--panel); }
.section-lead{ max-width: 56ch; font-size: 1.05rem; margin-bottom: 3rem; }

/* Activité */
.activite-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}
.activite-copy p{ margin-bottom: 1.1rem; max-width: 52ch; }
.activite-facts{
  border-top: 1px solid var(--line);
}
.activite-facts li{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-label{
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fact-value{
  font-family: var(--serif);
  font-size: 1.05rem;
  text-align: right;
  color: var(--text);
}

/* Services / cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.card{
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 2.2rem 1.8rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover{ border-color: var(--line-strong); transform: translateY(-4px); }
.card-featured{
  border-color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(199,164,103,0.07), var(--panel-2) 40%);
}
.card-tag{
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.card-desc{ font-size: 0.95rem; margin-bottom: 1.4rem; }
.card-list{ margin-bottom: 1.6rem; flex-grow: 1; }
.card-list li{
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.card-list li::before{
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 1px;
  background: var(--gold);
}
.card-link{
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  transition: color 0.25s ease;
}
.card-link:hover{ color: var(--gold); }
.cards-note{
  margin-top: 2.2rem;
  font-size: 0.9rem;
  font-family: var(--mono);
  color: var(--text-muted);
}

/* Features / approche */
.features{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
  margin-top: 1rem;
}
.feature-icon{ width: 34px; height: 34px; color: var(--gold); margin-bottom: 1.1rem; }
.feature p{ font-size: 0.92rem; }

/* ===================================================================
   Contact
   =================================================================== */
.contact{ background: var(--panel); border-bottom: none; }
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro p{ max-width: 40ch; margin-bottom: 2.2rem; }
.contact-details{ border-top: 1px solid var(--line); }
.contact-details li{
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.contact-details a:hover{ color: var(--gold); }
.contact-label{
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-form{
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.field{ display: flex; flex-direction: column; gap: 0.45rem; }
.field label{
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.field input, .field select, .field textarea{
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.field textarea{ resize: vertical; min-height: 100px; }
.field-error{
  font-size: 0.78rem;
  color: #D98E73;
  min-height: 1em;
}
.form-status{
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
  min-height: 1.2em;
}

.footer-bar{
  max-width: var(--container);
  margin: 5rem auto 0;
  padding: 1.6rem clamp(1.5rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================================
   Scroll reveal
   =================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .activite-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .features{ grid-template-columns: repeat(2, 1fr); }
  h1{ line-height: 1.15; }
}
@media (max-width: 560px){
  .features{ grid-template-columns: 1fr; }
  .nav-link{ font-size: 2rem; }
  .footer-bar{ flex-direction: column; }
}

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