/* ===================================================================
   PAGES INTERNES & CONFIGURATEUR — Carrosserie Redline
   =================================================================== */

/* nav active */
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { transform: scaleX(1); }

/* ---------- Fil d'ariane ---------- */
.crumb { padding: 96px 0 0; }
.crumb .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted-2); }
.crumb a { color: var(--muted); transition: color .2s; }
.crumb a:hover { color: var(--red-bright); }
.crumb__sep { color: var(--muted-2); opacity: .5; }
.crumb [aria-current] { color: var(--text); }

/* ---------- Page hero (internes) ---------- */
.pagehero { position: relative; padding: 80px 0 56px; overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg .hero__glow--1 { top: -160px; right: -120px; opacity: .4; }
.pagehero__inner { position: relative; z-index: 1; max-width: 800px; }
.pagehero__title { font-size: clamp(2.2rem, 5.5vw, 4rem); text-transform: uppercase; line-height: 1.05; margin: 8px 0 18px; }
.pagehero__sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

/* ---------- Article ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article__block { margin-bottom: 40px; }
.article__block h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; }
.article__block p { color: var(--muted); font-size: 1.05rem; }
.article__block + .bento { margin-top: 8px; }
.article__meta { color: var(--red-bright) !important; font-weight: 500; margin-top: 10px; }
.article--legal { max-width: 760px; }

/* ---------- Pricing table ---------- */
.pricing { margin: 48px 0 8px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pricing h2 { font-size: 1.5rem; margin-bottom: 18px; }
.pricing__table { width: 100%; border-collapse: collapse; }
.pricing__table td { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.pricing__table tr:last-child td { border-bottom: none; }
.pricing__price { text-align: right; font-family: var(--font-head); font-weight: 600; color: var(--red-bright); white-space: nowrap; }
.pricing__note { color: var(--muted-2); font-size: .85rem; margin: 16px 0 24px; }

/* ---------- Cards link (services) ---------- */
.card--link { display: flex; flex-direction: column; }
.card__price { font-family: var(--font-head); font-weight: 600; color: var(--red-bright); margin-top: 12px; position: relative; z-index: 1; }
.card__arrow { margin-top: 10px; font-family: var(--font-head); font-size: .85rem; letter-spacing: .04em; color: var(--muted); transition: color .25s; position: relative; z-index: 1; }
.card--link:hover .card__arrow { color: var(--red-bright); }
.bento--services { grid-template-columns: repeat(3, 1fr); }

/* ---------- Intro block (home) ---------- */
.intro-block__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.intro-block__text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }

/* ---------- Régions ---------- */
.regions__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.region-chip { padding: 12px 22px; border: 1px solid var(--line-2); border-radius: 100px; font-family: var(--font-head); font-weight: 500; color: var(--text); transition: all .25s var(--ease); }
.region-chip:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.regions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.region-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; transition: transform .4s var(--ease), border-color .4s; }
.region-card:hover { transform: translateY(-6px); border-color: rgba(227,6,19,.4); }
.region-card h3 { font-size: 1.5rem; margin-bottom: 6px; position: relative; z-index: 1; }
.region-card p { color: var(--muted); font-size: .92rem; position: relative; z-index: 1; }
.region-card .card__arrow { margin-top: 16px; }

/* ---------- Valeurs (à propos) ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.values li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.values strong { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 6px; }
.values span { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ accordéon ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; color: var(--text); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; background: var(--red); transition: transform .3s var(--ease); }
.faq__plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq__item[open] .faq__plus::after { transform: scaleY(0); }
.faq__body { padding: 0 44px 22px 0; }
.faq__body p { color: var(--muted); font-size: 1rem; }

/* ===================================================================
   CONFIGURATEUR DE DEVIS
   =================================================================== */
.devis-section { padding-top: 24px; }
.devis { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

.wizard__progress { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.wizard__step { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 100px; opacity: .5; transition: opacity .3s; cursor: default; }
.wizard__step.is-active, .wizard__step.is-done { opacity: 1; }
.wizard__step.is-done { cursor: pointer; }
.wizard__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .85rem; border: 1px solid var(--line-2); }
.wizard__step.is-active .wizard__dot { background: var(--red); color: #fff; border-color: var(--red); }
.wizard__step.is-done .wizard__dot { background: rgba(227,6,19,.2); color: var(--red-bright); }
.wizard__lbl { font-family: var(--font-head); font-size: .85rem; letter-spacing: .02em; }

.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.wizard__panel { display: none; border: none; padding: 0; margin: 0; }
.wizard__panel.is-active { display: block; animation: fadePanel .4s var(--ease); }
@keyframes fadePanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard__title { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; margin-bottom: 8px; padding: 0; }
.wizard__hint { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.choices--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choices--inline { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__box { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; transition: border-color .25s, background .25s, transform .2s; height: 100%; }
.choice:hover .choice__box { border-color: var(--muted); transform: translateY(-2px); }
.choice input:checked + .choice__box { border-color: var(--red); background: var(--red-soft); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--red); outline-offset: 2px; }
.choice__ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--red-bright); }
.choice__ic svg { width: 22px; height: 22px; }
.choice__txt { display: flex; flex-direction: column; }
.choice__txt strong { font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.choice__txt small { color: var(--muted); font-size: .82rem; }
.choice--sm .choice__box { padding: 14px; }

.chip-radio { cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 100px; font-family: var(--font-head); font-size: .92rem; transition: all .2s; }
.chip-radio:hover span { border-color: var(--muted); }
.chip-radio input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.chip-radio--block { display: block; margin-top: 10px; }
.chip-radio--block span { display: block; text-align: center; }

.zonepicker { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.zonepicker__svg { width: 100%; max-width: 220px; margin: 0 auto; }
.zonepicker__svg .zone { cursor: pointer; }
.zonepicker__svg .zone rect { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.18); stroke-width: 1; transition: fill .2s, stroke .2s; }
.zonepicker__svg .zone:hover rect { fill: rgba(255,42,42,.18); stroke: var(--red); }
.zonepicker__svg .zone.is-selected rect { fill: var(--red); stroke: var(--red-bright); }
.zonepicker__svg text { fill: var(--muted); font: 600 9px var(--font-head); text-anchor: middle; pointer-events: none; }
.zonepicker__svg .zone.is-selected text { fill: #fff; }
.zonepicker__count { font-size: 1rem; margin-bottom: 14px; }
.zonepicker__count strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--red-bright); }
.zonepicker__list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; max-height: 220px; overflow-y: auto; }
.zonepicker__list li { color: var(--text); font-size: .92rem; }
.zonepicker__empty { color: var(--muted-2) !important; font-style: italic; }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 24px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); text-align: center; cursor: pointer; transition: border-color .25s, background .25s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--red); background: var(--red-soft); }
.dropzone__ic { font-size: 2.4rem; }
.dropzone__txt { color: var(--muted); }
.dropzone__txt strong { color: var(--text); }
.dropzone__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.dz-file { font-size: .82rem; color: var(--red-bright); background: var(--bg); padding: 5px 12px; border-radius: 100px; }

