/* ==========================================================================
   VUCHE Labs · Nuit sobre — feuille de style partagée des pages statiques
   Tokens alignés sur docs/design/vuche-nuit-sobre/tokens.css et src/index.css.
   Encre chaude, or signal, terracotta « temps exposé », Fraunces + Inter.
   ========================================================================== */

:root {
  --bg: #101713;
  --band: #0c120f;
  --surface: #172220;
  --surface-2: #1d2a26;
  --border: rgba(240, 234, 224, 0.1);
  --border-strong: rgba(240, 234, 224, 0.18);
  --fg: #f0eae0;
  --fg-2: #e6ebe8;
  --fg-3: #c3cec8;
  --muted: #b9c4bf;
  --muted-2: #93a19a;
  --meta: #8a9891;
  --accent: #d1a24a;
  --accent-2: #e2b65c;
  --accent-bright: #edc97a;
  --accent-soft: #2b2417;
  --clay: #d08a5e;
  --clay-2: #e09b6f;
  --clay-soft: #33251b;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-3100e775e8.woff2') format('woff2');
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin-7234ed860a.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-bright);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(209, 162, 74, 0.28);
  color: var(--fg);
}

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .wrap {
    padding-inline: 2rem;
  }
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 23, 19, 0.92);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 4rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}
.logo svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.logo em {
  color: var(--accent);
  font-style: normal;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar {
  display: none;
}
.site-nav a {
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 700px) {
  .site-nav a {
    padding: 0.5rem 0.55rem;
    font-size: 0.68rem;
  }
}

/* --------------------------------------------------------------------------
   Typographie éditoriale
   -------------------------------------------------------------------------- */
.container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}
.container.wide {
  max-width: 60rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: var(--meta);
}
.breadcrumbs a {
  color: var(--muted-2);
}
.breadcrumbs a:hover {
  color: var(--accent-2);
}
.breadcrumbs [aria-current] {
  color: var(--muted-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-top: 1rem;
  text-wrap: balance;
}
h1 em,
h1 span {
  color: var(--accent);
  font-style: normal;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--fg);
  margin: 3rem 0 1rem;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin: 1.75rem 0 0.5rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 1.25rem 0 2rem;
  max-width: 42rem;
}

p {
  margin-bottom: 1rem;
  color: var(--muted);
  text-wrap: pretty;
}

strong {
  color: var(--fg-3);
  font-weight: 600;
}

ul {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  list-style: none;
}
ul li {
  position: relative;
  margin-bottom: 0.65rem;
  color: var(--muted);
}
ul li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--muted-2);
  font-style: italic;
  font-size: 0.9375rem;
}

.highlight {
  background: var(--accent-soft);
  border: 1px solid rgba(209, 162, 74, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.highlight p {
  color: var(--fg-3);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.dropcap::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 4.4em;
  font-weight: 600;
  line-height: 0.75;
}

/* --------------------------------------------------------------------------
   Composants
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.card h3 {
  margin-top: 0;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
  margin: 1rem 0 0.25rem;
}
.price-note {
  font-size: 0.875rem;
  color: var(--meta);
}
.range {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--meta);
  margin-left: 0.4rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #101713;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-md);
  margin-top: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cta:hover {
  background: var(--accent-2);
  color: #101713;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}
.cta svg {
  width: 18px;
  height: 18px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.price-card {
  background: var(--accent-soft);
  border: 1px solid rgba(209, 162, 74, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.price-card .val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
}
.price-card .lbl {
  font-size: 0.8125rem;
  color: var(--meta);
  margin-top: 0.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--meta);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
td {
  color: var(--muted);
}
td:first-child {
  color: var(--fg-3);
  font-weight: 600;
  min-width: 150px;
}
.winner {
  color: var(--accent);
  font-weight: 700;
}
.disclaimer {
  font-size: 0.8125rem;
  color: var(--meta);
  font-style: italic;
  margin-top: 0.5rem;
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.box h3 {
  margin-top: 0;
}
.box p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Formulaires --- */
.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-3);
}
.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--fg-2);
  font: inherit;
  transition: border-color 0.15s ease;
}
.input::placeholder {
  color: var(--meta);
}
.input:focus {
  border-color: rgba(209, 162, 74, 0.6);
  outline: none;
  box-shadow: 0 0 0 2px rgba(209, 162, 74, 0.35);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.consent input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}
.form-note {
  font-size: 0.875rem;
  color: var(--muted-2);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

/* --- Blog --- */
.article-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.article-card:hover {
  border-color: rgba(209, 162, 74, 0.45);
  transform: translateY(-2px);
}
.article-card .date {
  font-size: 0.8125rem;
  color: var(--meta);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.article-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.article-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0;
}
.article-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(209, 162, 74, 0.3);
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  margin-top: 0.75rem;
  font-weight: 600;
}
.post-date {
  font-size: 0.875rem;
  color: var(--meta);
  margin: 1.25rem 0 0.25rem;
}

/* --- Voir aussi & retour --- */
.see-also {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.see-also h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.see-also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.see-also-grid a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.see-also-grid a:hover {
  border-color: rgba(209, 162, 74, 0.45);
  transform: translateY(-2px);
}
.see-also-grid strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.see-also-grid span {
  font-size: 0.8125rem;
  color: var(--meta);
}
.back {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--meta);
}
.back a {
  color: var(--muted-2);
}
.back a:hover {
  color: var(--accent-2);
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--band);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}
.foot-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
}
.foot-brand span {
  color: var(--accent);
}
.foot-desc {
  font-size: 0.875rem;
  color: var(--muted-2);
  margin-top: 0.75rem;
  max-width: 20rem;
}
.foot-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}
.foot-links {
  list-style: none;
  padding: 0;
}
.foot-links li {
  margin-bottom: 0.5rem;
}
.foot-links li::before {
  display: none;
}
.foot-links a {
  color: var(--muted-2);
  font-size: 0.875rem;
}
.foot-links a:hover {
  color: var(--accent-2);
}
.foot-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--meta);
}
.foot-copy {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--meta);
}

/* --------------------------------------------------------------------------
   Réduction de mouvement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
