/* =====================================================
   PrivateSource — Base styles
   @font-face self-hosted, reset, typo, atoms, buttons.
   Utilisé sur la landing /.
   Source : style inline www/index.html (l. 189-468).
   Chemins fonts ajustés depuis /assets/css/ vers /fonts/.
   ===================================================== */

/* ----- Self-hosted fonts (variable + subsets latin/latin-ext) ----- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../../fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../../fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ps-bg-card);
  color: var(--ps-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { text-wrap: balance; }
p, .section-lede { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ps-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ps-primary); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(var(--ps-primary-rgb), 0.18); color: var(--ps-text); }

/* ----- Layout ----- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

.accent-line { height: 4px; background: linear-gradient(90deg, var(--ps-primary) 0%, var(--ps-success) 100%); }

/* ----- Atoms : typography utilities ----- */
.eyebrow-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ps-primary);
  margin-bottom: 22px;
}
.eyebrow-mono::before {
  content: "// ";
  opacity: 0.55;
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ps-primary);
  margin-bottom: 28px;
}
.eyebrow-line::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--ps-primary);
  opacity: 0.5;
}

.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ps-primary);
}

.highlight-success {
  background: linear-gradient(180deg, transparent 64%, rgba(var(--ps-success-rgb), 0.22) 64%);
  padding: 0 2px;
  font-weight: 600;
  color: var(--ps-text);
}
.highlight-error {
  background: linear-gradient(180deg, transparent 64%, rgba(var(--ps-error-rgb), 0.18) 64%);
  padding: 0 2px;
  font-weight: 600;
  color: var(--ps-text);
}
.highlight-primary {
  background: linear-gradient(180deg, transparent 64%, rgba(var(--ps-primary-rgb), 0.18) 64%);
  padding: 0 2px;
  font-weight: 600;
  color: var(--ps-text);
}

/* ----- Utilitaires formulaire partagés (landing + blog) ----- */
/* Honeypot anti-spam : DOIT être masqué partout où un formulaire
   /submit.php est rendu, sinon un visiteur peut le remplir et être
   silencieusement traité comme un bot (e-mail perdu). */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
  white-space: nowrap;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition-property: transform, box-shadow, background-color, color;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
  white-space: nowrap; min-height: 44px;
  letter-spacing: -0.1px;
}
.btn-primary {
  background: var(--ps-cta-bg); color: var(--ps-text-white);
  padding: 14px 30px 14px 32px;
  border-radius: var(--ps-radius-pill);
  box-shadow: 0 4px 14px rgba(var(--ps-cta-shadow-rgb), 0.28);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--ps-cta-bg-dark); color: var(--ps-text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--ps-cta-shadow-rgb), 0.4);
  text-decoration: none;
}
.btn-primary--large {
  padding: 17px 36px 17px 38px;
  font-size: 16px;
}
.btn:active { transform: scale(0.96); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.4px;
  color: var(--ps-text-secondary);
  padding: 10px 0;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ps-primary); text-decoration: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: var(--fs-small);
  color: var(--ps-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--ps-border);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.btn-secondary:hover {
  color: var(--ps-text);
  text-decoration-color: var(--ps-text-secondary);
}

/* ----- Pulse animation (CTA discovery) ----- */
@media (prefers-reduced-motion: no-preference) {
  .pulse-once { animation: cta-pulse-once 1.4s ease-out 2.4s 1; }
}
@keyframes cta-pulse-once {
  0%   { box-shadow: 0 4px 14px rgba(var(--ps-cta-shadow-rgb), 0.28), 0 0 0 0 rgba(var(--ps-cta-shadow-rgb), 0.55); }
  50%  { box-shadow: 0 4px 14px rgba(var(--ps-cta-shadow-rgb), 0.28), 0 0 0 16px rgba(var(--ps-cta-shadow-rgb), 0); }
  100% { box-shadow: 0 4px 14px rgba(var(--ps-cta-shadow-rgb), 0.28), 0 0 0 0 rgba(var(--ps-cta-shadow-rgb), 0); }
}