.estimate { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(227,6,19,.18), var(--surface-2)); border: 1px solid rgba(227,6,19,.3); margin-bottom: 24px; }
.estimate__label { font-family: var(--font-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.estimate__value { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #fff; }
.estimate__note { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.estimate--side { margin: 16px 0 0; }
.estimate--side .estimate__value { font-size: 1.25rem; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); margin: 18px 0 8px; }
.consent input { margin-top: 3px; accent-color: var(--red); }

.devis-summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.devis-summary h3 { font-size: 1.2rem; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.summary__row dt { color: var(--muted); flex-shrink: 0; }
.summary__row dd { text-align: right; color: var(--text); }
.devis-summary__note { color: var(--muted-2); font-size: .78rem; margin-top: 14px; }

/* 404 */
.error404 { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error404__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: var(--red); opacity: .25; }
.error404 h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); text-transform: uppercase; margin: 8px 0 14px; }
.error404 p { color: var(--muted); margin-bottom: 28px; }
.error404 .ctaband__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer__rating { color: var(--red-bright) !important; font-family: var(--font-head); font-weight: 600; margin-top: 14px !important; }
.footer__cta { color: var(--red-bright) !important; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento--services { grid-template-columns: repeat(2, 1fr); }
  .regions__grid { grid-template-columns: repeat(2, 1fr); }
  .intro-block__grid { grid-template-columns: 1fr; gap: 20px; }
  .devis { grid-template-columns: 1fr; }
  .devis-summary { position: static; order: -1; }
}
@media (max-width: 640px) {
  .bento--services { grid-template-columns: 1fr; }
  .regions__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .choices--grid { grid-template-columns: 1fr; }
  .zonepicker { grid-template-columns: 1fr; }
  .wizard { padding: 22px; }
  .wizard__lbl { display: none; }
  .wizard__step { padding: 6px; }
  .crumb { padding-top: 88px; }
}
