/* SmartMotic — feuille de style unique, sans dépendance externe */
:root {
  --accent: #22b08a;
  --accent-dark: #128a6a;
  --accent-soft: #e6f6f1;
  --ink: #101614;
  --ink-2: #4a5652;
  --line: #e3e9e6;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --dark: #0d1211;
  --dark-2: #161e1c;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(16, 22, 20, .18);
  --max: 1160px;
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--dark); color: #e8efed; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #a9b8b3; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }
.dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.dark .lead { color: #a9b8b3; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 40px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, color .2s; font-family: inherit; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #04211a; }
.btn-primary:hover { background: #2cc79d; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }
.nav .tag { font-size: .62rem; font-weight: 700; background: var(--accent); color: #04211a; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; letter-spacing: .04em; }
.nav .nav-cta { background: var(--ink); color: #fff; margin-left: 8px; }
.nav .nav-cta:hover { background: var(--accent-dark); }
.nav .nav-cta[aria-current="page"] { background: var(--accent-dark); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; margin: auto; transition: .2s; content: ""; }
.burger span::before { position: absolute; top: -7px; left: 0; }
.burger span::after { position: absolute; top: 7px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--dark) center/cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,12,11,.92) 0%, rgba(8,12,11,.72) 45%, rgba(8,12,11,.25) 100%); z-index: -1; }
.hero .wrap { padding: clamp(80px, 13vw, 160px) 0 clamp(72px, 11vw, 140px); }
.hero h1 { max-width: 18ch; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.15rem; max-width: 56ch; color: #d3deda; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero.small .wrap { padding: clamp(56px, 8vw, 96px) 0; }
.hero.dev { background: radial-gradient(1000px 500px at 85% 0%, rgba(34,176,138,.28), transparent 60%), var(--dark); }
.hero.dev::before { display: none; }

/* Grilles et cartes */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
a.card { color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.card h3 { margin-top: 16px; }
.card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }
.dark .card { background: var(--dark-2); border-color: #243130; }
.dark .card p { color: #9db0aa; }
.dark .icon { background: rgba(34,176,138,.14); color: var(--accent); }
.dark a.card:hover { border-color: var(--accent); }
.card .more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 600; font-size: .9rem; color: var(--accent-dark); }
.dark .card .more { color: var(--accent); }
.card.featured { background: linear-gradient(160deg, #11201c, #0d1211); border-color: var(--accent); color: #fff; }
.card.featured h3 { color: #fff; }
.card.featured p { color: #a9b8b3; }
.card.featured .icon { background: rgba(34,176,138,.16); color: var(--accent); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #04211a; padding: 3px 10px; border-radius: 999px; }
.badge.soon { background: #2a3936; color: #b8c9c4; }

/* Listes à puces */
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304211a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Bloc scindé */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.panel { background: var(--dark-2); border: 1px solid #243130; border-radius: 20px; padding: 28px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; color: #b8c9c4; line-height: 1.8; overflow-x: auto; }
.panel .dots { display: flex; gap: 6px; margin-bottom: 16px; }
.panel .dots i { width: 10px; height: 10px; border-radius: 50%; background: #33443f; }
.panel b { color: var(--accent); font-weight: 500; }
.panel s { text-decoration: none; color: #6f847d; }

.shot { margin: 0; }
.shot img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; height: auto; }
.shot figcaption { font-size: .8rem; color: var(--ink-2); margin-top: 10px; text-align: center; }

/* Processus */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #04211a; font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; top: 21px; left: 52px; right: -8px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 4px; }
.steps p { font-size: .9rem; margin: 0; }

/* Applis */
.app-card { display: flex; flex-direction: column; gap: 6px; }
.app-card .top { display: flex; justify-content: space-between; align-items: center; }
.app-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 2px 10px rgba(16,22,20,.12); background: #fff; }
.app-card h3 { margin: 10px 0 0; font-size: 1.3rem; }

/* CTA */
.cta { text-align: center; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
input, textarea, select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; display: none; font-weight: 500; }
.form-msg.ok { display: block; background: var(--accent-soft); color: #0b5a45; }
.form-msg.err { display: block; background: #fdecec; color: #8a1f1f; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { flex: none; width: 44px; height: 44px; }
.info-list small { display: block; color: var(--ink-2); }

/* Texte long (pages légales) */
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }

/* Sonos */
.sonos-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sonos-steps .n { font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; }

/* Pied de page */
.site-footer { background: var(--dark); color: #a9b8b3; padding: 56px 0 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #a9b8b3; }
.site-footer a:hover { color: var(--accent); text-decoration: none; }
.wordmark { font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.wordmark svg { width: 30px; height: 30px; color: var(--accent); }
.wordmark span { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2a3936; display: grid; place-items: center; }
.socials a:hover { border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid #1e2a28; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* Animations d'apparition */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a.card { transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps li::after { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); display: none; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: 1rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .sonos-steps, .steps, form .row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta .btn { width: 100%; justify-content: center; }
}

/* Réalisations */
.gallery { columns: 3 260px; column-gap: 16px; }
.ph { margin: 0 0 16px; break-inside: avoid; }
.ph .zoom { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ph img { width: 100%; height: auto; transition: transform .4s; }
.ph .zoom:hover img { transform: scale(1.03); }
.ph figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.split > .ph { margin: 0; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,12,11,.92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 92vh; width: auto; height: auto; border-radius: 10px; }
@media (max-width: 1050px) { .nav a { padding: 8px 10px; font-size: .9rem; } }
