/* ElectroLumière — Boîte à outils (site) */

/* ----- Bandeau d'annonce ----- */
.elo-annonce { background: var(--gold); color: var(--navy); font-size: .95rem; font-weight: 500; position: relative; z-index: 60; }
.elo-annonce--alerte { background: #C62828; color: #fff; }
.elo-annonce--promo { background: #15803D; color: #fff; }
.elo-annonce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.elo-annonce p { margin: 0; text-align: center; flex: 1; }
.elo-annonce a { color: inherit; font-weight: 700; }
.elo-annonce__close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .8; }
.elo-annonce__close:hover { opacity: 1; }

/* ----- Étiquette indisponible ----- */
.hero__card--off .dot { background: #E5484D; box-shadow: 0 0 0 5px rgba(229, 72, 77, .2); }

/* ----- Estimateur ----- */
.elo-estim { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 36px; max-width: 820px; margin: 0 auto; }
.elo-estim__form { display: grid; grid-template-columns: 1fr 200px; gap: 18px; }
.elo-estim select, .elo-estim input { font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); width: 100%; background: #fff; }
.elo-estim select:focus, .elo-estim input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 194, 26, .2); }
.elo-estim .field label { font-weight: 600; font-size: .95rem; }
.elo-estim__result { margin: 26px 0 10px; padding: 24px; border-radius: 18px; text-align: center; background: var(--navy); color: #fff; }
.elo-estim__label { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--gold); font-weight: 600; }
.elo-estim__prix { display: block; font-family: var(--font-title); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 6px 0; }
.elo-estim__detail { color: #B8C2D9; font-size: .95rem; }
.elo-estim__note { color: var(--muted); font-size: .9rem; text-align: center; }
.elo-estim p:last-child { text-align: center; margin: 18px 0 0; }
.elo-admin-hint { background: #FFF8E1; border: 1px dashed var(--gold-dark); padding: 12px 16px; border-radius: 10px; }

/* ----- Avis ----- */
.elo-stars { position: relative; display: inline-block; color: #D8DBE3; letter-spacing: 2px; font-size: 18px; line-height: 1; white-space: nowrap; }
.elo-stars__on { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--gold); }
.elo-stars--lg { font-size: 24px; vertical-align: -3px; }
.elo-avis-moyenne { font-size: 1.1rem; color: var(--ink) !important; }
.elo-avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.elo-avis-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.elo-avis-card blockquote { margin: 0; flex: 1; color: var(--ink); line-height: 1.6; }
.elo-avis-card figcaption strong { display: block; font-family: var(--font-title); }
.elo-avis-card figcaption span { color: var(--muted); font-size: .9rem; }
.elo-avis-links { text-align: center; margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.elo-google, .elo-merci { text-align: center; margin: 0 auto 24px; max-width: 760px; }
.elo-avis-form { max-width: 760px; margin: 0 auto; }
.elo-rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; border: 0; padding: 0; margin: 0 0 18px; }
.elo-rate legend { margin-bottom: 4px; }
.elo-rate input { position: absolute; opacity: 0; pointer-events: none; }
.elo-rate label { font-size: 34px; color: #D8DBE3; cursor: pointer; padding: 0 2px; transition: color .1s; }
.elo-rate input:checked ~ label, .elo-rate label:hover, .elo-rate label:hover ~ label { color: var(--gold); }
.elo-rate input:focus-visible + label { outline: 2px solid var(--navy); border-radius: 4px; }

/* ----- Réalisations avant / après ----- */
.elo-real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.elo-real { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.elo-real__body { padding: 20px 22px 22px; }
.elo-real__body h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.elo-real__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.elo-ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); --pos: 50%; user-select: none; }
.elo-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.elo-ba__avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.elo-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .35); pointer-events: none; }
.elo-ba__line::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.elo-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.elo-ba__tag { position: absolute; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; pointer-events: none; }
.elo-ba__tag--avant { left: 12px; background: rgba(14, 27, 51, .8); color: #fff; }
.elo-ba__tag--apres { right: 12px; background: var(--gold); color: var(--navy); }
.elo-filtres { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.elo-filtres button { font: inherit; font-weight: 500; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.elo-filtres button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ----- Page devis client ----- */
.elo-devis-client { max-width: 920px; }
.elo-devis-client .panel { margin-bottom: 24px; }
.elo-devis-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.elo-devis-head p { margin: 0; }
.elo-table-wrap { overflow-x: auto; }
.elo-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.elo-table th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-family: var(--font-title); font-weight: 600; white-space: nowrap; }
.elo-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.elo-table .num, .elo-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.elo-totaux-client { margin: 18px 0 0 auto; max-width: 360px; }
.elo-totaux-client p { display: flex; justify-content: space-between; margin: 6px 0; }
.elo-totaux-client .elo-ttc { background: var(--gold); padding: 10px 14px; border-radius: 10px; font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; }
.elo-conditions { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.elo-statut { background: #fff; border-left: 5px solid var(--muted); padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; }
.elo-statut--ok { border-color: #16A34A; background: #E8F8EE; }
.elo-statut--warn { border-color: #E5484D; background: #FDECEC; }
.elo-reponse h2 { font-size: 1.4rem; }
.elo-small { font-size: .85rem; color: var(--muted); }
.elo-refus { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.elo-refus summary { cursor: pointer; color: var(--muted); }
.elo-refus textarea { width: 100%; font: inherit; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); }

/* ----- Suivi de chantier ----- */
.elo-suivi h2 { font-size: 1.4rem; margin-bottom: 22px; }
.elo-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; }
.elo-steps::before, .elo-steps::after { content: ""; position: absolute; top: 19px; left: calc(50% / var(--n)); height: 4px; border-radius: 2px; }
.elo-steps::before { right: calc(50% / var(--n)); background: var(--line); }
.elo-steps::after { width: calc((100% - 100% / var(--n)) * var(--p)); background: #16A34A; }
.elo-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 0 4px; }
.elo-steps__dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #fff; border: 3px solid var(--line); color: var(--muted); }
.elo-steps .is-done .elo-steps__dot { background: #16A34A; border-color: #16A34A; color: #fff; }
.elo-steps .is-current .elo-steps__dot { background: var(--gold); border-color: var(--navy); color: var(--navy); box-shadow: 0 0 0 6px rgba(255, 194, 26, .25); }
.elo-steps__label { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.elo-steps .is-done .elo-steps__label { color: var(--ink); }
.elo-steps .is-current .elo-steps__label { color: var(--navy); font-weight: 700; }
.elo-suivi__date { font-size: 1.05rem; background: var(--bg-soft); padding: 12px 16px; border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.elo-suivi__agenda { font-weight: 600; font-size: .95rem; color: var(--navy); background: var(--gold); padding: 6px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.elo-suivi__agenda:hover { background: var(--gold-dark); }
.elo-suivi__msg { border-left: 4px solid var(--gold); padding: 10px 14px; background: #FFF8E1; border-radius: 0 10px 10px 0; margin-bottom: 14px; }
.elo-suivi__fin { font-size: 1.05rem; font-weight: 600; color: #15803D; text-align: center; }
@media (max-width: 680px) {
  .elo-steps { grid-template-columns: 1fr; gap: 14px; }
  .elo-steps::before, .elo-steps::after { display: none; }
  .elo-steps li { flex-direction: row; text-align: left; }
}

@media (max-width: 1020px) {
  .elo-avis-grid, .elo-real-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .elo-avis-grid, .elo-real-grid, .elo-estim__form { grid-template-columns: 1fr; }
  .elo-estim { padding: 24px 18px; }
}
