/* ==========================================================================
   PatrimoniaCD by MPS CORP — site vitrine
   Même identité que le logiciel : bleu ciel, boutons orange, fond blanc,
   police Poppins, appareils (tablette, téléphone, ordinateur), animations douces.
   ========================================================================== */

:root {
  --blue: #0f766e;
  --blue-600: #0b5f58;
  --blue-50: #e7f4f1;
  --sky-1: #14877c;
  --sky-2: #0d5c56;
  --orange: #d4a017;
  --orange-600: #b8890f;
  --orange-50: #fbf3dc;
  --navy: #0b3b36;

  /* Noms partagés avec l'espace de gestion */
  --primary: #0f766e;
  --primary-600: #0b5f58;
  --primary-50: #e7f4f1;
  --primary-100: #c8e7e0;
  --bg: #ffffff;
  --bg-alt: #f5f9fd;
  --surface: #ffffff;
  --line: #e3e9f0;
  --line-strong: #cfd9e4;
  --text: #2f3b4a;
  --text-2: #4a5a6e;
  --muted: #66758a;
  --subtle: #98a6b8;
  --success: #12804a; --success-bg: #e7f7ee;
  --danger: #c23b3b;  --danger-bg: #fdeeee;
  --warning: #b8770f; --warning-bg: #fdf5e4;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 59, 54, .05);
  --shadow: 0 10px 30px rgba(11, 59, 54, .08);
  --shadow-lg: 0 30px 60px rgba(4, 34, 30, .25);
  --ring: 0 0 0 3px rgba(15, 118, 110, .22);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: var(--font);
  --wrap: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, .h3 { margin: 0 0 .5em; color: var(--navy); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3, .h3 { font-size: 1.15rem; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--orange); }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .875rem; color: var(--muted); }
