/*
Theme Name: MC2A Immobilier
Theme URI: https://mc2a-immobilier.fr
Author: MC2A Immobilier
Description: Thème sur mesure de l’agence MC2A Immobilier (Saint-Saëns). Il lit les annonces JetEngine existantes sans les modifier.
Version: 0.4.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mc2a
*/

/* ---------- Charte ---------- */
:root {
  --ink: #2b2b2a;
  --muted: #5a5a58;
  --graphite: #303030;
  --stone: #b5b5b4;
  --line: #e1e1de;
  --paper: #f4f4f2;
  --white: #fff;
  --sun: #dac723;
  --sun-bright: #fbde00;
  --sun-ink: #8f7f00;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun-bright); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; }
.nowrap { white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 26px; border: 2px solid var(--sun); border-radius: var(--radius); background: var(--sun); color: var(--ink); font: 700 1rem/1.25 var(--font-head); text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sun-bright); border-color: var(--sun-bright); }
.btn--dark { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--sun); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: block; margin-right: auto; padding: 6px 0; }
.brand img { height: 52px; width: auto; }
.site-header__tools { display: flex; align-items: center; gap: 4px; }
.tool { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.tool:hover { background: var(--paper); }
.tool--fb { display: none; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--menu { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: inline; }

.nav { width: 100%; order: 3; padding-bottom: 14px; }
.js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; padding: 4px var(--gutter) 22px; background: var(--white); border-bottom: 3px solid var(--sun); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .5); }
.js .site-header.is-open .nav { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item a { display: flex; align-items: center; min-height: 54px; padding-left: 4px; border-bottom: 1px solid var(--line); font: 600 1.0625rem/1.2 var(--font-head); text-decoration: none; }
.nav__item a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); padding-left: 16px; }
.nav__item--cta a { justify-content: center; margin-top: 16px; border: 0; border-radius: var(--radius); background: var(--sun); }
.nav__item--cta a[aria-current="page"] { box-shadow: none; padding-left: 4px; background: var(--sun-bright); }
.nav__extra { display: grid; gap: 8px; margin-top: 16px; }
.nav__extra a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; text-decoration: none; }

@media (min-width: 900px) {
  :root { --header-h: 92px; }
  .brand img { height: 64px; }
  .site-header__bar { flex-wrap: nowrap; }
  .nav, .js .nav { display: block; position: static; order: 0; width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav__list { display: flex; align-items: center; gap: 4px; }
  .nav__item a { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius); }
  .nav__item a:hover { background: var(--paper); }
  .nav__item a[aria-current="page"] { padding-left: 16px; box-shadow: inset 0 -3px 0 var(--sun); border-radius: var(--radius) var(--radius) 0 0; }
  .nav__item--cta a { margin: 0 0 0 10px; padding: 0 24px; }
  .nav__item--cta a:hover { background: var(--sun-bright); }
  .nav__item--cta a[aria-current="page"] { padding: 0 24px; border-radius: var(--radius); }
  .nav__extra, .nav-toggle, .tool--phone { display: none; }
  .tool--fb { display: inline-flex; }
}

