/* FaydaPro — freelance sombre, minimal, premium. Identité propre (pas un clone). */

:root,
html[data-theme="dark"] {
  --bg: #07080a;
  --bg-header: rgba(7, 8, 10, 0.82);
  --surface: #111318;
  --ink: #eef0f3;
  --muted: #8b919c;
  --accent: #3ee0b3;
  --accent-hover: #62ebd0;
  --accent-ink: #06241c;
  --line: #22262e;
  --field: #0c0e12;
  --field-hover: #3a414c;
  --focus: #3ee0b3;
  --ok: #3ee0b3;
  --err: #e0b48a;
  --accent-text: #3ee0b3;
  --scheme: dark;
  --sans: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --page-pad: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4.5rem, 10vw, 7rem);
  --measure: 36rem;
  --canvas: 64rem;
  --radius: 10px;
  --header-h: 64px;
}

html[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-header: rgba(243, 244, 246, 0.88);
  --surface: #ffffff;
  --ink: #12141a;
  --muted: #5c6370;
  --accent: #0f9d78;
  --accent-hover: #0b8264;
  --accent-ink: #ffffff;
  --line: #d8dce3;
  --field: #ffffff;
  --field-hover: #8b939f;
  --focus: #0b8264;
  --ok: #0b8264;
  --err: #8a5e32;
  --accent-text: #0b8264;
  --scheme: light;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

p { text-wrap: pretty; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  left: var(--page-pad);
  top: 0.75rem;
  z-index: 40;
  padding: 0.45rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--bg);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--page-pad);
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}

.logo:hover,
.logo:focus-visible { color: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .btn--nav {
  min-height: 2.25rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-text);
  font-weight: 600;
}

.site-nav .btn--nav:hover,
.site-nav .btn--nav.is-active,
.site-nav .btn--nav[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--ink); }

html[data-theme="dark"] .theme-toggle__moon,
html[data-theme="dark"] .theme-toggle__label-dark,
html[data-theme="light"] .theme-toggle__sun,
html[data-theme="light"] .theme-toggle__label-light {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--small {
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4.5rem, 14vh, 8rem) var(--page-pad) clamp(3rem, 8vh, 5rem);
  max-width: 52rem;
  margin: 0 auto;
}

.page-hero {
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--page-pad) 1.5rem;
  max-width: calc(var(--canvas) + 2 * var(--page-pad));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  max-width: 16ch;
  margin: 0 0 1.1rem;
}

.page-hero .hero__lede {
  margin: 0;
  max-width: 34rem;
}

.page-hero + .section {
  padding-top: 2.25rem;
}

.hero__kicker,
.section__kicker {
  margin: 0 0 1.25rem;
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 11ch;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-text);
}

.hero__lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero__avail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 3.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__dot {
    animation: avail-pulse 2.6s ease-in-out infinite;
  }
}

@keyframes avail-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Sections */

.section {
  padding: var(--section-y) var(--page-pad);
  max-width: calc(var(--canvas) + 2 * var(--page-pad));
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0 0 0.85rem;
}

.section__lede {
  margin: 0 0 2.75rem;
  max-width: 32rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card--featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card__badge {
  margin: 0;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__text {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card__price {
  margin: 0.4rem 0 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.card__brief {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
}

.card__brief:hover { color: var(--accent-text); }

.pay-hint {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-list {
  display: grid;
  gap: 0.85rem;
}

.project {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

.project:hover,
.project:focus-visible { color: inherit; }

.project__tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.project__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project__go {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  grid-row: 1 / span 2;
  align-self: center;
}

.project:hover .project__title,
.project:hover .project__go {
  color: var(--accent-text);
}

.project__text {
  grid-column: 2;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.steps {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  max-width: 40rem;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.steps > li:last-child { border-bottom: 1px solid var(--line); }

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.facts li {
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9375rem;
}

.facts strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

/* Home — three lines, then out */

.home-intro {
  padding: 0 var(--page-pad) var(--section-y);
  max-width: calc(var(--canvas) + 2 * var(--page-pad));
  margin: 0 auto;
}

.home-intro__rule {
  max-width: 36rem;
  margin: 0 0 2.25rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.home-intro__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 32rem;
}

.home-intro__lines li {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--ink);
}

.home-intro__lines li:last-child { margin-bottom: 0; }

.home-intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  margin-top: 2.5rem;
}

.home-intro__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.home-intro__links a:hover { color: var(--accent-text); }

/* Déroulement — vertical timeline, lots of air */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  max-width: 40rem;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  column-gap: 1.75rem;
  padding: 0 0 4.75rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.15rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--line);
}

.timeline__num {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  line-height: 1.2;
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.timeline__title {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.timeline__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 32rem;
}

.guarantees {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 5rem 0 0;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.guarantees li {
  margin: 0;
}

.guarantees strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.guarantees span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cta-band {
  padding: var(--section-y) var(--page-pad);
  max-width: calc(var(--canvas) + 2 * var(--page-pad));
  margin: 0 auto;
}

.cta-band__inner {
  padding: 2.75rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 36rem;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.about-copy {
  max-width: 36rem;
}

.about-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-copy p:last-child { margin-bottom: 0; }

/* Form */

.brief-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
  max-width: 36rem;
}

.brief-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.brief-form .full,
.brief-form label:has(textarea) {
  grid-column: 1 / -1;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  appearance: none;
}

.brief-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.brief-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.brief-form input:hover,
.brief-form select:hover,
.brief-form textarea:hover {
  border-color: var(--field-hover);
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.brief-form button[type="submit"] {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

.brief-pay {
  margin-top: 1.75rem;
  max-width: 36rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brief-pay__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.brief-pay__text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.brief-pay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Footer */

.site-footer {
  padding: 3rem var(--page-pad) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: var(--canvas);
  margin: 0 auto;
}

.site-footer .logo {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.site-footer p { margin: 0; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.site-footer nav a:hover { color: var(--ink); }

.site-footer__copy {
  max-width: var(--canvas);
  margin: 2rem auto 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__copy a { color: var(--muted); }
.site-footer__copy a:hover { color: var(--accent-text); }

/* Status pages */

.status-page {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--page-pad);
  max-width: 36rem;
  margin: 0 auto;
}

.status-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.85rem;
}

.status-page p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Mobile */

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .nav-toggle { display: inline-flex; align-items: center; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    order: 4;
    padding: 0.35rem 0 0.5rem;
  }

  .site-header.is-open .site-nav { display: flex; }

  .cards,
  .facts,
  .guarantees { grid-template-columns: 1fr; }

  .timeline__item {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 1rem;
    padding-bottom: 3.5rem;
  }

  .project {
    grid-template-columns: 1fr auto;
  }

  .project__tag,
  .project__title,
  .project__text { grid-column: 1; }
  .project__go {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 640px) {
  .brief-form { grid-template-columns: 1fr; }

  .brief-form .full,
  .brief-form label:has(textarea),
  .brief-form button[type="submit"],
  .form-status { grid-column: 1; }

  .hero__actions .btn { flex: 1 1 12rem; }

  .hero__title { max-width: none; }
}

@media (max-width: 400px) {
  .hero__actions .btn { flex: 1 1 100%; }
}
