/* ECO NRJ FRANCE — landing publicitaire.
   Couleurs reprises de econrj-france.com : bleu nuit #12283B, vert, jaune du logo.
   Pensé mobile d'abord : c'est là qu'arrive le trafic Meta et Google. */

:root {
  --navy: #12283B;
  --navy-soft: #1B3A54;
  --green: #1F9D55;
  --green-dark: #17794A;
  --lime: #8CF5A6;
  --yellow: #FFD23F;
  --orange: #FF6B1A;
  --ink: #0E1F2E;
  --muted: #5B6B80;
  --line: #DCE4EC;
  --bg: #F4F7FA;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(18, 40, 59, .10);
  --shadow-lg: 0 24px 60px rgba(18, 40, 59, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }

/* ─────────────── barre du haut ─────────────── */
.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.topbar .tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  background: rgba(255, 255, 255, .12); padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
}
.topbar .tel:hover { background: rgba(255, 255, 255, .2); }

/* ─────────────── hero ─────────────── */
.hero {
  background:
    linear-gradient(180deg, rgba(18, 40, 59, .86) 0%, rgba(18, 40, 59, .94) 100%),
    var(--photo, none) center / cover no-repeat, var(--navy);
  color: var(--white);
  padding: 44px 0 40px;
}
.hero .eyebrow {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--lime);
  border: 1px solid rgba(140, 245, 166, .45); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 7vw, 46px); line-height: 1.1; letter-spacing: -.02em;
  font-weight: 800; margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: clamp(16px, 4vw, 19px); color: #D6E2EC; max-width: 34em; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: 14px; color: #C9D8E5; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312283B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ─────────────── boutons ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 17px; line-height: 1;
  padding: 18px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(31, 157, 85, .34); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); font-size: 16px; padding: 14px 22px; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ─────────────── sections ─────────────── */
section { padding: 52px 0; }
section.tint { background: var(--bg); }
h2 {
  font-size: clamp(24px, 5.6vw, 34px); line-height: 1.15; letter-spacing: -.015em;
  font-weight: 800; margin-bottom: 10px;
}
h2 em { font-style: normal; color: var(--green); }
.sub { color: var(--muted); font-size: 17px; max-width: 42em; margin-bottom: 28px; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .num { font-weight: 800; font-size: 34px; color: var(--green); line-height: 1; margin-bottom: 8px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15.5px; }

.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { list-style: none; counter-increment: s; padding-left: 52px; position: relative; }
.steps li::before {
  counter(s); content: counter(s);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15.5px; }

table.bareme { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.bareme th, table.bareme td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.bareme th { background: var(--navy); color: #fff; font-size: 14px; letter-spacing: .02em; }
table.bareme tr:last-child td { border-bottom: 0; }
table.bareme td strong { color: var(--green-dark); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 800; color: var(--green); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); font-size: 15.5px; margin-top: 10px; }

/* ─────────────── formulaire ─────────────── */
.form-shell {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.form-head { padding: 18px 22px 0; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 10%; background: var(--green); border-radius: 99px; transition: width .28s ease; }
.form-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; }

.step { padding: 20px 22px 26px; display: none; }
.step.on { display: block; animation: slide .22s ease; }
@keyframes slide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step h3 { font-size: clamp(20px, 5vw, 25px); line-height: 1.2; margin-bottom: 4px; letter-spacing: -.01em; }
.step .hint { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(2, 1fr); }
.choice {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  padding: 16px 18px; font-size: 16.5px; font-weight: 600; text-align: left;
  cursor: pointer; transition: border-color .12s, background .12s, transform .1s;
  width: 100%; font-family: inherit; color: var(--ink);
}
.choice:hover { border-color: var(--green); }
.choice:active { transform: scale(.985); }
.choice[aria-pressed="true"] { border-color: var(--green); background: #F1FBF5; }
.choice .ic { font-size: 22px; line-height: 1; flex: none; width: 26px; text-align: center; }

.fields { display: grid; gap: 14px; }
.fields.two { grid-template-columns: repeat(2, 1fr); }
label.f { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
input.f, select.f {
  width: 100%; font: inherit; font-size: 16.5px; padding: 14px 15px;
  border: 2px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink);
}
input.f:focus, select.f:focus { outline: none; border-color: var(--green); }
input.f[aria-invalid="true"] { border-color: #D7221F; background: #FEF4F4; }
.err { color: #B3120F; font-size: 13.5px; margin-top: 6px; display: none; }
.err.on { display: block; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.consent input { width: 21px; height: 21px; flex: none; margin-top: 1px; accent-color: var(--green); }
.consent a { color: var(--green-dark); }

.nav-row { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; padding: 12px 4px; }
.back:hover { color: var(--navy); }

.reassure { font-size: 13px; color: var(--muted); text-align: center; padding: 0 22px 20px; }

/* ─────────────── pied de page ─────────────── */
footer { background: var(--navy); color: #AFC2D2; padding: 40px 0 32px; font-size: 14px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
footer a { color: #D4E2EE; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.legal-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; line-height: 1.5; color: #93A8BB; }

/* ─────────────── page de confirmation ─────────────── */
.thanks { text-align: center; padding: 70px 0; }
.thanks .tick {
  width: 82px; height: 82px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; margin: 0 auto 22px;
}
.thanks .tick svg { width: 40px; height: 40px; }

/* ─────────────── page de contenu (mentions) ─────────────── */
.doc h1 { font-size: 30px; margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc li { color: #32465A; font-size: 16px; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }

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

/* ── rappel express (formulaire court en haut de page) ─────────────── */
.quick { margin-top: 26px; background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 14px; max-width: 520px; }
.quick h2 { font-size: 20px; margin: 0 0 4px; color: var(--navy); }
.quick p.sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.quick .row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .quick .row { grid-template-columns: 1fr 1fr; } }
.quick input[type=text], .quick input[type=tel] { width: 100%; padding: 14px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.quick label.c { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0 12px; }
.quick label.c input { margin-top: 3px; }
.quick .btn { width: 100%; text-align: center; }
.quick .alt { margin: 10px 0 0; font-size: 14px; text-align: center; }
.quick .alt a { color: var(--green); font-weight: 600; }
.quick .err { display: none; color: #B42318; font-size: 14px; margin: 8px 0 0; }
.quick .err.on { display: block; }
.quick-bar { display: none; }
@media (max-width: 719px) {
  .quick-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -8px 24px rgba(18,40,59,.14); z-index: 50; }
  .quick-bar a { text-align: center; padding: 13px 10px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 15px; }
  .quick-bar .call { background: var(--navy); color: #fff; }
  .quick-bar .cb { background: var(--green); color: #fff; }
  body { padding-bottom: 76px; }
}