/* ---------- Accueil : bandeau et recherche ---------- */
.hero { background: var(--graphite); color: #fff; padding: 44px 0 48px; }
.hero--search { padding-bottom: 116px; }
.hero h1 { max-width: 22ch; color: #fff; font-weight: 800; font-size: clamp(1.85rem, 5.2vw, 3.25rem); }
.hero h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 20px; background: var(--sun); }
.hero p { max-width: 52ch; margin: 18px 0 0; color: #dcdcd8; font-size: clamp(1rem, 2.2vw, 1.125rem); }

.search-wrap { position: relative; z-index: 2; margin-top: -80px; }
.search { padding: 20px; border-top: 4px solid var(--sun); border-radius: var(--radius); background: var(--white); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .5); }
.search__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.search__field label { display: block; margin-bottom: 6px; color: var(--muted); font: 600 .8125rem/1.2 var(--font-body); }
.search select, .search input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid #c9c9c5; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.search__extra { display: grid; gap: 14px; grid-column: 1 / -1; grid-template-columns: 1fr; }
.search__toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 .9375rem/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.js .search__toggle { display: inline-flex; grid-column: 1 / -1; }
.js .search__extra { display: none; }
.js .search.is-open .search__extra { display: grid; }
.search__submit { width: 100%; grid-column: 1 / -1; }

@media (min-width: 560px) and (max-width: 899px) {
  .search__grid, .search__extra { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 64px; }
  .hero--search { padding-bottom: 140px; }
  .search-wrap { margin-top: -88px; }
  .search { padding: 24px; }
  .search__grid { grid-template-columns: 1.1fr 1.1fr .85fr 1fr 1fr auto; align-items: end; gap: 16px; }
  .search__extra, .js .search__extra { display: contents; }
  .js .search__toggle { display: none; }
  .search__submit { width: auto; grid-column: auto; }
}

/* ---------- Sections et titres ---------- */
.section { padding: 56px 0 8px; }
.section--last { padding-bottom: 64px; }
.section__head { margin-bottom: 26px; }
.section__head h2 { font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.section__head::after { content: ""; display: block; height: 3px; margin-top: 12px; background: var(--sun-bright); }
@media (min-width: 720px) {
  .section__head { display: flex; align-items: center; gap: 20px; }
  .section__head::after { flex: 1; margin-top: 0; }
}
.section__more { margin: 30px 0 0; text-align: center; }
.empty { padding: 28px; border: 1px dashed var(--stone); border-radius: var(--radius); color: var(--muted); }

/* ---------- Cartes d’annonces ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
@media (max-width: 719px) {
  .cards--rail { display: flex; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .cards--rail > li { flex: 0 0 80%; scroll-snap-align: start; }
}
.card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card:hover, .card:focus-within { border-color: var(--sun); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dcdcd8; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card--sold .card__img { filter: grayscale(.55); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 3px; font: 700 .8125rem/1.3 var(--font-head); }
.badge--exclusive { background: var(--sun); color: var(--ink); }
.badge--promise { background: var(--graphite); color: #fff; }
.badge--sold { background: var(--muted); color: #fff; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.card__price { margin: 0; color: var(--sun-ink); font: 800 1.5rem/1.2 var(--font-head); }
.card__title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font: 700 1.0625rem/1.35 var(--font-head); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__place { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.card__place .icon { margin-top: 2px; }
.card__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .9375rem; font-weight: 600; }
.card__facts li { display: flex; align-items: center; gap: 7px; }

/* ---------- Bandeau de contact ---------- */
.band { margin-top: 60px; padding: 40px 0; background: var(--sun); color: var(--ink); }
.band__inner { display: grid; gap: 22px; align-items: center; }
.band h2 { font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.75rem); }
.band p { max-width: 56ch; margin: 8px 0 0; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .band__inner { grid-template-columns: 1fr auto; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--graphite); color: #e8e8e5; }
.site-footer__grid { display: grid; gap: 36px; padding-block: 56px 40px; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }
.site-footer h2 { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 3px solid var(--sun); color: #fff; font: 800 1.25rem/1.2 var(--font-head); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer li a, .site-footer address a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.site-footer address { font-style: normal; }
.site-footer__legal { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: #bdbdb9; font-size: .875rem; }
.site-footer__legal p { margin: 0; }

/* ---------- Pages génériques ---------- */
.entry { padding: 48px 0 64px; }
.wrap--text { max-width: 820px; }
.entry__title { margin-bottom: 22px; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.entry__title::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 16px; background: var(--sun-bright); }
.entry__price { margin: 0 0 18px; color: var(--sun-ink); font: 800 1.5rem/1.2 var(--font-head); }
.entry__content > * + * { margin-top: 1em; }

/* ---------- Panneaux, formulaires, messages ---------- */
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.panel__title { margin-bottom: 14px; font: 800 1.25rem/1.25 var(--font-head); }
.notice { margin: 0 0 4px; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.notice--ok { border: 1px solid #b7dcb0; background: #e7f4e4; color: #1f4d1a; }
.notice--err { border: 1px solid #f0b8b8; background: #fdeaea; color: #7a1212; }
.notice--info { margin-bottom: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
.form__field label { display: block; margin-bottom: 6px; font: 600 .9375rem/1.2 var(--font-body); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { width: 100%; padding: 0 12px; border: 1px solid #c9c9c5; border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select { height: 48px; }
.form textarea { min-height: 130px; padding: 12px; resize: vertical; }
.form__check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.form__check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--graphite); }
.form__submit { width: 100%; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { color: #b00020; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Résultats (Nos biens) ---------- */
.results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 0 0 22px; }
.results__count { margin: 0; font-weight: 700; }
.results__reset { font-weight: 600; }
.pagination { margin-top: 34px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination li > .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 700; text-decoration: none; }
.pagination a.page-numbers:hover { border-color: var(--sun); }
.pagination .current { border-color: var(--sun); background: var(--sun); }

/* ---------- Notre agence et Contact ---------- */
.prose { max-width: 66ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.agency { display: grid; gap: 36px; align-items: start; }
.agency__photo { margin: 0; }
.agency__photo img { width: 100%; height: auto; border-radius: var(--radius); }
.contact { display: grid; gap: 28px; align-items: start; }
.contact__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.contact__list li { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .agency { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .contact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; }
}

/* ---------- Fiche annonce ---------- */
.listing { padding: 20px 0 64px; }
.listing__back { margin: 0 0 8px; }
.listing__back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.listing__back a:hover { text-decoration: underline; text-underline-offset: 3px; }
.listing__head { margin: 0 0 26px; }
.listing__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.listing__title { max-width: 30em; font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2.25rem); }
.listing__price { margin: 14px 0 0; color: var(--sun-ink); font: 800 clamp(1.7rem, 4vw, 2.2rem)/1.1 var(--font-head); }
.listing__place { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 1.0625rem; }
.listing__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; font-weight: 600; }
.listing__facts li { display: flex; align-items: center; gap: 9px; }
.listing__ref { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; }
.listing__grid { display: grid; gap: 36px; }
.listing__main { min-width: 0; }
.listing__section { margin-top: 48px; }
.details { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.details__item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.details__label { color: var(--muted); }
.details__value { text-align: right; }
.aside__text { margin: 0 0 16px; color: var(--muted); }
.aside__call { width: 100%; }
.aside__call + .aside__call { margin-top: 10px; }
.listing__aside .panel + .panel { margin-top: 20px; }
.aside__alt { margin: 10px 0 20px; text-align: center; color: var(--muted); }
.aside__alt a { font-weight: 700; }
.form--compact { padding-top: 20px; border-top: 1px solid var(--line); }
.listing-bar .btn { padding: 8px 10px; gap: 8px; font-size: .9375rem; }
.listing-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 3px solid var(--sun); background: var(--white); }
@media (max-width: 959px) { .single-annonces .site-footer { padding-bottom: 84px; } }
@media (min-width: 960px) {
  .listing { padding-top: 28px; }
  .listing__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
  .listing__aside { position: sticky; top: calc(var(--header-h) + 20px); }
  .listing-bar { display: none; }
  .listing__main > .notice--info { display: none; }
}

/* ---------- Galerie de photos ---------- */
.gallery__stage { position: relative; overflow: hidden; border-radius: var(--radius); background: #dcdcd8; }
.gallery__track { display: flex; margin: 0; padding: 0; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__open img { width: 100%; height: 100%; object-fit: cover; }
.gallery__btn { position: absolute; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); color: var(--ink); cursor: pointer; }
.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font: 600 .8125rem/1.5 var(--font-body); }
.gallery__thumbs { position: relative; display: flex; gap: 8px; margin: 10px 0 0; padding: 0 0 8px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.gallery__thumbs button { display: block; width: 88px; height: 66px; padding: 0; overflow: hidden; border: 3px solid transparent; border-radius: 4px; background: #dcdcd8; opacity: .72; cursor: pointer; }
.gallery__thumbs button.is-active { border-color: var(--sun); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery--empty { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius); background: #dcdcd8; color: var(--muted); font-weight: 600; }
@media (min-width: 720px) { .gallery__slide { aspect-ratio: 16 / 10; } }

.lightbox { width: 100%; max-width: 100vw; height: 100%; max-height: 100vh; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(0, 0, 0, .93); }
.lightbox[open] { display: grid; grid-template-columns: 52px 1fr 52px; grid-template-rows: 1fr; align-items: center; }
.lightbox__img { grid-column: 2; grid-row: 1; justify-self: center; max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }
.lightbox__btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { top: 50%; left: 4px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 4px; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font-weight: 600; }
@media (min-width: 720px) { .lightbox[open] { grid-template-columns: 80px 1fr 80px; } .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; } }

/* ---------- Étiquettes DPE et GES ---------- */
.energy-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .energy-grid { grid-template-columns: 1fr 1fr; } }
.energy { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.energy__title { margin-bottom: 12px; font: 700 1rem/1.3 var(--font-head); }
.energy__edge { margin: 0; color: var(--muted); font-size: .8125rem; }
.energy__scale { display: grid; gap: 4px; margin: 8px 0; padding: 0; list-style: none; }
.energy__row { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.energy__bar { display: flex; align-items: center; width: var(--w); height: 30px; padding-left: 12px; border-radius: 3px 15px 15px 3px; font: 800 .9375rem/1 var(--font-head); }
.energy__value { font-size: .875rem; white-space: nowrap; }
.energy__value strong { font: 800 1.25rem/1 var(--font-head); }
.energy__row.is-active { min-height: 44px; }
.energy__row.is-active .energy__bar { height: 44px; font-size: 1.4rem; box-shadow: 0 0 0 3px var(--ink); }
.energy--dpe .energy__row--a .energy__bar { background: #319834; color: #fff; }
.energy--dpe .energy__row--b .energy__bar { background: #33cc31; color: #10300f; }
.energy--dpe .energy__row--c .energy__bar { background: #cbfc34; color: #2a3300; }
.energy--dpe .energy__row--d .energy__bar { background: #fbfe06; color: #333300; }
.energy--dpe .energy__row--e .energy__bar { background: #fccc2f; color: #3d2d00; }
.energy--dpe .energy__row--f .energy__bar { background: #fc9935; color: #3d2000; }
.energy--dpe .energy__row--g .energy__bar { background: #fc0205; color: #fff; }
.energy--ges .energy__row--a .energy__bar { background: #9ad2f1; color: #0d2a3a; }
.energy--ges .energy__row--b .energy__bar { background: #7eaed0; color: #0d2a3a; }
.energy--ges .energy__row--c .energy__bar { background: #6a8fb2; color: #fff; }
.energy--ges .energy__row--d .energy__bar { background: #566f94; color: #fff; }
.energy--ges .energy__row--e .energy__bar { background: #444b6e; color: #fff; }
.energy--ges .energy__row--f .energy__bar { background: #352f50; color: #fff; }
.energy--ges .energy__row--g .energy__bar { background: #2a1a39; color: #fff; }

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