/* ============================================================
   DMotteConsulting — stylesheet v2
   ============================================================ */

/* ── Self-hosted fonts (RGPD: no third-party transfer) ── */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  /* Space Grotesk fontsource caps at 700; map 800 to the same file to avoid Arial fallback */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── Tokens ── */
:root {
  --c-bg:        #0B0E11;
  --c-surface:   #0F2440;
  --c-navy:      #1B3A5C;
  --c-text:      #F0EBE1;
  --c-muted:     #7B90A8;
  --c-accent:    #5B9BD5;
  --c-border:    rgba(240, 235, 225, 0.07);
  --c-border-hi: rgba(91, 155, 213, 0.25);
  --c-glow:      rgba(91, 155, 213, 0.12);

  --f-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --f-body:    'Inter', 'Arial', sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --ease:      0.22s ease-out;
  --ease-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
  --gap:       clamp(20px, 4vw, 40px);
  --section-y: clamp(88px, 13vw, 148px);
}

/* ── Base ── */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

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

.section         { padding-block: var(--section-y); }
.section-alt     { background: var(--c-surface); }

/* ── Typography utilities ── */
.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.section-intro {
  max-width: 60ch;
  color: var(--c-muted);
  font-size: 1.0625rem;
  margin-bottom: 56px;
}

/* ── Reveal animations ──
   État caché gaté par html.js : sans JS (ou si reveal.js échoue), le
   contenu reste visible. La classe .js est posée en <head> avant le
   rendu du body, donc pas de flash quand le JS tourne. */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-text);
  color: var(--c-bg);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.btn-ghost {
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: rgba(240,235,225,0.22);
  background: rgba(240,235,225,0.04);
}

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,14,17,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo-accent { color: var(--c-muted); }

/* Glyphe logo : carré navy + D ivoire (SVG inline, couleurs fixes). */
.nav-logo-svg { display: block; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--c-muted);
  transition: color var(--ease);
  position: relative;
  padding-block: 4px;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--c-text); }

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
}

.nav-cta {
  padding: 8px 20px !important;
  background: var(--c-navy);
  color: var(--c-text) !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.nav-cta:hover { background: #234d7a !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 1px;
  transition: var(--ease);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 16vw, 168px);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(91,155,213,0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 65% 100% at 85% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 100% at 85% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-content { max-width: 640px; }

.hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3.25rem, 7.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-accent {
  color: var(--c-accent);
  position: relative;
  display: inline-block;
}
.hero-accent::after {
  content: '';
  position: absolute;
  bottom: 0.06em;
  left: 0;
  right: 0;
  height: 0.06em;
  background: currentColor;
  opacity: 0.35;
  border-radius: 2px;
}

.hero-body {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--c-muted);
  max-width: 52ch;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Hero badge ── */
.hero-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-ring {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.badge-monogram {
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--c-text);
  z-index: 1;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-glow);
  border: 1px solid var(--c-border-hi);
  border-radius: 50%;
}

/* ── Proof bar ── */
.proof-bar {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
  padding-block: 36px;
}

.proof-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.proof-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-inline: clamp(12px, 3vw, 40px);
  text-align: center;
  min-width: 0;
}

.proof-sep {
  flex: 0 0 1px;
}

.proof-num {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-text);
}

.proof-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-muted);
}

.proof-sep {
  width: 1px;
  height: 44px;
  background: var(--c-border);
  flex-shrink: 0;
}

/* ── About ── */
.about-text {
  max-width: 760px;
  margin-bottom: 56px;
}

.about-text p {
  color: var(--c-muted);
  margin-bottom: 18px;
  max-width: 60ch;
}
.about-text p:last-child { margin-bottom: 0; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(240,235,225,0.035);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  transition: border-color var(--ease);
}
.pillar:hover { border-color: var(--c-border-hi); }

.pillar-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-glow);
  border-radius: var(--radius-sm);
  color: var(--c-accent);
  margin-top: 2px;
}

.pillar-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-body strong {
  font-size: 0.9375rem;
  font-weight: 600;
  display: block;
}

.pillar-body span {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.55;
}

/* ── Bento grid (offres) — 7 cards asymétriques ── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Site web (Flagship) et CRM (wide) prennent 2 colonnes */
.bento > .bento-card--featured,
.bento > .bento-card--wide {
  grid-column: span 2;
}

.bento-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease), background var(--ease);
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
}

