/*
Theme Name: Geodek Pro
Theme URI: https://labosol.com
Author: Geodek
Description: Thème sur-mesure pour la landing page Geodek Pro — logiciel d'automatisation de rapports géotechniques (DTR BC 2.33, RPA 99/2003, RPA 2024).
Version: 1.0
Text Domain: geodek-pro
*/

/* ============ TOKENS ============ */
:root{
  --paper:      #F5F2EA;
  --paper-dim:  #EDE9DD;
  --ink:        #1B2A34;
  --ink-soft:   #48565F;
  --petrol:     #2C5568;
  --petrol-dk:  #1D3B48;
  --clay:       #AD6B3B;
  --clay-dk:    #8C5530;
  --sage:       #74815F;
  --line:       #D9D2C1;
  --bedrock:    #16232B;
  --bedrock-tx: #E7E2D4;

  --display: 'Space Grotesk', sans-serif;
  --body:    'Source Serif 4', serif;
  --mono:    'IBM Plex Mono', monospace;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{ font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--petrol); outline-offset: 3px; }
img{ max-width:100%; display:block; }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px){ .wrap{ padding: 0 20px; } }

/* ============ DEPTH RULER (signature element) ============ */
.depth-rail{
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 420px;
  background: var(--line);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.depth-rail .mark{
  position: relative;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}
.depth-rail .mark::before{
  content:'';
  width: 8px; height: 1px;
  background: var(--line);
  margin-right: 8px;
  transition: width .3s ease, background .3s ease;
}
.depth-rail .mark span{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  opacity: .55;
  white-space: nowrap;
  transition: opacity .3s ease, color .3s ease;
}
.depth-rail .mark.active::before{ width: 16px; background: var(--clay); }
.depth-rail .mark.active span{ opacity: 1; color: var(--clay-dk); font-weight: 500; }

@media (max-width: 900px){ .depth-rail{ display:none; } }

/* ============ NAV ============ */
.nav{
  position: sticky; top:0; z-index: 60;
  background: rgba(245,242,234,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; height: 68px; }
.brand{ font-family: var(--display); font-weight:700; font-size: 19px; letter-spacing: -.01em; text-decoration:none; color: var(--ink); display:flex; align-items:baseline; gap:6px;}
.brand em{ font-style:normal; color: var(--clay); }
.nav-cta{
  font-family: var(--mono); font-size: 13px; text-decoration:none;
  color: var(--paper); background: var(--petrol);
  padding: 10px 18px; border-radius: 3px;
  transition: background .2s ease;
}
.nav-cta:hover{ background: var(--petrol-dk); }

/* ============ SECTION SCAFFOLDING ============ */
.layer{ position: relative; padding: 120px 0; border-bottom: 1px solid var(--line); }
.layer.tight{ padding: 90px 0; }
.eyebrow{
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  color: var(--clay-dk); margin-bottom: 18px; display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:''; width:22px; height:1px; background: var(--clay); display:inline-block; }

/* ============ HERO ============ */
.hero{ padding: 150px 0 130px; }
.hero h1{
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.05;
  max-width: 15ch;
  color: var(--ink);
}
.hero h1 .hl{ color: var(--clay); }
.hero .sub{
  margin-top: 28px; max-width: 46ch;
  font-size: 19px; color: var(--ink-soft);
}
.hero .ctas{ margin-top: 40px; display:flex; gap:18px; flex-wrap: wrap; align-items:center; }
.btn{
  font-family: var(--mono); font-size: 14px; text-decoration:none;
  padding: 15px 28px; border-radius: 3px; display:inline-block;
  transition: transform .15s ease, background .2s ease;
}
.btn-primary{ background: var(--petrol); color: var(--paper); border:none; cursor:pointer; }
.btn-primary:hover{ background: var(--petrol-dk); transform: translateY(-1px); }
.btn-ghost{ color: var(--ink); border-bottom: 1px solid var(--ink); padding: 15px 2px; }

.strata{ display:flex; height: 14px; margin-top: 90px; border-radius: 2px; overflow:hidden; }
.strata span{ flex:1; }
.strata .s1{ background: #C9A66B; }
.strata .s2{ background: #A0714E; }
.strata .s3{ background: var(--petrol); }
.strata .s4{ background: #8A9BA8; }
.strata-legend{
  display:flex; gap: 28px; margin-top: 12px; flex-wrap:wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft);
}
.strata-legend i{ display:inline-block; width:9px; height:9px; border-radius:1px; margin-right:6px; vertical-align: -1px; }

/* ============ PROBLEM ============ */
.problem-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items:start; margin-top: 50px; }
@media (max-width: 800px){ .problem-grid{ grid-template-columns: 1fr; gap: 40px; } }
.layer h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 16ch; }
.problem-list{ list-style:none; margin: 32px 0 0; padding:0; display:flex; flex-direction:column; gap:22px; }
.problem-list li{ display:flex; gap:16px; align-items:flex-start; color: var(--ink-soft); }
.problem-list .n{ font-family: var(--mono); font-size:13px; color: var(--clay-dk); padding-top:3px; flex-shrink:0; }
.quote-card{
  background: var(--paper-dim); border: 1px solid var(--line); border-radius: 4px;
  padding: 34px; font-size: 16px; color: var(--ink-soft);
}
.quote-card .mark-num{ font-family: var(--mono); font-size:12px; color: var(--clay-dk); display:block; margin-bottom: 14px; }

/* ============ FEATURES ============ */
.feature-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 2px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 800px){ .feature-grid{ grid-template-columns: 1fr; } }
.feature{ background: var(--paper); padding: 38px; }
.feature .k{ font-family: var(--mono); font-size:12px; color: var(--clay-dk); margin-bottom: 14px; }
.feature h3{ font-size: 21px; margin-bottom: 10px; }
.feature p{ color: var(--ink-soft); margin:0; font-size: 15.5px; }

/* ============ BEDROCK (compliance) ============ */
.bedrock{ background: var(--bedrock); color: var(--bedrock-tx); border-bottom: none; }
.bedrock .eyebrow{ color: #D9A26C; }
.bedrock .eyebrow::before{ background:#D9A26C; }
.bedrock h2{ color: var(--bedrock-tx); max-width: 22ch; }
.bedrock .sub{ color: #AEB8BC; max-width: 52ch; margin-top:18px; font-size:16.5px; }
.norms{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 56px; background: rgba(255,255,255,.1); }
@media (max-width: 800px){ .norms{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .norms{ grid-template-columns: 1fr; } }
.norm{ background: var(--bedrock); padding: 26px 22px; }
.norm .code{ font-family: var(--mono); font-size: 13px; color:#D9A26C; display:block; margin-bottom:8px; }
.norm .label{ font-size: 14.5px; color:#C7CDCF; }

/* ============ HOW IT WORKS ============ */
.steps{ margin-top: 56px; display:flex; flex-direction:column; }
.step{ display:grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child{ border-bottom: 1px solid var(--line); }
.step .depth{ font-family: var(--mono); font-size: 13px; color: var(--clay-dk); padding-top: 4px; }
.step h3{ font-size: 19px; margin-bottom: 8px; }
.step p{ color: var(--ink-soft); margin:0; max-width: 58ch; }

/* ============ FINAL CTA / CONTACT ============ */
.final{ background: var(--paper-dim); }
.final-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 50px; }
@media (max-width: 860px){ .final-grid{ grid-template-columns: 1fr; gap: 40px; } }
.final h2{ font-size: clamp(1.8rem,3.4vw,2.6rem); max-width: 14ch; }
.final .sub{ color: var(--ink-soft); margin-top: 18px; max-width: 40ch; }
form{ display:flex; flex-direction:column; gap: 16px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.field input, .field textarea{
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: 12px 14px; resize: vertical; width:100%;
}
.field input:focus, .field textarea:focus{ outline: 2px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.submit-row{ margin-top:6px; }
.submit-row .btn-primary{ font-size:14px; }
.form-notice{
  font-family: var(--mono); font-size: 13px; padding: 12px 16px; border-radius: 3px; margin-bottom: 6px;
}
.form-notice.ok{ background: #E4EAE0; color: var(--sage); border: 1px solid #C7D4BF; }
.form-notice.err{ background: #F3DFD3; color: var(--clay-dk); border: 1px solid #E4C2A8; }

/* ============ FOOTER ============ */
footer{ padding: 44px 0; }
.foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap: 14px; }
.foot-row p{ font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin:0; }
.foot-links{ display:flex; gap:22px; }
.foot-links a{ font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); text-decoration:none; }
.foot-links a:hover{ color: var(--clay-dk); }

/* reveal on scroll */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }
