/* =========================================================
   MH Protect — feuille de style
   Couleurs et typo modifiables dans :root
   ========================================================= */

/* ---------- Police hébergée sur le site (licence libre OFL) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Police de secours aux mêmes largeurs : rien ne bouge quand la vraie police arrive */
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"); font-weight: 400; size-adjust: 103.3%; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"); font-weight: 500; size-adjust: 104.5%; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600; size-adjust: 99%; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 700; size-adjust: 100%; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 800; size-adjust: 101.2%; }

/* ---------- Transition entre les pages : le bandeau reste en place (Chrome, Edge) ---------- */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

:root {
  --ink: #0b1220;
  --ink-2: #1c2638;
  --text: #3d4759;
  --muted: #6b7486;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --accent: #e5262f;
  --accent-dark: #c41b23;
  --accent-soft: #fdecee;
  --ok: #22c55e;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 32, .35);
  --font: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.accent { color: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 .95rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(229, 38, 47, .7); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: #fff3f3; }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(229, 38, 47, .45);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--accent); }
.logo svg { width: 34px; height: 34px; }
.logo span { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo em { font-style: normal; font-weight: 500; opacity: .7; margin-left: .3rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; margin-left: auto; }
.nav a:not(.btn) { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover { color: #fff; }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-weight: 700; }
.header__phone svg { width: 18px; height: 18px; fill: var(--accent); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(229, 38, 47, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(59, 130, 246, .12), transparent 60%),
    var(--ink);
  color: rgba(255,255,255,.8);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.15rem; max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.85); }
.hero__trust li { display: flex; align-items: center; gap: .4rem; }
.hero__trust svg { width: 18px; height: 18px; fill: var(--ok); }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-weight: 600; font-size: .85rem; margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* Mockup supervision */
.monitor {
  position: relative;
  background: #0f1828;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,.03);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.monitor__bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 600; }
.monitor__live { display: inline-flex; align-items: center; gap: .35rem; color: #fff; background: rgba(229,38,47,.18); padding: .2rem .55rem; border-radius: 6px; font-size: .7rem; letter-spacing: .06em; }
.monitor__live i, .cam__badge::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.monitor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cam { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #1b2638; }
.cam img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cam::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px);
}
.cam__label, .cam__time, .cam__badge {
  position: absolute; font: 600 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.45); padding: .25rem .4rem; border-radius: 4px; z-index: 1;
}
.cam__label { left: 6px; top: 6px; }
.cam__time { right: 6px; bottom: 6px; }
.cam__badge { right: 6px; bottom: 6px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; gap: .3rem; }
.cam__badge::before { content: ""; background: #fff; }
.cam--alert { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Cadre de détection autour de la personne (CAM 03 · Jardin).
   Position en % de la vignette : la photo 3:2 est recadrée en 16:10 (object-fit: cover). */
.cam__detect {
  position: absolute; left: 27.5%; top: 18.5%; width: 7.5%; height: 25.6%; z-index: 1; pointer-events: none;
  border: 2px solid var(--accent); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 12px rgba(229,38,47,.55);
  animation: detect 1.6s ease-in-out infinite;
}
.cam__detect span {
  position: absolute; left: -2px; top: 100%; margin-top: 2px; white-space: nowrap;
  font: 700 .5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
  color: #fff; background: var(--accent); padding: .15rem .3rem; border-radius: 2px;
}
@keyframes detect { 50% { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 4px rgba(229,38,47,.2); } }

.monitor__notif {
  position: absolute; left: -28px; bottom: -52px;
  display: flex; gap: .7rem; align-items: center;
  background: #fff; color: var(--ink); border-radius: 14px; padding: .75rem 1rem .75rem .75rem;
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
  animation: float 4s ease-in-out infinite;
}
.monitor__notif strong { display: block; font-size: .88rem; }
.monitor__notif span { color: var(--muted); font-size: .78rem; }
.monitor__notif-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.monitor__notif-icon svg { width: 20px; height: 20px; fill: var(--accent); }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- Stats ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat span { font-size: .9rem; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.75); }
.section--dark h2 { color: #fff; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.eyebrow--light { color: #ff6b72; }

/* ---------- Cartes solutions ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card__icon svg { width: 26px; height: 26px; fill: var(--accent); }
.card--featured { background: var(--ink); border-color: var(--ink); }
.card--featured h3 { color: #fff; }
.card--featured p { color: rgba(255,255,255,.7); }
.card--featured .card__icon { background: rgba(229,38,47,.18); }
.card__tag { position: absolute; top: 22px; right: 22px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; }

/* ---------- Onglets Particuliers / Pros ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 999px; width: max-content; margin: 0 auto 48px; }
.tabs__btn { border: 0; background: transparent; font: 700 .95rem var(--font); color: var(--muted); padding: .7rem 1.5rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tabs__btn.is-active { background: var(--ink); color: #fff; }
.tabpanel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h3 { font-size: 1.6rem; }
.split__visual { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.split__visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 2rem; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 500; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e5262f' d='m9 16.2-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__num { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Application ---------- */
.app { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.app__content > p { font-size: 1.08rem; max-width: 560px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
.feature { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px; }
.feature strong { display: block; color: #fff; margin-bottom: .25rem; }
.feature span { font-size: .9rem; }

.phone { justify-self: center; width: 280px; padding: 12px; border-radius: 44px; background: #1a2333; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone__screen { border-radius: 34px; background: #f4f6fa; color: var(--ink); padding: 16px 18px 22px; min-height: 520px; }
.phone__status { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; margin-bottom: 18px; }
.phone__hello { font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.phone__state { position: relative; background: var(--ink); color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.phone__state span { font-size: .78rem; opacity: .7; }
.phone__state strong { display: block; font-size: 1.4rem; }
.phone__toggle { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 48px; height: 28px; border-radius: 999px; background: var(--ok); }
.phone__toggle i { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.phone__feed { position: relative; height: 130px; border-radius: 16px; margin-bottom: 14px; background: #141d2b url("../images/maison-640.webp") center / cover no-repeat; overflow: hidden; }
.phone__feed span { position: absolute; left: 10px; top: 10px; font-size: .65rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.4); padding: .2rem .4rem; border-radius: 4px; }
.phone__events { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 16px; padding: 4px 14px; }
.phone__events li { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 600; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.phone__events li:last-child { border-bottom: 0; }
.phone__events time { margin-left: auto; color: var(--muted); font-weight: 500; }
.phone__events i { width: 8px; height: 8px; border-radius: 50%; }
.phone__events .ok { background: var(--ok); }
.phone__events .warn { background: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Devis ---------- */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.quote__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.quote__intro > p { font-size: 1.05rem; color: var(--muted); }
.quote__perks { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .6rem; }
.quote__perks li { padding-left: 1.6rem; position: relative; }
.quote__perks li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.quote__perks strong { color: var(--ink); }
.quote__call { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: .2rem; }
.quote__call span { font-size: .9rem; color: var(--muted); }
.quote__call a { font-size: 1.5rem; font-weight: 800; color: var(--accent); text-decoration: none; }
.quote__call small { color: var(--muted); }

/* ---------- Formulaires ---------- */
.form-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card__step-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 1rem; }
.form-card__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.form-card__nav > .btn:last-of-type:not([hidden]), #quote-next { margin-left: auto; }

.progress { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progress__bar { height: 100%; width: 33.33%; background: var(--accent); border-radius: 999px; transition: width .35s ease; }

.fstep { border: 0; padding: 0; margin: 0; display: none; }
.fstep.is-active { display: block; animation: fade .3s ease; }
.fstep legend { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 1.1rem; padding: 0; }
.flabel { font-weight: 700; color: var(--ink); margin: 1.6rem 0 .7rem; }
.fhint { color: var(--muted); font-size: .88rem; margin: -.6rem 0 1rem; }

.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex; flex-direction: column; gap: .15rem; height: 100%;
  border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  font-weight: 600; color: var(--ink);
}
.choice b { font-size: 1.05rem; }
.choice small { color: var(--muted); font-weight: 500; }
.choice--sm > span { padding: 12px 14px; font-size: .92rem; justify-content: center; }
.choice:hover > span { border-color: #c9d1de; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(229,38,47,.08); }
.choice input:focus-visible + span { outline: 3px solid rgba(229, 38, 47, .45); outline-offset: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: grid; gap: .4rem; margin-top: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 1rem var(--font); color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7486' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right .7rem center / 22px no-repeat; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,18,32,.06); outline: none; }
.field .is-invalid, .field input.is-invalid { border-color: var(--accent); background: #fffafa; }

.consent { display: flex; gap: .7rem; align-items: flex-start; margin-top: 18px; font-size: .86rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--ink); }
.consent.is-invalid span { color: var(--accent); }

.ferror { color: var(--accent); font-weight: 600; font-size: .9rem; margin: 14px 0 0; min-height: 1px; }
.ferror:empty { margin: 0; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { position: absolute; inset: 0; background: #fff; border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px; animation: fade .4s ease; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 72px; height: 72px; border-radius: 50%; background: #e8f9ee; display: grid; place-items: center; margin-bottom: 18px; }
.form-success__icon svg { width: 36px; height: 36px; fill: var(--ok); }
.form-success p { color: var(--muted); max-width: 340px; }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact__list a, .contact__list span { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--accent); }
.contact__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.contact__icon svg { width: 22px; height: 22px; fill: var(--accent); }
#contact-form .btn--block { margin-top: 22px; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--accent), #b3141c); color: #fff; padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 560px; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 72px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer .logo { margin-bottom: 1rem; }
.footer p { max-width: 320px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .header__phone span { display: none; }
  .nav { gap: 1.3rem; }
  .hero__inner { gap: 40px; }
  .monitor__notif { left: 12px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav__cta { display: inline-flex; margin-top: 18px; }

  .hero { padding: 56px 0 80px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .monitor { transform: none; max-width: 560px; margin: 0 auto; width: 100%; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .cards { grid-template-columns: 1fr 1fr; }
  .split, .app, .quote, .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split__visual { order: -1; max-width: 480px; }
  .quote__intro { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .section { padding: 72px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header__phone { display: none; }
  .hero__ctas .btn { width: 100%; }
  .monitor { padding: 10px; }
  .monitor__notif { position: relative; left: 0; bottom: 0; margin-top: 12px; animation: none; }
  .cards, .steps, .features { grid-template-columns: 1fr; }
  .choices--3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .tabs { width: 100%; }
  .tabs__btn { flex: 1; padding: .7rem .8rem; }
  .stat { padding: 24px 12px; }
  .stat strong { font-size: 1.6rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { padding: 22px 16px 96px; }
  .cta-band__btns, .cta-band__btns .btn { width: 100%; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Zone d'intervention ---------- */
.zone { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.zone li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.zone strong { display: block; color: var(--ink); }
.zone span { font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) { .zone { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .zone { grid-template-columns: 1fr; } }

/* =========================================================
   Page produits
   ========================================================= */
.nav a[aria-current="page"] { color: #fff; }

.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 90% 0%, rgba(229, 38, 47, .22), transparent 60%), var(--ink);
  color: rgba(255,255,255,.78);
  padding: 48px 0 64px;
}
.page-hero h1 { color: #fff; max-width: 820px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero__lead { font-size: 1.1rem; max-width: 680px; }
.page-hero__perks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-weight: 600; color: #fff; font-size: .93rem; }
.page-hero__perks li { display: flex; align-items: center; gap: .45rem; }
.page-hero__perks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; margin-bottom: 1.4rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

.cat-nav-wrap { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-nav { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex-shrink: 0; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.cat-nav a:hover { border-color: var(--ink); }
.cat-nav a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.products-section { scroll-margin-top: calc(var(--header-h) + 64px); padding: 80px 0; }
.section__head--left { text-align: left; margin: 0 0 40px; max-width: 720px; }

/* Packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; }
.pack h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.pack__for { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .6rem; }
.pack__desc { color: var(--muted); }
.pack__price { font-size: 1.3rem; font-weight: 800; color: var(--ink); padding: .9rem 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pack .checklist { margin: 1.3rem 0 1.8rem; flex: 1; }
.pack--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.pack__tag { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; }

/* Fiches produits */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__img { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, #fff 0%, #eef2f8 70%); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product__img svg { width: 78%; height: auto; }
.product__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.product__body > p:not(.product__cat) { color: var(--muted); font-size: .95rem; }
.product__cat { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .4rem; }
.product__specs { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .35rem; align-content: start; font-size: .88rem; font-weight: 600; color: var(--ink-2); flex: 1; }
.product__specs li { position: relative; padding-left: 1.1rem; }
.product__specs li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.product__price { font-weight: 800; color: var(--ink); }

/* Lien vers la page produits depuis l'accueil */
.more-link { text-align: center; margin-top: 40px; }

/* Bandeau « produit sélectionné » dans le formulaire de devis */
.form-card__product { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .9rem; padding: .7rem 1rem; border-radius: 10px; margin: 0 0 1rem; }

@media (max-width: 960px) {
  .packs { grid-template-columns: 1fr; max-width: 520px; }
  .products { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: 1fr; }
  .products-section { padding: 56px 0; }
}

/* MH Protect brand mark */
.logo .logo__symbol { display: block; width: 44px; height: 44px; flex-shrink: 0; }
.logo span { font-size: 1.35rem; letter-spacing: -.035em; }
.logo em { opacity: 1; font-weight: 600; letter-spacing: -.02em; }
