/* NHimmo — site vitrine. Couleurs issues du logo : bleu nuit + or. */
:root {
  --navy: #0b1b3d;
  --navy-2: #13294f;
  --navy-3: #1d3a6b;
  --gold: #e3a93f;
  --gold-2: #f5c96a;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e4e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --ok: #1f9d6a;
  --err: #d64545;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(11, 27, 61, .08);
  --shadow-lg: 0 30px 60px rgba(11, 27, 61, .18);
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- en-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 27, 61, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.nav { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; text-decoration: none; }
.lang-switch { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 12px; font-size: .85rem !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; text-decoration: none !important; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 10px 24px rgba(227, 169, 63, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(227, 169, 63, .45); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-small { padding: 9px 16px; font-size: .9rem; border-radius: 11px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------------------------------------------------------------- héros */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, rgba(227, 169, 63, .22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0e2248 100%); padding: 72px 0 96px; }
.hero::after { content: ""; position: absolute; inset: auto -10% -1px -10%; height: 90px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.badge svg { width: 18px; height: 18px; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(245, 201, 106, .14); color: var(--gold-2); font-weight: 700; font-size: .85rem; margin-bottom: 18px; border: 1px solid rgba(245, 201, 106, .3); }
.hero h1 span { background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero-meta { font-size: .9rem; color: rgba(255, 255, 255, .65); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.trust svg { width: 20px; height: 20px; color: var(--gold-2); flex: none; }
.hero-phones { position: relative; display: flex; justify-content: center; gap: 0; min-height: 520px; }
.phone { width: 260px; border-radius: 34px; padding: 9px; background: #0a1328; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06); }
.phone img { border-radius: 26px; width: 100%; }
.hero-phones .phone:first-child { transform: rotate(-6deg) translate(40px, 30px); z-index: 1; }
.hero-phones .phone:last-child { transform: rotate(5deg) translate(-30px, -10px); z-index: 2; }

/* ---------------------------------------------------------------- sections */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature { transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 27, 61, .12); }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(227, 169, 63, .16), rgba(227, 169, 63, .06)); color: #b77f15; margin-bottom: 16px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot + .spot { margin-top: 96px; }
.spot.reverse .spot-media { order: 2; }
.spot-media { display: flex; justify-content: center; }
.spot-media .phone { width: 290px; }
.spot p { color: var(--muted); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 26px; width: 44px; height: 44px; border-radius: 14px; background: var(--navy); color: var(--gold-2); font-weight: 800; display: grid; place-items: center; font-size: 1.15rem; box-shadow: var(--shadow); }
.step p { color: var(--muted); margin: 0; }

.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 26px; margin: 0 -20px; scrollbar-width: thin; }
.gallery figure { flex: none; width: 230px; margin: 0; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 230px; border-radius: 30px; padding: 7px; }
.gallery .phone img { border-radius: 24px; }
.gallery figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); font-weight: 600; }

.band { background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.band .ico { width: 72px; height: 72px; border-radius: 22px; background: rgba(245, 201, 106, .14); display: grid; place-items: center; color: var(--gold-2); }
.band .ico svg { width: 38px; height: 38px; }
.band p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 1.08rem; }
.band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

.cta { text-align: center; }
.cta .band { grid-template-columns: 1fr; justify-items: center; text-align: center; }

/* ---------------------------------------------------------------- pages intérieures */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0 56px; }
.page-hero p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 40em; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: rgba(255, 255, 255, .8); }
.page-body { padding: 56px 0 84px; }

/* téléchargement */
.dl-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.dl-card { text-align: center; padding: 40px 32px; }
.dl-card .app-icon { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 18px; box-shadow: var(--shadow); }
.dl-card h2 { margin-bottom: 4px; }
.dl-meta { color: var(--muted); margin-bottom: 24px; }
.dl-meta strong { color: var(--ink); }
.dl-card .btn { font-size: 1.1rem; padding: 18px 30px; }
.dl-hint { margin-top: 14px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.dl-hint svg { width: 18px; height: 18px; color: var(--ok); }
.notice { border-radius: 16px; padding: 18px 20px; background: #fff7e6; border: 1px solid #f3dca8; color: #6b4a07; margin-bottom: 20px; text-align: left; }
.notice.err { background: #fdecec; border-color: #f4c2c2; color: #7a1f1f; }
.qr { width: 184px; height: 184px; margin: 8px auto 18px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr img, .qr canvas, .qr svg { width: 100%; height: 100%; }
.howto ol { padding-left: 1.3em; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.howto ol li::marker { color: var(--gold); font-weight: 800; }
.whatsnew ul { padding-left: 1.2em; color: var(--muted); margin: 0; }
.advanced { margin-top: 36px; }
.advanced > summary { cursor: pointer; color: var(--muted); font-size: .92rem; font-weight: 600; }
.advanced[open] > summary { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
table.variants { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border-radius: 14px; overflow: hidden; }
.variants th, .variants td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.variants th { background: #f0f3f9; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.variants code { font-size: .72rem; word-break: break-all; color: var(--muted); }
.variants .rec { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--ok); background: #e6f6ef; border-radius: 6px; padding: 2px 6px; margin-left: 4px; }

/* versions */
.timeline { display: grid; gap: 22px; max-width: 860px; margin: 0 auto; }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.release h2 { font-size: 1.6rem; margin: 0; }
.release time { color: var(--muted); font-size: .92rem; }
.tag { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #e6f6ef; color: var(--ok); }
.release h3 { font-size: .95rem; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.release h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.release h3.fixed::before { background: var(--err); }
.release h3.improved::before { background: var(--navy-3); }
.release ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.release .summary { color: var(--ink); font-weight: 500; }
.release details { margin-top: 18px; }
.release details summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 600; }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; padding: 13px 14px; border: 1px solid #cfd6e3; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(29, 58, 107, .12); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); }
.hp { position: absolute; left: -5000px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; display: none; font-weight: 600; }
.form-status.ok { display: block; background: #e6f6ef; color: #0f6e48; }
.form-status.err { display: block; background: #fdecec; color: #8a1f1f; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .ico { width: 42px; height: 42px; border-radius: 12px; background: #f0f3f9; display: grid; place-items: center; color: var(--navy-3); flex: none; }
.contact-list svg { width: 20px; height: 20px; }
.contact-list .ico-wa { background: #25d366; color: #fff; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; }
.wa-link svg { width: 18px; height: 18px; color: #25d366; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.dev { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.dev img { width: 56px; height: 56px; border-radius: 16px; }

/* confidentialité */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p { color: #384256; }

/* ---------------------------------------------------------------- pied de page */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

.center { text-align: center; }
.muted { color: var(--muted); }
.mt { margin-top: 28px; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid, .spot, .dl-grid, .contact-grid { grid-template-columns: 1fr; }
  .spot.reverse .spot-media { order: 0; }
  .hero-phones { min-height: 0; margin-top: 12px; }
  .hero-phones .phone { width: 200px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 34px 26px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 10px 20px 20px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links .btn { margin-top: 12px; }
  .hero { padding: 48px 0 80px; }
  section { padding: 64px 0; }
  form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-phones .phone { width: 165px; border-radius: 26px; padding: 6px; }
  .hero-phones .phone img { border-radius: 21px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
