/* Vitrine d'Arrimage : « l'agence qui arrime votre vie numérique au réel ». */
:root {
  --bg: #f4efe6;
  --paper: #fbf8f2;
  --ink: #10202a;
  --soft: #55606a;
  --line: #ddd5c6;
  --accent: #e07a3a;
  --accent-ink: #b4541b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* En-tête et logo */
.top, .foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1120px; width: 100%; margin: 0 auto; padding: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; text-decoration: none; }
.mark { width: 36px; height: 36px; flex: none; }
.mark-bg { fill: var(--ink); }
.mark-line { fill: none; stroke: var(--bg); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mark-pixel { fill: var(--accent); }
.mark-glint { fill: var(--bg); opacity: 0.9; }
.mark-pixel, .mark-glint { transition: transform 0.4s var(--ease); }
.logo:hover .mark-pixel, .logo:hover .mark-glint { transform: translateY(-2px); }
.top-link { text-decoration: none; border-bottom: 1px solid currentColor; }

/* Accroche */
.hero { padding: 11vh 0 7vh; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--accent-ink); font-weight: 600; margin: 0 0 18px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 26px; max-width: 14em; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--soft); max-width: 34em; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); background: #1d3442; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Le cordage qui relie le pixel (numérique) au point (réel) */
.rope { position: relative; height: 40px; margin: 0 0 56px; }
.rope svg { position: absolute; top: 0; left: 14px; width: calc(100% - 28px); height: 100%; overflow: visible; }
.rope path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rope-end { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; }
.rope-pixel { left: 0; background: var(--accent); border-radius: 2px; }
.rope-dot { right: 0; background: var(--ink); border-radius: 50%; }

/* Ce que nous faisons */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pillars article { background: var(--paper); padding: 28px 24px 32px; }
.pillars span { font-size: 0.8rem; color: var(--accent-ink); font-weight: 600; }
.pillars h2 { font-family: var(--display); font-weight: 600; margin: 10px 0 6px; font-size: 1.45rem; }
.pillars p { margin: 0; color: var(--soft); }

/* Projets */
.projects { padding: 96px 0 40px; scroll-margin-top: 24px; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.01em; margin: 0 0 28px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cards li { display: flex; }
.card { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
a.card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(16, 32, 42, 0.45); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 4px 0 0; }
.card p { margin: 0; color: var(--soft); flex: 1; }
.card-go { margin-top: 8px; font-weight: 600; font-size: 0.92rem; color: var(--accent-ink); }
.card-go span { display: inline-block; transition: transform 0.35s var(--ease); }
a.card:hover .card-go span { transform: translateX(4px); }
.card-soon { background: transparent; border-style: dashed; }
.state { align-self: flex-start; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.state.is-live { color: #23643f; border-color: #b8d8c3; background: #e9f4ec; }

/* Appel final */
.cta { margin: 64px 0 96px; padding: 48px 32px; text-align: center; background: var(--ink); color: var(--bg); border-radius: 20px; }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 10px; }
.cta p { margin: 0 auto 26px; max-width: 30em; color: #c9cfd3; }
.cta .btn { background: var(--accent); color: var(--ink); }
.cta .btn:hover { background: #ec8d50; }

.foot { font-size: 0.85rem; color: var(--soft); border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.8s var(--ease) both; }
  .hero > :nth-child(2) { animation-delay: 0.1s; }
  .hero > :nth-child(3) { animation-delay: 0.22s; }
  .hero > :nth-child(4) { animation-delay: 0.34s; }
  .rope svg { animation: fade 1.2s var(--ease) 0.5s both; }
  .rope-pixel { animation: pop 0.5s var(--ease) 0.3s both; }
  .rope-dot { animation: pop 0.5s var(--ease) 1.2s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fade { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
  @keyframes pop { from { opacity: 0; transform: scale(0.4); } }
}

@media (max-width: 720px) {
  .top, .foot { padding: 18px 16px; }
  main { padding: 0 16px; }
  .pillars { grid-template-columns: 1fr; }
  .cta { padding: 40px 20px; }
}
