/* ═══════════ KILAKO — v7 « clair et sérieux » (fond blanc, une seule couleur d'accent) ═══════════
   Compatibilité vieux navigateurs : pas de « inset », pas de « gap » dans les flex (marges à la place),
   grilles CSS seulement (gap OK). */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --ink: #0b1630;
  --ink-2: #33415c;
  --muted: #64748b;
  --line: #e1e7f0;
  --accent: #1d4ed8;
  --accent-2: #1e3a8a;
  --accent-soft: #eaf1ff;
  --teal: #0891b2;
  --navy: #0b1a3a;
  --ok: #0f9d6e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 60px rgba(15, 23, 42, .12);
  --title: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--title); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .ic { width: 18px; height: 18px; margin-left: 8px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(29, 78, 216, .24); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7cbe0; background: var(--bg-alt); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eaf1ff; }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.actions { display: flex; flex-wrap: wrap; margin: -6px; }
.actions .btn { margin: 6px; }

/* ── En-tête ── */
.header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(15, 23, 42, .04); }
.header .wrap { display: flex; align-items: center; height: 72px; }
.brand { display: inline-flex; align-items: center; font-family: var(--title); font-weight: 800; font-size: 1.3rem; letter-spacing: .16em; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; margin-right: 10px; }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 8px; font-size: .94rem; font-weight: 500; color: var(--ink-2); transition: color .15s ease, background .15s ease; }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.active { color: var(--accent); }
.header .btn { margin-left: 16px; padding: 10px 18px; font-size: .92rem; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s ease, background .2s ease; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 10px 16px 18px; }
.mobile-menu a { display: block; padding: 13px 8px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { display: flex; margin-top: 14px; }
.menu-open .mobile-menu { display: block; }

/* ── Titres de section ── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 2rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-head p { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }

/* ── Accueil : en-tête de page ── */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; grid-gap: 56px; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: 22px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 9px; box-shadow: 0 0 0 4px rgba(15, 157, 110, .15); }
.hero h1 { font-size: 2.4rem; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em { background: linear-gradient(90deg, var(--accent) 0%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.hero-sub { margin: 22px 0 32px; font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.checks { display: flex; flex-wrap: wrap; margin: 26px -10px 0; }
.checks li { display: inline-flex; align-items: center; margin: 4px 10px; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.checks .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; margin-right: 7px; }

.hero-visual { position: relative; padding: 0 0 40px 40px; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; height: 34px; padding: 0 12px; background: #f3f4f8; border-bottom: 1px solid var(--line); }
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #d4d7e2; margin-right: 6px; }
.browser-bar b { margin-left: 10px; flex: 1; max-width: 260px; font-weight: 500; font-size: .72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone { position: absolute; left: 0; bottom: 0; width: 26%; min-width: 120px; border-radius: 26px; padding: 7px; background: #0f172a; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 20px; }

/* ── Chiffres ── */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.figure { padding: 28px 24px; text-align: center; border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; }
.figure b { display: block; font-family: var(--title); font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.figure span { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); }

/* ── Services ── */
.services { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 18px; gap: 18px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.service:hover { border-color: #c3d4f6; box-shadow: var(--shadow); transform: translateY(-2px); }
.service-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.service h3 { font-size: 1.06rem; margin-bottom: 8px; }
.service p { font-size: .94rem; color: var(--muted); }

/* ── Réalisations ── */
.cases { display: grid; grid-gap: 72px; gap: 72px; }
.case { display: grid; grid-template-columns: 1.15fr .85fr; grid-gap: 56px; gap: 56px; align-items: center; }
.case.flip .case-shot { order: 2; }
.case-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 4px 9px; margin-bottom: 14px; }
.case h3 { font-size: 1.7rem; display: flex; align-items: center; }
.case h3 svg { width: 34px; height: 34px; margin-right: 12px; border-radius: 9px; flex: none; }
.case p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }
.case ul { margin-top: 18px; }
.case li { display: flex; align-items: flex-start; margin-top: 9px; font-size: .96rem; color: var(--ink-2); }
.case li .ic { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; margin: 3px 10px 0 0; }
.case-link { display: inline-flex; align-items: center; margin-top: 22px; font-weight: 600; color: var(--accent); }
.case-link .ic { width: 18px; height: 18px; margin-left: 6px; transition: transform .2s ease; }
.case-link:hover .ic { transform: translateX(3px); }

/* ── Méthode ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 18px; gap: 18px; counter-reset: etape; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step b { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; font-family: var(--title); font-size: .92rem; margin-bottom: 16px; }
.step h3 { font-size: 1.04rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }

/* ── Bandeau configurateur ── */
.cfg-band { display: grid; grid-template-columns: 1fr auto; grid-gap: 32px; gap: 32px; align-items: center; padding: 40px 44px; border-radius: 18px; background: var(--accent-soft); border: 1px solid #d4e1fb; }
.cfg-band h2 { font-size: 1.6rem; }
.cfg-band p { margin-top: 8px; color: var(--ink-2); }

/* ── Bandeau final (sombre) ── */
.cta { background: var(--navy); background: linear-gradient(120deg, #0b1a3a 0%, #102a5c 100%); color: #cbd5e1; padding: 84px 0; }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; grid-gap: 40px; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: 2rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta p { margin-top: 12px; font-size: 1.06rem; max-width: 560px; }

/* ── Pied de page ── */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; grid-gap: 40px; gap: 40px; }
.footer p { color: var(--muted); margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; color: var(--muted); }
.footer li a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

/* ── Page Contact ── */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: 2.3rem; font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -.03em; }
.page-head p { margin-top: 16px; font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.page-head.center { text-align: center; }
.page-head.center p { margin-left: auto; margin-right: auto; }
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; grid-gap: 32px; gap: 32px; align-items: start; padding-top: 24px; padding-bottom: 96px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.card > p { color: var(--muted); font-size: .96rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d5d9e4; border-radius: 10px; background: #fff;
  font-size: .98rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .14); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); }
.infos { display: grid; grid-gap: 14px; gap: 14px; }
.info { display: flex; align-items: flex-start; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.info .service-ic { width: 42px; height: 42px; margin: 0 16px 0 0; flex: none; }
.info small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info b, .info a { display: block; margin-top: 2px; font-weight: 600; color: var(--ink); word-break: break-word; }
.info a:hover { color: var(--accent); }
.info span { display: block; margin-top: 2px; font-size: .9rem; color: var(--muted); }

/* ── Apparition au défilement ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── Assistant IA ── */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(29, 78, 216, .35); transition: transform .2s ease, background .2s ease; }
.chat-fab:hover { transform: scale(1.06); background: var(--accent-2); }
.chat-fab .ic { width: 26px; height: 26px; }
.chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-panel[hidden] { display: none !important; }
.chat-head { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-right: 12px; flex: none; }
.chat-avatar .ic { width: 19px; height: 19px; }
.chat-head b { display: block; font-family: var(--title); color: var(--ink); font-size: .98rem; }
.chat-head small { display: flex; align-items: center; color: var(--muted); font-size: .8rem; }
.chat-head small i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.chat-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.chat-close:hover { background: var(--bg-alt); color: var(--ink); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-alt); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .93rem; line-height: 1.5; margin-bottom: 10px; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.msg.user { margin-left: auto; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing i { animation: blink 1.2s infinite; font-style: normal; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.chat-sugg { display: flex; flex-wrap: wrap; margin: 2px -4px 0; }
.chat-sugg button { margin: 4px; padding: 8px 12px; border: 1px solid #d5d9e4; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .84rem; cursor: pointer; }
.chat-sugg button:hover { border-color: var(--accent); color: var(--accent); }
.chat-input { display: flex; align-items: center; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #d5d9e4; border-radius: 10px; font-size: .95rem; }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-send { margin-left: 8px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send .ic { width: 20px; height: 20px; }

/* ═══════════ Configurateur ═══════════ */
.cfg-section { padding: 8px 0 96px; }
.cfg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-gap: 40px; gap: 40px; align-items: start; }
.cfg-steps > .cfg-step { margin-bottom: 44px; }
.cfg-step-head { margin-bottom: 18px; }
.cfg-step-num { font-family: var(--title); font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.cfg-step h2 { font-size: 1.35rem; margin-top: 4px; }
.cfg-hint { color: var(--muted); font-size: .93rem; margin-top: 5px; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-gap: 14px; gap: 14px; }
.cfg-grid-styles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cfg-opt { position: relative; display: flex; flex-direction: column; cursor: pointer; padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cfg-opt:hover { border-color: #c3d4f6; transform: translateY(-1px); }
.cfg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-opt .cfg-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.cfg-opt b { color: var(--ink); font-size: 1rem; }
.cfg-opt b + span { margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.cfg-opt .cfg-note { margin-top: auto; padding-top: 10px; font-size: .84rem; font-weight: 600; color: var(--accent); }
.cfg-opt.checked { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.cfg-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cfd3e0; color: transparent; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: background .15s ease, border-color .15s ease; }
.cfg-opt.checked .cfg-check, .cfg-opt.cfg-inclus .cfg-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.cfg-opt.cfg-inclus { cursor: default; background: var(--accent-soft); border-color: #d0ddf9; }
.cfg-opt.cfg-inclus:hover { transform: none; }
.cfg-tpl-prev { display: flex; flex-direction: column; justify-content: center; height: 54px; border-radius: 8px; padding: 9px 10px; margin-bottom: 12px; border: 1px solid rgba(15, 23, 42, .06); }
.cfg-tpl-prev i { display: block; height: 6px; border-radius: 3px; margin: 2px 0; }
.cfg-tpl-prev i:first-child { width: 62%; height: 8px; }
.cfg-tpl-prev i:nth-child(2) { width: 92%; }
.cfg-tpl-prev i:last-child { width: 46%; }
.tpl-epure { background: #eef1f6; } .tpl-epure i { background: #c1c9d6; } .tpl-epure i:first-child { background: #6b7688; }
.tpl-premium { background: #14121f; } .tpl-premium i { background: #caa96b; } .tpl-premium i:nth-child(2) { background: #47425d; }
.tpl-dynamique { background: linear-gradient(120deg, #ff6b6b, #ffab3d); } .tpl-dynamique i { background: rgba(255, 255, 255, .9); }
.tpl-tech { background: #0a1030; } .tpl-tech i { background: #6fd3ff; } .tpl-tech i:nth-child(2) { background: #38477e; }
.cfg-perso { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cfg-perso-row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; margin-bottom: 20px; }
.cfg-perso-block + .cfg-perso-block { margin-top: 20px; }
.cfg-perso-lbl { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.cfg-swatches { display: flex; flex-wrap: wrap; margin: -5px; }
.cfg-sw { position: relative; cursor: pointer; line-height: 0; margin: 5px; }
.cfg-sw input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-sw > span { display: block; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.cfg-sw:hover > span { transform: scale(1.08); }
.cfg-sw input:checked + span { transform: scale(1.1); box-shadow: 0 0 0 2px var(--ink); }
.cfg-chips { display: flex; flex-wrap: wrap; margin: -5px; }
.cfg-chip { position: relative; cursor: pointer; margin: 5px; padding: 8px 15px; border: 1px solid #d5d9e4; border-radius: 999px; background: #fff; font-size: .9rem; color: var(--ink-2); transition: border-color .15s ease, background .15s ease, color .15s ease; }
.cfg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-chip.checked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cfg-sub { display: none; margin-top: 16px; padding: 16px 18px; border: 1px dashed #c3d4f6; border-radius: var(--radius); background: #f7faff; }
.cfg-sub.show { display: block; }
.cfg-sub-title { color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.cfg-sub-title em { color: var(--muted); font-weight: 400; font-style: normal; font-size: .85rem; }
.cfg-coords { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; }
.cfg-side { position: -webkit-sticky; position: sticky; top: 92px; }
.cfg-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.cfg-pv-bar { display: flex; align-items: center; padding: 8px 12px; background: #f3f4f8; border-bottom: 1px solid var(--line); }
.cfg-pv-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #d4d7e2; margin-right: 5px; }
.cfg-pv-url { margin-left: 6px; flex: 1; font-size: .66rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 3px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-pv-frame { --pv-accent: #4f46e5; --pv-bg: #eef1f6; --pv-text: #1c2430; --pv-card: #fff; --pv-muted: #b7c0cf; --pv-nav: #fff; background: var(--pv-bg); color: var(--pv-text); height: 300px; overflow: hidden; }
.cfg-pv-nav { display: flex; align-items: center; padding: 8px 12px; background: var(--pv-nav); border-bottom: 1px solid rgba(127, 127, 127, .12); }
.cfg-pv-brand { font-family: var(--title); font-weight: 800; font-size: 10px; color: var(--pv-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cfg-pv-links { display: flex; margin-left: auto; margin-right: 8px; }
.cfg-pv-links i { width: 14px; height: 3px; border-radius: 2px; background: var(--pv-muted); margin-left: 5px; }
.cfg-pv-cta { font-size: 7px; font-weight: 700; color: #fff; background: var(--pv-accent); padding: 4px 7px; border-radius: 4px; }
.cfg-pv-hero { padding: 20px 16px 15px; text-align: center; }
.cfg-pv-h1 { font-family: var(--title); font-weight: 800; font-size: 16px; line-height: 1.12; color: var(--pv-text); word-break: break-word; }
.cfg-pv-tag { font-size: 8.5px; color: var(--pv-muted); margin: 5px 0 11px; }
.cfg-pv-btn { display: inline-block; font-size: 8px; font-weight: 700; color: #fff; background: var(--pv-accent); padding: 6px 14px; border-radius: 6px; }
.cfg-pv-btn.sm { padding: 5px 11px; font-size: 7px; }
.cfg-pv-sec { padding: 0 16px 12px; }
.cfg-pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 6px; gap: 6px; }
.cfg-pv-cards > span { height: 33px; border-radius: 6px; background: var(--pv-card); border: 1px solid rgba(127, 127, 127, .14); }
.cfg-pv-cards > span::before { content: ""; display: block; width: 42%; height: 4px; border-radius: 2px; background: var(--pv-accent); margin: 9px 0 0 8px; }
.cfg-pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 5px; gap: 5px; }
.cfg-pv-grid i { height: 24px; border-radius: 5px; background: var(--pv-card); border: 1px solid rgba(127, 127, 127, .1); }
.cfg-pv-quote { text-align: center; padding: 10px; background: var(--pv-card); border-radius: 8px; border: 1px solid rgba(127, 127, 127, .12); }
.cfg-pv-stars { color: var(--pv-accent); font-size: 9px; letter-spacing: 2px; }
.cfg-pv-quote i { display: block; height: 3px; border-radius: 2px; background: var(--pv-muted); margin: 5px auto 0; width: 78%; }
.cfg-pv-quote i.s { width: 52%; }
.cfg-pv-form { display: flex; flex-direction: column; }
.cfg-pv-form i { height: 13px; border-radius: 5px; background: var(--pv-card); border: 1px solid rgba(127, 127, 127, .14); margin-bottom: 5px; }
.cfg-pv-form .cfg-pv-btn { align-self: center; margin-top: 2px; }
.cfg-pv-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 10px 0 16px; }
.cfg-recap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.cfg-recap h3 { font-size: 1.1rem; }
.cfg-recap-sub { color: var(--muted); font-size: .82rem; margin: 2px 0 16px; }
.cfg-recap-list { min-height: 30px; margin-bottom: 16px; }
.cfg-recap-line { display: flex; align-items: flex-start; font-size: .9rem; color: var(--ink-2); padding: 7px 0; border-bottom: 1px solid #eef0f5; }
.cfg-recap-line:last-child { border-bottom: 0; }
.cfg-recap-line .ic { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.6; margin: 3px 9px 0 0; }
.cfg-recap-empty { color: var(--muted); font-size: .88rem; font-style: italic; }
.cfg-total { border-top: 1px solid var(--line); padding-top: 16px; }
.cfg-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.cfg-total-row b { font-family: var(--title); color: var(--ink); }
.cfg-amount { font-family: var(--title); font-weight: 800; color: var(--accent); }
.cfg-delay { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.cfg-disclaimer { color: var(--muted); font-size: .8rem; margin-top: 10px; line-height: 1.5; }
.cfg-recap .btn { width: 100%; margin-top: 16px; }
.cfg-recap .form-note { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--muted); }
#cfg-form { scroll-margin-top: 96px; }

/* ═══════════ Écrans moyens et petits ═══════════ */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .case, .case.flip { grid-template-columns: 1fr; gap: 28px; grid-gap: 28px; }
  .case.flip .case-shot { order: 0; }
  .cta .wrap, .cfg-band { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cfg-layout { grid-template-columns: 1fr; }
  .cfg-side { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .services, .steps { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-visual { padding: 0 0 28px 22px; }
  .cfg-band { padding: 28px 22px; }
  .card { padding: 24px 18px; }
  .form, .cfg-coords, .cfg-perso-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; grid-gap: 28px; }
  .chat-panel { right: 16px; bottom: 86px; }
  .chat-fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.nowrap{white-space:nowrap}

/* Services : une couleur par service (fond doux + trait franc) */
.services .service:nth-child(1) .service-ic { background: #eaf1ff; color: #1d4ed8; }
.services .service:nth-child(2) .service-ic { background: #f0ecff; color: #6d28d9; }
.services .service:nth-child(3) .service-ic { background: #e6f7fb; color: #0e7490; }
.services .service:nth-child(4) .service-ic { background: #e8f8ef; color: #047857; }
.services .service:nth-child(5) .service-ic { background: #fff1e6; color: #c2410c; }
.services .service:nth-child(6) .service-ic { background: #fdecf2; color: #be185d; }
.services .service:nth-child(7) .service-ic { background: #fff8e1; color: #b45309; }
.services .service:nth-child(8) .service-ic { background: #eef1f6; color: #334155; }
