/* ==========================================================================
   ItsMyFace — v3 « clair + pastel »
   Fond clair, texte encre, accents pastel, cyan pour les actions.
   Aucune ombre sur les titres ni la navigation.
   ========================================================================== */

:root {
  --background: #f6f5f1;
  --foreground: #0e0e10;
  --card: #ffffff;
  --secondary: #efeee8;
  --muted: #e9e7e0;
  --muted-foreground: #6f6b64;
  --border: #e3e0d9;
  --accent: #0a8f7a;          /* turquoise profond (texte) */
  --accent-2: #4b5fd6;        /* lilas (texte) */
  --accent-3: #c04b9e;        /* rose (texte) */
  --accent-4: #8a7a00;        /* olive */
  --highlight: #00b8e6;       /* cyan actions */
  --highlight-contrast: #08212e;
  --accent-strong: #00b8e6;
  --ring: #00b8e6;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .05);
  --shadow-lg: 0 18px 50px rgba(20, 20, 30, .08);
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
}

html { color-scheme: light; }

body { background: #f6f5f1; color: #0e0e10; }

::selection { background: #c9f3ff; color: #08212e; }

h1, h2, h3, .display, .page-title, .site-nav, .brand-word { text-shadow: none; }

/* ---------------- Header : plat, sans ombre ---------------- */
.site-header {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: none;
}
.brand-mark, .brand-dot { color: var(--accent); }
.site-nav { box-shadow: none; }
.site-nav a { color: #3a3a3f; font-weight: 600; }
.site-nav a:hover { color: #000; background: #f0eee7; }
.site-nav a.is-active { background: #111; color: #fff; box-shadow: none; }
.lang-switch a.is-active { color: var(--accent); }
.nav-admin { color: #6f6b64; }
.nav-burger { border-color: var(--border); color: #0e0e10; box-shadow: none; }
@media (max-width: 860px) { .site-nav { background: #fff; box-shadow: none; border-bottom: 1px solid var(--border); } }

/* ---------------- Boutons ---------------- */
.btn { border-radius: 999px; font-weight: 700; }
.btn-primary { background: var(--highlight); border-color: var(--highlight); color: var(--highlight-contrast); box-shadow: none; }
.btn-primary:hover { background: #33c8ef; border-color: #33c8ef; color: var(--highlight-contrast); }
.btn-outline { border: 1px solid #111; color: #111; background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: #3a3a3f; }
.btn-ghost:hover { color: var(--accent); }

/* ---------------- Typo ---------------- */
.kicker, .accent-text { color: var(--accent); }
.display { color: #0e0e10; font-weight: 800; letter-spacing: -.055em; line-height: .96; }
h1, h2, h3, .page-title { color: #0e0e10; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.04em; }
.lede { color: #4a4a50; }
.muted, .footnote { color: var(--muted-foreground); }

/* ---------------- Cartes ---------------- */
.face-card, .step-card, .usecase-card, .contract-card, .creator-tool, .panel, .kpi {
  background: #fff; border: 1px solid var(--border); box-shadow: none; border-radius: 16px;
}
.face-card:hover { border-color: var(--highlight); transform: translateY(-3px); }
.face-body h3 { color: #0e0e10; }
.price-tag { background: #eeff9f; color: #111; font-weight: 800; }
.badge-cc0 { background: #e6faf4; color: var(--accent); }
.badge-ntl { background: #fff4d6; color: #8a6d00; }
.face-chips span, .chip { background: #f3f1ea; border: 1px solid var(--border); color: #4a4a50; }
.face-chips .chip-attitude { background: #fff6d9; border-color: #f0e3b0; color: #7a6600; }

/* ---------------- Formulaires ---------------- */
.filters, .filters input, .filters select, .admin-search input,
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid var(--border); color: #0e0e10; border-radius: 12px;
}
.filters input::placeholder, .field input::placeholder { color: #9a958c; }
.claim-consent { color: #4a4a50; }
.form-ok { background: #eefaf3; border-color: #bfe6d2; color: #0a7a4d; }
.form-error { background: #fdf0f0; border-color: #f0c6c6; color: #a12a2a; }

/* ---------------- Tableaux ---------------- */
.table-wrap { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
table th { color: #6f6b64; border-bottom: 1px solid var(--border); }
table td { border-bottom: 1px solid #efece6; }
table tr:hover td { background: #faf9f5; }

/* ---------------- Blocs ---------------- */
.stat-band { background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.stat strong { color: #0e0e10; }
.creators-band { background: #fff; border-color: var(--border); }
.creators-band h2 { color: #0e0e10; }
.ig-card { background: #fff; border-color: var(--border); }
.ig-caption { color: #2a2a2e; }
.ig-date { color: #8a867e; }
.news-duo { background: #fff; border-color: var(--border); }
.news-duo-title { color: #0e0e10; }
.news-duo-body { color: #4a4a50; }
.news-duo-meta span { border-color: var(--border); color: #6f6b64; }
.imp-bar { background: #fff8e1; border-color: #f0dfa8; color: #6b5a12; }
pre { background: #0e0e10; border: 1px solid #232323; color: #d4ff3f; border-radius: 14px; }
.api-rules { background: #fff; border-color: var(--border); }
.api-band { background: #fff; border-color: var(--border); }
.site-footer { background: #efece5; color: #4a4a50; border-top: 1px solid var(--border); }
.footer-head { color: #0e0e10; }
.footer-col a { color: #4a4a50; }
.footer-col a:hover { color: var(--accent); }
.footer-badges span { border-color: var(--border); color: #4a4a50; }

/* ---------------- Hero Khaby ---------------- */
.hero-feature { position: relative; margin: 0; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: #eeece5; }
.hero-feature img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; display: block; }
.hero-feature figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .65rem .85rem; border-radius: 14px;
  background: rgba(10, 10, 11, .72); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: .78rem;
}
.hero-feature figcaption span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #8cf6d9; }

/* ---------------- API page ---------------- */
.api-hero-terminal { background: #0e0e10; border: 1px solid #232323; border-radius: 18px; padding: 1.1rem 1.2rem; font-family: var(--font-mono); font-size: .78rem; color: #d4ff3f; position: relative; }
.api-hero-terminal .prompt { color: #8a8a8a; }
.api-hero-terminal .copy-btn { position: absolute; top: .6rem; right: .6rem; background: #1a1a1a; border: 1px solid #2c2c2c; color: #cfcfcf; border-radius: 999px; font-size: .64rem; padding: .25rem .55rem; cursor: pointer; }
.api-hero-terminal .copy-btn:hover { border-color: #8cf6d9; color: #8cf6d9; }
.endpoint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.endpoint-card { border: 1px solid var(--border); border-radius: 18px; padding: 1.15rem 1.25rem; background: #fff; display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.endpoint-card:hover { transform: translateY(-3px); }
.endpoint-card.turquoise:hover { border-color: #0fbfa0; }
.endpoint-card.lilac:hover { border-color: #769aff; }
.endpoint-card.pink:hover { border-color: #f7aae0; }
.endpoint-card .method { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; color: #08212e; background: #8cf6d9; border-radius: 999px; padding: .2rem .55rem; align-self: flex-start; }
.endpoint-card.lilac .method { background: #c9d2ff; }
.endpoint-card.pink .method { background: #ffd9ef; }
.endpoint-card code { color: #0e0e10; font-size: .82rem; }
.endpoint-card p { margin: 0; font-size: .78rem; color: #6f6b64; }
.api-json { background: #0e0e10; border: 1px solid #232323; border-radius: 14px; padding: 1rem 1.2rem; font-family: var(--font-mono); font-size: .72rem; color: #d4ff3f; overflow: auto; max-height: 340px; white-space: pre; }
.api-step { display: flex; gap: .9rem; border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; background: #fff; }
.api-step .num { font-family: var(--font-mono); color: var(--accent-2); font-size: .8rem; }
.api-step h3 { margin: 0 0 .2rem; font-size: .95rem; }
.api-step p { margin: 0; font-size: .8rem; color: #6f6b64; }
.api-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.4rem; align-items: center; }
.api-hero-side { display: flex; flex-direction: column; gap: .7rem; }
.api-live-bar { display: flex; align-items: center; gap: .6rem; }
.api-steps { display: grid; gap: .6rem; }
@media (max-width: 900px) { .api-hero-grid, .endpoint-grid { grid-template-columns: 1fr; } }
