/* ============================================================
   OneClick — Design System
   Institutionnel & sérieux · Bleu marine + Orange
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Brand — navy scale */
  --navy-900: #06202F;
  --navy-800: #0A2C40;
  --navy-700: #103C56;
  --navy-600: #18506E;
  --navy-500: #266A8C;
  --navy-100: #E6EEF3;

  /* Brand — orange */
  --orange: #F37623;
  --orange-600: #E06410;
  --orange-700: #C2530A;
  --orange-100: #FDEBDC;
  --orange-050: #FFF5EC;

  /* Neutrals — warm-tinted */
  --paper: #FAF8F4;
  --paper-2: #F2EFE9;
  --card: #FFFFFF;
  --line: #E7E2D9;
  --line-soft: #EFEBE3;
  --ink: #15212B;
  --ink-2: #44505A;
  --ink-3: #6E7880;

  /* Status */
  --green: #1F8A5B;
  --green-bg: #E6F3EC;

  /* Type */
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(6,32,47,.06), 0 1px 3px rgba(6,32,47,.05);
  --sh-2: 0 4px 14px rgba(6,32,47,.08), 0 2px 6px rgba(6,32,47,.05);
  --sh-3: 0 18px 50px rgba(6,32,47,.16), 0 8px 18px rgba(6,32,47,.08);

  /* Layout */
  --maxw: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

/* Masquer toutes les barres de défilement (scroll conservé) */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

html { scroll-behavior: smooth; }

/* Empêcher tout défilement horizontal de la page */
html, body { overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--orange);
  display: inline-block;
}

.h-display { font-size: clamp(34px, 6vw, 62px); font-weight: 800; }
.h-1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; }
.h-2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(243,118,35,.32); }
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 10px 22px rgba(243,118,35,.4); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); background: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--paper-2); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Generic card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--navy-100); color: var(--navy-700);
}
.chip-orange { background: var(--orange-100); color: var(--orange-700); }
.chip-green { background: var(--green-bg); color: var(--green); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--navy-800); }
.field .req { color: var(--orange-600); }
.input, .select, .textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(24,80,110,.12);
}
.input.err, .select.err { border-color: #D64545; box-shadow: 0 0 0 4px rgba(214,69,69,.1); }
.err-msg { color: #C13434; font-size: 12.5px; font-weight: 500; }
.textarea { resize: vertical; min-height: 110px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-3); }
.grid { display: grid; gap: 22px; }
.flex { display: flex; }
.divider { height: 1px; background: var(--line); border: 0; }

/* hide scrollbar utility for tab rails */
.no-sb::-webkit-scrollbar { display: none; }
.no-sb { -ms-overflow-style: none; scrollbar-width: none; }
