/* ─────────────────────────────────────────────────────────────────────────
   Digitalee — Landing page styles
   Design system: éditorial premium + corporate + organique
   Type: Instrument Serif (display italic) + Geist (sans)
   Couleurs : neutres très sobres, dégradé bleu→vert réservé logo + CTA
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --grad-from: #1e8de4;
  --grad-to:   #8ec947;
  --grad-mid:  #4caaa2;
  --grad-intensity: 1; /* 0..1 — modulé par les tweaks */

  /* Light (default) */
  --bg:        #faf8f4;
  --bg-2:      #f3efe7;
  --surface:   #ffffff;
  --fg:        #0d1110;
  --fg-2:      #1a1f1d;
  --muted:     #6b716c;
  --border:    rgba(13, 17, 16, 0.08);
  --border-2:  rgba(13, 17, 16, 0.14);
  --shadow-sm: 0 1px 2px rgba(13, 17, 16, 0.04), 0 2px 8px rgba(13, 17, 16, 0.03);
  --shadow-md: 0 4px 16px rgba(13, 17, 16, 0.06), 0 24px 60px rgba(13, 17, 16, 0.06);

  /* Type */
  --font-display: "Times New Roman", "Instrument Serif", Georgia, serif;
  --font-sans:    "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Density (regular by default; compact = 0.75) */
  --d: 1;
  --section-py: calc(7rem * var(--d));
  --section-gap-y: calc(2.25rem * var(--d));
  --container-pad: clamp(20px, 4vw, 56px);

  /* Radius */
  --r-card: 28px;
  --r-section: 32px;
  --r-pill: 999px;

  /* Misc */
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg:       #0b0e0d;
  --bg-2:     #14181a;
  --surface:  #15191a;
  --fg:       #f3f1ec;
  --fg-2:     #e8e6e0;
  --muted:    #9da39e;
  --border:   rgba(243, 241, 236, 0.08);
  --border-2: rgba(243, 241, 236, 0.16);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5), 0 24px 60px rgba(0,0,0,0.5);
}

[data-density="compact"] { --d: 0.72; }
[data-density="aere"]    { --d: 1.08; }

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  cursor: none; /* curseur custom */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; }
input, textarea, select { font-family: inherit; cursor: none; }

/* Force le curseur natif sur tactile */
@media (hover: none) {
  body, button, input, textarea, select, a { cursor: auto; }
}

/* ── Curseur custom ───────────────────────────────────────────────────── */
.cursor-dot, .cursor-halo {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #ffffff;
  transition: width .2s, height .2s, opacity .2s;
}
.cursor-halo {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: width .25s var(--easing), height .25s var(--easing), border-color .2s;
}
body.cursor-hover .cursor-dot   { width: 0; height: 0; }
body.cursor-hover .cursor-halo  { width: 64px; height: 64px; border-color: rgba(255,255,255,0.85); }
@media (hover: none) { .cursor-dot, .cursor-halo { display: none; } }

/* ── Sélection ────────────────────────────────────────────────────────── */
::selection { background: var(--fg); color: var(--bg); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-py);
}

