/* ==========================================================================
   MécaNikko Webdesign — feuille de style publique
   La couleur d'accent (--accent) est réglable dans l'administration.
   ========================================================================== */

:root {
  --accent: #3b5bfd;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 35%, transparent);

  --bg: #f6f6f2;
  --bg-alt: #eeede7;
  --surface: #ffffff;
  --surface-2: #f3f2ed;
  --ink: #111318;
  --ink-2: #3a3e47;
  --muted: #6b707a;
  --line: #e1e0d9;
  --dark: #0f1115;
  --dark-2: #171a21;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, .05);
  --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 12px 32px -14px rgba(17, 19, 24, .22);
  --shadow-lg: 0 2px 4px rgba(17, 19, 24, .04), 0 30px 60px -24px rgba(17, 19, 24, .35);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --container: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e12; --bg-alt: #111419; --surface: #151820; --surface-2: #1b1f28;
    --ink: #f2f3f5; --ink-2: #c8cbd2; --muted: #8d929c; --line: #262a34;
    --dark: #07080b; --dark-2: #10131a;
    --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e12; --bg-alt: #111419; --surface: #151820; --surface-2: #1b1f28;
  --ink: #f2f3f5; --ink-2: #c8cbd2; --muted: #8d929c; --line: #262a34;
  --dark: #07080b; --dark-2: #10131a;
  --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 60px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ico { flex-shrink: 0; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }

.display-1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; }
.display-2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 750; letter-spacing: -.03em; }
.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.08rem; }
.display-1 em, .display-2 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 70%, var(--accent-soft) 70%);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px var(--accent); }
.btn-primary:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); }
.btn-light { background: #fff; color: #111318; }
.btn-light:hover { color: #111318; }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(3px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink); }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-style: normal; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); color: var(--bg); font-size: .92rem; font-weight: 800; letter-spacing: -.03em;
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.brand-logo { max-height: 96px; max-width: 300px; width: auto; object-fit: contain; }
.page-logo { display: block; width: min(320px, 72vw); height: auto; margin: 0 auto 24px; border-radius: 28px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.has-logo { --header-h: 104px; }
.site-header .brand-logo { margin: -2px 0; }
@media (max-width: 640px) { .brand-logo { max-height: 68px; max-width: 220px; } .has-logo { --header-h: 80px; } }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.nav-toggle .when-open { display: none; }
.nav-open .nav-toggle .when-open { display: inline; }
.nav-open .nav-toggle .when-closed { display: none; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; }
  .main-nav .nav-cta { display: inline-flex; margin-top: 10px; }
}

/* Menu « Autres services » */
.nav-more { position: relative; }
.nav-more summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary .ico { width: 15px; height: 15px; transition: transform .2s; }
.nav-more summary:hover, .nav-more[open] summary { color: var(--ink); background: var(--surface-2); }
.nav-more[open] summary .ico { transform: rotate(180deg); }
.nav-sub { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 260px; display: grid; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.nav-sub a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav-sub a:hover { background: var(--surface-2); color: var(--ink); }
.nav-sub a .ico { width: 14px; height: 14px; color: var(--muted); }
@media (max-width: 980px) {
  .nav-more summary { padding: 14px 12px; font-size: 1.05rem; }
  .nav-sub { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-top-0 { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #f2f3f5; --ink: #f2f3f5; --ink-2: #c3c7cf; --muted: #9096a1; --line: #262a34; --surface: #151820; --surface-2: #1b1f28; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.split .display-2 { margin: 0; }
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); }
.page-hero .lead { margin-top: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none; margin-bottom: 1.5rem; }

/* ---------- Hero accueil ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 88px); }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 110%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  mask-image: radial-gradient(60% 55% at 60% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 60% 35%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 1.2rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.8rem; color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 18px; height: 18px; color: var(--accent); }
.hero-stage { position: relative; padding: 0 0 48px 0; }

/* Mockups */
.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  height: 24px; max-width: 360px; margin: 0 auto; padding: 0 10px; border-radius: 7px; background: var(--surface);
  font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser-url .ico { width: 12px; height: 12px; color: var(--success); }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.browser-view img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform var(--scroll-dur, 4s) cubic-bezier(.45, .05, .35, 1); }
.browser-view.scrollable { aspect-ratio: auto; height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.browser-view.scrollable img { transition: none; }
.browser-hero { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.auto-scroll img { animation: autoscroll 22s ease-in-out infinite alternate; }
.hero-stage:hover .auto-scroll img { animation-play-state: paused; }
@keyframes autoscroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(var(--auto-shift, 0px)); } }
.fade-swap { animation: fadeSwap .6s ease; }
@keyframes fadeSwap { from { opacity: 0; } to { opacity: 1; } }

.phone {
  width: 176px; padding: 9px; border-radius: 30px; background: #0b0c0f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, var(--shadow-lg); position: relative;
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 56px; height: 16px; border-radius: 10px; background: #0b0c0f; z-index: 2; }
.phone-view { border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 19.5; background: #fff; }
.phone-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-hero { position: absolute; right: -8px; bottom: 0; transform: rotate(3deg); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font-size: .85rem; color: var(--ink-2); text-decoration: none; z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.float-chip .ico { width: 18px; height: 18px; color: var(--accent); }
.float-chip strong { color: var(--ink); }
.chip-a { left: -24px; top: 58%; }
.chip-b { left: 30%; bottom: 6px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-dots { position: absolute; left: 0; bottom: 14px; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.hero-dots button[aria-selected="true"] { width: 26px; background: var(--accent); }

.trust-strip { margin-top: clamp(48px, 7vw, 88px); border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.trust-inner { display: flex; align-items: center; gap: 28px; padding: 18px 0; flex-wrap: wrap; }
.trust-names { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.trust-names a { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--muted); text-decoration: none; letter-spacing: -.01em; }
.trust-names a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 640px; margin-inline: auto; width: 100%; }
  .browser-hero { transform: none; }
  .chip-a { left: 8px; }
}
@media (max-width: 560px) {
  .phone-hero { width: 118px; padding: 6px; border-radius: 22px; }
  .phone-hero .phone-view { border-radius: 17px; }
  .phone-hero .phone-notch { width: 38px; height: 11px; top: 10px; }
  .chip-b { display: none; }
  .chip-a { top: auto; bottom: 64px; font-size: .78rem; }
}

/* ---------- Grilles de contenu ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.feature h3 { font-size: 1.12rem; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
}
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* Réalisations */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.work-card { display: flex; flex-direction: column; gap: 20px; }
.work-card[hidden] { display: none; }
.work-media { display: block; text-decoration: none; border-radius: 14px; }
.work-media .browser { box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s; }
.work-media:hover .browser { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.work-body h3 { font-size: 1.55rem; margin: 10px 0 8px; }
.work-body h3 a { text-decoration: none; }
.work-body p { color: var(--muted); margin-bottom: .8rem; }
.work-meta { display: flex; align-items: center; gap: 12px; font-size: .88rem; flex-wrap: wrap; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Détail réalisation */
.work-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.work-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.work-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.work-facts dt { color: var(--muted); font-size: .9rem; }
.work-facts dd { margin: 0; font-weight: 600; text-align: right; }
.showcase { position: relative; padding-right: clamp(0px, 9vw, 120px); }
.browser-lg .browser-bar { height: 44px; }
.phone-showcase { position: absolute; right: 0; bottom: -40px; width: 230px; }
.showcase-hint { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.showcase-hint .ico { width: 16px; height: 16px; }
.work-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.pager small .ico { width: 16px; height: 16px; }
.pager strong { font-family: var(--font-display); font-size: 1.25rem; }
.pager .next { text-align: right; align-items: flex-end; }
@media (max-width: 900px) {
  .work-hero-grid, .work-detail { grid-template-columns: 1fr; gap: 32px; }
  .showcase { padding-right: 0; }
  .phone-showcase { position: relative; right: auto; bottom: auto; margin: -140px 12px 0 auto; width: 150px; }
  .browser-view.scrollable { height: 62vh; }
}

/* Cartes génériques */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.card + .card { margin-top: 20px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.check-list.big li { font-size: 1.04rem; }
.check-list.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* Admin showcase */
.admin-showcase { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.admin-copy .lead { margin: 1rem 0 1.6rem; }
.admin-copy .check-list { margin-bottom: 1.2rem; }
.admin-mock {
  display: grid; grid-template-columns: 180px 1fr; min-height: 420px; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .8rem;
}
.am-side { background: var(--dark); color: #b9bdc6; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.am-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); margin: 0 6px 16px; }
.am-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.am-item .ico { width: 15px; height: 15px; }
.am-item b { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .7rem; }
.am-item.is-active { background: rgba(255,255,255,.08); color: #fff; }
.am-main { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.am-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.am-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-stats div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; }
.am-stats small { color: var(--muted); font-size: .68rem; }
.am-stats strong { font-family: var(--font-display); font-size: 1.3rem; }
.am-stats em { font-style: normal; color: var(--success); font-size: .7rem; font-weight: 700; }
.am-chart { display: flex; align-items: flex-end; gap: 5px; height: 90px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.am-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.am-list { display: grid; gap: 8px; }
.am-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); }
.am-row > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.am-row small { color: var(--muted); font-size: .7rem; }
.am-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .7rem; }
.am-pill { padding: 2px 8px; border-radius: 99px; background: var(--surface-2); font-size: .68rem; font-weight: 600; color: var(--muted); }
.am-pill.new { background: var(--accent-soft); color: var(--accent); }
.am-pill.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
@media (max-width: 980px) { .admin-showcase { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .admin-mock { grid-template-columns: 1fr; } .am-side { display: none; } .am-stats { grid-template-columns: 1fr 1fr; } .am-stats div:last-child { display: none; } }

/* Méthode */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Tarifs */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.price-card .check-list { margin: 22px 0 28px; flex: 1; font-size: .95rem; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-tagline { color: var(--muted); font-size: .94rem; min-height: 3em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; }
.price-prefix { width: 100%; font-size: .82rem; color: var(--muted); font-weight: 600; }
.price-amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price-suffix { color: var(--muted); font-weight: 600; }
.price-card.is-featured { background: var(--dark); color: #f2f3f5; border-color: var(--dark); box-shadow: var(--shadow-lg); --ink: #f2f3f5; --muted: #9ba0aa; --line: #2a2e38; --surface: #1a1d24; }
.price-card.is-featured .btn-primary { box-shadow: none; }
.price-badge { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .76rem; font-weight: 700; }
.sub-card {
  display: grid; grid-template-columns: 1.2fr 1.5fr auto; gap: 28px; align-items: center; margin-top: 20px;
  padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--accent-line);
}
.sub-head { display: flex; gap: 16px; align-items: flex-start; }
.sub-head h3 { font-size: 1.25rem; margin-bottom: 4px; }
.sub-head p { color: var(--muted); margin: 0; font-size: .94rem; }
.sub-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--accent); color: #fff; flex-shrink: 0; }
.sub-price { justify-content: flex-end; white-space: nowrap; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .sub-card { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .sub-price { justify-content: flex-start; }
}

.options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-card { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.option-nav { margin-bottom: 28px; }
.option-nav .filter { text-decoration: none; }
.option-nav .muted { font-weight: 500; margin-left: 2px; }
.option-group { scroll-margin-top: calc(var(--header-h) + 20px); }
.option-group + .option-group { margin-top: 36px; }
.option-group-title { font-size: 1.25rem; margin-bottom: 14px; }
.option-card h4, .option-card h3 { font-size: 1.02rem; margin-bottom: 4px; font-family: var(--font); letter-spacing: 0; font-weight: 650; }
.option-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.option-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .options-grid { grid-template-columns: 1fr; } }

.included { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.included-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.included-grid li { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .94rem; }
@media (max-width: 980px) { .included { grid-template-columns: 1fr; } .included-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .included-grid { grid-template-columns: 1fr; } }

/* À propos */
.about { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-card { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.about-card > div { display: flex; flex-direction: column; }
.about-card strong { font-family: var(--font-display); font-size: 1.4rem; }
.about-mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.about-facts { list-style: none; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.about-facts li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; }
.about-facts .ico { color: var(--accent); width: 18px; height: 18px; }
.lead-prose p { font-size: 1.08rem; color: var(--ink-2); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Avis */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.testimonial { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.testimonial blockquote { margin: 0; flex: 1; color: var(--ink-2); }
.testimonial blockquote p:last-child { margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption span:last-child { display: flex; flex-direction: column; }
.testimonial small { color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--line); }
.stars .on { color: #f5b301; }
.stars .ico { width: 18px; height: 18px; fill: currentColor; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .lead { margin: 1rem 0 1.4rem; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { transition: transform .25s; color: var(--accent); }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--ink-2); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* CTA */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%),
    var(--dark);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; }
.cta-band p { color: #c3c7cf; margin: 0; max-width: 52ch; }
.cta-band .btn-row { margin: 0; }

/* Prose */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); }
.article-body { font-size: 1.06rem; }
.article-cover { border-radius: var(--radius-lg); margin-bottom: 32px; width: 100%; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.post-media { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-placeholder { color: var(--muted); }
.post-placeholder .ico { width: 40px; height: 40px; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-body h2 a { text-decoration: none; }
.post-body p { color: var(--muted); flex: 1; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 2px; flex-shrink: 0; }
.form-card h2 { margin-bottom: 20px; }
.form-card .btn { margin-top: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.inline-form { display: flex; gap: 8px; }
.inline-form input { min-height: 42px !important; padding: 8px 12px !important; }
.inline-form .btn { min-height: 42px; flex-shrink: 0; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .95rem; border: 1px solid; }
.alert ul { margin: 6px 0 0 18px; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.alert-error { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }

.success-card { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(32px, 6vw, 64px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.success-card .lead { margin-inline: auto; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); margin-bottom: 20px; }
.success-icon .ico { width: 30px; height: 30px; }
.estimate-recap { padding: 14px 18px; border-radius: 12px; background: var(--surface-2); display: inline-block; }

/* Devis */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.quote-steps { min-width: 0; }
.stepper { list-style: none; display: none; gap: 8px; margin-bottom: 24px; counter-reset: st; }
.js .stepper { display: grid; grid-template-columns: repeat(4, 1fr); }
.stepper li { counter-increment: st; padding-top: 12px; border-top: 3px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); }
.stepper li::before { content: counter(st) ". "; }
.stepper li.is-active, .stepper li.is-done { border-color: var(--accent); color: var(--ink); }
.step-panel { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.js .step-panel { display: none; }
.js .step-panel.is-active { display: block; animation: fadeSwap .35s ease; }
.step-panel legend { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0; }
.step-badge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .95rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; top: 18px; right: 18px; }
.choice-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 48px 18px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s, background .2s; }
.choice:hover .choice-body { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.choice input:checked + .choice-body { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice-title { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choice-desc { color: var(--muted); font-size: .88rem; }
.choice-price { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--accent); font-size: .92rem; }
.opt-group { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.opt-group summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; }
.opt-group summary::-webkit-details-marker { display: none; }
.opt-group summary .ico { margin-left: 8px; transition: transform .2s; color: var(--muted); }
.opt-group[open] summary .ico { transform: rotate(180deg); }
.opt-count { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--muted); }
.opt-count.has-selection { color: var(--accent); }
.opt-group > .choice-grid { padding: 0 14px 14px; }
.step-nav { display: none; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.js .step-nav { display: flex; }
.step-nav [data-step-next], .step-nav [data-step-submit] { margin-left: auto; }
.quote-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; border-radius: var(--radius-lg); background: var(--dark); color: #f2f3f5; }
.quote-summary .kicker { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.estimate { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; }
.estimate-monthly { color: #c3c7cf; font-weight: 600; }
.summary-list { list-style: none; display: grid; gap: 8px; margin: 20px 0; padding: 16px 0; border-block: 1px solid #2a2e38; font-size: .9rem; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; }
.summary-list li span:last-child { color: #c3c7cf; white-space: nowrap; }
.quote-summary .muted { color: #9096a1; }
@media (max-width: 980px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-summary { position: static; order: -1; }
}
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }

/* Rendez-vous */
.booking-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.booking-layout .card + .card { margin-top: 0; }
.booking-form { grid-column: 1 / -1; }
.booking-layout h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.booking-layout h2 .ico { color: var(--accent); }
.calendar { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-family: var(--font-display); font-size: 1.1rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal-day { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 600; font-size: .92rem; }
.cal-day:disabled { color: var(--line); cursor: default; }
.cal-day:not(:disabled) { background: var(--surface-2); }
.cal-day:not(:disabled):hover { border-color: var(--accent); }
.cal-day.is-selected { background: var(--accent) !important; color: #fff; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time-grid label { position: relative; }
.time-grid input { position: absolute; opacity: 0; }
.time-grid span { display: block; padding: 10px 0; text-align: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.time-grid input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.time-grid input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; cursor: pointer; }
.segmented input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.booking-recap { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-weight: 600; }
.booking-form .btn { margin-top: 20px; }
@media (max-width: 860px) { .booking-layout { grid-template-columns: 1fr; } }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .9fr 1.3fr; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 12px; }
.contact-tile { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
a.contact-tile:hover { border-color: var(--accent); color: var(--ink); }
.contact-tile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-tile small { color: var(--muted); font-size: .8rem; }
.contact-tile strong { overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* Suivi client */
.code-form { margin-top: 28px; max-width: 520px; }
.progress-hero { display: flex; align-items: center; gap: 16px; margin: 20px 0 10px; max-width: 640px; }
.progress-hero strong { font-family: var(--font-display); font-size: 1.4rem; }
.progress { flex: 1; height: 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s; }
.suivi-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.suivi-side .card + .card, .suivi-main .card + .card { margin-top: 20px; }
.suivi-side .btn + .btn { margin-top: 10px; }
.suivi-side p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.suivi-side p a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.timeline-steps { list-style: none; display: grid; gap: 4px; }
.timeline-steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; position: relative; }
.timeline-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 42px; bottom: -14px; width: 2px; background: var(--line); }
.timeline-steps li.is-done::after { background: var(--accent); }
.timeline-steps .dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: .85rem; color: var(--muted); flex-shrink: 0; z-index: 1; }
.timeline-steps .dot .ico { width: 16px; height: 16px; }
.timeline-steps .is-done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.timeline-steps .is-current .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline-steps .is-todo { color: var(--muted); }
.timeline-steps .is-current { font-weight: 700; }
.message-form { display: grid; gap: 10px; margin-bottom: 24px; }
.message-form .btn { justify-self: end; }
.feed { list-style: none; display: grid; gap: 16px; }
.feed-item { display: flex; gap: 12px; }
.feed-item > div { flex: 1; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); }
.feed-item.from-client > div { background: var(--accent-soft); }
.feed-item small { color: var(--muted); font-size: .78rem; }
.feed-item .prose p:last-child { margin: 0; }
.money-list { margin: 0; display: grid; gap: 8px; }
.money-list div { display: flex; justify-content: space-between; gap: 12px; }
.money-list dt { color: var(--muted); }
.money-list dd { margin: 0; font-weight: 600; }
.money-list .total { padding-top: 10px; border-top: 1px solid var(--line); }
.money-list .total dd { color: var(--accent); font-size: 1.1rem; }
@media (max-width: 860px) { .suivi-layout { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: #b7bbc4; padding: 72px 0 28px; margin-top: 0; --ink: #f2f3f5; --line: #262a34; --surface: #151820; --surface-2: #1b1f28; --bg: #0f1115; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-mark { background: #fff; color: #0f1115; }
.site-footer .brand-mark::after { border-color: var(--dark); }
.footer-brand p { font-size: .94rem; max-width: 34ch; }
.footer-title { font-family: var(--font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: .94rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #2a2e38; color: #fff; }
.socials a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.socials .ico { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid #22262e; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.site-footer .muted { color: #8b909a; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Boutons flottants */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); }
.float-wa:hover { color: #fff; transform: scale(1.06); }
.float-wa .ico { width: 26px; height: 26px; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { flex: 1; min-height: 46px; }
  body { padding-bottom: 72px; }
  .float-wa { bottom: 88px; right: 16px; width: 50px; height: 50px; }
}

/* Maintenance */
.maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 60% at 70% 20%, var(--accent-soft), transparent), var(--bg); }
.maintenance-card { max-width: 520px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.maintenance-card h1 { font-size: clamp(2rem, 6vw, 3rem); margin-top: 16px; }
.maintenance-card p { color: var(--ink-2); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.main-nav a.admin-lock { display: inline-flex; align-items: center; gap: 8px; padding: 8px 6px; opacity: .5; }
.main-nav a.admin-lock:hover, .main-nav a.admin-lock:focus-visible { opacity: 1; }
.main-nav a.admin-lock svg { width: 15px; height: 15px; }
.admin-lock .lock-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 980px) { .main-nav a.admin-lock { padding: 14px 12px; opacity: .8; } .admin-lock .lock-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
