/* =========================================================
   PB Digital Solutions
   DA : « la lettre d'un artisan » — noir chaud · ivoire · or
   Typo : Space Grotesk / Inter / IBM Plex Mono
   ========================================================= */

:root {
  --bg:          #060509;
  --surface:     #0d0b10;
  --raised:      #14110c;

  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-gold:   rgba(224, 179, 71, 0.16);

  --text:        #f2f0e9;
  --muted:       #8f8d86;
  --soft:        #a7a49c;
  --dim:         #55544f;

  --gold:        #e0b347;
  --gold-hi:     #edc35c;
  --gold-soft:   rgba(224, 179, 71, 0.12);

  --violet:      #a78bfa;
  --teal:        #36e0c4;
  --amber:       #f5b301;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--gold); }

::selection { background: var(--gold); color: #141310; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Lien d'évitement ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #141310;
  background: var(--gold);
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn--solid {
  background: var(--gold);
  color: #141310;
  border-color: var(--gold);
  box-shadow: 0 10px 30px -14px rgba(224, 179, 71, 0.5);
}
.btn--solid:hover {
  background: var(--gold-hi);
  border-color: var(--gold-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(224, 179, 71, 0.6);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.header.is-scrolled {
  background: rgba(6, 5, 9, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-gold);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
  padding: 0 clamp(24px, 4vw, 48px);
}

.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark__badge {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  color: #141310;
  background: var(--gold);
}
.wordmark__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.nav { display: flex; gap: 32px; }
.nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }

/* CTA du header : variante outline or */
.header__cta {
  padding: 10px 20px;
  font-size: 0.86rem;
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}
.header__cta:hover { background: var(--gold); color: #141310; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 120;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Indicateurs latéraux ---------- */
.marks {
  position: fixed;
  left: clamp(16px, 3vw, 38px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.marks a {
  display: block;
  width: 18px; height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background 0.3s ease, width 0.3s var(--ease);
}
.marks a:hover { background: var(--muted); }
.marks a.is-active { width: 30px; background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section:not(.hero) { border-top: 1px solid var(--line-gold); }

.section__label {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 46px;
}
.section__sub { color: var(--soft); font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero { padding: 176px 0 96px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__sub {
  color: var(--soft);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-top: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ----- Carte signature du fondateur ----- */
.founder {
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background: linear-gradient(160deg, #120f09, #0b0a0e);
  padding: 34px;
  box-shadow: 0 44px 90px -50px rgba(0, 0, 0, 0.95);
}
.founder__head { margin-bottom: 18px; }
.founder__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.founder__role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.founder__quote {
  font-style: italic;
  color: #c9c6bd;
  font-size: 0.97rem;
  line-height: 1.75;
}
.founder__rule {
  height: 1px;
  background: var(--line-gold);
  margin: 24px 0;
}
.founder__stats {
  display: flex;
  gap: 26px;
}
.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.2;
}
.stat__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Qui je suis ---------- */
.studio {
  background: linear-gradient(180deg, rgba(224, 179, 71, 0.045), transparent);
}
.statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 30px 34px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.service:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 179, 71, 0.35);
}
.service h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 9px;
}
.service p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Méthode ---------- */
.steps { list-style: none; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 7px;
}
.step p { color: var(--muted); font-size: 0.96rem; max-width: 64ch; }

/* ---------- Réalisations ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.work__card {
  --wa: var(--gold);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s var(--ease);
}
.work__card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--wa) 45%, transparent);
  box-shadow:
    0 34px 70px -34px rgba(0, 0, 0, 0.95),
    0 0 55px -22px color-mix(in srgb, var(--wa) 40%, transparent);
}

.work__banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 178px;
  padding: 26px 28px;
  background: radial-gradient(120% 160% at 18% 0%,
              color-mix(in srgb, var(--wa) 28%, #0a0a0c),
              #0a0a0c 78%);
  border-bottom: 1px solid var(--line);
}
.work__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--wa);
}
.work__logo--onyx {
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  color: #f2f2f4;
}
.work__tagline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--soft);
}

.work__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px 28px;
  flex: 1;
}
.work__desc { color: var(--muted); font-size: 0.95rem; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

/* Carte « Votre projet » */
.work__card--you { border: 1px dashed rgba(224, 179, 71, 0.4); }
.work__card--you:hover { border-style: solid; }
.work__banner--you {
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.work__plus {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1;
}
.work__cta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: auto;
  transition: letter-spacing 0.25s var(--ease);
}
.work__card--you:hover .work__cta { letter-spacing: 0.14em; }

/* ---------- Contact ---------- */
.contact__head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.contact__head .section__title { margin-bottom: 18px; }

.assure {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.assure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.assure svg { width: 13px; height: 13px; color: var(--gold); flex-shrink: 0; }

.form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field select { cursor: pointer; appearance: none; }
.field select option { background: var(--raised); color: var(--text); }

/* Piège anti-robots : hors écran, invisible pour les humains */
.field--hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.form__foot .btn { width: 100%; }
.form__mail {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.form__mail:hover { color: var(--gold); border-bottom-color: var(--gold); }

.form__note { text-align: center; font-size: 0.88rem; min-height: 1.4em; color: var(--muted); }
.form__note.ok  { color: #4fd6a3; }
.form__note.err { color: #ff6b5e; }

.form__privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--dim);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-gold);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 26px; }
.footer__links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--gold); }
.footer__legal { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }

/* ---------- Pages annexes (mentions légales, 404) ---------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 150px 32px 110px;
}
.page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.page h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 42px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.page p, .page li { color: var(--muted); font-size: 0.96rem; }
.page ul { padding-left: 20px; margin-top: 8px; }
.page a { color: var(--gold); }

.error-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 40px 24px;
}
.error-page .code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
}
.error-page p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Apparition (html.js posé par script.js) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .marks { display: none; }

  .hero { padding-top: 150px; }
  .hero__grid { grid-template-columns: 1fr; }
  .founder { max-width: 560px; }
}

@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }

  .header__cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(6, 5, 9, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text);
    padding: 14px 0;
  }
  .nav a::after { height: 3px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 130px 0 76px; }
  .section { padding: 76px 0; }
  .founder { padding: 26px; }
  .founder__stats { gap: 20px; }
  .work__banner { height: 150px; padding: 22px 24px; }
  .work__body { padding: 20px 24px 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
