/* NovyDeco — feuille de style du site vitrine.
   Palette reprise de l'application : fond crème, bleu marine, cyan des puces, orange des boutons. */

:root {
  --bg: #f6f1e7;
  --bg-2: #efe8da;
  --card: #ffffff;
  --text: #12243f;
  --muted: #5b6878;
  --line: rgba(18, 36, 63, 0.10);
  --cyan: #2eb9dc;
  --cyan-soft: #d9f2f9;
  --orange: #f4a261;
  --orange-hover: #ec8f45;
  --green-soft: #b6f0c4;
  --navy: #0b2140;
  --navy-2: #122b4f;
  --shadow: 0 10px 30px rgba(18, 36, 63, 0.10);
  --radius: 18px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b2140;
    --bg-2: #0f2a4f;
    --card: #142f57;
    --text: #eaf0f7;
    --muted: #a9b6c8;
    --line: rgba(234, 240, 247, 0.12);
    --cyan-soft: #16405f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer; font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #1b1b1b; box-shadow: 0 6px 18px rgba(244, 162, 97, 0.35); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Bandeau de langue */
.lang-banner {
  display: none; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; font-size: 0.95rem;
}
.lang-banner.is-visible { display: flex; }
.lang-banner a { color: #fff; font-weight: 700; }
.lang-banner button {
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 999px; padding: 0.15rem 0.7rem; cursor: pointer; font: inherit; font-size: 0.85rem;
}

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 1.2rem; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.85rem; font-weight: 700;
}
.lang-switch a, .lang-switch span { padding: 0.35rem 0.7rem; text-decoration: none; }
.lang-switch span { background: var(--cyan); color: #062232; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.45rem 0.6rem; cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* Héros */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.kicker { display: inline-block; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.badges li {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600;
  background: var(--cyan-soft); color: var(--text); padding: 0.3rem 0.75rem; border-radius: 999px;
}
.badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(320px, 80vw); border-radius: 34px; padding: 10px; background: #1c1c1e;
  box-shadow: 0 30px 60px rgba(18, 36, 63, 0.30), inset 0 0 0 2px #3a3a3c;
  transform: rotate(-2deg);
}
.phone img { border-radius: 26px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% -10% 0 -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 185, 220, 0.30), transparent 70%);
}

/* Fonctionnalités */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--cyan);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.9rem; font-weight: 600; }
.features-more { margin-top: 2.5rem; }
.features-more h3 { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.4rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.3rem; top: 1.35rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: #1b1b1b; font-weight: 800; font-family: var(--mono);
}
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Galerie */
.gallery {
  display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem 0 1.2rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin-inline: calc(50% - 50vw); padding-inline: max(1.25rem, calc(50vw - 560px));
}
.shot { flex: 0 0 auto; width: 250px; scroll-snap-align: start; }
.shot button {
  all: unset; cursor: zoom-in; display: block; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card);
}
.shot button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.shot figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.35; }

/* Visionneuse */
.lightbox { border: none; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(5, 15, 30, 0.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 0.6rem; padding: 1rem; }
.lightbox img { max-height: calc(100vh - 6.5rem); width: auto; max-width: 100%; border-radius: 18px; object-fit: contain; }
.lightbox figcaption { color: #fff; font-size: 0.95rem; text-align: center; }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
}
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Tarif */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 820px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.price-card.highlight { border-color: var(--cyan); }
.price-card h3 { font-size: 1.35rem; }
.price-card p { color: var(--muted); margin: 0; }
.pricing-note { color: var(--muted); font-size: 0.95rem; margin-top: 1.2rem; max-width: 820px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0.2rem 1.2rem; margin-bottom: 0.8rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--cyan); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 1rem; }

/* Sécurité */
.safety { border-left: 5px solid var(--orange); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.5rem 1.8rem; max-width: 900px; }
.safety p { margin: 0; color: var(--muted); }

