/* ============================================================
   3 Soumissions Toiture — styles
   Couleurs de marque tirées du logo :
   rouille #DC5F39  •  marine #050D5A
   ============================================================ */

:root {
  --rust: #DC5F39;
  --rust-dark: #c44e2c;
  --rust-tint: #fdf1ec;
  --navy: #050D5A;
  --navy-2: #0c1574;
  --text: #353a4f;
  --text-strong: #0a1140;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --border: #e6e8f0;
  --white: #ffffff;
  --green: #15a36e;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(5, 13, 90, .08);
  --shadow-lg: 0 24px 60px rgba(5, 13, 90, .16);
  --maxw: 1140px;
  --header-h: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text-strong); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
a { color: var(--rust); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 780px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--rust); color: #fff; box-shadow: 0 8px 20px rgba(220, 95, 57, .32); }
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(220, 95, 57, .4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.logo img { height: 77px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--navy); font-weight: 600; text-decoration: none; }
.header-phone svg { width: 18px; height: 18px; }

/* ---------- Héro ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 13, 90, .95) 0%, rgba(5, 13, 90, .85) 38%, rgba(5, 13, 90, .62) 68%, rgba(5, 13, 90, .45) 100%),
    url("assets/images/hero.jpg") center 30%/cover no-repeat;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero h1, .hero .hero-sub { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .28); }
.hero .hero-sub { color: #e3e5f6; }
.hero .eyebrow { color: #ffd9cb; background: rgba(255, 255, 255, .14); }
.hero .hero-points li { color: #f1f2ff; }
.hero .hero-trust span { color: #c9cdf0; }
.hero .hero-trust strong { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-grid > *, .form-card, .hero-copy { min-width: 0; }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--rust); background: var(--rust-tint);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow-center { margin-left: auto; margin-right: auto; }
.eyebrow.light { color: #ffd9cb; background: rgba(255, 255, 255, .12); }

.hl { color: var(--rust); position: relative; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 36ch; }

.hero-points { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .6rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--text-strong); }
.ic-check { width: 22px; height: 22px; flex: none; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--green); border-radius: 50%; padding: 3px; }

.hero-trust { display: flex; align-items: center; gap: .7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 20px; height: 20px; fill: #f5b50a; }
.hero-trust span { color: var(--muted); font-size: .95rem; }
.hero-trust strong { color: var(--text-strong); }

/* ---------- Carte formulaire ---------- */
.form-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: clamp(1.4rem, 2.5vw, 2rem); scroll-margin-top: 90px;
}
.form-card-head h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.form-card-head p { color: var(--muted); margin: 0; }

.progress { height: 8px; background: var(--bg-alt); border-radius: 999px; margin: 1.2rem 0 .4rem; overflow: hidden; }
.progress-bar { height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--rust), var(--rust-dark)); border-radius: 999px; transition: width .35s ease; }
.step-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 0 0 1.1rem; }
.step-label #stepNum { color: var(--rust); }

