/* Charte graphique Léo David — design system (chargé après tailwind.css) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: optional;
  src: url('fonts/inter-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/ibm-plex-mono-600.woff2') format('woff2');
}

:root {
  --bg: oklch(0.98 0.004 240);
  --text: oklch(0.2 0.014 240);
  --muted: oklch(0.46 0.02 240);
  --accent: oklch(0.5 0.14 195);
  --accent-hover: oklch(0.42 0.14 195);
  --accent-soft-bg: oklch(0.93 0.045 195);
  --accent-soft-text: oklch(0.4 0.13 195);
  --card-bg: oklch(0.955 0.008 240);
  --border: oklch(0.88 0.012 240);
  --white: oklch(0.99 0.004 240);
}

body,
.font-sans {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.font-mono,
.kicker,
[data-lang-flag] {
  font-family: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: #fff; }

/* ===== Kicker (eyebrow) ===== */
.kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== Titres ===== */
.h1-hero {
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--text);
}
@media (min-width: 768px) {
  .h1-hero { font-size: 52px; letter-spacing: -1px; }
}
.h1-page {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--text);
}
@media (min-width: 768px) {
  .h1-page { font-size: 40px; letter-spacing: -0.5px; }
}
.h2-section {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
@media (min-width: 768px) {
  .h2-section { font-size: 28px; }
}
.lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
@media (min-width: 768px) {
  .lead { font-size: 18px; }
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
@media (min-width: 768px) {
  .section-sub { font-size: 16px; }
}

/* ===== Cartes plates ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.card-sm { padding: 20px; }
.card-lg { padding: 32px; }
.card h3, .card-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}
.card p, .card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft-bg);
  color: var(--accent-soft-text);
  flex: none;
}
.card-icon img { width: 20px; height: 20px; object-fit: contain; }
.card-icon svg { width: 20px; height: 20px; }
.card-link { text-decoration: none; transition: border-color .15s ease; }
.card-link:hover { border-color: var(--accent); }

.h2-card { font-size: 19px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.period-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  flex: none;
  overflow: hidden;
}
.logo-tile img { object-fit: contain; }

.info-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.info-value { font-size: 15.5px; font-weight: 500; color: var(--text); }
.info-value a { color: var(--text); text-decoration: none; }
.info-value a:hover { color: var(--accent); }
.bullet-dot { color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}

/* ===== Boutons (radius 6px, pas de pilule) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); border: 1px solid transparent; }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 13.5px; padding: 9px 16px; }

/* ===== Puces / tags ===== */
.chip-accent {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  background: var(--accent-soft-bg);
  color: var(--accent-soft-text);
  padding: 6px 12px;
  border-radius: 5px;
}
.chip-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}
.chip-outline img { width: 14px; height: 14px; }
.status-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--accent-soft-text);
  background: var(--accent-soft-bg);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== Formulaire ===== */
.field-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.field-input:focus { border-color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.logo-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
}
.logo-box img { width: 100%; height: 100%; display: block; }

.nav-link { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); font-weight: 600; }

[data-lang-flag] { font-size: 0.95rem; line-height: 1; }

.nav-link-mobile {
  display: block;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.nav-link-mobile:hover { background: rgba(0,0,0,.04); color: var(--text); }
.nav-link-mobile[aria-current="page"] { background: var(--accent-soft-bg); color: var(--accent-soft-text); font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
}
.site-footer .footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
