/** * Trouve-KA — styles globaux (système « éditorial sharp » de Groupe KA) * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * * Typo display Space Grotesk / texte Inter / micro-étiquettes JetBrains Mono * Signature : bordures encre + ombres décalées (néo-brutalisme raffiné) * Accent bleu pâle marine #b9cfee sur encre */ @tailwind base; @tailwind components; @tailwind utilities; :root { --paper: #f5f3ee; --surface: #ffffff; --surface-2: #faf9f5; --ink: #141814; --ink-2: #4d5551; --ink-3: #8b928c; --line: rgba(20, 24, 20, 0.14); --line-strong: rgba(20, 24, 20, 0.85); --green: #1c5c41; --green-deep: #123f2e; --lime: #b9cfee; --lime-soft: #e6eef9; --amber: #e8a33d; --amber-soft: #fdf3e2; --danger: #b3423a; --danger-soft: #fbe9e7; --r-card: 10px; --r-ctl: 6px; --shadow-flat: 0 1px 2px rgba(20, 24, 20, 0.05); --shadow-off: 6px 6px 0 var(--ink); --shadow-off-soft: 8px 8px 0 rgba(20, 24, 20, 0.08); --font-display: var(--font-space-grotesk), system-ui, sans-serif; --font-body: var(--font-inter), system-ui, sans-serif; --font-mono: var(--font-jetbrains), ui-monospace, monospace; } @layer base { html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; } /* Grain de film pleine page — jamais de z-index sur body > * (position: relative seulement) pour ne pas casser les utilitaires z-* de Tailwind. */ body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.35; z-index: 9999; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); } body > * { position: relative; } h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; } ::selection { background: var(--lime); color: var(--ink); } :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; } } @layer components { /* ---------- Micro-typographie ---------- */ .kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); } .kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); } .klabel { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); } .gk-display { font-family: var(--font-display); } .gk-mono { font-family: var(--font-mono); } /* Traitements de titre signature */ .outline-txt { color: transparent; -webkit-text-stroke: 2px var(--ink); } .hl { display: inline-block; background: var(--lime); border-radius: 8px; padding: 0 10px 2px; transform: rotate(-1deg); } /* ---------- Cartes ---------- */ .gk-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); } .gk-card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease; } .gk-card-hover:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-off); } /* ---------- Boutons ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: var(--r-ctl); font-family: var(--font-display); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease; } .btn:active { transform: translate(2px, 2px); box-shadow: none !important; } .btn-primary { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 rgba(20, 24, 20, 0.25); } .btn-primary:hover { background: var(--green-deep); } .btn-ghost { background: transparent; color: var(--ink); } .btn-ghost:hover { background: var(--lime); } .btn-lime { background: var(--lime); color: var(--ink); box-shadow: 4px 4px 0 rgba(185, 207, 238, 0.25); } .btn-lime:hover { background: var(--lime-soft); } /* ---------- Champs de formulaire ---------- */ .field { display: block; width: 100%; padding: 11px 14px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-ctl); font-family: var(--font-body); font-size: 14px; color: var(--ink); box-shadow: 3px 3px 0 rgba(20, 24, 20, 0.08); transition: box-shadow 0.15s ease; } .field::placeholder { color: var(--ink-3); } .field:focus { outline: 2px solid var(--green); outline-offset: 1px; box-shadow: 3px 3px 0 rgba(28, 92, 65, 0.25); } /* ---------- Pilules de stats ---------- */ .stat-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; box-shadow: 3px 3px 0 rgba(20, 24, 20, 0.12); } .pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--green); flex: none; } .pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--lime); animation: pulse 2.4s ease-out infinite; } /* ---------- Tableau éditorial ---------- */ .src-wrap { border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); overflow-x: auto; background: var(--surface); } .src-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .src-table th { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; text-align: left; color: var(--ink-3); background: var(--surface-2); padding: 10px 14px; border-bottom: 1.5px solid var(--ink); } .src-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } .src-table tr:last-child td { border-bottom: none; } .src-table tbody tr:hover { background: var(--surface-2); } /* ---------- Animations d'entrée ---------- */ .rise { opacity: 0; animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; } } @keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 70%, 100% { transform: scale(1.4); opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } /* ---------- Accessibilité ---------- */ @media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; } .rise { animation: none; opacity: 1; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } html { scroll-behavior: auto; } }