/* ── Header / Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: transform .4s var(--easing), opacity .3s, box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav-brand img { width: 28px; height: 28px; object-fit: contain; }
.nav-links {
  display: flex; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--border); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
  transition: transform .2s var(--easing), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(30,141,228,0.25); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg);
  transition: background .2s, color .2s, transform .25s var(--easing);
  cursor: none;
}
.nav-theme:hover { background: var(--border); transform: rotate(15deg); }
.nav-theme .icon-sun  { display: none; }
.nav-theme .icon-moon { display: inline-block; }
[data-theme="dark"] .nav-theme .icon-sun  { display: inline-block; }
[data-theme="dark"] .nav-theme .icon-moon { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { padding: 8px 8px 8px 14px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: calc(140px + 4vw);
  padding-bottom: calc(60px + 4vw);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin-bottom: 32px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-to);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--grad-to) 25%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--grad-to) 25%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--grad-to) 0%, transparent); }
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: pretty;
}
.hero-title .accent {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--grad-from) calc(var(--grad-intensity) * 100%), var(--fg)) 0%,
    color-mix(in srgb, var(--grad-mid)  calc(var(--grad-intensity) * 100%), var(--fg)) 50%,
    color-mix(in srgb, var(--grad-to)   calc(var(--grad-intensity) * 100%), var(--fg)) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-inline-end: 0.04em;
  display: inline-block;
  cursor: none;
  transition: background-position 1.4s var(--easing), transform .35s var(--easing);
}
.hero-title .accent .l {
  display: inline-block;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--grad-from) calc(var(--grad-intensity) * 100%), var(--fg)) 0%,
    color-mix(in srgb, var(--grad-mid)  calc(var(--grad-intensity) * 100%), var(--fg)) 50%,
    color-mix(in srgb, var(--grad-to)   calc(var(--grad-intensity) * 100%), var(--fg)) 100%);
  background-size: 200% 100%;
  background-position: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .45s var(--easing);
  will-change: transform;
}
.hero-title .accent:hover {
  background-position: 100% 50%;
  transform: scale(1.02);
}
.hero-title .accent:hover .l { transform: translateY(-10px) rotate(-3deg); }
.hero-title .accent:hover .l:nth-child(1)  { transition-delay: 0.00s; }
.hero-title .accent:hover .l:nth-child(2)  { transition-delay: 0.04s; }
.hero-title .accent:hover .l:nth-child(3)  { transition-delay: 0.08s; }
.hero-title .accent:hover .l:nth-child(4)  { transition-delay: 0.12s; }
.hero-title .accent:hover .l:nth-child(5)  { transition-delay: 0.16s; }
.hero-title .accent:hover .l:nth-child(6)  { transition-delay: 0.20s; }
.hero-title .accent:hover .l:nth-child(7)  { transition-delay: 0.24s; }
.hero-title .accent:hover .l:nth-child(8)  { transition-delay: 0.28s; }
.hero-title .accent:hover .l:nth-child(9)  { transition-delay: 0.32s; }
.hero-title .accent:hover .l:nth-child(10) { transition-delay: 0.36s; }
@media (hover: none) {
  .hero-title .accent { cursor: pointer; }
}
.hero-title .punct { color: var(--muted); }
@media (max-width: 900px) {
  .hero-title .punct {
    animation: punct-blink 1.1s ease-in-out infinite;
  }
}
@keyframes punct-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.18; }
}

.hero-sub {
  max-width: 560px;
  margin-top: 36px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s var(--easing), box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
  box-shadow: 0 6px 24px rgba(30,141,228,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30,141,228,0.28); }
.btn-ghost {
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn .arrow {
  display: inline-block;
  transition: transform .2s var(--easing);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Hero meta strip — proof points */
