:root {
  --navy: #0b1f3a;
  --navy-2: #112a4d;
  --green: #16c784;
  --green-d: #0fa56b;
  --amber: #ffb547;
  --ink: #16243a;
  --slate: #5b6b7d;
  --line: #e3e8ef;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(11, 31, 58, 0.35);
  --shadow-sm: 0 6px 20px -10px rgba(11, 31, 58, 0.3);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; }

a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-d);
  margin: 0 0 0.7rem;
}

.hl { color: var(--green); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.btn-primary { background: var(--green); color: #05231a; box-shadow: 0 10px 24px -10px rgba(22, 199, 132, 0.7); }
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 0.4rem; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none; }

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(5, 35, 26, 0.25);
  border-top-color: #05231a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green); color: #05231a; font-size: 1.2rem; font-weight: 800;
}
.brand-name strong { color: var(--green); }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.main-nav a { color: #cdd8e6; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: #fff; }
.header-inner .btn-primary { color: #05231a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -15%, rgba(22, 199, 132, 0.28), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(80, 130, 255, 0.16), transparent 55%),
    linear-gradient(160deg, #0a1b34 0%, var(--navy-2) 100%);
  color: #eef3f9;
  padding: 4.6rem 0 5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 500px at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 500px at 70% 30%, #000 0%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 0.45rem; box-shadow: 0 0 0 4px rgba(22,199,132,0.18); vertical-align: middle; }
.hero .eyebrow { color: var(--green); }
.hero-copy h1 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); color: #fff; font-weight: 800; letter-spacing: -0.01em; }
.lead { font-size: 1.13rem; color: #c8d4e3; max-width: 42ch; }
.lead strong { color: #fff; }
.trust-pills { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-pills li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e3ecf6;
  font-weight: 600; font-size: 0.9rem;
  padding: 0.5rem 0.95rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- Carte formulaire ---------- */
.hero-form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  padding: 1.7rem 1.7rem 1.9rem;
  box-shadow: 0 30px 70px -25px rgba(4, 14, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.form-card-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.3rem; }
.form-card-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(160deg, #eafaf2, #d6f3e6);
  font-size: 1.5rem;
}
.form-title { font-size: 1.3rem; margin: 0; }
.form-sub { margin: 0.1rem 0 0; font-size: 0.86rem; color: #8a97a6; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem; }

/* Selects personnalises */
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 0.95rem; top: 50%;
  width: 0.55rem; height: 0.55rem; pointer-events: none;
  border-right: 2px solid #7a8aa0; border-bottom: 2px solid #7a8aa0;
  transform: translateY(-65%) rotate(45deg);
}
.select-wrap select { width: 100%; appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 2.2rem; cursor: pointer; }
.autre-input { margin-top: 0.4rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--slate); }
.field .opt { font-weight: 400; color: #9aa7b6; }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 199, 132, 0.15);
}
.field input.invalid, .field select.invalid { border-color: #e25563; box-shadow: 0 0 0 3px rgba(226, 85, 99, 0.12); }
.form-hint { font-size: 0.8rem; color: #8a97a6; text-align: center; margin: 0.7rem 0 0; }
.form-error { color: #d23b4b; font-size: 0.9rem; font-weight: 600; margin: 0.6rem 0 0; text-align: center; }
.form-success { color: var(--green-d); font-size: 0.95rem; font-weight: 600; margin: 0.6rem 0 0; text-align: center; }

/* ---------- Resultat ---------- */
.result-section { padding: 3.2rem 0; }
.result-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  border: 1px solid var(--line);
}
.result-head h2 { font-size: 1.6rem; }
.result-price {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem;
  align-items: center;
  background: linear-gradient(160deg, #f1fbf6, #eafaf2);
  border: 1px solid #cdeede;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin: 1.2rem 0 1.5rem;
}
.price-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--green-d); text-transform: uppercase; letter-spacing: 0.05em; }
.price-value { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--navy); line-height: 1.1; }
.price-range { display: block; font-size: 1rem; color: var(--slate); font-weight: 600; }
.price-meta { display: grid; gap: 0.9rem; }
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 0.78rem; color: var(--slate); font-weight: 600; }
.meta-value { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.badge { align-self: flex-start; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.9rem; }
.badge.eleve { background: #def6ea; color: var(--green-d); }
.badge.moyen { background: #fff2d9; color: #b27a12; }
.badge.faible { background: #fde4e6; color: #c23a48; }

.result-argument { font-size: 1.05rem; color: #34465c; background: #f7f9fc; border-left: 4px solid var(--green); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; }
.result-factors h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.result-factors ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.result-factors li { background: #eef3f9; color: #3a4d63; padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-block { margin-top: 2rem; padding-top: 1.8rem; border-top: 1px dashed var(--line); }
.contact-block h3 { font-size: 1.3rem; }
.contact-block > p { color: var(--slate); margin-top: -0.2rem; }

/* ---------- Sections generiques ---------- */
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2.2rem; }

.steps { padding: 4rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--slate); margin: 0; }

.advantages { padding: 4rem 0; background: var(--navy); color: #e9eff6; }
.advantages .section-title { color: #fff; }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.adv { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.adv h3 { color: #fff; font-size: 1.15rem; }
.adv p { color: #b9c6d6; margin: 0; }

.faq { padding: 4rem 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.4rem 1.2rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; padding: 0.9rem 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green-d); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1rem; color: var(--slate); }

.cta-final { background: linear-gradient(160deg, var(--green-d), var(--green)); color: #04221a; text-align: center; padding: 3.5rem 0; }
.cta-final h2 { color: #04221a; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-final p { margin: 0 0 1.5rem; font-weight: 600; }

.site-footer { background: #07172c; color: #9fb0c4; padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand { color: #fff; font-family: var(--font-head); font-weight: 700; margin: 0; }
.footer-brand strong { color: var(--green); }
.footer-legal { font-size: 0.85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .lead { max-width: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .result-price { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .header-inner .btn-primary { display: none; }
}

/* ---------- Compléments esthétiques ---------- */
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.adv-icon { font-size: 1.7rem; display: block; margin-bottom: 0.55rem; }
.adv { transition: transform 0.18s ease, background 0.2s ease; }
.adv:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.07); }
.step { transition: transform 0.18s ease, box-shadow 0.2s ease; }
.step:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -18px rgba(11,31,58,0.4); }
.hero-form-card .field input,
.hero-form-card .select-wrap select { background: #fff; }
.field select:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Acceptation & rendez-vous ---------- */
.accept-bar {
  margin-top: 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  flex-wrap: wrap;
  background: linear-gradient(160deg, #f1fbf6, #eafaf2);
  border: 1px solid #cdeede;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.accept-text h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.accept-text p { margin: 0; color: #3a4d63; max-width: 60ch; }
.accept-bar .btn { flex-shrink: 0; }

.contact-block textarea {
  font-family: var(--font-body); font-size: 0.98rem;
  padding: 0.7rem 0.8rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fbfcfe; color: var(--ink);
  resize: vertical; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-block textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,199,132,0.15); }
.contact-block input[type="date"] { font-family: var(--font-body); }

/* Choix du lieu (segmented) */
.segmented { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  flex: 1 1 0; min-width: 150px; text-align: center; cursor: pointer;
  padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--slate); background: #fbfcfe;
  transition: all 0.15s ease;
}
.segmented input:checked + label {
  border-color: var(--green); background: #eafaf2; color: #0c7a4f;
  box-shadow: 0 0 0 3px rgba(22,199,132,0.15);
}
.segmented input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }

/* Zone d'upload photos */
.upload-zone {
  display: flex; align-items: center; gap: 0.9rem; cursor: pointer;
  border: 1.5px dashed #b9cbd9; border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; background: #fbfcfe;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-zone:hover { border-color: var(--green); background: #f3fbf7; }
.upload-icon { font-size: 1.6rem; }
.upload-text { color: var(--slate); font-weight: 600; font-size: 0.95rem; }
.upload-text small { font-weight: 400; color: #97a4b3; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.7rem; }
.photo-thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 560px) {
  .accept-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .accept-bar .btn { width: 100%; }
}

/* ---------- Avantages dans le résultat ---------- */
.result-benefits { margin-top: 1.6rem; }
.result-benefits h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.benefits-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.benefits-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: #f1fbf6; border: 1px solid #d3efe1; border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; color: #2e4357; font-size: 0.96rem; line-height: 1.4;
}
.benefits-list li span { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.benefits-list strong { color: var(--ink); }
@media (max-width: 620px) { .benefits-list { grid-template-columns: 1fr; } }

/* ---------- Logo QuickCar ---------- */
.brand-logo { display: block; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(12, 157, 98, 0.4)); }
