/* payeh-site — palette du pack logo : pierre + ruban IA sur fond sombre */
:root {
  --bg: #0b0c11;
  --bg-elev: #14161f;
  --border: #262a38;
  --ink: #efe4cc;          /* pierre claire = texte principal sur sombre */
  --ink-dim: #9d8a68;      /* pierre moyenne */
  --stone-deep: #54452f;
  --violet: #7C3AED;
  --indigo: #6366F1;
  --cyan: #06B6D4;
  --grad: linear-gradient(120deg, var(--violet), var(--indigo), var(--cyan));
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: .06em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: .3em 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; margin: 0 0 .3em; }

.kicker {
  text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0;
}
.dim { color: var(--ink-dim); }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 5vw, 60px); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(11, 12, 17, .92); backdrop-filter: blur(8px); z-index: 5;
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.nav__brand:hover { text-decoration: none; }
.nav__icon { height: 40px; width: auto; }
.nav__name { font-family: var(--serif); font-weight: 700; letter-spacing: .3em; font-size: 1.25rem; }
.nav__mark { height: 44px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 18px; }
.nav__lang { color: var(--ink-dim); letter-spacing: .1em; font-size: .85rem; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 600;
  letter-spacing: .04em; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--grad); color: #fff; }
.btn--primary:hover { filter: brightness(1.12); }
.btn--ghost { border-color: var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-dim); }
/* bouton nav « Espace client » : pilule à liseré dégradé */
.btn--espace {
  position: relative; padding: 10px 24px; border-radius: 999px; color: var(--ink);
  background: linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
              var(--grad) border-box;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: box-shadow .2s ease, transform .15s ease, color .2s ease;
}
.btn--espace:hover {
  color: #fff; box-shadow: 0 0 18px rgba(99, 102, 241, .45); transform: translateY(-1px);
}

main > section { padding: clamp(48px, 9vw, 110px) clamp(20px, 6vw, 80px); max-width: 1080px; margin: 0 auto; }
.hero { text-align: center; }
.hero__mark { width: 94%; height: auto; margin-bottom: 26px; }
@media (min-width: 760px) { .hero__mark { width: 50%; } }
.hero__sub { max-width: 640px; margin: 0 auto 1.6em; color: var(--ink-dim); font-size: 1.15rem; }
.hero--narrow { max-width: 560px; }

.band { border-top: 1px solid var(--border); text-align: center; }
.band p:not(.kicker) { max-width: 680px; margin: 0 auto; color: var(--ink-dim); }

.caps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 26px;
}
.card p { color: var(--ink-dim); margin: 0; font-size: .98rem; }

.fidu {
  border: 1px solid var(--border); border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(124, 58, 237, .10), rgba(6, 182, 212, .06));
}
.fidu p { max-width: 680px; margin: 0 auto; }

.contact { text-align: center; }

.footer {
  border-top: 1px solid var(--border); text-align: center; padding: 44px 20px 56px;
  color: var(--stone-deep); font-size: .88rem;
}
.footer__mark { height: 54px; width: auto; opacity: .8; margin-bottom: 10px; }
.footer a { color: var(--ink-dim); }

.form { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.form--stack { flex-direction: column; align-items: stretch; max-width: 640px; }
.form input, .form textarea {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); padding: 12px 14px; font: inherit; flex: 1;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--indigo); border-color: transparent; }

.account__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; flex-wrap: wrap; }
.account h2 { margin-top: 2em; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--ink-dim); font-weight: 600; letter-spacing: .05em; font-size: .8rem; text-transform: uppercase; }
.num { text-align: right; }
.status { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: .8rem; }
.status--paid { color: #4ade80; border-color: #234; }
.status--overdue, .status--unpaid { color: #fbbf24; }
.alert { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.alert--ok { border-color: #234; color: #4ade80; }

@media (max-width: 560px) {
  .form { flex-direction: column; }
  .nav__name { display: none; }
}
