/**
 * Dropcolis — styles de base partagés.
 *
 * Complète les jetons Tailwind de /js/dc-theme.js : typographie de base,
 * surtitres et champs de formulaire, identiques sur toutes les pages.
 * CSS pur : ce fichier est servi tel quel, sans étape de compilation.
 */

/* ---- Typographie ---- */
body {
  font-family: Poppins, system-ui, sans-serif;
  color: #101828;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.022em;
}

h1 { letter-spacing: -0.025em; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { overflow-x: hidden; }

/* Les ancres ne doivent pas passer sous la barre de navigation fixe */
[id] { scroll-margin-top: 6rem; }

/* ---- Surtitre monospace en capitales ---- */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ---- Champs de formulaire ---- */
.field {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-radius: 9px;
  border: 1px solid #dcdfe6;
  background: #fff;
  font-size: 15px;
  color: #101828;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field::placeholder { color: #9aa2b1; }

.field:focus {
  outline: none;
  border-color: #28519F;
  box-shadow: 0 0 0 3px rgba(40, 81, 159, 0.14);
}

.field:disabled {
  background: #f4f6fa;
  color: #6b7488;
}

textarea.field { resize: vertical; }

/* Selects : chevron identique sur toutes les plateformes (iOS inclus) */
select.field {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1em;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7488;
  margin-bottom: 0.375rem;
}

/* ---- Barre de défilement ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #28519F; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1c3d7d; }

html {
  scrollbar-width: thin;
  scrollbar-color: #28519F #f1f1f1;
}
