/* Charte calée sur vinelec.fr : fond nuit, bleu électrique, titres en capitales (Poppins) */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("fonts/poppins-800.woff2") format("woff2"); }

:root {
  --bg: #060b1d;
  --bg-2: #0b1430;
  --card: #0e1838;
  --field: #0a1229;
  --line: rgba(148, 170, 230, .16);
  --line-strong: rgba(148, 170, 230, .32);
  --ink: #f2f5fc;
  --muted: #9aa6c4;
  --blue: #3d7bff;
  --blue-2: #1f56d8;
  --cyan: #5cc8ff;
  --ok: #3ddc97;
  --warn: #ffc44d;
  --error: #ff6b6b;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.glow {
  position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px 380px at 85% -40px, rgba(61, 123, 255, .35), transparent 70%),
    radial-gradient(520px 340px at -10% 220px, rgba(92, 200, 255, .14), transparent 70%);
}
main, header, footer { position: relative; z-index: 1; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- En-tête ---------- */
.top-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-weight: 800; font-style: italic; font-size: 1.45rem; letter-spacing: 1px; }
.logo-v {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 60%, var(--blue-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 1px;
}
.top-tel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px;
  transition: border-color .15s, background .15s;
}
.top-tel:hover { border-color: var(--blue); background: rgba(61, 123, 255, .1); }
.top-tel svg { width: 16px; height: 16px; fill: var(--cyan); }

/* ---------- Accroche ---------- */
.hero { padding: 36px 0 28px; }

/* Grand écran : accroche à gauche, simulateur à droite */
.hero-grid { display: block; }
@media (min-width: 1024px) {
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 56px; align-items: start; padding-top: 28px;
  }
  .hero { padding: 36px 0 0; position: sticky; top: 24px; }
  .hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.5rem); }
  .tool-col { padding-top: 12px; }
}

.hero-proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.hero-proof b { color: var(--ink); }
.faces { display: flex; flex: none; }
.faces img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: contain; background: #fff; padding: 3px;
  border: 2px solid var(--bg); margin-left: -10px;
}
.faces img:first-child { margin-left: 0; }
@media (max-width: 360px) { .faces img { width: 32px; height: 32px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cyan); font-weight: 600; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--blue); }
h1 {
  font-size: clamp(2rem, 7vw, 3.3rem); line-height: 1.08; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.5px; margin: 14px 0 18px;
}
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 22px; max-width: 620px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.chips li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ---------- Outil ---------- */
.tool {
  background: linear-gradient(180deg, rgba(20, 34, 78, .9), var(--card));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
@media (max-width: 560px) { .tool { padding: 18px; border-radius: 16px; } }

.stepper { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 6px; }
.stepper li {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  padding-bottom: 12px; border-bottom: 2px solid var(--line);
  transition: color .2s, border-color .2s;
}
.stepper span {
  display: inline-grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%; font-size: .75rem;
  border: 1px solid var(--line-strong);
}
.stepper li.active { color: var(--ink); border-color: var(--blue); }
.stepper li.active span { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper li.done { color: var(--ink); border-color: var(--ok); }
.stepper li.done span { background: var(--ok); border-color: var(--ok); color: var(--bg); }
@media (max-width: 420px) { .stepper li { font-size: .74rem; gap: 6px; } }
@media (max-width: 360px) {
  .stepper { gap: 4px; }
  .stepper li { font-size: .68rem; gap: 4px; flex: 1 1 auto; }
  .stepper span { width: 20px; height: 20px; font-size: .68rem; }
}

.panel { animation: fade .3s ease; }
@keyframes fade { from { transform: translateY(6px); } to { transform: none; } }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 2px dashed var(--line-strong); border-radius: 16px;
  padding: 38px 16px 30px; text-align: center; cursor: pointer;
  background: rgba(61, 123, 255, .04);
  transition: border-color .15s, background .15s, transform .15s;
}
.drop:hover, .drop.over { border-color: var(--blue); background: rgba(61, 123, 255, .1); }
.drop.over { transform: scale(1.01); }
.drop-icon { color: var(--cyan); width: 54px; height: 54px; margin-bottom: 4px; }
.drop-icon svg { width: 100%; height: 100%; }
.drop-title { font-weight: 700; font-size: 1.15rem; }
.drop-sub { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }

.loading { text-align: center; padding: 26px 8px 18px; }
.scan {
  position: relative; width: 72px; height: 92px; margin: 0 auto 18px;
  border: 2px solid var(--line-strong); border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(180deg, transparent 0 12px, rgba(148, 170, 230, .14) 12px 14px);
}
.scan span {
  position: absolute; left: 0; right: 0; height: 3px;
  background: var(--cyan); box-shadow: 0 0 14px 3px rgba(92, 200, 255, .6);
  animation: scan 1.6s ease-in-out infinite alternate;
}
@keyframes scan { from { top: 4%; } to { top: 92%; } }
.loading-text { font-weight: 600; margin: 0 0 2px; min-height: 1.5em; }

.privacy { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 6px; }
.privacy svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ok); }