.hero-meta {
  margin-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.hero-meta-item { padding-inline: 24px; }
.hero-meta-item + .hero-meta-item { border-left: 1px solid var(--border); }
.hero-meta-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.hero-meta-lbl {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero-meta-item:nth-child(odd) { border-left: 0; }
  .hero-meta-item:nth-child(3)   { border-top: 1px solid var(--border); padding-top: 20px; }
  .hero-meta-item:nth-child(4)   { border-top: 1px solid var(--border); padding-top: 20px; }
}

/* Bird flying in hero */
.hero-bird {
  position: absolute;
  top: 6%;
  right: -4%;
  width: clamp(280px, 45vw, 620px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.95;
  filter: drop-shadow(0 30px 60px rgba(30, 141, 228, 0.18));
  transform-origin: center;
  animation: float 7s ease-in-out infinite;
  transition: opacity .4s;
}
.hero-bird img { width: 100%; height: auto; }
.hero-bird.no-anim { animation: none; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50%      { transform: translate3d(-12px, -22px, 0) rotate(1.5deg); }
}

/* ── Section générique ────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--muted);
}
.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 var(--section-gap-y) 0;
  max-width: 18ch;
  text-wrap: balance;
}
.section-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--grad-from) calc(var(--grad-intensity) * 100%), var(--fg)) 0%,
    color-mix(in srgb, var(--grad-to)   calc(var(--grad-intensity) * 100%), var(--fg)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section as card (rcpt.ai vibe) */
.section-card {
  background: var(--bg-2);
  border-radius: var(--r-section);
  padding-block: calc(var(--section-py) * 0.82);
  padding-inline: clamp(28px, 5vw, 64px);
  margin-block: clamp(24px, 4vw, 48px);
  margin-inline: clamp(8px, 1.5vw, 24px);
  border: 1px solid var(--border);
}
[data-theme="dark"] .section-card { background: var(--bg-2); }

/* ── Marquee manifesto ────────────────────────────────────────────────── */
.marquee {
  margin-top: 24px;
  padding-block: 30px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--fg);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track .sep {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Services ─────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 36px 32px 32px;
  overflow: hidden;
  transition: transform .35s var(--easing), border-color .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  margin: 22px 0 28px;
  border: 1px solid var(--border);
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--fg); fill: none; stroke-width: 1.6; }
.service-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.service-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.service-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.service-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.service-list li {
  font-size: 14px;
  color: var(--fg-2);
  display: flex; align-items: flex-start; gap: 10px;
  padding-block: 6px;
}
.service-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  margin-top: 9px;
  flex-shrink: 0;
}

/* ── Process ──────────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
}
@media (max-width: 980px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.step {
  padding: 28px 20px 24px;
  border-top: 1px solid var(--border-2);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--fg);
}
.step h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Réalisations ─────────────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .35s var(--easing), box-shadow .35s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-card.span-4 { grid-column: span 4; }
.work-card.span-3 { grid-column: span 3; }
.work-card.span-2 { grid-column: span 2; }
@media (max-width: 980px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card.span-4, .work-card.span-3, .work-card.span-2 { grid-column: span 2; }
}
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.span-4, .work-card.span-3, .work-card.span-2 { grid-column: span 1; }
}
.work-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  margin: 18px 18px 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.work-card.span-4 .work-frame { aspect-ratio: 16 / 9; }
.work-frame-dots {
  position: absolute;
  top: 12px; left: 14px;
  display: flex; gap: 6px;
  z-index: 2;
}
.work-frame-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(13,17,16,0.15);
  display: inline-block;
}
.work-frame-canvas {
  position: absolute;
  inset: 30px 0 0 0;
  overflow: hidden;
}
.work-frame-canvas.parallax > div {
  transform: translateY(var(--py, 0px));
  transition: transform 0.05s linear;
}

/* Mockup A — éditorial */
.mock-a {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #f7f4ee, #ece6da);
  padding: 26px 28px;
  font-family: var(--font-sans);
  color: #1a1f1d;
}
.mock-a .mock-title { font-family: var(--font-display); font-style: italic; font-size: 36px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 14px; max-width: 80%; }
.mock-a .mock-bar { width: 60%; height: 6px; background: rgba(0,0,0,.08); border-radius: 3px; margin-bottom: 6px;}
.mock-a .mock-bar.short { width: 40%; }
.mock-a .mock-img { margin-top: 18px; height: 50%; background: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 10px, rgba(0,0,0,.02) 10px 20px); border-radius: 8px; }

/* Mockup B — e-commerce */
.mock-b { height: 100%; background: #0f1311; padding: 18px; color: #f3f1ec; font-family: var(--font-sans); }
.mock-b .mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100%; }
.mock-b .mock-tile { position: relative; background: #1a201d; border-radius: 12px; overflow: hidden; }
.mock-b .mock-tile::after { content: ""; position: absolute; inset: auto 12px 12px; height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; }
.mock-b .mock-tile::before { content: ""; position: absolute; inset: 12px 12px 36px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 8px, rgba(255,255,255,.02) 8px 16px); border-radius: 8px; }

