/* ============================================================
   Ardenlock — Conseil en Intelligence Artificielle
   Palette: Stone-white, graphite, soft slate
   ============================================================ */

:root {
  --stone: #f4f2ed;
  --stone-deep: #e9e6df;
  --paper: #fbfaf7;
  --graphite: #2b2f36;
  --graphite-soft: #4a4f57;
  --slate: #6b7280;
  --line: #d8d4ca;
  --accent: #3f5a4d;       /* muted institutional green */
  --accent-soft: #e5ebe7;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(43,47,54,.04), 0 8px 24px rgba(43,47,54,.06);
  --radius: 4px;
  --maxw: 1180px;
  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--graphite);
  background: var(--stone);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,242,237,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-display); font-size: 21px; color: var(--graphite); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 600; }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a { color: var(--graphite-soft); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--graphite); color: var(--stone) !important;
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--graphite); display: block; }

/* ---------- Hero ---------- */
.hero { padding: 86px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--graphite-soft); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--graphite); color: var(--stone); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--graphite); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--graphite); }

.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 6px; box-shadow: var(--shadow);
  width: 100%; height: 480px; object-fit: cover;
  filter: grayscale(.25) contrast(1.02);
}
.hero-card {
  position: absolute; bottom: -26px; left: -26px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px; padding: 18px 22px; box-shadow: var(--shadow);
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--graphite-soft);
}
.hero-card .num { font-family: var(--ff-display); font-size: 30px; color: var(--graphite); display: block; }

/* ---------- Trust strip ---------- */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 30px 24px; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: none; }
.strip-item .num { font-family: var(--ff-display); font-size: 30px; color: var(--graphite); }
.strip-item .lbl { font-size: 13.5px; color: var(--slate); margin-top: 4px; }

/* ---------- Section base ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 38em; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--graphite-soft); font-size: 17px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.svc {
  padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; background: var(--paper); transition: background .2s ease;
}
.svc:hover { background: var(--white); }
.svc-grid .svc:nth-child(3n) { border-right: none; }
.svc-grid .svc:nth-last-child(-n+3) { border-bottom: none; }
.svc .idx { font-family: var(--ff-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.svc h3 { font-size: 1.32rem; margin: 14px 0 10px; }
.svc p { font-size: 15px; color: var(--graphite-soft); }

/* ---------- Approach (process) ---------- */
.approach { background: var(--graphite); color: var(--stone); }
.approach .eyebrow { color: #9aa3a0; }
.approach h2 { color: var(--stone); }
.approach .section-head p { color: #b6bbc1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { border-top: 2px solid var(--accent); padding-top: 20px; }
.step .st-num { font-family: var(--ff-mono); font-size: 13px; color: #8d978f; }
.step h4 { color: var(--stone); font-size: 1.18rem; margin: 10px 0 8px; }
.step p { color: #aeb4bb; font-size: 14.5px; }

/* ---------- Feature / image split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: 6px; height: 420px; object-fit: cover; box-shadow: var(--shadow); filter: grayscale(.2); }
.split ul { list-style: none; margin-top: 22px; }
.split li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; font-size: 15.5px; }
.split li::before { content: "—"; color: var(--accent); font-weight: 700; }

/* ---------- Pricing ---------- */
.pricing { background: var(--paper); border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 34px 30px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--graphite); box-shadow: var(--shadow); position: relative; }
.plan.featured::after {
  content: "Recommandé"; position: absolute; top: -12px; left: 30px;
  background: var(--accent); color: var(--white); font-size: 11px; font-family: var(--ff-mono);
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
}
.plan h3 { font-size: 1.4rem; margin-bottom: 6px; }
.plan .desc { font-size: 14px; color: var(--slate); min-height: 42px; }
.plan .price { font-family: var(--ff-display); font-size: 2.7rem; margin: 18px 0 4px; }
.plan .price span { font-size: 1rem; font-family: var(--ff-body); color: var(--slate); }
.plan .per { font-size: 13px; color: var(--slate); margin-bottom: 22px; }
.plan ul { list-style: none; margin-bottom: 26px; flex: 1; }
.plan li { padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--stone-deep); color: var(--graphite-soft); }
.plan li::before { content: "✓"; color: var(--accent); margin-right: 9px; font-weight: 700; }
.plan .btn { text-align: center; }

/* ---------- Testimonial ---------- */
.quote { max-width: 50em; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--ff-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: var(--graphite); }
.quote .cite { margin-top: 24px; font-size: 14px; color: var(--slate); font-family: var(--ff-mono); letter-spacing: .04em; }

/* ---------- Contact ---------- */
.contact { background: var(--graphite); color: var(--stone); }
.contact .eyebrow { color: #9aa3a0; }
.contact h2 { color: var(--stone); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-info p { color: #b6bbc1; margin-bottom: 26px; font-size: 16px; }
.contact-info .row { margin-bottom: 18px; }
.contact-info .row .k { font-family: var(--ff-mono); font-size: 12px; color: #8d978f; letter-spacing: .1em; text-transform: uppercase; }
.contact-info .row .v { font-size: 16px; color: var(--stone); }
.contact-info .row a { color: var(--stone); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: #b6bbc1; font-family: var(--ff-mono); letter-spacing: .04em; }
.field input, .field select, .field textarea {
  background: #3a3f47; border: 1px solid #51565f; border-radius: var(--radius);
  padding: 12px 14px; color: var(--stone); font-family: var(--ff-body); font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #aeb4bb; }
.consent input { margin-top: 3px; }
.form-note { font-size: 13px; color: #8d978f; }
.form-success { background: var(--accent); color: var(--white); padding: 14px 16px; border-radius: var(--radius); display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #20242a; color: #aeb4bb; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { color: var(--stone); font-family: var(--ff-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #aeb4bb; font-size: 14.5px; }
.footer-grid a:hover { color: var(--stone); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--stone); font-family: var(--ff-display); font-size: 20px; margin-bottom: 14px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-about { font-size: 14px; max-width: 28em; }
.footer-bottom { border-top: 1px solid #333941; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal { background: var(--paper); }
.legal-body { max-width: 760px; margin: 0 auto; padding: 70px 28px; }
.legal-body h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal-body .updated { font-family: var(--ff-mono); font-size: 13px; color: var(--slate); margin-bottom: 36px; }
.legal-body h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal-body p, .legal-body li { color: var(--graphite-soft); margin-bottom: 12px; font-size: 15.5px; }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.back-link { display: inline-block; margin-bottom: 30px; font-family: var(--ff-mono); font-size: 13px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--graphite); color: var(--stone);
  padding: 20px 0; box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 28px; justify-content: space-between; flex-wrap: wrap; }
.cookie-inner p { font-size: 14px; color: #c4c9cf; max-width: 60ch; }
.cookie-inner a { color: var(--stone); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions button { padding: 11px 22px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.btn-accept { background: var(--accent); color: var(--white); }
.btn-decline { background: transparent; color: var(--stone); border-color: #51565f; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px 28px; gap: 18px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { height: 340px; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(2) { border-right: none; }
  .strip-item:nth-child(1), .strip-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { border-right: none !important; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split img { height: 300px; order: -1; }
  .price-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 520px) {
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: none !important; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-card { left: 0; }
}