/* Grand numéro filigrane en background */
.bento-card::before {
  content: attr(data-num);
  position: absolute;
  bottom: -28px;
  right: -16px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-text);
  opacity: 0.028;
  pointer-events: none;
  letter-spacing: -0.06em;
  z-index: 0;
  transition: opacity var(--ease), transform var(--ease);
}

/* Barre lumineuse au top, révélée au hover */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--c-accent) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
  z-index: 1;
}

/* Contenu au-dessus des pseudo-elements */
.bento-card > * { position: relative; z-index: 2; }

.bento-card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-4px);
  box-shadow: 0 28px 64px -8px rgba(0,0,0,0.45), 0 0 0 1px rgba(91,155,213,0.12);
}
.bento-card:hover::before {
  opacity: 0.06;
  transform: translate(-4px, -4px);
}
.bento-card:hover::after {
  opacity: 0.7;
}
.bento-card:hover .bento-arrow {
  transform: translateX(5px);
  color: var(--c-accent);
}

.bento-card--featured {
  background:
    radial-gradient(circle at 85% 15%, rgba(91,155,213,0.1) 0%, transparent 55%),
    linear-gradient(140deg, var(--c-surface) 0%, rgba(27,58,92,0.6) 100%);
}
.bento-card--featured::before {
  font-size: 18rem;
  opacity: 0.045;
  bottom: -50px;
  right: -24px;
}
.bento-card--featured:hover {
  box-shadow: 0 40px 90px -20px var(--c-glow), 0 0 0 1px rgba(91,155,213,0.28);
}
.bento-card--featured:hover::before {
  opacity: 0.07;
}

/* Dot-grid blueprint subtil sur le Flagship */
.bento-card--featured .bento-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(91,155,213,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.bento-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  font-weight: 500;
}
.bento-card--featured .bento-num {
  font-size: 0.8125rem;
  color: var(--c-accent);
}
.bento-num-sep { margin: 0 4px; opacity: 0.5; }
.bento-num-total { opacity: 0.55; }

.bento-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bento-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-glow);
  border-radius: var(--radius-sm);
  color: var(--c-accent);
}
.bento-icon--lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
}

.bento-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  background: rgba(91,155,213,0.1);
  border: 1px solid rgba(91,155,213,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.bento-tag--flagship {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
  font-weight: 600;
}
.bento-tag--new {
  background: linear-gradient(135deg, rgba(91,155,213,0.18) 0%, rgba(91,155,213,0.08) 100%);
  color: var(--c-accent);
  border-color: rgba(91,155,213,0.4);
  font-weight: 600;
  position: relative;
}
.bento-tag--new::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--c-accent);
  animation: tag-pulse 2.4s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.bento-card--wide .bento-title {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
}
.bento-card--wide .bento-desc {
  font-size: 1rem;
}

.bento-title {
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bento-card--featured .bento-title {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  margin-bottom: 4px;
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.6;
}
.bento-card--featured .bento-desc {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.bento-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.bento-list li {
  font-size: 0.8125rem;
  color: var(--c-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.bento-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.55;
}

.bento-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--c-border);
}

.bento-price {
  font-size: 0.875rem;
  color: var(--c-text);
}
.bento-price strong {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-accent);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.bento-price-prefix,
.bento-price-suffix {
  color: var(--c-muted);
  font-size: 0.8125rem;
}

.bento-arrow {
  font-size: 1.375rem;
  color: var(--c-muted);
  transition: transform var(--ease), color var(--ease);
  font-family: var(--f-display);
}

/* ── Process ── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  position: relative;
}

/* Connecting line behind step numbers */
.process::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(91,155,213,0.3) 15%,
    rgba(91,155,213,0.3) 85%,
    transparent 100%);
  pointer-events: none;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-glow);
  border: 1px solid rgba(91,155,213,0.3);
  color: var(--c-accent);
  font-family: var(--f-display);
  font-size: 0.8125rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  background: var(--c-surface);
}

.step-title {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-body {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 22ch;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.project-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--ease), transform var(--ease);
}
.project-card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-2px);
}

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

.project-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
}

.project-idx {
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(240,235,225,0.1);
}

.project-title {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.project-body {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}
.project-stack li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-muted);
  background: rgba(240,235,225,0.05);
  border: 1px solid var(--c-border);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  transition: gap .15s ease, color .15s ease;
}
.project-link:hover { gap: 10px; }

