/* Caviardage Cloud — styles partagés */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-regular.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-regular.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #0f5ad0;
  --danger: #c21f2e;
  --paper: #f7f8fa;
  --paper2: #e7ecf2;
  --ink: #111;
  --ink2: #4a4a4a;
  --ink3: #5a6472;
  --line: #d5dbe3;
  --line2: #b3bcc6;
  --cream: #f8efd9;
  --serif-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --serif-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--serif-ui); min-height: 100vh; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input:focus, button:focus, textarea:focus, select:focus {
  outline: 1px solid var(--accent); outline-offset: 1px;
}
kbd { font-family: var(--mono); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); }
::-webkit-scrollbar-thumb:hover { background: var(--ink3); }

/* Bandeau "SPA statique" proéminent en haut */
.trust-banner {
  background: #eef6ff;
  border-bottom: 1px solid #bdd6f4;
  padding: 10px 24px;
  font-size: 13px;
  color: #0b3f91;
  display: flex; align-items: center; gap: 14px; justify-content: center;
  flex-wrap: wrap;
}
.trust-banner b { font-weight: 600; }
.trust-banner .sep { color: #6b8bc6; }
.trust-banner a { text-decoration: underline; }

/* Header commun */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .inner {
  max-width: 1120px; margin: 0 auto;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; }
.seal {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif-display); font-size: 22px; font-weight: 500;
  font-style: italic;
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 3px var(--accent);
}
.brand-name { font-family: var(--serif-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--ink3); text-transform: uppercase; margin-top: 3px; }
nav.main { display: flex; gap: 24px; font-size: 14px; color: var(--ink2); }
nav.main a.active { color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
nav.main a:hover:not(.active) { color: var(--ink); }
nav.main a.host-bare { color: var(--ink3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #2f7d32;
  display: inline-block; margin-right: 4px; vertical-align: middle;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,125,50,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(47,125,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,125,50,0); }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 48px 48px 80px; }

h1.hero {
  font-family: var(--serif-display); font-weight: 400;
  font-size: 64px; line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 14px; color: var(--ink);
}
h1.hero em { font-style: italic; font-weight: 400; color: var(--accent); }
.lede {
  font-size: 17px; line-height: 1.55; max-width: 620px;
  color: var(--ink2); margin: 0 0 32px;
}

/* Boutons génériques */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 2px; font-size: 13px;
  font-family: var(--serif-ui); cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; border: 0; }
.btn-primary:hover { background: #000; }
.btn-danger { background: var(--danger); color: #fff; border: 0; font-weight: 500; }
.btn-danger:hover { background: #8b0019; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  padding: 12px 18px; background: var(--ink); color: #fff;
  font-size: 13px; border-radius: 2px;
  transform: translateY(20px); opacity: 0; transition: 0.25s;
  max-width: 360px;
}
.toast.on { transform: translateY(0); opacity: 1; }
.toast.err { background: var(--danger); }

/* Loader plein écran */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(247,248,250,0.92);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
  backdrop-filter: blur(4px);
}
.loader.on { display: flex; }
.spinner {
  width: 44px; height: 44px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader .msg {
  font-family: var(--serif-display); font-size: 20px;
  font-style: italic; color: var(--ink2);
}

/* Error bar */
.errbar {
  background: #fff4f5; border: 1px solid #e9c2c5;
  padding: 12px 16px; margin-bottom: 20px; border-radius: 2px;
  font-size: 14px; color: var(--danger);
}

/* Build badge dans le footer (auditable) */
.build-badge {
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 2px; display: inline-flex; align-items: center; gap: 6px;
}
.build-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #2f7d32; }

footer.bottom {
  max-width: 1120px; margin: 0 auto; padding: 24px 48px 48px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink3); gap: 16px; flex-wrap: wrap;
}
