/* ═══════════════════════════════════════════════════════════════════════════
   theDevsite v3 — même design system que spendr-landing (css/site.css) :
   fond dégradé #22221f → noir, CA Slalom Extended pour les titres,
   Epilogue pour le corps, accent #ffe100, boutons pill.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'CA Slalom Extended';
  src: url('fonts/ca-slalom-extended-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CA Slalom Extended';
  src: url('fonts/ca-slalom-extended-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CA Slalom Extended';
  src: url('fonts/ca-slalom-extended-heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-deep: #000000;
  --surface: #161616;
  --surface-alt: #191919;
  --card: #111111;
  --border: #2e2e2e;
  --border-soft: #222222;
  --text: #cccccc;
  --text-bright: #ffffff;
  --text-secondary: #b1b1b1;
  --text-muted: #6d6d6d;
  --accent: #ffe100;
  --gold: #ffd700;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container: 1442px;
  --header-h: 88px;
  --font: 'CA Slalom Extended', 'Sora', 'Saira', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  background-image: linear-gradient(180deg, #22221f 0%, #000000 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--text-bright); font-weight: 600; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ─── Header ───────────────────────────────────────────────────────────── */

.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-weight: 700;
  font-size: 19px;
  color: var(--text-bright);
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.site-nav a:not(.btn):hover { color: var(--accent); }

/* ─── Boutons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.btn:active { transform: scale(0.98); }

.btn-white {
  background: #ffffff;
  color: #0a0a0a;
  padding: 11px 22px;
}
.btn-white:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid #ffffff;
  padding: 10px 22px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 56px 0 80px; }

.hero h1 {
  font-size: clamp(40px, 3vw, 55px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero .lede {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 500;
  line-height: 2.05;
  max-width: 700px;
  margin-bottom: 34px;
}

.hero-ctas { display: flex; gap: 14px; }

/* ─── Sections ─────────────────────────────────────────────────────────── */

.section { padding: 80px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fffb00 0%, #ffa100 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-head h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-bottom: 16px;
}

.section-head p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

/* ─── Work (pattern services de la landing) ────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.service .icon-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #141414;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.service .icon-circle svg {
  width: 50px;
  height: 50px;
  stroke: var(--text-bright);
  fill: none;
  stroke-width: 1.5;
}

.service h3 { font-size: 36px; font-weight: 500; margin-bottom: 14px; }

.service p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-bright);
  font-size: 17px;
}

.learn-more svg { width: 12px; height: 12px; stroke: currentColor; }
.learn-more.muted { color: var(--text-muted); }

/* ─── Gallery ──────────────────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.g-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
}

.g-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 300ms ease;
}

.g-item img:hover { transform: scale(1.03); }

/* ─── About ────────────────────────────────────────────────────────────── */

.about-text {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 17px;
  font-weight: 500;
  line-height: 2.05;
  max-width: 820px;
}

/* ─── Contact (pattern footer-card de la landing) ──────────────────────── */

.footer-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  text-align: center;
  padding: 64px 24px;
}

.footer-card h2 { font-size: 36px; font-weight: 500; margin-bottom: 14px; }

.footer-card p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

.site-footer { padding: 24px 0 64px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom a:hover { color: var(--accent); }

/* ─── Lightbox ─────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); }

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 32px;
  cursor: pointer;
  padding: 14px;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
  z-index: 201;
}
.lightbox button:hover { opacity: 1; color: var(--accent); }

.lightbox-close { top: 12px; right: 18px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); font-size: 46px; }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); font-size: 46px; }

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .services-grid { gap: 40px; }
  .service .icon-circle { width: 100px; height: 100px; }
  .service .icon-circle svg { width: 40px; height: 40px; }
  .service h3 { font-size: 28px; }
}

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

@media (max-width: 560px) {
  .site-header { height: auto; padding: 16px 0 12px; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 18px; font-size: 14px; }
  .hero { padding: 32px 0 64px; }
  .hero-ctas { flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