/* ── Contact ── */
.contact-section { background: var(--c-surface); }

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact-body {
  color: var(--c-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 28px;
}

/* Formulaire de contact */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--c-text);
  background: rgba(11, 14, 17, 0.5);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color var(--ease), background var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--c-muted);
  opacity: 0.6;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(11, 14, 17, 0.7);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237B90A8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='m4 6 4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-consent {
  margin: 4px 0 0;
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-status {
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.form-status-success {
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.30);
  color: #a7f3c0;
}
.form-status-error {
  background: rgba(255, 107, 107, 0.10);
  border: 1px solid rgba(255, 107, 107, 0.30);
  color: #ffb3b3;
}

.contact-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--c-muted);
}

.contact-pack-hint {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(91,155,213,0.10);
  border: 1px solid rgba(91,155,213,0.28);
  color: var(--c-text);
  font-size: 0.875rem;
}

.contact-pack-hint strong {
  color: var(--c-accent);
  font-weight: 600;
}

.available-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.18);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
  50%       { box-shadow: 0 0 0 7px rgba(74,222,128,0.06); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: rgba(240,235,225,0.035);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}
.contact-info-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.contact-info-item > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--c-glow);
  border-radius: var(--radius-sm);
  color: var(--c-accent);
  margin-top: 2px;
}

.contact-info-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
}

.contact-info-value {
  font-size: 0.9375rem;
  color: var(--c-text);
  word-break: break-word;
}
a.contact-info-value:hover { color: var(--c-accent); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--c-muted);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--c-text); }

/* ── Responsive: tablet ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { display: none; }

  .about-pillars { grid-template-columns: 1fr; }
  .about-text { margin-bottom: 40px; }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento > .bento-card--featured,
  .bento > .bento-card--wide {
    grid-column: span 2;
    grid-row: auto;
  }

  .process { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process::before { display: none; }
  .process-step { text-align: left; align-items: flex-start; }
  .step-body { max-width: none; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Responsive: mobile ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(11,14,17,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    gap: 0;
    padding-block: 12px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px var(--gap);
    font-size: 1rem;
  }
  .nav-cta {
    margin: 8px var(--gap);
    text-align: center;
    display: block !important;
    padding: 12px var(--gap) !important;
  }
  .nav-toggle { display: flex; }

  .bento { grid-template-columns: 1fr; }
  .bento > .bento-card--featured,
  .bento > .bento-card--wide { grid-column: auto; }

  .process { grid-template-columns: 1fr; }
  .process::before { display: none; }
  .process-step { align-items: flex-start; text-align: left; }
  .step-body { max-width: none; }

  .projects-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; justify-content: stretch; }
  .proof-sep { display: none; }
  .proof-item { align-items: flex-start; padding-inline: 0; padding-block: 8px; text-align: left; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ═══════════════════════════════════════════════
   Articles — preview cards (main page)
   ═══════════════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.article-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--ease), transform var(--ease);
}
.article-card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-2px);
}
.article-card:hover .article-card-link { gap: 12px; }
.article-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.article-card-link:focus-visible { outline: none; }
.article-card:focus-within {
  border-color: var(--c-border-hi);
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
}

.article-date {
  font-size: 0.75rem;
  color: var(--c-muted);
}

.article-card-title {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  flex-grow: 1;
}

.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.65;
}

.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-accent);
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  transition: gap var(--ease);
  margin-top: auto;
}
.article-card-link:hover { gap: 12px; }

.articles-more { text-align: center; }

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────
   TERMINAL — signature dev visible sur la home
   ────────────────────────────────────────────────────────────── */

.terminal-section {
  padding-block: clamp(40px, 7vw, 80px);
}