/* Mockup C — portfolio noir */
.mock-c { height: 100%; background: #0a0a0a; color: #fff; padding: 22px; font-family: var(--font-sans); }
.mock-c .mock-num { font-family: var(--font-mono); font-size: 11px; opacity: 0.6; }
.mock-c .mock-h { font-family: var(--font-display); font-style: italic; font-size: 44px; line-height: 0.95; margin-top: 8px; max-width: 8ch; }
.mock-c .mock-foot { position: absolute; bottom: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; opacity: 0.6; }

/* Mockup D — restaurant */
.mock-d { height: 100%; background: #f9efe2; padding: 22px; color: #2b1a0d; font-family: var(--font-sans); }
.mock-d .mock-h { font-family: var(--font-display); font-style: italic; font-size: 34px; }
.mock-d .mock-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mock-d .mock-cell { aspect-ratio: 1/1; border-radius: 8px; background: repeating-linear-gradient(45deg, rgba(43,26,13,.06) 0 8px, rgba(43,26,13,.03) 8px 16px); }

/* Mockup E — saas */
.mock-e { height: 100%; background: #fff; padding: 20px; color: #0a0a0a; font-family: var(--font-sans); }
.mock-e .mock-h { font-size: 16px; font-weight: 600; }
.mock-e .mock-chart { margin-top: 16px; height: 100px; display: flex; align-items: flex-end; gap: 6px; }
.mock-e .mock-chart i { flex: 1; background: linear-gradient(180deg, var(--grad-from), var(--grad-to)); border-radius: 4px 4px 0 0; display: block; }

.work-meta {
  padding: 16px 22px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.work-meta h4 {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.work-meta p {
  font-size: 13px; color: var(--muted); margin: 0;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.work-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--easing), background .2s;
}
.work-card:hover .work-arrow {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  border-color: transparent;
  transform: rotate(-45deg);
}
.work-card:hover .work-arrow svg { stroke: #fff; }
.work-arrow svg { width: 16px; height: 16px; stroke: var(--fg); fill: none; stroke-width: 1.8; transition: stroke .2s; }

/* ── Réalisations (real projects) ─────────────────────────────────────── */
.real-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: var(--section-gap-y);
  flex-wrap: wrap;
}
.real-head .section-title { margin-bottom: 0; }
.real-filter {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.real-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.real-tab span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 1px 6px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.real-tab:hover { color: var(--fg); }
.real-tab.is-active {
  color: var(--bg);
  background: var(--fg);
}
.real-tab.is-active span { color: var(--fg); background: var(--bg); }

.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .real-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .real-grid { grid-template-columns: 1fr; } }

.real-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .35s var(--easing), box-shadow .35s, border-color .25s;
  text-decoration: none;
  color: inherit;
}
.real-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
}
.real-card.is-hidden { display: none; }

.real-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #fff;
}
.real-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--easing);
}
.real-card:hover .real-thumb img { transform: scale(1.04); }
.real-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.real-thumb-mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.92;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

