/* =========================================================
   Websly — feuille de style principale
   Studio web & visuels — La Chaux-de-Fonds
   ========================================================= */

:root {
  --ink: #0f2539;
  --ink-2: #4a5570;
  --ink-3: #6b7590;
  --paper: #ffffff;
  --mist: #eef1f6;
  --line: #d9dee8;
  --cobalt: #2f5bff;
  --cobalt-dark: #1d43d6;
  --signal: #f4f5c6;
  --night: #0f2539;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.8vw, 2rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.9rem + 3vw, 4.4rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 12px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; line-height: 1.5; }
.muted { color: var(--ink-2); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--signal); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; flex: none; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover { background: var(--mist); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--mist); font-weight: 700; }
.main-nav .nav-cta a { background: var(--ink); color: #fff; margin-left: 8px; padding-inline: 18px; }
.main-nav .nav-cta a:hover,
.main-nav .nav-cta a[aria-current="page"] { background: var(--cobalt); color: #fff; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  content: "";
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; left: 0; margin: 0; }
.nav-toggle span::after { top: 6px; left: 0; margin: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 24px var(--gutter) 40px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 18px 4px; border-radius: 0; font-size: 1.4rem; font-weight: 600; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: transparent; color: var(--cobalt); }
  .main-nav .nav-cta { border: 0; margin-top: 24px; }
  .main-nav .nav-cta a { margin: 0; text-align: center; border-radius: 999px; padding: 16px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-mist { background: var(--mist); }
.section-night { background: var(--night); color: #e8ecf5; }
.section-night h2, .section-night h3 { color: #fff; }
.section-night .lead, .section-night .muted { color: #b5bfd6; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.section-night .section-head p { color: #b5bfd6; }

/* ---------- Héros (plan en damier) ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: 1.8em; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 2.2em 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: var(--step--1);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }

/* Le plan : rues parallèles et îlots, clin d'œil au plan en damier de La Chaux-de-Fonds */
.plan {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(48px, 6vw, 78px);
  gap: clamp(8px, 1.1vw, 14px);
  padding: clamp(10px, 1.4vw, 18px);
  background: var(--mist);
  border-radius: var(--radius-m);
  transform: rotate(-2deg);
}
.plan .block {
  border-radius: 4px;
  background: #dfe4ee;
}
.plan .block.b-dark { background: var(--ink); }
.plan .block.b-cobalt { background: var(--cobalt); }
.plan .lot {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(20, 33, 61, 0.45);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s;
}
.plan .lot:hover { transform: translateY(-4px); }
.plan .lot .mock { height: 100%; border-radius: 0; box-shadow: none; }
.plan .lot-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.plan .lot-yours {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: var(--ink);
  color: var(--signal);
  box-shadow: none;
  font-weight: 700;
  line-height: 1.2;
}
.plan .lot-yours small { font-weight: 500; font-size: 0.82rem; }
.plan .lot-yours svg { width: 22px; height: 22px; }

.plan-a { grid-column: 1 / 5; grid-row: 1 / 4; }
.plan-b { grid-column: 5 / 7; grid-row: 2 / 5; }
.plan-c { grid-column: 3 / 5; grid-row: 4 / 6; }

@media (prefers-reduced-motion: no-preference) {
  .plan > * { animation: rise 0.6s cubic-bezier(.2,.7,.2,1) both; }
  .plan > *:nth-child(2) { animation-delay: 0.05s; }
  .plan > *:nth-child(3) { animation-delay: 0.1s; }
  .plan > *:nth-child(4) { animation-delay: 0.15s; }
  .plan > *:nth-child(5) { animation-delay: 0.2s; }
  .plan > *:nth-child(6) { animation-delay: 0.25s; }
  .plan > *:nth-child(7) { animation-delay: 0.3s; }
  .plan > *:nth-child(8) { animation-delay: 0.35s; }
  .plan > *:nth-child(n+9) { animation-delay: 0.4s; }
  .plan .lot { animation-duration: 0.8s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plan { transform: none; }
}
@media (max-width: 520px) {
  .plan { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 52px; }
  .plan .block { display: none; }
  .plan-a { grid-column: 1 / 5; grid-row: 1 / 4; }
  .plan-b { grid-column: 1 / 3; grid-row: 4 / 7; }
  .plan-c { grid-column: 3 / 5; grid-row: 4 / 7; }
}

/* ---------- Aperçu de site (mockup navigateur) ---------- */
.mock {
  --m-bg: #fff;
  --m-fg: #14213d;
  --m-ac: #2f5bff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--m-bg);
  color: var(--m-fg);
  box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.5);
  isolation: isolate;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 28px;
  padding: 0 10px;
  background: #e9ecf2;
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c3c9d6; }
.mock-url {
  flex: 1;
  max-width: 60%;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  color: #6b7590;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.mock-shot {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.mock-fake {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6%;
  padding: 5% 6%;
  container-type: inline-size;
}
.mock-nav { display: flex; align-items: center; gap: 4%; }
.mock-nav .dot { width: 6cqi; aspect-ratio: 1; border-radius: 50%; background: var(--m-ac2, var(--m-ac)); flex: none; }
.mock-nav .bar { height: 1.4cqi; width: 8%; border-radius: 2px; background: currentColor; opacity: 0.35; }
.mock-nav .bar:first-of-type { margin-left: auto; }
.mock-nav .pill { width: 14%; height: 4cqi; border-radius: 99px; background: var(--m-ac); }
.mock-title {
  margin: 4% 0 0;
  max-width: 82%;
  font-size: 7.5cqi;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.mock.serif .mock-title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mock-sub { display: flex; flex-direction: column; gap: 1.6cqi; width: 55%; }
.mock-sub span { height: 1.4cqi; border-radius: 2px; background: currentColor; opacity: 0.3; }
.mock-sub span:last-child { width: 70%; }
.mock-cta { display: flex; gap: 3%; }
.mock-cta span { width: 22%; height: 5.5cqi; border-radius: 99px; background: var(--m-ac); }
.mock-cta span + span { background: transparent; border: 1px solid var(--m-ac2, currentColor); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: auto; }
.mock-cards span { aspect-ratio: 4 / 3; border-radius: 1.5cqi; background: currentColor; opacity: 0.1; }
.mock-glow {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--m-ac2, var(--m-ac));
  opacity: 0.35;
  filter: blur(30px);
  z-index: -1;
}

/* ---------- Projets à la une (accueil + réalisations) ---------- */
.showcase { display: grid; gap: clamp(56px, 8vw, 96px); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.case:nth-child(even) .case-visual { order: 2; }
.case-visual { display: block; text-decoration: none; }
.case-visual .mock { aspect-ratio: 16 / 10.5; transition: transform 0.3s; }
.case-visual:hover .mock { transform: translateY(-6px); }
.case-kind { margin: 0 0 0.6em; color: var(--cobalt); font-weight: 600; }
.case h3 { font-size: var(--step-3); letter-spacing: -0.03em; }
.case p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 1.6em; padding: 0; list-style: none; }
.tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.case-links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
}
.text-link:hover { color: var(--cobalt); text-decoration-color: currentColor; }
.text-link svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
}

/* ---------- Autres clients ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s;
}
.client:hover { background: var(--mist); color: var(--ink); }
.client-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--c, var(--ink));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}
.client strong { display: block; font-size: 1.08rem; }
.client span.url { color: var(--ink-3); font-size: var(--step--1); }

/* ---------- Filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-state { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius-m); text-align: center; color: var(--ink-2); }

/* ---------- Grille de projets (réalisations) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px);
}
.project-card { display: flex; flex-direction: column; gap: 16px; color: var(--ink); text-decoration: none; }
.project-card .mock { aspect-ratio: 16 / 11; transition: transform 0.3s; }
.project-card:hover .mock { transform: translateY(-5px); }
.project-card:hover h3 { color: var(--cobalt); }
.project-card h3 { margin: 0 0 4px; font-size: var(--step-1); }
.project-card p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }

/* ---------- Services ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.pillar { padding: 28px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar svg { width: 36px; height: 36px; color: var(--cobalt); margin-bottom: 18px; }
.pillar h3 { font-size: var(--step-2); }
.pillar p { color: var(--ink-2); }
.pillar ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.pillar li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pillar li:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

.service-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 16px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row h3 { margin: 0; font-size: var(--step-2); }
.service-row p { margin: 0; color: var(--ink-2); }
.service-row .from { white-space: nowrap; font-weight: 600; color: var(--ink); }
.service-row .from small { display: block; font-weight: 400; color: var(--ink-3); }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 8px; }
}

.service-groups { display: grid; gap: clamp(56px, 8vw, 96px); }
.service-group { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); }
.service-group-head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.service-group-head p { color: var(--ink-2); }
.service-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.service-item { padding: 22px 0; border-top: 1px solid var(--line); }
.service-item h3 { margin-bottom: 6px; }
.service-item p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .service-group { grid-template-columns: 1fr; }
  .service-group-head { position: static; }
}
@media (max-width: 560px) {
  .service-items { grid-template-columns: 1fr; }
}

/* ---------- Étapes (vraie séquence) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 0 24px 0 0;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 44px;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.steps li:last-child::after { display: none; }
.steps h3 { color: #fff; }
.steps p { margin: 0; color: #b5bfd6; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { padding: 0 0 0 68px; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .steps li::after { top: 44px; left: 21px; right: auto; bottom: -32px; width: 2px; height: auto; }
}

/* ---------- Tarifs ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 40px; background: var(--mist); border-radius: 999px; }
.tab {
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(20, 33, 61, 0.2); }
.tab-panel[hidden] { display: none; }
.tab-intro { max-width: 60ch; color: var(--ink-2); margin-bottom: 32px; }

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.price {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
}
.price.is-highlight { border: 2px solid var(--ink); position: relative; }
.price-flag {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--signal);
  font-size: 0.85rem;
  font-weight: 700;
}
.price h3 { margin-bottom: 4px; }
.price-desc { color: var(--ink-2); font-size: var(--step--1); margin-bottom: 20px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-amount small { font-size: 0.95rem; color: var(--ink-2); }
.price-amount strong { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-note { font-size: var(--step--1); color: var(--ink-3); margin-bottom: 24px; }
.price ul { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.price li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--line); }
.price li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
  transform: rotate(-45deg);
}
.price .btn { width: 100%; }

.prices-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.prices-compact .price { padding: 26px 24px; }
.prices-compact .price-amount strong { font-size: var(--step-2); }

.price-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.price-teaser div { padding: 24px 24px 0 0; }
.price-teaser div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.price-teaser strong { display: block; font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0; }
.price-teaser span { color: var(--ink-2); }
@media (max-width: 700px) {
  .price-teaser { grid-template-columns: 1fr; }
  .price-teaser div, .price-teaser div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.faq { max-width: 820px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 600;
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-4px);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-4px); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 65ch; }

/* ---------- À propos ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); margin: 0; }
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 20px; }
.facts div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: var(--step--1); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: var(--step-1); }

.skills { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.skill-top span { color: var(--ink-2); font-weight: 500; }
.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--cobalt); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.values div { padding: 28px 28px 0 0; }
.values div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.values p { color: var(--ink-2); }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
  .values div, .values div + div { padding: 24px 0 8px; border-left: 0; }
  .values div + div { border-top: 1px solid var(--line); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; }
.field .opt { color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9c1d1;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.25); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field-error { color: #c62828; font-size: var(--step--1); min-height: 0; }
.field-error:empty { display: none; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #b9c1d1;
  border-radius: 999px;
  font-weight: 500;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.form-note { font-size: var(--step--1); color: var(--ink-3); margin: 0; }
.form-status {
  padding: 16px 18px;
  border-radius: var(--radius-s);
  background: #e8f5ec;
  color: #1b5e33;
}
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

.contact-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-m); background: var(--night); color: #e8ecf5; }
.contact-card h2 { color: #fff; font-size: var(--step-2); }
.contact-lines { margin: 0 0 24px; padding: 0; list-style: none; }
.contact-lines li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-lines a,
.contact-lines div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-lines a:hover { color: var(--signal); }
.contact-lines svg { width: 20px; height: 20px; flex: none; color: var(--signal); }
.contact-lines small { display: block; color: #9aa6c2; font-size: 0.82rem; }
.map { margin-top: 24px; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 4 / 3; background: #1b2744; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 100px); background: var(--cobalt); color: #fff; }
.cta-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
.cta-band h2 { margin: 0; color: #fff; max-width: 16ch; font-size: var(--step-4); letter-spacing: -0.035em; }
.cta-band p { margin: 0.6em 0 0; color: #dbe3ff; max-width: 44ch; }

/* ---------- Page header ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.page-hero h1 { max-width: 16ch; }
.breadcrumb { margin-bottom: 20px; font-size: var(--step--1); color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }

/* ---------- Page projet ---------- */
.project-hero .mock { aspect-ratio: 16 / 9; margin-top: clamp(32px, 5vw, 56px); }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); margin: 0; }
.project-facts div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.project-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.project-facts dt { color: var(--ink-2); font-size: var(--step--1); }
.project-facts dd { margin: 4px 0 0; font-weight: 700; }
@media (max-width: 760px) {
  .project-facts { grid-template-columns: 1fr 1fr; }
  .project-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
}
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.feature-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list span { color: var(--ink-2); }
.palette { display: flex; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.palette li { display: flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--ink-2); }
.palette i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.next-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 40px 0;
  border-top: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}
.next-project small { display: block; color: var(--ink-2); font-size: var(--step--1); }
.next-project strong { font-size: var(--step-3); letter-spacing: -0.03em; }
.next-project:hover strong { color: var(--cobalt); }
.next-project svg { width: 40px; height: 40px; flex: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #b5bfd6; padding-top: clamp(56px, 7vw, 88px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.site-footer .logo { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { display: inline-block; padding: 6px 0; color: #dfe5f2; text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.footer-about p { margin: 16px 0 20px; max-width: 34ch; }
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}
.socials a:hover { border-color: var(--signal); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--step--1);
}
.footer-bottom a { padding: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: var(--step-2); margin-top: 1.6em; }
.not-found { min-height: 60vh; display: grid; align-content: center; }
.not-found .big { font-size: clamp(5rem, 18vw, 12rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--cobalt); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band { display: none; }
}

/* Offres sur demande */
.price-ondemand { margin: 0 0 24px; font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.offer-teaser strong { font-size: var(--step-2); }
.form-status.is-error { background: #fdecea; color: #8a1c1c; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