.terminal {
  max-width: 760px;
  margin-inline: auto;
  border-radius: var(--radius-md);
  background: #050709;
  border: 1px solid var(--c-border);
  box-shadow:
    0 30px 80px -30px var(--c-glow),
    0 8px 24px -8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: rgba(240, 235, 225, 0.03);
  border-bottom: 1px solid var(--c-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.td {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }

.terminal-title {
  color: var(--c-muted);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 22px 26px 28px;
  margin: 0;
  color: var(--c-text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.t-prompt { color: var(--c-accent); }
.t-cmd    { color: var(--c-text); font-weight: 500; }
.t-flag   { color: #d4a25c; }
.t-key    { color: var(--c-accent); font-weight: 500; }
.t-comment { color: var(--c-muted); }

.t-caret {
  display: inline-block;
  color: var(--c-accent);
  animation: t-blink 1s steps(2) infinite;
}
@keyframes t-blink { 50% { opacity: 0; } }

@media (max-width: 640px) {
  .terminal-body {
    font-size: 0.75rem;
    padding: 18px 18px 22px;
  }
  .terminal-title { font-size: 0.6875rem; }
}

/* ──────────────────────────────────────────────────────────────
   PRINCIPES TECHNIQUES — 4 cards non négociables
   ────────────────────────────────────────────────────────────── */

.principes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.principe-card {
  background: rgba(91, 155, 213, 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 26px 22px 28px;
  position: relative;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.principe-card:hover {
  border-color: var(--c-border-hi);
  background: rgba(91, 155, 213, 0.06);
  transform: translateY(-2px);
}

.principe-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.principe-title {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--c-text);
}

.principe-body {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .principes-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .principes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .principes-grid { grid-template-columns: 1fr; gap: 14px; }
  .principe-card { padding: 22px 20px 24px; }
  .principe-title { font-size: 1.125rem; }
  .principe-body { font-size: 0.9375rem; }
}

/* ══════════════════════════════════════════════════════════════
   THEME — Mode jour (refonte : ivoire propre, contrastes nets)
   ══════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --c-bg:         #FAF6EC;
  --c-surface:    #FFFFFF;
  --c-surface-2:  #F4ECD8;
  --c-navy:       #1B3A5C;
  --c-text:       #0F2240;
  --c-muted:      #5A6B82;
  --c-accent:     #2861A2;
  --c-border:     rgba(15, 34, 64, 0.10);
  --c-border-hi:  rgba(40, 97, 162, 0.45);
  --c-glow:       rgba(40, 97, 162, 0.08);
}

[data-theme="light"] body {
  background: var(--c-bg);
}

/* Header */
[data-theme="light"] .site-header {
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--c-border);
}

/* Sections alternées */
[data-theme="light"] .section-alt {
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
[data-theme="light"] .contact-section {
  background: var(--c-surface-2);
}

/* Proof bar */
[data-theme="light"] .proof-bar {
  background: #EFE7CF;
  border-color: var(--c-border);
}
[data-theme="light"] .proof-label {
  color: #54657C; /* 4.82:1 sur #EFE7CF — WCAG 1.4.3 AA */
}

/* Hero dots */
[data-theme="light"] .hero-dots {
  background-image: radial-gradient(circle, rgba(40, 97, 162, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Section labels — petite ligne accent */
[data-theme="light"] .section-label,
[data-theme="light"] .hero-label,
[data-theme="light"] .page-hero-label {
  position: relative;
  padding-left: 28px;
}
[data-theme="light"] .section-label::before,
[data-theme="light"] .hero-label::before,
[data-theme="light"] .page-hero-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--c-accent);
}

/* Mobile nav */
@media (max-width: 640px) {
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--c-border);
  }
}

/* Breadcrumb */
[data-theme="light"] .breadcrumb-bar {
  background: rgba(15, 34, 64, 0.025);
}

/* Cards génériques : fond blanc, ombre douce, hover propre */
[data-theme="light"] .bento-card,
[data-theme="light"] .project-card,
[data-theme="light"] .article-card,
[data-theme="light"] .pillar,
[data-theme="light"] .contact-card {
  background: var(--c-surface);
  border-color: var(--c-border);
  box-shadow:
    0 1px 2px rgba(15, 34, 64, 0.04),
    0 8px 24px -14px rgba(15, 34, 64, 0.18);
}
[data-theme="light"] .bento-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .article-card:hover,
[data-theme="light"] .pillar:hover {
  border-color: var(--c-border-hi);
  box-shadow:
    0 1px 2px rgba(15, 34, 64, 0.06),
    0 20px 40px -16px rgba(40, 97, 162, 0.22);
}

/* Bento featured */
[data-theme="light"] .bento-card--featured {
  background: linear-gradient(145deg, #FFFFFF 0%, #F0F5FB 100%);
  border-color: rgba(40, 97, 162, 0.22);
}
[data-theme="light"] .bento-card--featured:hover {
  border-color: rgba(40, 97, 162, 0.42);
}
[data-theme="light"] .bento-card::before {
  color: rgba(15, 34, 64, 0.06);
}
[data-theme="light"] .bento-card:hover::before {
  opacity: 0.10;
}

/* Bento tags */
[data-theme="light"] .bento-tag {
  background: rgba(40, 97, 162, 0.08);
  border-color: rgba(40, 97, 162, 0.22);
  color: var(--c-accent);
}
[data-theme="light"] .bento-tag--flagship {
  background: var(--c-accent);
  color: #FFFFFF;
}

/* Project stack chips */
[data-theme="light"] .project-stack li {
  background: rgba(40, 97, 162, 0.06);
  border-color: rgba(40, 97, 162, 0.18);
  color: var(--c-text);
}
[data-theme="light"] .project-idx {
  color: rgba(15, 34, 64, 0.18);
}

/* Boutons */
[data-theme="light"] .btn-primary {
  background: var(--c-navy);
  color: #FFFFFF;
}
[data-theme="light"] .btn-primary:hover {
  background: #234d7a;
  box-shadow: 0 8px 20px rgba(27, 58, 92, 0.20);
}
[data-theme="light"] .btn-ghost {
  border-color: rgba(15, 34, 64, 0.20);
  color: var(--c-text);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(40, 97, 162, 0.06);
  border-color: var(--c-border-hi);
}
[data-theme="light"] .nav-cta {
  color: #FFFFFF !important;
}

/* Skip link */
[data-theme="light"] .skip-link {
  color: #FFFFFF;
}

/* Hero accent underline */
[data-theme="light"] .hero-accent::after {
  opacity: 0.35;
}

/* Badge ring (monogram DM) */
[data-theme="light"] .badge-monogram {
  background: rgba(40, 97, 162, 0.10);
  border-color: rgba(40, 97, 162, 0.40);
  color: var(--c-text);
}

/* Formulaire contact en mode jour */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
  background: #FFFFFF;
  color: var(--c-text);
  border-color: rgba(15, 34, 64, 0.16);
}
[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form select:focus,
[data-theme="light"] .contact-form textarea:focus {
  background: #FFFFFF;
  border-color: var(--c-accent);
}
[data-theme="light"] .form-status-success {
  background: rgba(34, 139, 80, 0.08);
  border-color: rgba(34, 139, 80, 0.30);
  color: #14532d;
}
[data-theme="light"] .form-status-error {
  background: rgba(190, 36, 36, 0.08);
  border-color: rgba(190, 36, 36, 0.30);
  color: #7c1d1d;
}
[data-theme="light"] .contact-info-icon {
  background: rgba(40, 97, 162, 0.10);
  color: var(--c-accent);
}

/* Pack featured (offres.css) */
[data-theme="light"] .pack-card--featured {
  background: linear-gradient(145deg, #FFFFFF 0%, #F0F5FB 100%);
  box-shadow: 0 0 0 1px var(--c-accent), 0 16px 36px -10px rgba(40, 97, 162, 0.18);
}
[data-theme="light"] .pack-tag {
  color: #FFFFFF;
}

/* Pack / cat / combo */
[data-theme="light"] .pack-card,
[data-theme="light"] .cat-card,
[data-theme="light"] .combo-card {
  background: var(--c-surface);
  box-shadow:
    0 1px 2px rgba(15, 34, 64, 0.04),
    0 6px 16px -10px rgba(15, 34, 64, 0.12);
}
[data-theme="light"] .pack-card:hover,
[data-theme="light"] .cat-card:hover,
[data-theme="light"] .combo-card:hover {
  box-shadow:
    0 1px 2px rgba(15, 34, 64, 0.06),
    0 18px 36px -12px rgba(40, 97, 162, 0.18);
}

/* CTA band */
[data-theme="light"] .cta-band {
  background: linear-gradient(135deg, var(--c-surface) 0%, #F0F5FB 100%);
}

/* Comparison table */
[data-theme="light"] .comparison-table tbody tr:hover {
  background: rgba(40, 97, 162, 0.04);
}
[data-theme="light"] .th-featured {
  background: rgba(40, 97, 162, 0.10);
}
[data-theme="light"] .td-featured {
  background: rgba(40, 97, 162, 0.04);
}

/* FAQ */
[data-theme="light"] .faq-question:hover {
  background: rgba(40, 97, 162, 0.04);
}
[data-theme="light"] .faq-item.is-open .faq-question {
  background: rgba(40, 97, 162, 0.08);
}
[data-theme="light"] .faq-answer-inner {
  background: rgba(40, 97, 162, 0.03);
}

/* Article content */
[data-theme="light"] .article-content blockquote {
  background: var(--c-surface);
}
[data-theme="light"] .article-content .highlight-box {
  background: rgba(40, 97, 162, 0.08);
  border-color: rgba(40, 97, 162, 0.25);
}

/* Combo example + non-inclus boxes */
[data-theme="light"] .combo-example,
[data-theme="light"] .non-inclus-box,
[data-theme="light"] .conditions-band {
  background: rgba(15, 34, 64, 0.025);
}

/* Terminal reste sombre — pas d'override */

/* ══════════════════════════════════════════════════════════════
   THEME TOGGLE — bouton sun/moon dans la nav
   ══════════════════════════════════════════════════════════════ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  background: transparent;
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--c-accent);
  border-color: var(--c-border-hi);
  background: var(--c-glow);
  transform: rotate(-15deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

/* Place le toggle entre les liens et le CTA — il est inséré en LI */
.nav-links li.theme-toggle-wrap {
  display: flex;
  align-items: center;
}

@media (max-width: 640px) {
  .nav-links li.theme-toggle-wrap {
    padding: 8px var(--gap);
    border-top: 1px solid var(--c-border);
    margin-top: 4px;
  }
  .theme-toggle {
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    gap: 10px;
  }
  .theme-toggle::after {
    content: 'Basculer le thème';
    font-size: 0.875rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   CARDS TRACKABLES — micro-CTA "Demander" sur cards mailto
   ══════════════════════════════════════════════════════════════ */

.track-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-accent);
  margin-top: 4px;
}
.track-cta-arrow { transition: transform var(--ease); }
.project-card:hover .track-cta-arrow,
.bento-card:hover .track-cta-arrow { transform: translateX(4px); }

/* Cards explicitement trackées — clic ouvre le gate */
.is-trackable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.is-trackable:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

/* ══════════════════════════════════════════════════════════════
   LEAD GATE — modal de capture pour accéder au portfolio
   ══════════════════════════════════════════════════════════════ */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lead-modal[hidden] { display: none; }

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 17, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lead-fade 0.2s ease-out;
}
[data-theme="light"] .lead-modal-backdrop {
  background: rgba(18, 32, 53, 0.55);
}

.lead-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--c-bg);
  border: 1px solid var(--c-border-hi);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(91,155,213,0.10);
  animation: lead-rise 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .lead-modal-card {
  background: #FDFBF4;
  box-shadow: 0 32px 80px rgba(18,32,53,0.25), 0 0 0 1px rgba(46,108,171,0.18);
}

@keyframes lead-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lead-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease), border-color var(--ease), transform var(--ease);
}
.lead-modal-close:hover {
  color: var(--c-text);
  border-color: var(--c-border-hi);
  transform: rotate(90deg);
}

.lead-modal-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.lead-modal-title {
  font-family: var(--f-display);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.lead-modal-project { color: var(--c-accent); }

.lead-modal-lead {
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-field > span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}
.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(240,235,225,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color var(--ease), background var(--ease);
}
[data-theme="light"] .lead-field input,
[data-theme="light"] .lead-field textarea {
  background: rgba(18,32,53,0.03);
  border-color: rgba(18,32,53,0.15);
}
.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(91,155,213,0.06);
}
[data-theme="light"] .lead-field input:focus,
[data-theme="light"] .lead-field textarea:focus {
  background: rgba(46,108,171,0.05);
}
.lead-field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--f-body);
}

.lead-actions {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.lead-rgpd {
  flex: 1;
  min-width: 200px;
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.lead-submit {
  position: relative;
  flex-shrink: 0;
  padding: 12px 22px !important;
  font-size: 0.9375rem !important;
  white-space: nowrap;
}
.lead-submit.is-loading .lead-submit-label { opacity: 0; }
.lead-submit-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0;
  animation: lead-spin 0.7s linear infinite;
}
.lead-submit.is-loading .lead-submit-spin { opacity: 1; }
@keyframes lead-spin { to { transform: rotate(360deg); } }

.lead-error {
  margin-top: 4px;
  padding: 10px 14px;
  background: rgba(255, 95, 87, 0.10);
  border: 1px solid rgba(255, 95, 87, 0.30);
  border-radius: var(--radius-sm);
  color: #ff8a82;
  font-size: 0.8125rem;
}

/* Success state */
.lead-modal-body[data-lead-state="success"] {
  text-align: center;
  padding-block: 8px 16px;
}
.lead-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
}
.lead-success-text {
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.lead-success-text strong { color: var(--c-text); }
.lead-success-redirect {
  font-size: 0.8125rem;
  color: var(--c-accent);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 560px) {
  .lead-modal { padding: 12px; }
  .lead-modal-card { padding: 28px 22px 24px; }
  .lead-modal-title { font-size: 1.375rem; }
  .lead-field-row { grid-template-columns: 1fr; }
  .lead-actions { flex-direction: column; align-items: stretch; }
  .lead-submit { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   ENGAGEMENTS — manifesto rows (vertical, numéro géant à gauche)
   ══════════════════════════════════════════════════════════════ */

.engagements {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--c-border);
}

.engagement {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 200px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px) clamp(8px, 1.5vw, 18px);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  transition: background var(--ease);
  align-items: start;
}

.engagement::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c-accent);
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition: opacity var(--ease), transform var(--ease);
}

.engagement:hover {
  background: linear-gradient(90deg, var(--c-glow) 0%, transparent 70%);
}
.engagement:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.engagement-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-display);
  line-height: 1;
  position: sticky;
  top: 88px;
}
.num-big {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--c-accent);
  background: linear-gradient(180deg, var(--c-accent) 0%, rgba(91,155,213,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.num-of {
  font-size: 0.75rem;
  color: var(--c-muted);
  letter-spacing: 0.18em;
  font-weight: 500;
}

.engagement-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 68ch;
}

.engagement-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.engagement-tag {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-glow);
  border: 1px solid var(--c-border-hi);
  padding: 4px 12px;
  border-radius: 100px;
}