/* Vignettes : palettes harmonieuses */
.thumb-1  { background: linear-gradient(135deg, #1e8de4, #4caaa2); }
.thumb-2  { background: linear-gradient(135deg, #2b3a4a, #4d6376); }
.thumb-3  { background: linear-gradient(135deg, #0e1f33, #1e8de4); }
.thumb-4  { background: linear-gradient(135deg, #d36cb6, #f0a868); }
.thumb-5  { background: linear-gradient(135deg, #c54a3a, #6e1e2e); }
.thumb-6  { background: linear-gradient(135deg, #1a1f25, #3a4955); }
.thumb-7  { background: linear-gradient(135deg, #265c4a, #8ec947); }
.thumb-8  { background: linear-gradient(135deg, #1e8de4, #6a4ee0); }
.thumb-9  { background: linear-gradient(135deg, #6c8a2e, #d4b942); }
.thumb-10 { background: linear-gradient(135deg, #4a4036, #8c7556); }
.thumb-11 { background: linear-gradient(135deg, #1e3a72, #4caaa2); }
.thumb-12 { background: linear-gradient(135deg, #2a7f4e, #f0a868); }
.thumb-13 { background: linear-gradient(135deg, #6a3a82, #d36cb6); }
.thumb-14 { background: linear-gradient(135deg, #a64022, #d4b942); }
.thumb-15 { background: linear-gradient(135deg, #1a1a1a, #c54a3a); }

.real-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #0d1110;
  background: rgba(255,255,255,0.92);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.real-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
}
.real-badge.status-live::before { background: #1f8a5b; box-shadow: 0 0 0 3px rgba(31,138,91,0.18); }
.real-badge.status-wip::before  { background: #e0a02b; box-shadow: 0 0 0 3px rgba(224,160,43,0.18); animation: pulse 2s ease-out infinite; }

.real-info {
  padding: 22px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.real-info-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.real-info h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.real-arrow {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--easing), background .2s, border-color .2s;
}
.real-arrow svg { width: 14px; height: 14px; stroke: var(--fg); fill: none; stroke-width: 1.8; transition: stroke .2s; }
a.real-card:hover .real-arrow {
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  border-color: transparent;
  transform: rotate(-45deg);
}
a.real-card:hover .real-arrow svg { stroke: #fff; }
/* Cartes sans lien (WIP) */
.real-card:not(a) .real-arrow { opacity: 0.35; }
.real-card:not(a):hover { transform: none; box-shadow: var(--shadow-sm); }

.real-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
}
.real-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  display: inline-block;
}
.real-url {
  font-size: 13px;
  color: var(--fg-2);
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  letter-spacing: -0.005em;
}
.real-card:not(a) .real-url { color: var(--muted); font-style: italic; }

.real-note {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
  text-wrap: pretty;
}
.real-note em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--fg);
}
.real-partner {
  color: var(--fg);
  border-bottom: 1px solid var(--border-2);
  transition: border-color .2s;
}
.real-partner:hover { border-color: var(--fg); }

/* ── About ────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.about-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 32px;
}
.about-lead em {
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--grad-from) calc(var(--grad-intensity) * 100%), var(--fg)) 0%,
    color-mix(in srgb, var(--grad-to)   calc(var(--grad-intensity) * 100%), var(--fg)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-body p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 56ch;
  text-wrap: pretty;
}
.about-sig {
  margin-top: 32px;
  display: flex; align-items: center; gap: 14px;
  font-size: 14px;
  color: var(--muted);
}
.about-sig-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600;
  letter-spacing: 0.02em;
}
.about-sig b { color: var(--fg); font-weight: 500; }
.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.about-values .v {
  background: var(--surface);
  padding: 26px 28px;
}
.about-values h5 {
  font-size: 13px; font-weight: 500; color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 10px;
}
.about-values .v p {
  font-size: 18px; line-height: 1.5; margin: 0;
  color: var(--fg-2);
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.about-values .v em {
  font-family: var(--font-display);
  font-style: italic;
}

/* ── Témoignages ──────────────────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
@media (max-width: 980px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 22px;
}
.testi-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--fg);
  flex: 1;
}
.testi-quote::before {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
  margin-bottom: 16px;
}
.testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
  font-size: 13px;
  color: var(--fg);
}
.testi-name { font-size: 14px; font-weight: 500; margin: 0; }
.testi-role { font-size: 12px; color: var(--muted); margin: 0; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
  max-width: 820px;
  margin: 32px auto 0;
}
.faq details {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  transition: padding .2s;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--muted);
  transition: transform .25s var(--easing), color .2s;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--fg); }
.faq-body {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 64ch;
}

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-section);
  margin-block: clamp(24px, 4vw, 56px);
  margin-inline: clamp(8px, 1.5vw, 24px);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.contact::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--grad-from) 40%, transparent), transparent 60%);
  filter: blur(40px);
  opacity: calc(var(--grad-intensity) * 0.85);
  z-index: 0;
  pointer-events: none;
}
.contact > * { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact .eyebrow,
.contact .eyebrow::before { color: color-mix(in srgb, var(--bg) 50%, transparent); background-color: color-mix(in srgb, var(--bg) 50%, transparent); }
.contact .eyebrow { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.contact h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(38px, 5.8vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.contact h2 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--grad-from) calc(var(--grad-intensity) * 100% + 30%), #fff) 0%,
    color-mix(in srgb, var(--grad-to)   calc(var(--grad-intensity) * 100% + 30%), #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-lead {
  font-size: 17px;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  max-width: 44ch;
  line-height: 1.6;
  margin: 0 0 36px;
}
.contact-info {
  display: grid;
  gap: 14px;
}
.contact-info a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--bg) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  border-radius: 14px;
  transition: background .2s, border-color .2s;
}
.contact-info a:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); border-color: color-mix(in srgb, var(--bg) 26%, transparent); }
.contact-info svg { width: 18px; height: 18px; stroke: var(--bg); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.contact-info .lbl { font-size: 12px; color: color-mix(in srgb, var(--bg) 55%, transparent); font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-info .val { font-size: 15px; }

/* Form */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field label {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 62%, transparent);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: color-mix(in srgb, var(--bg) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
  border-radius: 12px;
  color: var(--bg);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--bg) 40%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: color-mix(in srgb, var(--bg) 42%, transparent);
  background: color-mix(in srgb, var(--bg) 9%, transparent);
}
.form-submit {
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px;
  border: 0; border-radius: 14px;
  background: linear-gradient(95deg, var(--grad-from), var(--grad-to));
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: none;
  transition: transform .2s var(--easing), box-shadow .2s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30,141,228,0.35); }
.form-success {
  display: none;
  margin-top: 8px;
  padding: 16px 18px;
  background: rgba(142, 201, 71, 0.14);
  border: 1px solid rgba(142, 201, 71, 0.45);
  border-radius: 12px;
  font-size: 14px;
  color: var(--bg);
}
.form-success.show { display: block; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  padding: clamp(56px, 7vw, 96px) 0 36px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.footer-tag { font-size: 14px; color: var(--muted); max-width: 36ch; line-height: 1.55; }
.footer-col h5 {
  font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fg-2); transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ── Animations on scroll ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--easing), transform .9s var(--easing);
  will-change: opacity, transform;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: .08s; }
.fade-up.delay-2 { transition-delay: .16s; }
.fade-up.delay-3 { transition-delay: .24s; }
.fade-up.delay-4 { transition-delay: .32s; }
.fade-up.delay-5 { transition-delay: .40s; }
.fade-up.delay-6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-bird, .marquee-track, .hero-eyebrow .dot { animation: none !important; }
}

/* ── CTA — meilleure lisibilité ────────────────────────────────────────── */
.nav-cta {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(13, 17, 16, 0.18);
}
.form-submit {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(13, 17, 16, 0.18);
}
.btn-primary {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(13, 17, 16, 0.18);
}

/* Eyebrow contact — plus visible sur fond sombre */
.contact .eyebrow {
  color: var(--bg);
  font-weight: 600;
}
.contact .eyebrow::before {
  background-color: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* Label « facultatif » */
.field .opt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: color-mix(in srgb, var(--bg) 40%, transparent);
  margin-left: 6px;
  font-weight: 400;
}

/* ── Bouton remonter en haut ──────────────────────────────────────────── */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  box-shadow: 0 8px 24px rgba(30, 141, 228, 0.28), 0 2px 6px rgba(13, 17, 16, 0.18);
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity .3s var(--easing), transform .3s var(--easing), box-shadow .25s;
  cursor: none;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover {
  box-shadow: 0 12px 32px rgba(30, 141, 228, 0.4), 0 2px 6px rgba(13, 17, 16, 0.2);
  transform: translateY(-2px) scale(1.05);
}
@media (hover: none) {
  .to-top { cursor: pointer; }
}

/* ── Responsive — version mobile / tablette ───────────────────────────── */
@media (max-width: 900px) {
  /* Sections : même rythme partout, plus aéré */
  :root {
    --section-py: calc(4.5rem * var(--d));
    --container-pad: 20px;
  }
  .section-card {
    margin-inline: 12px;
    padding-inline: 22px;
    padding-block: calc(var(--section-py) * 0.92);
    border-radius: 24px;
  }
  .contact {
    margin-inline: 12px;
    padding: 56px 22px;
    border-radius: 24px;
  }

  /* Hero : tout centré */
  .hero {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
  }
  .hero-grid { gap: 28px; }
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-actions { margin-inline: auto; }
  .hero-sub { max-width: 36ch; }
  .hero-actions { justify-content: center; }
  .hero-bird {
    width: 70vw;
    right: -18%;
    top: 4%;
    opacity: 0.4;
  }
  .hero-meta { margin-top: 48px; }

  /* Titres de section : centrés et lisibles */
  .eyebrow {
    margin-inline: auto;
    margin-bottom: 14px;
    justify-content: center;
  }
  .section-title {
    margin-inline: auto;
    text-align: center;
    max-width: 22ch;
  }

  /* Process & services : items centrés */
  .step { text-align: center; padding-inline: 8px; }
  .service-card { text-align: left; padding: 28px 24px 24px; }

  /* Réalisations — filtres : grille 2×2 pleine largeur */
  .real-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    text-align: center;
  }
  .real-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
    border-radius: 18px;
  }
  .real-tab {
    justify-content: center;
    padding: 11px 10px;
    font-size: 12.5px;
    border-radius: 14px;
  }
  .real-tab span {
    font-size: 10.5px;
    padding: 1px 5px;
  }

  /* About : valeurs et signature centrées */
  .about-grid { gap: 36px; text-align: center; }
  .about-lead { margin-inline: auto; max-width: 24ch; }
  .about-body p { margin-inline: auto; }
  .about-sig { justify-content: center; }
  .about-values .v { text-align: left; padding: 22px 22px; }

  /* Témoignages : centrés */
  .testi { padding: 26px 24px 22px; }

  /* FAQ : centrée */
  .faq summary { font-size: 17px; }

  /* Contact : titre centré */
  .contact .eyebrow { justify-content: center; }
  .contact h2 { text-align: center; }
  .contact-lead { margin-inline: auto; text-align: center; }
  .contact-info { gap: 10px; }

  /* Formulaire en mobile : champs verticaux */
  .form-row { grid-template-columns: 1fr; }

  /* Footer : tout centré */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding-bottom: 48px;
  }
  .footer-brand { justify-content: center; }
  .footer-tag { margin-inline: auto; }
  .footer-col ul { justify-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Marquee plus petit */
  .marquee-track { font-size: 32px; gap: 32px; }
  .marquee-track span { gap: 32px; }

  /* Hero meta : tout centré */
  .hero-meta-item { text-align: center; padding-inline: 12px; }
  .hero-meta-num { font-size: 32px; }

  /* Nav : compacter */
  .nav { top: 12px; padding: 6px 6px 6px 12px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
  .nav-cta span { display: inline; }
  .nav-theme { width: 34px; height: 34px; }
  .nav-actions { gap: 6px; }

  /* Bouton scroll-top plus discret */
  .to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .nav { padding: 5px 5px 5px 10px; max-width: calc(100% - 20px); gap: 8px; }
  /* On garde le logo (icône) ; on masque seulement le mot "Digitalee" pour gagner de la place */
  .nav-brand span { display: none; }
  .nav-brand img { width: 26px; height: 26px; }
  /* On garde le libellé "Démarrer un projet" + le switch thème visibles sur mobile */
  .nav-cta span { display: inline; }
  .nav-cta { padding: 9px 13px; font-size: 12.5px; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  .nav-theme { width: 34px; height: 34px; flex-shrink: 0; }
  .hero-title { font-size: clamp(40px, 11vw, 68px); }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    padding: 22px 0;
    gap: 20px 0;
  }
  .hero-meta-item:nth-child(odd) { border-left: 0; }
  .hero-meta-item + .hero-meta-item { border-left: 0; }
  .hero-meta-item:nth-child(2) { border-left: 1px solid var(--border); }
  .hero-meta-item:nth-child(4) { border-left: 1px solid var(--border); }
  .hero-meta-item:nth-child(3),
  .hero-meta-item:nth-child(4) {
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }
  .marquee-track { font-size: 26px; }
}