/* ---------- Formulaires ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

label { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); font-size: .78rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .78rem; }
input, select, textarea {
  font: inherit; font-weight: 400; font-size: 1rem;
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--field); color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #5e6a8a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 123, 255, .25); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }

.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
  border: 0; border-radius: 12px; padding: 15px 22px; cursor: pointer; width: 100%;
  box-shadow: 0 10px 24px rgba(31, 86, 216, .4);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 30px rgba(31, 86, 216, .5); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost {
  width: auto; padding: 9px 18px; font-size: .82rem; box-shadow: none;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
}
.drop:hover .btn-ghost { border-color: var(--blue); background: rgba(61, 123, 255, .15); }
.link {
  background: none; border: 0; color: var(--cyan); font: inherit; font-weight: 500; font-size: .92rem;
  cursor: pointer; padding: 0; text-align: left;
}
.link:hover { text-decoration: underline; }

.small { color: var(--muted); font-size: .82rem; }
.error { color: var(--error); font-weight: 600; font-size: .92rem; }
.notice {
  background: rgba(61, 123, 255, .1); border: 1px solid rgba(61, 123, 255, .3);
  padding: 11px 14px; border-radius: 10px; font-size: .9rem; margin: 0 0 18px;
}
.notice.warn { background: rgba(255, 196, 77, .1); border-color: rgba(255, 196, 77, .35); }

/* ---------- Résultat ---------- */
.result { text-align: center; padding: 6px 0 10px; }
.result .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.result .big {
  font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 800; line-height: 1.1; margin: 4px 0;
  background: linear-gradient(90deg, var(--ok), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result .big small { font-size: .4em; font-weight: 600; -webkit-text-fill-color: var(--muted); }
.result .sub { color: var(--muted); font-size: .9rem; }
.center { text-align: center; margin: 10px 0 0; }
.bars { margin: 22px auto 4px; max-width: 460px; display: grid; gap: 10px; text-align: left; }
.bar { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: .85rem; }
.bar-track { position: relative; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 10px;
  font-weight: 700; font-size: .85rem; white-space: nowrap;
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.bar-now .bar-fill { background: rgba(148, 170, 230, .28); }
.bar-after .bar-fill { background: linear-gradient(90deg, var(--blue-2), var(--blue)); }
@media (max-width: 420px) { .bar { grid-template-columns: 92px 1fr; } }

.echeance {
  background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .35);
  padding: 11px 14px; border-radius: 10px; font-size: .9rem; margin: 16px 0 0;
}
.method { text-align: center; max-width: 560px; margin: 14px auto 0; }

.callback { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .3px; }
.callback > .small { margin: 0 0 16px; }

.panel-done { text-align: center; padding: 18px 4px; }
.panel-done .done-icon { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--ok); }
.panel-done .done-icon svg { width: 100%; height: 100%; }
.panel-done h2 { font-size: 1.5rem; text-transform: uppercase; margin: 0 0 8px; }
.panel-done p { color: var(--muted); max-width: 460px; margin: 0 auto; }

/* ---------- Témoignages ---------- */
.trust { margin-top: 56px; }
.section-title { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 800; text-transform: uppercase; margin: 10px 0 18px; line-height: 1.15; }
.quotes {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 82vw); gap: 14px;
  --edge: max(16px, calc((100vw - 1240px) / 2 + 16px));
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--edge) 18px; scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) { .quotes { --edge: max(32px, calc((100vw - 1240px) / 2 + 32px)); } }
.quotes:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.quote {
  scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.quote blockquote { margin: 0; font-size: .92rem; line-height: 1.6; color: #dfe5f5; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote b { display: block; font-size: .9rem; }
.quote small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; overflow: hidden; padding: 5px;
}
.avatar img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Réassurance ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 44px; text-align: center;
}
.stats div { padding: 10px 16px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1.2; }
.stats span { color: var(--muted); font-size: .84rem; }
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stats div { padding: 16px; }
}

.suppliers { text-align: center; margin-top: 40px; }
.suppliers p { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin: 0 0 12px; }
.suppliers ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (min-width: 1024px) { .suppliers ul { grid-template-columns: repeat(8, 1fr); } }
.suppliers li {
  display: grid; place-items: center; height: 76px; padding: 14px 18px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.suppliers li.on-dark { background: #101a3a; border: 1px solid var(--line-strong); }
.suppliers img { max-width: 100%; max-height: 44px; object-fit: contain; }
@media (max-width: 560px) {
  .suppliers ul { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .suppliers li { height: 64px; padding: 12px 14px; }
  .suppliers img { max-height: 36px; }
}

.foot { text-align: center; color: var(--muted); font-size: .8rem; padding-top: 48px; padding-bottom: 36px; margin-top: 40px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot a { color: inherit; }
.logo-img { display: block; height: 40px; width: auto; }
.small-logo { height: 30px; margin: 0 auto 10px; opacity: .85; }
@media (max-width: 360px) { .top .logo-img { height: 32px; } .top-tel { padding: 7px 11px; font-size: .84rem; } }