.engagement-promise {
  font-size: 0.8125rem;
  color: var(--c-muted);
  font-style: italic;
  position: relative;
  padding-left: 14px;
}
.engagement-promise::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--c-muted);
  opacity: 0.6;
}

.engagement-title {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.3vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--c-text);
}

.engagement-text {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* Light mode — engagements */
[data-theme="light"] .engagement:hover {
  background: linear-gradient(90deg, rgba(40,97,162,0.10) 0%, transparent 70%);
}
[data-theme="light"] .num-big {
  background: linear-gradient(180deg, #1B3A5C 0%, #2861A2 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 720px) {
  .engagement {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 28px;
  }
  .engagement-num {
    position: static;
    margin-bottom: 4px;
  }
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE — méthode (horizontal cards + connectors)
   ══════════════════════════════════════════════════════════════ */

.methode-section {
  position: relative;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Ligne de connexion derrière les markers */
.timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background:
    linear-gradient(90deg, transparent 0%, var(--c-border-hi) 8%, var(--c-border-hi) 92%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Petits chevrons entre les étapes */
.timeline .tl-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 36px;
  right: -8px;
  font-family: var(--f-display);
  font-size: 1.125rem;
  color: var(--c-accent);
  background: var(--c-bg);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(0, -50%);
  z-index: 2;
  opacity: 0.7;
}

.tl-step {
  position: relative;
  text-align: center;
  padding: 0 14px;
  z-index: 1;
}

.tl-marker {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-border-hi);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: var(--ease);
}
.tl-step:hover .tl-marker {
  border-color: var(--c-accent);
  transform: scale(1.05);
  box-shadow: 0 0 0 8px var(--c-glow);
}

.tl-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.20em;
  color: var(--c-muted);
  margin-bottom: 8px;
}

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.tl-title {
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.tl-body {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 26ch;
}

.tl-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--c-border);
  width: 100%;
}

.tl-duration {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

.tl-pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 100px;
  background: var(--c-glow);
  border: 1px solid var(--c-border-hi);
  color: var(--c-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tl-deliverable {
  font-size: 0.75rem;
  color: var(--c-muted);
  font-style: italic;
  line-height: 1.4;
}

/* Light mode — markers en blanc ivoire qui pop sur cream */
[data-theme="light"] .tl-marker {
  background: #FFFCF1;
  border-color: rgba(40,97,162,0.40);
  box-shadow: 0 6px 18px -8px rgba(15,34,64,0.20);
}
[data-theme="light"] .tl-step:hover .tl-marker {
  background: #fff;
  border-color: var(--c-accent);
}
[data-theme="light"] .timeline .tl-step:not(:last-child)::after {
  background: var(--c-bg);
}
[data-theme="light"] .tl-meta { border-color: rgba(15,34,64,0.10); }

/* Responsive — vertical sur mobile */
@media (max-width: 840px) {
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 36px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent 0%, var(--c-border-hi) 8%, var(--c-border-hi) 92%, transparent 100%);
  }
  .timeline .tl-step:not(:last-child)::after { display: none; }
  .tl-step {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 22px;
    text-align: left;
    padding: 0;
  }
  .tl-marker { margin: 0; width: 72px; height: 72px; }
  .tl-num { text-align: left; margin-bottom: 6px; }
  .tl-content { align-items: flex-start; padding-top: 6px; }
  .tl-body { max-width: none; }
  .tl-meta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; width: auto; }
}