.step { display: none; border: 0; padding: 0; margin: 0; min-inline-size: auto; }
.step.is-active { display: block; animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.step legend { font-size: 1.15rem; font-weight: 700; color: var(--text-strong); padding: 0; margin-bottom: 1rem; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; padding: 18px;
  border: 2px solid var(--border); border-radius: var(--radius); font-weight: 600;
  color: var(--text-strong); transition: all .15s ease; cursor: pointer;
}
.choice input:hover + span { border-color: var(--rust); }
.choice input:checked + span { border-color: var(--rust); background: var(--rust-tint); color: var(--rust-dark); box-shadow: 0 0 0 3px rgba(220, 95, 57, .12); }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--text-strong); margin-bottom: .4rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.field input, .field select {
  width: 100%; padding: 13px 14px; font-family: inherit; font-size: 1rem; color: var(--text-strong);
  border: 2px solid var(--border); border-radius: var(--radius); background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #aab; }
.field input:focus, .field select:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px rgba(220, 95, 57, .12); }
.field.invalid input, .field.invalid select { border-color: #e0483b; }

.field-error { color: #e0483b; font-size: .85rem; margin: .35rem 0 0; min-height: 0; }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: .4rem 0 0; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--rust); }
.consent a { font-weight: 600; }

.step-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.4rem; }
.step-nav .btn-block { margin-top: 0; }

.form-reassure { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
.ic-lock { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2; flex: none; }
.form-status { font-size: .9rem; margin: .8rem 0 0; font-weight: 600; }
.form-status.error { color: #e0483b; }
.form-status.success { color: var(--green); }

/* ---------- Bande de confiance ---------- */
.trustbar { background: var(--navy); color: #fff; }
.trustbar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.2rem, 4vw, 3rem); padding: 18px 0; }
.trust-item { display: flex; align-items: center; gap: .55rem; font-size: .96rem; color: #d6d9f5; }
.trust-item strong { color: #fff; }
.trust-item svg { width: 22px; height: 22px; fill: none; stroke: var(--rust); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; }
.section-navy h2 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-navy .section-sub { color: #c9cdf0; }
.section-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Étapes (comment ça fonctionne) — ligne du temps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; position: relative; }
.steps-grid::before { content: ""; position: absolute; top: 31px; left: 16.6%; right: 16.6%; height: 2px; background: repeating-linear-gradient(90deg, #eec3b2 0 7px, transparent 7px 15px); z-index: 0; }
.step-card { position: relative; z-index: 1; background: none; border: 0; box-shadow: none; padding: 0 1.2rem; text-align: center; }
.step-badge { position: relative; margin: 0 auto 1.3rem; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(140deg, var(--rust), var(--rust-dark)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; box-shadow: 0 8px 20px rgba(220, 95, 57, .35); }
.step-ic { width: 40px; height: 40px; fill: none; stroke: var(--rust); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto .8rem; }
.step-card h3 { margin-bottom: .4rem; }
.step-card p { color: var(--muted); margin: 0; }

/* ---------- Avantages ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.benefit { display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: start; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow); }
.benefit-ic { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 52px; height: 52px; border-radius: 15px; margin: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--rust), var(--rust-dark)); box-shadow: 0 8px 18px rgba(220, 95, 57, .28); }
.benefit-ic svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { grid-column: 2; margin-bottom: .35rem; }
.benefit p { grid-column: 2; color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Services ---------- */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; max-width: 900px; margin: 0 auto; }
.service {
  display: inline-flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 13px 24px; font-weight: 600; color: var(--text-strong); box-shadow: 0 4px 14px rgba(5, 13, 90, .05);
}
.service-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rust); flex: none; box-shadow: 0 0 0 4px var(--rust-tint); }

/* ---------- Solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.solution { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.7rem; box-shadow: var(--shadow); }
.solution-ic { width: 42px; height: 42px; fill: none; stroke: var(--rust); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.solution h3 { margin-bottom: .4rem; }
.solution p { color: var(--muted); margin: 0; font-size: .97rem; }
.solution-featured { border: 2px solid var(--rust); box-shadow: 0 16px 42px rgba(220, 95, 57, .2); }
.solution-badge { position: absolute; top: -13px; left: 1.7rem; background: var(--rust); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(220, 95, 57, .4); }
.solutions-types { text-align: center; margin-top: 2.4rem; }
.solutions-types-label { display: block; font-weight: 600; color: var(--text-strong); margin-bottom: 1rem; font-size: .95rem; }

/* ---------- Section image (split) ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.split-copy .eyebrow { margin-bottom: 1rem; }
.split-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.split-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text); font-weight: 500; }
.split-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--green); border-radius: 50%; padding: 3px; margin-top: 1px; }

/* ---------- Témoignages ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testimonial { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 1.7rem; backdrop-filter: blur(4px); }
.stars-sm svg { width: 17px; height: 17px; }
.testimonial blockquote { margin: .8rem 0 1rem; color: #eef0ff; font-size: 1.02rem; }
.testimonial figcaption { color: #b9bdec; font-weight: 600; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--text-strong);
  padding: 16px 30px 16px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--rust); font-weight: 400; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin: 0 0 16px; }

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center; padding: clamp(3.5rem, 7vw, 6rem) 0; color: #fff;
  background: linear-gradient(rgba(5, 13, 90, .88), rgba(5, 13, 90, .9)), url("assets/images/toiture-aerienne.jpg") center/cover no-repeat;
}
.cta-final h2 { margin-bottom: .4rem; color: #fff; }
.cta-final p { color: #d6d9f5; font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #c9cdf0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding: clamp(2.5rem, 5vw, 3.5rem) 0; align-items: start; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: .95rem; max-width: 46ch; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { color: #d6d9f5; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { margin: 0; padding: 18px 0; font-size: .85rem; color: #9aa0d8; }

/* ---------- CTA collant mobile ---------- */
.sticky-cta {
  display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  text-align: center; background: var(--rust); color: #fff; font-weight: 700; text-decoration: none;
  padding: 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(220, 95, 57, .45);
}

/* ---------- Animations au défilement ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page de remerciement ---------- */
.thankyou { text-align: center; padding: clamp(3rem, 7vw, 6rem) 0; background: radial-gradient(800px 500px at 50% -10%, rgba(220, 95, 57, .12), transparent 60%), var(--bg-alt); min-height: 70vh; }
.thankyou-icon { width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(21, 163, 110, .35); animation: pop .4s ease; }
.thankyou-icon svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thankyou-lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }
.thankyou-steps { display: grid; gap: .8rem; max-width: 520px; margin: 0 auto 2rem; text-align: left; }
.ty-step { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-weight: 500; color: var(--text-strong); box-shadow: var(--shadow); }
.ty-step span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--rust-tint); color: var(--rust-dark); display: grid; place-items: center; font-weight: 700; }
.thankyou-tip { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.legal h1 { margin-bottom: .3rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal-date { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal code { background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero { background: linear-gradient(rgba(5, 13, 90, .9), rgba(5, 13, 90, .84)), url("assets/images/hero.jpg") center/cover no-repeat; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-points { justify-items: center; }
  .hero-points li { text-align: left; }
  .hero-trust { justify-content: center; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --header-h: 76px; }
  .header-actions .btn { display: none; }
  .logo img { height: 58px; }
  .benefits-grid, .services-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 84px; }
  .hero { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
