/* ==========================================================================
   Portfolio de Paul Azeufack — feuille de style unique, sans framework
   ========================================================================== */

:root {
  --accent: #0b6b4f;
  --ink: #12161c;
  --muted: #4f5966;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #d9dee5;
  --border-strong: #aeb6c1;
  --todo-bg: #fff3c4;
  --todo-ink: #5c4a00;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.82;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1, h2, h3, p, ul {
  margin: 0;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Structure commune ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--accent {
  color: var(--accent);
}

.section-title {
  margin-bottom: 56px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-weight: 500;
}

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

/* ---------- Navigation ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
  color: var(--muted);
}

.nav a {
  padding: 8px 0;
}

.nav a.nav__cta {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Accroche ---------- */

.hero {
  padding: 96px 0 112px;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.hero__lead {
  max-width: 640px;
  margin-top: 28px;
  font-size: 19px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ---------- Offres ---------- */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.offer {
  flex: 1 1 300px;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.offer__num {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.offer h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}

.offer p {
  color: var(--muted);
}

.offer .offer__for {
  margin-top: 20px;
  font-size: 15px;
}

.offer__for strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Références ---------- */

.refs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ref {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ref--soon {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-strong);
}

.ref__head {
  flex: 1 1 280px;
  min-width: 0;
}

.ref__body {
  flex: 2 1 360px;
  min-width: 0;
  color: var(--muted);
}

.ref__tag {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.ref--soon .ref__tag {
  color: var(--muted);
}

.ref h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.ref__stack {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.ref__body p + p {
  margin-top: 16px;
}

.ref__body strong {
  color: var(--ink);
  font-weight: 600;
}

.link-accent {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
}

/* ---------- Méthode ---------- */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
}

.step {
  flex: 1 1 220px;
  min-width: 0;
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
}

.step p {
  font-size: 16px;
  color: var(--muted);
}

/* ---------- À propos ---------- */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.about__photo {
  flex: 0 1 280px;
  min-width: 0;
}

.about__photo img,
.photo-placeholder {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.about__text {
  flex: 1 1 400px;
  min-width: 0;
}

.about__text .section-title {
  margin-bottom: 24px;
}

.about__text > p {
  max-width: 640px;
  color: var(--muted);
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: #fff;
}

.contact h2 {
  max-width: 720px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.contact__lead {
  max-width: 560px;
  margin-top: 20px;
  font-size: 18px;
  color: #c8ced8;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.contact .btn {
  border-color: #6b7686;
}

.contact .btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.contact a:focus-visible {
  outline-color: #fff;
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--ink);
  color: var(--border-strong);
  border-top: 1px solid #2a313b;
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* ---------- Champs à compléter (à supprimer avant la mise en ligne) ---------- */

.todo {
  padding: 0 6px;
  border-radius: 3px;
  background: var(--todo-bg);
  color: var(--todo-ink);
}

.btn .todo {
  margin-left: 8px;
}

/* ---------- Petits écrans ---------- */

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .offer,
  .ref {
    padding: 24px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