/* ── Pages légales ── */
.legal { max-width: 760px; }
.legal h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-text);
  margin: 40px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--c-muted); line-height: 1.7; margin-bottom: 16px; }
.legal ul { color: var(--c-muted); line-height: 1.7; margin: 0 0 16px; padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--c-accent); }
.legal strong { color: var(--c-text); font-weight: 600; }
.legal .legal-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: .8125rem;
  font-style: italic;
}

/* ── Barre légale du footer ── */
.footer-legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8125rem;
  color: var(--c-muted);
}
.footer-legal nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--c-muted); }
.footer-legal a:hover { color: var(--c-accent); }

/* ── Lien social (LinkedIn) dans le footer ── */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -6px 0;
  border-radius: var(--radius-md);
  color: var(--c-muted);
  transition: color var(--ease), background var(--ease);
}
.footer-social svg { display: block; }
.footer-social:hover { color: var(--c-accent); }
.footer-social:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ── Icônes SVG inline (remplacent les anciens emojis décoratifs) ── */
.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
}

/* Lien complémentaire sous la grille bento (révision/maintenance) */
.bento-more {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--c-muted);
}
.bento-more a { color: var(--c-accent); }
.bento-more a:hover { text-decoration: underline; }

/* === Signature : Boot terminal ===
   Une ligne zsh se tape caractère par caractère au chargement (boot.js),
   puis un caret ▌ clignote. Prompt en bleu acier. Reduced-motion safe :
   boot.js affiche la ligne complète d'emblée si motion réduit. */
