/* ==========================================================================
   GPS Track — couche de composants (chargée après Tailwind Play CDN)
   Direction : ad.neo-swiss + tec.instrument + col.earthy (Casa Terrecut)
   ========================================================================== */

:root {
  --gpst-ink: #3A3D3E;
  --gpst-terra: #E76F51;
  --gpst-terra-dk: #C4523A;
  --gpst-teal: #2A9D8F;
  --gpst-sand: #E9C46A;
  --gpst-paper: #FAF5EC;
  --gpst-surface: #F1E7D7;
  --gpst-muted: #7C7466;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--gpst-paper);
  color: var(--gpst-ink);
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern";
  overflow-x: hidden;
}

.font-display { font-family: 'Syne', 'Karla', sans-serif; }

::selection { background: var(--gpst-sand); color: var(--gpst-ink); }

/* --- Titres ------------------------------------------------------------- */

h1, h2, h3, h4 { font-family: 'Syne', 'Karla', sans-serif; font-weight: 700; }

.display-xl {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8.2vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.028em;
}
.display-md {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* --- Étiquettes techniques --------------------------------------------- */

.label-tech {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gpst-muted);
  margin-bottom: 0.75rem;
}
.label-tech-dark { color: var(--gpst-sand); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* --- Navigation --------------------------------------------------------- */

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gpst-ink); color: var(--gpst-paper);
  padding: 12px 20px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
}
.skip-link:focus { left: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}
.nav-link:hover, .nav-link:focus-visible { border-bottom-color: var(--gpst-terra); }
.nav-link[aria-current="page"] { border-bottom-color: var(--gpst-terra); font-weight: 700; }

.dropdown-panel {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 320px; padding: 14px 0;
  background: var(--gpst-paper);
  border: 1px solid var(--gpst-sand);
  box-shadow: 0 18px 40px -24px rgba(58, 61, 62, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}
[data-dropdown]:hover .dropdown-panel,
[data-dropdown]:focus-within .dropdown-panel,
[data-dropdown].is-open .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-item {
  display: block; padding: 8px 20px; font-size: 14px; line-height: 1.4;
  color: var(--gpst-ink); transition: background-color 120ms ease, color 120ms ease;
}
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--gpst-terra); color: #fff; }
.dropdown-sep { display: block; height: 1px; margin: 8px 20px; background: var(--gpst-sand); }

.mobile-link {
  display: block; padding: 10px 0; border-bottom: 1px solid rgba(233, 196, 106, 0.35);
  font-size: 15px;
}

/* --- Liens -------------------------------------------------------------- */

a { color: inherit; }
.link-accent {
  color: var(--gpst-terra-dk);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 140ms ease, background-color 140ms ease;
}
.link-accent:hover { background: var(--gpst-terra); border-color: var(--gpst-terra); color: #fff; }

.footer-link { color: rgba(241, 231, 215, 0.78); transition: color 140ms ease; }
.footer-link:hover { color: var(--gpst-sand); }
.footer-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gpst-sand); font-family: 'Karla', sans-serif;
}

/* --- Boutons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--gpst-terra-dk); color: #fff; }
.btn-primary:hover { background: var(--gpst-terra); }
.btn-dark { background: var(--gpst-ink); color: var(--gpst-paper); }
.btn-dark:hover { background: var(--gpst-terra-dk); }
.btn-ghost { border-color: var(--gpst-ink); color: var(--gpst-ink); background: transparent; }
.btn-ghost:hover { background: var(--gpst-ink); color: var(--gpst-paper); }
.btn-light { border-color: var(--gpst-sand); color: var(--gpst-paper); background: transparent; }
.btn-light:hover { background: var(--gpst-sand); color: var(--gpst-ink); }

/* --- Blocs -------------------------------------------------------------- */

.rule { height: 1px; background: var(--gpst-sand); border: 0; }
.rule-ink { height: 1px; background: rgba(58, 61, 62, 0.16); border: 0; }

.band-ink { background: var(--gpst-ink); color: var(--gpst-paper); }
.band-sand { background: var(--gpst-sand); color: var(--gpst-ink); }
.band-surface { background: var(--gpst-surface); color: var(--gpst-ink); }

.card {
  background: #fff;
  border: 1px solid rgba(58, 61, 62, 0.14);
  display: flex; flex-direction: column;
  height: 100%;
  transition: border-color 140ms ease, transform 140ms ease;
}
.card:hover { border-color: var(--gpst-terra); }
.card-media { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--gpst-surface); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-action {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; width: 100%;
  background: var(--gpst-ink); color: var(--gpst-paper);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  transition: background-color 140ms ease;
}
.card:hover .card-action { background: var(--gpst-terra-dk); }

.meta-strip {
  border-top: 1px solid var(--gpst-sand);
  border-bottom: 1px solid var(--gpst-sand);
  background: var(--gpst-surface);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
}

/* --- Tableaux de spécifications ---------------------------------------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; vertical-align: top; }
.spec-table thead th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  border-bottom: 2px solid var(--gpst-ink); font-weight: 700; white-space: nowrap;
}
.spec-table tbody tr { border-bottom: 1px solid rgba(58, 61, 62, 0.14); }
.spec-table tbody th { font-weight: 700; width: 38%; }
.spec-table tbody td { font-variant-numeric: tabular-nums; }
.spec-table-compact th, .spec-table-compact td { padding: 9px 12px; font-size: 13.5px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Formulaires -------------------------------------------------------- */

.field {
  width: 100%; height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid rgba(58, 61, 62, 0.28);
  font-family: inherit; font-size: 15px; color: var(--gpst-ink);
  transition: border-color 140ms ease;
}
.field:focus { outline: 2px solid var(--gpst-terra); outline-offset: 1px; border-color: var(--gpst-terra); }
textarea.field { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.field-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }

/* --- Accordéon ---------------------------------------------------------- */

.acc { border-top: 1px solid rgba(58, 61, 62, 0.2); }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 6px; top: 26px;
  width: 10px; height: 10px; border-right: 2px solid var(--gpst-terra); border-bottom: 2px solid var(--gpst-terra);
  transform: rotate(45deg); transition: transform 160ms ease;
}
.acc[open] summary::after { transform: rotate(-135deg); top: 30px; }
.acc-body { padding: 0 40px 20px 0; color: #4b4a44; font-size: 15px; }
.acc-body p + p { margin-top: 0.8em; }

/* --- Révélation --------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Hero --------------------------------------------------------------- */

.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(58,61,62,0.86) 0%, rgba(58,61,62,0.62) 46%, rgba(58,61,62,0.28) 100%); }

/* --- Divers ------------------------------------------------------------- */

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px; border-left: 2px solid var(--gpst-teal); border-bottom: 2px solid var(--gpst-teal);
  transform: rotate(-45deg);
}
.check-list-cross li::before {
  border-left-color: var(--gpst-terra); border-bottom-color: var(--gpst-terra);
  border-right: none; transform: rotate(45deg) translate(-2px, 3px); height: 0; width: 12px; border-left-width: 2px;
}

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gpst-teal); margin-right: 8px; }
.status-dot-warn { background: var(--gpst-terra); }

.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gpst-terra-dk); }
.kicker-light { color: var(--gpst-sand); }

.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--gpst-terra); width: 0; z-index: 70; }

.grid-lines { background-image: linear-gradient(90deg, rgba(58,61,62,0.08) 1px, transparent 1px); background-size: 8.333% 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