.eyebrow { margin: 0 0 .8rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.eyebrow.light { color: rgba(255, 255, 255, .85); }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 38em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: 48px; padding: 0 26px; border-radius: 8px; border: 1.5px solid transparent; font: 600 .95rem/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: none; }
.btn .ico:last-child { transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.sm { height: 34px; padding: 0 14px; font-size: .85rem; }
.btn-orange { background: var(--orange); color: var(--navy); box-shadow: 0 8px 20px rgba(212, 160, 23, .3); }
.btn-orange:hover { background: var(--orange-600); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(15, 118, 110, .25); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-secondary { background: var(--blue-50); color: var(--blue-600); border-color: var(--primary-100); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-600); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--primary-100); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-600); }
.btn-light { background: #fff; color: var(--blue-600); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand-mark { display: grid; place-items: center; }
.logo-mark { width: 40px; height: 40px; }
.logo-mark .roof { stroke: var(--orange); }
.logo-mark .p { stroke: var(--blue); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.brand-text b span { color: var(--blue); }
.brand-text small { margin-top: 5px; font-size: .64rem; font-weight: 500; letter-spacing: .12em; color: var(--muted); }

/* ---------- En-tête (blanc) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 59, 54, .07); }
.header-in { display: flex; align-items: center; gap: 24px; height: 100%; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav ul a { display: block; padding: 8px 12px; color: var(--navy); font-size: .93rem; font-weight: 500; white-space: nowrap; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav ul a:hover { color: var(--blue); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a[aria-current="page"] { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn { height: 42px; padding: 0 18px; font-size: .9rem; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.nav-toggle .ico { width: 22px; height: 22px; }

/* ---------- Bandeaux bleus ---------- */
.blue-band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, var(--sky-1), var(--sky-2)); }
.blue-band::before { content: ""; position: absolute; left: -90px; bottom: -110px; width: 360px; height: 360px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .07); pointer-events: none; }
.blue-band::after { content: ""; position: absolute; right: 6%; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .06); pointer-events: none; }
.blue-band h1, .blue-band h2, .blue-band h3 { color: #fff; }
.blue-band .lead, .blue-band p { color: rgba(255, 255, 255, .92); }

/* ---------- Accueil ---------- */
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.22; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero-actions.center { justify-content: center; }
.devices { position: relative; height: 400px; }
.dev-tablet { position: absolute; right: 40px; top: 0; width: min(500px, 88%); padding: 14px; border-radius: 28px; background: #1d2433; box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; }
.dev-tablet img { border-radius: 12px; }
.dev-phone { position: absolute; right: 0; bottom: 0; width: 140px; padding: 7px; border-radius: 24px; background: #1d2433; box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; animation-delay: -3.5s; }
.dev-phone img { border-radius: 17px; height: 230px; width: 100%; object-fit: cover; object-position: left top; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 12px; background: #fff; color: var(--navy); font-size: .85rem; font-weight: 600; box-shadow: 0 16px 34px rgba(4, 34, 30, .2); }
.chip i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.chip i .ico { width: 18px; height: 18px; }
.chip-1 { left: 0; bottom: 40px; }
.chip-2 { left: 30px; top: 30px; }
.chip-2 i { background: #25d366; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.intro { padding: 80px 0 10px; text-align: center; }
.intro h2 { max-width: 820px; margin: 0 auto; color: var(--blue); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.5; }

.personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.persona { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.persona:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(11, 59, 54, .12); }
.persona-img { height: 190px; object-fit: cover; width: 100%; }
.persona-art { height: 190px; display: grid; place-items: center; position: relative; overflow: hidden; }
.persona-art::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .25); right: -60px; bottom: -90px; }
.persona-art .ico { width: 64px; height: 64px; color: #fff; stroke-width: 1.4; position: relative; }
.persona:nth-child(1) .persona-art { background: linear-gradient(135deg, #14877c, #0f766e); }
.persona:nth-child(2) .persona-art { background: linear-gradient(135deg, #e2b53e, #d4a017); }
.persona:nth-child(3) .persona-art { background: linear-gradient(135deg, #145e57, #0b3b36); }
.persona-body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 26px; }
.persona h3 { color: var(--blue); font-size: 1.2rem; margin-bottom: .4em; }
.persona p { flex: 1; color: var(--text-2); font-size: .95rem; }
.persona .btn { width: 100%; }

.anywhere-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.dev-laptop { width: 92%; margin-left: auto; }
.dev-laptop .scr { padding: 10px 10px 12px; background: #1d2433; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); }
.dev-laptop .scr img { border-radius: 6px; }
.dev-laptop .base { height: 14px; margin: 0 -26px; background: linear-gradient(#dfe6ee, #b9c5d2); border-radius: 0 0 16px 16px; }

/* Blocs « texte + capture dans un cercle » */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 60px; align-items: center; }
.split-rev > :first-child { order: 2; }
.split-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--blue); }
.split-text h2 em { color: var(--orange); }
.split-text p { color: var(--text-2); }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 500; }
.checks .ico { padding: 4px; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--blue-50); color: var(--blue); stroke-width: 2.4; }
.split-text .btn { margin-top: 28px; }
.ring { position: relative; display: grid; place-items: center; min-height: 380px; }
.ring::before { content: ""; position: absolute; width: min(360px, 82%); aspect-ratio: 1; border-radius: 50%; border: 30px solid var(--blue); opacity: .95; }
.ring.orange::before { border-color: var(--orange); }
.ring .shot { position: relative; width: 86%; }
.ring .dot { position: absolute; right: 8%; bottom: 10%; width: 50px; height: 50px; border-radius: 14px; background: var(--orange); }
.ring.orange .dot { background: var(--blue); }
.ring .chip { left: 0; top: 14%; }

/* ---------- Captures ---------- */
.shot { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d3dae2; }
.shot-bar em { margin-left: 8px; font-style: normal; font-size: .7rem; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { color: var(--blue); }
.section-head p:last-child { color: var(--text-2); font-size: 1.05rem; margin-bottom: 0; }
.note { margin: 30px auto 0; max-width: 640px; color: var(--muted); font-size: .95rem; }

.page-intro { padding: 76px 0 70px; text-align: center; }
.page-intro .lead { margin: 0 auto; }

.promises, .cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .promise { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover, .promise:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.card p, .promise p { margin: 0; color: var(--text-2); }
.card h3, .card .h3, .promise h3 { margin: 18px 0 6px; color: var(--navy); }
.card-plain:hover { transform: none; box-shadow: var(--shadow-sm); }
.card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.card-icon .ico { width: 26px; height: 26px; }
.card:nth-child(3n+2) .card-icon, .feature:nth-child(3n+2) .card-icon { background: var(--orange-50); color: var(--orange); }
.card-icon.big { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 18px; }
.card-icon.big .ico { width: 30px; height: 30px; }
.card-icon.ok { background: var(--success-bg); color: var(--success); }
.card-num { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--orange); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li > span { display: block; margin-bottom: 12px; font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--orange); }
.steps p { color: var(--text-2); margin: 0; }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.feature h2 { font-size: 1.05rem; font-weight: 600; margin: 16px 0 6px; color: var(--navy); }
.feature p { margin: 0; color: var(--text-2); font-size: .93rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }

/* Avant / après */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.compare-col { padding: 32px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.compare-col h3 { font-size: 1.25rem; }
.compare-col ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compare-col li { position: relative; padding-left: 30px; color: var(--text-2); }
.compare-col li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 14px; border-radius: 50%; }
.compare-col.before li { color: var(--muted); }
.compare-col.before li::before { background: #f3d2d2; }
.compare-col.after { background: linear-gradient(115deg, var(--sky-1), var(--sky-2)); border: 0; box-shadow: var(--shadow); }
.compare-col.after h3, .compare-col.after li { color: #fff; }
.compare-col.after li::before { background: var(--orange); }

/* Formules */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 30px 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan h2 { font-size: 1.5rem; margin-bottom: .1em; color: var(--blue); }
.plan-public { color: var(--muted); margin-bottom: 20px; }
.plan-price { padding: 18px 0; margin: 0 0 4px; border-block: 1px solid var(--line); }
.plan-price b { font-size: 2rem; font-weight: 700; color: var(--navy); }
.plan-price b.on-quote { font-size: 1.4rem; }
.plan-price span { margin-left: 6px; color: var(--muted); }
.plan .checks { margin-bottom: 28px; flex: 1; }
.plan-featured { border: 2px solid var(--orange); box-shadow: 0 20px 44px rgba(212, 160, 23, .15); transform: translateY(-8px); }
.plan-badge { position: absolute; top: -14px; left: 30px; padding: 4px 14px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 600; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; }
.faq details[open] { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--orange); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; }

.prose h2 { margin-top: 1.4em; font-size: 1.5rem; color: var(--blue); }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose p { color: var(--text-2); }

/* ---------- Bandeau d'appel ---------- */
.cta-band { padding: 0 0 90px; }
.section.alt + .cta-band { padding-top: 90px; }
.cta-in { position: relative; overflow: hidden; padding: 64px 40px; border-radius: 24px; text-align: center; color: #fff; background: linear-gradient(115deg, var(--sky-1), var(--sky-2)); box-shadow: var(--shadow); }
.cta-in::before { content: ""; position: absolute; left: -70px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }
.cta-in h2 { position: relative; color: #fff; }
.cta-in h2 em { color: #f3d77a; }
.cta-in p { position: relative; margin: 0 auto; color: rgba(255, 255, 255, .92); font-size: 1.05rem; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ---------- Formulaires ---------- */
.section-form { padding-top: 64px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form-card { padding: 38px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.span-2 { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.field label span[aria-hidden] { color: var(--orange); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fbfdff; font: 400 .97rem/1.4 var(--font); color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: var(--ring); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .85rem; font-weight: 500; }
.check { display: flex !important; gap: 11px; align-items: flex-start; font-weight: 400 !important; color: var(--text-2) !important; cursor: pointer; }
.check input { width: 19px; min-height: 19px; height: 19px; margin-top: 4px; padding: 0; flex: none; accent-color: var(--orange); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-foot .small { margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 22px; font-size: .93rem; border: 1px solid; }
.alert-error { background: var(--danger-bg); border-color: #f2c9c9; color: #8f2525; }
.alert-success { background: var(--success-bg); border-color: #c4e6d6; color: #146a48; }
.form-aside .h3 { font-size: 1.2rem; color: var(--blue); }
.mini-steps { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: m; }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); counter-increment: m; }
.mini-steps li::before { content: counter(m); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--navy); font-weight: 600; font-size: .85rem; }
.aside-contact { display: grid; gap: 12px; padding: 24px; border-radius: 18px; color: #fff; background: linear-gradient(115deg, var(--sky-1), var(--sky-2)); }
.aside-contact p { margin: 0 0 4px; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.aside-contact a, .aside-contact .addr { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; margin: 0; }
.aside-contact .addr { font-weight: 500; }
.aside-contact a:hover { color: #f6e2a0; }
.aside-note { margin-top: 20px; padding: 20px 22px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.aside-note h3 { font-size: 1rem; }
.aside-note p { margin: 0; color: var(--text-2); font-size: .93rem; }

/* ---------- Connexion / merci ---------- */
.login-zone { padding: 80px 0 100px; background: var(--bg-alt); }
.login-card { max-width: 470px; margin: 0 auto; padding: 44px 38px; text-align: center; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { font-size: 1.8rem; color: var(--navy); }
.login-card > p { color: var(--text-2); }
.login-form { text-align: left; display: grid; gap: 16px; margin-top: 10px; }
.login-help { margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; text-align: left; font-size: .87rem; color: var(--muted); }
.login-help li { display: flex; gap: 10px; }
.login-help .ico { color: var(--orange); margin-top: .25em; }
.login-new { margin-top: 22px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #a9bacb; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 44px; }
.site-footer .brand-text b, .site-footer .brand-text b span { color: #fff; }
.site-footer .brand-text small { color: #a9bacb; }
.site-footer .logo-mark .p { stroke: #fff; }
.site-footer .logo-mark .roof { stroke: #f0cf6b; }
.footer-brand p { margin: 16px 0 0; color: #c8d4e0; }
.site-footer h2 { margin: 6px 0 16px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #f0cf6b; font-weight: 600; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #c8d4e0; }
.site-footer a:hover { color: #fff; }
.footer-contact a, .footer-contact li { display: inline-flex; align-items: center; gap: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; color: #8597aa; }
.footer-bottom span:last-child { display: flex; gap: 20px; }
.footer-bottom a { color: #a9bacb; }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > *:nth-child(2) { animation-delay: .1s; }
.hero-text > *:nth-child(3) { animation-delay: .2s; }
.hero-text > *:nth-child(4) { animation-delay: .3s; }
.devices { animation: rise 1s .25s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Animation d'ouverture (partagée avec le logiciel) ---------- */
html.splash-on::before { content: ""; position: fixed; inset: 0; z-index: 9999; background: #fff; }
.splash { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #fff; transition: opacity .55s ease, visibility .55s ease; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-in { display: flex; flex-direction: column; align-items: center; }
.splash-mark { width: 88px; height: 88px; }
.splash-mark path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s ease forwards; }
.splash-mark .roof { stroke: var(--orange); }
.splash-mark .p { stroke: var(--blue); animation-delay: .35s; }
.splash-name { margin-top: 14px; font: 700 30px/1 var(--font); color: var(--navy); opacity: 0; animation: rise .5s .75s ease forwards; }
.splash-name span { color: var(--blue); }
.splash-by { margin-top: 6px; font: 500 11px/1 var(--font); letter-spacing: .14em; color: var(--muted); opacity: 0; animation: rise .5s .9s ease forwards; }
.splash-bar { width: 190px; height: 3px; margin-top: 18px; border-radius: 3px; background: #e9f0f7; overflow: hidden; }
.splash-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue) 75%, var(--orange) 75%); animation: bar .8s 1s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bar { to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-text > *, .devices, .dev-tablet, .dev-phone { animation: none; }
  .btn, .card, .promise, .feature, .persona { transition: none; transform: none !important; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 24px 26px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(11, 59, 54, .12); max-height: calc(100vh - var(--header-h)); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 12px 10px; font-size: 1rem; }
  .nav ul a::after { display: none; }
  .nav ul a[aria-current="page"] { background: var(--blue-50); border-radius: 8px; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { height: 50px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-in, .anywhere-in, .split { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .devices { height: 380px; max-width: 600px; width: 100%; margin: 0 auto; }
  .personas, .promises, .cards-3, .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .cards-4, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 34px; }
  .plan-featured { transform: none; }
  .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dev-laptop { width: 100%; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .intro { padding-top: 60px; }
  .page-intro { padding: 56px 0 50px; }
  .logo-mark { width: 34px; height: 34px; }
  .brand-text b { font-size: 1.15rem; }
  .hero-in { padding-top: 46px; padding-bottom: 56px; gap: 34px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .devices { height: 260px; }
  .dev-tablet { right: 24px; width: 86%; padding: 9px; border-radius: 18px; }
  .dev-phone { width: 92px; padding: 5px; border-radius: 16px; }
  .dev-phone img { height: 150px; border-radius: 12px; }
  .chip { display: none; }
  .features, .gallery, .compare-grid, .grid-2, .cards-4 { grid-template-columns: 1fr; }
  .ring { min-height: 300px; }
  .cta-band { padding-bottom: 64px; }
  .section.alt + .cta-band { padding-top: 64px; }
  .cta-in { padding: 48px 20px; border-radius: 20px; }
  .form-card { padding: 24px 18px; }
  .form-foot .btn { width: 100%; }
  .login-zone { padding: 48px 0 64px; }
  .login-card { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .shot-bar em { display: none; }
}
.section-tight { padding-top: 46px; }

/* ---------- Diaporama en arrière-plan du bandeau d'accueil ----------
   6 photos qui se succèdent en fondu (6 s chacune), avec un zoom lent avant/arrière.
   Un voile vert garde le texte lisible. */
.hero { isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--navy); }
.hero-slides span { position: absolute; inset: -3%; background-size: cover; background-position: center; opacity: 0; animation: slideFade 36s linear infinite, slideZoom 12s ease-in-out infinite alternate; will-change: opacity, transform; }
.hero-slides .s1 { background-image: url(img/fond-1.jpg); animation-delay: 0s, 0s; }
.hero-slides .s2 { background-image: url(img/fond-2.jpg); background-position: center; animation-delay: 6s, -3s; }
.hero-slides .s3 { background-image: url(img/fond-3.jpg); animation-delay: 12s, -6s; }
.hero-slides .s4 { background-image: url(img/fond-4.jpg); background-position: center 35%; animation-delay: 18s, -9s; }
.hero-slides .s5 { background-image: url(img/fond-5.jpg); background-position: center 30%; animation-delay: 24s, -2s; }
.hero-slides .s6 { background-image: url(img/fond-6.jpg); animation-delay: 30s, -7s; }
.hero-slides .s1 { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 48, 44, .95) 0%, rgba(11, 82, 76, .86) 42%, rgba(15, 118, 110, .5) 100%); }
@keyframes slideFade { 0% { opacity: 0; } 3% { opacity: 1; } 16.6% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides .s1 { animation-name: slideFadeFirst, slideZoom; }
@keyframes slideFadeFirst { 0% { opacity: 1; } 16.6% { opacity: 1; } 20% { opacity: 0; } 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes slideZoom { from { transform: scale(1); } to { transform: scale(1.14); } }
@media (max-width: 960px) { .hero-shade { background: linear-gradient(180deg, rgba(8, 48, 44, .93), rgba(11, 82, 76, .86)); } }
@media (prefers-reduced-motion: reduce) { .hero-slides span { animation: none; } .hero-slides .s1 { opacity: 1; } }

/* ---------- Page Connexion : photos qui défilent, présentation + carte ---------- */
.login-zone.with-slides { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 70px 0; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 60px; align-items: center; }
.login-intro { color: #fff; }
.login-intro h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.2; margin-bottom: 30px; }
.login-intro h1 em { color: #f3d77a; }
.login-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.login-points li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.55; }
.login-points li span { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #f3d77a; }
.login-points li span .ico { width: 22px; height: 22px; }
.login-points b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.with-slides .login-card { margin: 0; max-width: none; box-shadow: 0 30px 70px rgba(4, 34, 30, .35); border: 0; }
.login-title { font-size: 1.6rem; color: var(--navy); margin-bottom: .4em; }
.login-help { text-align: left; }
.login-help li { align-items: flex-start; }
.login-help li > span { flex: 1; min-width: 0; }
.login-help .ico { flex: none; }
.login-card .login-new { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) {
  .login-layout { grid-template-columns: 1fr; gap: 34px; }
  .login-intro h1 { margin-bottom: 20px; }
  .login-zone.with-slides { padding: 48px 0 56px; min-height: 0; }
}
@media (max-width: 640px) { .login-points { display: none; } }

/* ---------- Espace locataire (accueil) ---------- */
.ring .phone-shot { position: relative; width: min(300px, 70%); height: auto; filter: drop-shadow(0 20px 30px rgba(11, 59, 54, .25)); }

/* ---------- Fenêtre « Avant / Après » ---------- */
.promo { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(11, 59, 54, .72); backdrop-filter: blur(3px); }
.promo[hidden] { display: none; }
.promo-box { position: relative; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 28px 28px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: promo-in .35s var(--ease) both; }
@keyframes promo-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.promo-box h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 0 40px 18px 0; }
.promo-box h2 em { font-style: normal; color: var(--blue); }
.promo-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f5f9; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.promo-x svg { width: 20px; height: 20px; }
.promo-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo-imgs figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: #0b3b36; aspect-ratio: 4 / 5; }
.promo-imgs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-imgs figcaption { position: absolute; left: 10px; bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 6px 12px; border-radius: 99px; }
.promo-imgs .avant { background: #c23b3b; } .promo-imgs .apres { background: var(--blue); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
body.promo-ouverte { overflow: hidden; }
@media (max-width: 640px) {
  .promo-box { padding: 22px 16px 16px; }
  .promo-imgs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .promo-actions .btn { width: 100%; }
}

/* ---------- Bandeau des cookies ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin: 0 auto; display: flex; gap: 14px 20px; align-items: center; background: #fff; border: 1px solid var(--primary-100); border-radius: 14px; padding: 14px 18px; box-shadow: 0 18px 50px rgba(11, 59, 54, .22); }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--navy); }
.cookies a { color: var(--blue); text-decoration: underline; }
.cookies-actions { display: flex; gap: 8px; flex: none; }
.cookies .btn { height: 42px; padding: 0 18px; }
@media (max-width: 640px) { .cookies { flex-direction: column; align-items: stretch; } .cookies-actions .btn { flex: 1; } }

/* Vidéo de démonstration (accueil) */
.video-demo .video-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.video-demo .video-head p:last-child { color: var(--muted, #4a5b70); }
.video-box { max-width: 1040px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #0b3b36; box-shadow: 0 30px 70px rgba(11, 59, 54, .25); }
.video-box video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