.dm-boot {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-text);
  display: inline-flex;
  align-items: baseline;
  white-space: pre;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
}
.dm-boot__prompt { color: var(--c-accent); font-weight: 500; }
.dm-boot__flag   { color: var(--c-accent); }
.dm-boot__caret {
  display: inline-block;
  width: 0.6ch;
  margin-left: 1px;
  color: var(--c-accent);
  animation: dm-boot-blink 1s steps(2, start) infinite;
}
@keyframes dm-boot-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dm-boot__caret { animation: none; }
}
/* Mobile : la commande complète (dont --pixel-ready) doit rester visible dès 360px.
   On réduit la taille via clamp ; sous 480px on masque l'hôte zsh pour garantir
   que ❯ build --site --pixel-ready ne soit jamais clippé. */
@media (max-width: 600px) {
  .dm-boot { font-size: clamp(0.6875rem, 3.2vw, 0.8125rem); }
}
@media (max-width: 480px) {
  .dm-boot__host { display: none; }
}

/* === Signature CLI des heroes intérieurs ===
   Marqueur invite de commande statique au-dessus du H1 des pages /offres,
   /tarifs et /offres/*. Même registre terminal que .dm-boot de la home, sans
   typewriter. ❯ en bleu acier, le reste en muted. Rendu identique jour/nuit
   (pas de tiret ornemental ::before, contrairement à .page-hero-label). */
.page-hero-label.hero-cli {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: none;
  color: var(--c-text);
  margin-bottom: 18px;
  max-width: 100%;
}
.hero-cli__prompt { color: var(--c-accent); font-weight: 500; }
.hero-cli__comment { color: var(--c-muted); font-weight: 400; }
/* Rendu identique jour/nuit : pas de tiret ornemental ::before. */
[data-theme="light"] .page-hero-label.hero-cli { padding-left: 0; }
[data-theme="light"] .page-hero-label.hero-cli::before { content: none; }
@media (max-width: 600px) {
  .page-hero-label.hero-cli { font-size: clamp(0.6875rem, 3.2vw, 0.75rem); }
}
@media (max-width: 420px) {
  .hero-cli__comment { display: none; }
}

/* (signature « Brackets » au survol retirée le 2026-06-02 — survols neutres, rendu pro) */