/* Appel final */
.final { text-align: center; background: var(--navy); color: #fff; }
.final h2 { color: #fff; }
.final p { color: #c9d6e6; max-width: 560px; margin-inline: auto; }
.final .btn-primary { margin-top: 1rem; }

/* Pied de page */
.site-footer { padding: 2.5rem 0; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Page texte (confidentialité) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p { color: var(--muted); }
.prose .updated { font-size: 0.9rem; }

/* Réactif */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; }
  .phone { transform: none; width: min(260px, 70vw); }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .header-actions .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ── Guide de démarrage ─────────────────────────────────────────────────── */
.guide-hero { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.guide-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }

.hotspot-layout { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 2rem; align-items: start; }
.hotspot-stage {
  position: relative; width: 100%; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); user-select: none;
}
.hotspot-stage img { width: 100%; height: 100%; display: block; }
.hotspot {
  position: absolute; margin: 0; padding: 0; border: 2px solid rgba(46, 185, 220, 0.75); border-radius: 10px;
  background: rgba(46, 185, 220, 0.10); cursor: pointer; transition: background .15s ease, border-color .15s ease;
  font: inherit; color: inherit;
}
.hotspot:hover, .hotspot:focus-visible { background: rgba(46, 185, 220, 0.22); border-color: var(--cyan); outline: none; }
.hotspot.is-active { background: rgba(244, 162, 97, 0.22); border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.35); }
.hotspot .hs-num {
  position: absolute; top: -10px; left: -10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; font-family: var(--mono);
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: none;
}
.hotspot.is-active .hs-num { background: var(--orange); color: #1b1b1b; }
.hotspot-panel {
  position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem; min-height: 220px;
}
.hotspot-panel-empty { color: var(--muted); text-align: center; padding: 2rem 1rem; }
.hotspot-panel-empty svg { width: 48px; height: 48px; color: var(--cyan); margin-bottom: 0.5rem; }
.hotspot-panel-body { position: relative; }
.hotspot-panel-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #1b1b1b; font-weight: 800; font-family: var(--mono); margin-bottom: 0.6rem;
}
.hotspot-panel-body h3 { font-size: 1.3rem; }
.hotspot-panel-body p { color: var(--muted); margin: 0 0 1.2rem; white-space: pre-line; }
.hotspot-panel-nav { display: flex; gap: 0.5rem; }
.hotspot-panel-nav .btn { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.hotspot-panel-close { position: absolute; top: -0.4rem; right: -0.4rem; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 0.9rem; }
.hotspot-list { margin-top: 2rem; }
.hotspot-list summary { cursor: pointer; font-weight: 700; padding: 0.6rem 0; }
.hotspot-list ol { columns: 2; column-gap: 2rem; padding-left: 1.4rem; color: var(--muted); font-size: 0.95rem; }
.hotspot-list li { break-inside: avoid; margin-bottom: 0.5rem; }
.hotspot-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.hotspot-list a:hover { text-decoration: underline; }

.toolbar-strip { margin: 0 0 2rem; }
.toolbar-strip img { max-width: min(720px, 100%); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.icon-groups { display: flex; flex-direction: column; gap: 1.5rem; }
.icon-group h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.8rem; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.icon-card { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.icon-card img { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); background: #f6f1e7; }
.icon-card .num { font-family: var(--mono); font-size: 0.75rem; font-weight: 800; color: var(--cyan); }
.icon-card h4 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.icon-card p { margin: 0; color: var(--muted); font-size: 0.95rem; white-space: pre-line; }

.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; counter-reset: gstep; }
.guide-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.8rem; }
.guide-step figure { margin: 0; }
.guide-step img { border-radius: 16px; border: 1px solid var(--line); width: 100%; }
.guide-step figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.guide-step h3 { display: flex; gap: 0.7rem; align-items: center; font-size: 1.1rem; }
.guide-step h3::before { counter-increment: gstep; content: counter(gstep); flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #1b1b1b; font-family: var(--mono); font-weight: 800; }
.guide-step p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.adv-items { display: flex; flex-direction: column; gap: 2rem; }
.adv-item { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 2rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.adv-item img { border-radius: 16px; border: 1px solid var(--line); }
.adv-item h3 { font-size: 1.25rem; }
.adv-item ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.adv-item li { margin-bottom: 0.5rem; }

@media (max-width: 900px) {
  .hotspot-layout { grid-template-columns: 1fr; }
  .hotspot-panel { position: fixed; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; top: auto; z-index: 60; transform: translateY(120%); transition: transform .25s ease; max-height: 45vh; overflow: auto; }
  .hotspot-panel.is-open { transform: none; }
  .hotspot-panel-empty { display: none; }
  .hotspot-list ol { columns: 1; }
  .adv-item { grid-template-columns: 1fr; }
  .adv-item img { max-width: 280px; }
}
