/* Pilote solaire — styles de la page /solaire/ (mobile d'abord). */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --navy: #0b1b3a;
  --navy-2: #16305e;
  --ink: #14213a;
  --muted: #5a6780;
  --line: #e1e7f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --sun: #ffc21a;
  --sun-dark: #eba900;
  --bad: #c0392b;
  --ok: #1e8e5a;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; color: var(--navy); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.testbar { background: #fff3c4; color: #5c4500; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; }

/* ---------- En-tête ---------- */
.top { position: relative; top: 0; z-index: 30; background: rgba(11,27,58,.92); backdrop-filter: blur(10px); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.top .top-cta { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 17px/1.1 'Bricolage Grotesque', sans-serif; }
.brand small { display: block; font: 500 12px/1.3 'Manrope', sans-serif; color: #b5c2dc; }
.brand small:empty { display: none; }
.top-cta { text-decoration: none; background: var(--sun); color: #1b1400; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; transition: transform .15s var(--ease), background .15s; }
.top-cta:hover { background: #ffd04d; }
.top-cta:active { transform: scale(.96); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 14px 0 36px; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 55% at 88% 0%, rgba(255,194,26,.38) 0%, rgba(255,194,26,0) 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(52,104,196,.45) 0%, rgba(52,104,196,0) 70%),
    linear-gradient(180deg, #0b1b3a 0%, #102750 100%);
}
.hero-grid { display: grid; gap: 16px; position: relative; }
.eyebrow { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255,194,26,.25); }
h1 { font-size: clamp(25px, 7vw, 54px); font-weight: 750; letter-spacing: -.025em; color: #fff; }
h1 mark { background: none; color: var(--sun); }
.lead { margin-top: 8px; font-size: 15px; line-height: 1.45; color: #c9d5ea; max-width: 34em; }
.perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2px 0 6px; padding: 0; }
.perks li { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 7px 13px 7px 10px; font-size: 13.5px; font-weight: 600; color: #fff; }
.perks li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231b1400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.3 8.4l2.4 2.4 5-5.4'/%3E%3C/svg%3E") center/16px no-repeat; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #dbe6f3; box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Carte formulaire ---------- */
.form-card { background: var(--card); color: var(--ink); border-radius: 24px; padding: 20px 18px 22px; box-shadow: 0 30px 70px -30px rgba(3,10,28,.75), 0 0 0 1px rgba(255,255,255,.08); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pane:not([hidden]) { animation: paneIn .3s var(--ease) both; }
.pane.from-back:not([hidden]) { animation-name: paneBack; }
@keyframes paneIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes paneBack { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
legend.q { display: block; width: 100%; padding: 0; margin: 0 0 16px; font: 750 22px/1.2 'Bricolage Grotesque', sans-serif; letter-spacing: -.01em; color: var(--navy); text-wrap: balance; }

.progress { margin-bottom: 18px; }
.progress-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; min-height: 26px; }
.back { background: none; border: 0; padding: 4px 8px 4px 0; font: 700 13.5px 'Manrope', sans-serif; color: var(--muted); cursor: pointer; }
.back::before { content: '← '; }
.back:hover { color: var(--navy); }
.progress-top b { font: 700 19px/1.2 'Bricolage Grotesque', sans-serif; color: var(--navy); }
.progress-top span { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; margin-left: auto; }
.bar { height: 6px; background: #e8edf5; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sun), #ff9d1a); transition: width .45s var(--ease); }

.row { margin-bottom: 14px; }
label, .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--navy); }
label em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; height: 54px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #f7f9fc; border: 1.5px solid #d3dbe8; border-radius: 14px; appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: #98a4b8; }
input[type="text"]:hover, input[type="tel"]:hover, input[type="email"]:hover, select:hover { border-color: #aab6cb; }
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, select:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,194,26,.45); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%2314213a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.btn:focus-visible, summary:focus-visible, .back:focus-visible, .link-skip:focus-visible, .top-cta:focus-visible, .sticky-cta:focus-visible { outline: 3px solid rgba(255,194,26,.8); outline-offset: 2px; }
input.is-bad { border-color: var(--bad); background: #fff7f6; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; margin-top: 7px; }
.err:empty { display: none; }

/* Réponses à choix : pastilles */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice.stack { grid-template-columns: 1fr; gap: 9px; }
.choice.stack span { justify-content: flex-start; text-align: left; padding: 8px 16px; min-height: 52px; }
.choice.stack span::after { content: ''; margin-left: auto; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #c3cddd; background: #fff; transition: border-color .15s, box-shadow .15s; }
.choice.stack input:checked + span::after { border-color: var(--sun); box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 10px var(--sun); }
.choice label { margin: 0; position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px 10px;
  border: 1.5px solid #d3dbe8; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.2; background: #f7f9fc; color: var(--ink);
  transition: background .15s, border-color .15s, color .15s, transform .12s var(--ease), box-shadow .15s;
}
.choice label:hover span { border-color: #aab6cb; background: #fff; }
.choice input:active + span { transform: scale(.97); }
.choice input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(11,27,58,.8); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255,194,26,.6); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 14px 18px; border: 0; border-radius: 14px;
  background: var(--navy); color: #fff; font: 800 16px/1.25 'Manrope', sans-serif; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, box-shadow .15s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: scale(.985); }
#btn-next::after { content: '→'; font-size: 19px; line-height: 1; transition: transform .2s var(--ease); }
#btn-next:hover::after { transform: translateX(4px); }
.btn-sun { background: var(--sun); color: #1b1400; box-shadow: 0 14px 26px -14px rgba(235,169,0,.95); }
.btn-sun:hover { background: #ffd04d; }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: #eef2f8; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-skip { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font: 600 14px 'Manrope', sans-serif; cursor: pointer; padding: 10px 14px; }
.link-skip:hover { color: var(--navy); }

.privacy { display: flex; gap: 8px; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: left; }
.privacy::before { content: ''; flex: none; width: 15px; height: 15px; margin-top: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235a6780' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.6'/%3E%3Cpath d='M5.2 7V5a2.8 2.8 0 0 1 5.6 0v2'/%3E%3C/svg%3E") center/contain no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript { color: var(--bad); font-weight: 600; margin-top: 12px; }

.notice, .done { text-align: center; padding: 14px 2px 6px; outline: none; }
.notice h2, .done h2 { font-size: 23px; margin: 14px 0 8px; }
.notice p, .done p { color: var(--muted); margin-bottom: 20px; }
.notice-ico, .done-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; font: 800 28px 'Bricolage Grotesque', sans-serif; }
.notice-ico { background: #fff3c4; color: #8a6400; }
.done-ico { background: #dff5ea; color: var(--ok); animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.done p { font-size: 17px; color: var(--ink); margin-bottom: 4px; }

/* ---------- Comment ça se passe ---------- */
.how { padding: 48px 0 12px; }
.how h2, .faq h2 { font-size: clamp(26px, 6.4vw, 38px); letter-spacing: -.02em; margin-bottom: 24px; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-list li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 76px; box-shadow: 0 10px 30px -24px rgba(11,27,58,.5); }
.how-n { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--sun); font: 800 18px 'Bricolage Grotesque', sans-serif; }
.how-list h3 { font-size: 19px; margin-bottom: 6px; }
.how-list p { color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { padding: 48px 0 110px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; transition: box-shadow .2s, border-color .2s; }
details[open] { border-color: #c8d3e6; box-shadow: 0 14px 34px -26px rgba(11,27,58,.6); }
summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 18px; font-weight: 700; color: var(--navy); position: relative; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #f2f5fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%230b1b3a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 2.5v9M2.5 7h9'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s var(--ease), background-color .2s; }
details[open] summary::after { transform: rotate(45deg); background-color: var(--sun); }
details p { padding: 0 18px 18px; color: var(--muted); }
.faq-cta { margin-top: 24px; }

/* ---------- Bouton fixe (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 16px;
  background: var(--sun); color: #1b1400; font-weight: 800; text-decoration: none;
  box-shadow: 0 16px 36px -12px rgba(11,27,58,.55);
  transform: translateY(140%); transition: transform .3s var(--ease);
}
.sticky-cta.is-on { transform: none; }

/* ---------- Pied de page ---------- */
.foot { background: #081429; color: #9fadc7; font-size: 13.5px; padding: 28px 0 100px; }
.foot p { margin-bottom: 8px; }
.foot p:empty { display: none; }
.foot b, .foot-company { color: #fff; }
.foot-company { font-weight: 700; font-size: 15px; }
.foot a { color: #fff; }

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .top { position: sticky; }
  .top-in { height: 68px; }
  .top .top-cta { display: inline-block; }
  .eyebrow { display: inline-flex; }
  .lead { margin-top: 14px; font-size: 20px; line-height: 1.55; }
  .perks { justify-content: flex-start; margin: 0; grid-area: perks; }
  .form-card { min-height: 430px; }
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "text form" "perks form" "photo form"; column-gap: 60px; row-gap: 24px; align-items: start; }
  .hero-text { grid-area: text; padding-top: 18px; }
  .form-card { grid-area: form; padding: 30px 30px 32px; }
  .hero-photo { grid-area: photo; }
  .perks li { font-size: 14.5px; }
  .how { padding: 80px 0 20px; }
  .faq { padding: 72px 0 88px; }
  .how-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .how-list li { padding: 76px 24px 24px; }
  .how-n { left: 24px; top: 22px; }
  .faq-cta { max-width: 340px; }
  .sticky-cta { display: none; }
  .foot { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
