/* ============================================================
   ETIVA — Site vitrine
   Design tokens issus du handoff Claude Designer
   ============================================================ */

:root {
  --ink: #0B1526;
  --muted: #3A4658;
  --bg: #FAFBFD;
  --accent: #2762D9;
  --accent: oklch(0.52 0.16 255);
  --accent-light: #7FA8E8;
  --accent-light: oklch(0.72 0.13 245);
  --navy: #0B1E3D;
  --navy-card: #10294F;
  --navy-border: #23406E;
  --navy-muted: #B9C6DB;
  --tint: #EFF4FB;
  --tint-border: #D8E1EF;
  --border: #E3E8F0;
  --input-border: #C7D0DE;
  --grad: linear-gradient(180deg, #EAF1FA 0%, #DEE9F7 100%);
  --px: 72px;
  --py: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Archivo', sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; cursor: pointer; transition: opacity 0.15s ease; }
a:hover { opacity: 0.75; }

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

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ===== Boutons ===== */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 6px;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: #fff; border: 1.5px solid var(--input-border); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); font-weight: 700; padding: 18px 36px; border-radius: 8px; white-space: nowrap; }
.btn-accent-lg { background: var(--accent); color: #fff; font-weight: 700; padding: 18px 36px; border-radius: 8px; white-space: nowrap; }

/* ===== Eyebrows ===== */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.eyebrow.tight { margin-bottom: 20px; }
.eyebrow.on-dark { color: var(--accent-light); }
.eyebrow-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--px);
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-bars { display: flex; align-items: flex-end; gap: 3.5px; height: 30px; }
.logo-bars span { width: 8px; border-radius: 4px 4px 2px 2px; }
.logo-bars span:nth-child(1) { height: 14px; background: #9BB8E4; background: oklch(0.75 0.11 245); }
.logo-bars span:nth-child(2) { height: 22px; background: #4E7ED6; background: oklch(0.62 0.15 252); }
.logo-bars span:nth-child(3) { height: 30px; background: #1D4DB8; background: oklch(0.48 0.17 260); }
.logo-word { font-size: 24px; font-weight: 800; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 40px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a.active { color: var(--accent); }

/* ===== Headers de page ===== */
.hero {
  background: var(--grad);
  padding: 64px var(--px) 56px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 62px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 0 40px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { aspect-ratio: 1776 / 896; }
.hero-visual img, .split-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.page-header { background: var(--grad); padding: 56px var(--px) 48px; }
.page-header h1 {
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 900px;
  text-wrap: balance;
}
.page-header h1.no-sub { margin: 0; font-size: 48px; }
.page-header .lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 640px; }

/* ===== Bande chiffres ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.stats > div { padding: 36px var(--px); border-right: 1px solid var(--border); }
.stats > div:last-child { border-right: none; }
.stats .num { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.stats .cap { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ===== Sections ===== */
.section { padding: var(--py) var(--px); }
.section h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
}
.section h2.one-line { white-space: nowrap; }

/* ===== Cartes claires ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-tint {
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: 10px;
  padding: 40px;
}
.card-tint h3 { font-size: 23px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; }
.card-tint h3.one-line { white-space: nowrap; letter-spacing: -0.03em; }
.card-tint p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 24px; }
.card-tint p:last-child { margin-bottom: 0; }
.card-tint .more { color: var(--accent); font-weight: 600; font-size: 15px; }
.card-tint.engagement h3 { font-size: 22px; }

/* ===== Sections sombres ===== */
.dark { background: var(--navy); color: #fff; padding: var(--py) var(--px); }
.dark-intro { max-width: 900px; margin-bottom: 36px; }
.dark h2 { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 24px; }
.dark .lead { font-size: 17px; line-height: 1.65; color: var(--navy-muted); margin: 0; }
.cards-dark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-dark.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-dark {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  padding: 32px;
}
.card-dark h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.card-dark p { font-size: 14.5px; line-height: 1.6; color: var(--navy-muted); margin: 0; }
.card-dark .step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 16px;
}

/* ===== Grilles 2 colonnes ===== */
.split {
  padding: var(--py) var(--px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.bordered { border-bottom: 1px solid var(--border); }
.split.tinted { background: var(--tint); }
.split h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 24px; }
.split h2.md { font-size: 38px; }
.split p { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 0 32px; }
.split p + p { margin-top: -12px; }
.split p:last-child { margin-bottom: 0; }
.split .more { color: var(--accent); font-weight: 600; font-size: 16px; }
.split-visual { aspect-ratio: 1776 / 896; }
.split-visual.h280 { aspect-ratio: auto; height: 280px; }
.split-visual.h300 { aspect-ratio: auto; height: 300px; }
.bullets { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.bullets div { display: flex; gap: 12px; align-items: baseline; }
.bullets .arrow { color: var(--accent); font-weight: 700; }

/* ===== Encarts CTA ===== */
.cta {
  margin: 0 var(--px) var(--py);
  background: var(--accent);
  border-radius: 12px;
  padding: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.cta.spaced { margin-top: var(--py); }
.cta.navy { background: var(--navy); }
.cta h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
  white-space: nowrap;
}
.cta.navy h2 { white-space: normal; max-width: 560px; }

/* ===== Contact ===== */
.contact-grid {
  padding: var(--py) var(--px);
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 72px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--tint-border);
  border-radius: 12px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1.5px solid var(--input-border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input.invalid, .field textarea.invalid { border-color: #C43D3D; }
.field .err { font-size: 13px; color: #C43D3D; display: none; }
.field.show-err .err { display: block; }
.contact-form button {
  font-family: 'Archivo', sans-serif;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.contact-form button:hover { opacity: 0.75; }
/* Champ piège anti-spam : invisible pour les humains, rempli par les robots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.captcha-field input { max-width: 220px; }
.form-rgpd { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.form-rgpd a { color: var(--accent); font-weight: 600; }
.form-error {
  display: none;
  background: #FBEFEF;
  border: 1px solid #E3C4C4;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #8A2E2E;
}
.form-error.visible { display: block; }
.form-confirm {
  display: none;
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.form-confirm.visible { display: block; }
.contact-aside { display: flex; flex-direction: column; gap: 32px; }
.card-coord {
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: 12px;
  padding: 40px;
}
.card-coord .label, .card-navy .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.card-coord .label { color: var(--accent); }
.card-coord .name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card-coord .addr { font-size: 16px; line-height: 1.7; color: var(--muted); }
.card-coord .mail { margin-top: 20px; }
.card-coord .mail a { color: var(--accent); font-weight: 600; font-size: 16px; }
.card-navy { background: var(--navy); border-radius: 12px; padding: 40px; color: #fff; }
.card-navy .label { color: var(--accent-light); }
.card-navy .title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card-navy .text { font-size: 15px; line-height: 1.65; color: var(--navy-muted); }

/* ===== Mentions légales ===== */
.legal {
  padding: var(--py) var(--px);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.legal h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.legal p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.legal a { color: var(--accent); font-weight: 600; }

/* ===== FOOTER ===== */
.footer {
  background: #EAF1FA;
  border-top: 1px solid var(--tint-border);
  padding: 40px var(--px) 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  color: var(--muted);
  font-size: 14.5px;
}
.footer .logo { gap: 9px; margin-bottom: 16px; }
.footer .logo-bars { gap: 3px; height: 24px; }
.footer .logo-bars span { width: 6.5px; border-radius: 3px 3px 2px 2px; }
.footer .logo-bars span:nth-child(1) { height: 11px; }
.footer .logo-bars span:nth-child(2) { height: 17px; }
.footer .logo-bars span:nth-child(3) { height: 24px; }
.footer .logo-word { font-size: 20px; color: var(--ink); }
.footer-links { display: flex; gap: 32px; font-weight: 500; flex-wrap: wrap; }

/* ============================================================
   Responsive — la maquette est desktop-first (réf. 1440px) ;
   adaptation tablette / mobile.
   ============================================================ */
@media (max-width: 1180px) {
  :root { --px: 40px; }
  .hero h1 { font-size: 48px; }
  .page-header h1 { font-size: 44px; }
  .section h2, .dark h2 { font-size: 34px; }
  .section h2.one-line, .cta h2 { white-space: normal; }
  .split h2 { font-size: 32px; }
  .card-tint h3.one-line { white-space: normal; }
  .cards-dark.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 48px; }
}

@media (max-width: 900px) {
  :root { --px: 24px; --py: 44px; }
  .nav { flex-direction: column; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
  .nav-links { gap: 24px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
  .hero h1 { font-size: 38px; }
  .page-header h1 { font-size: 36px; }
  .page-header h1.no-sub { font-size: 32px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: none; border-bottom: 1px solid var(--border); }
  .stats > div:last-child { border-bottom: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-dark, .cards-dark.cols-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-visual { order: -1; }
  .cta { flex-direction: column; text-align: center; padding: 40px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
