/* BARRIERE CHAUFFAGE — vitrine artisan */

:root {
  --cream: #def6f8;
  --cream-deep: #c4eef2;
  --paper: #ffffff;
  --ink: #1a454c;
  --ink-soft: #3d6a72;
  --copper: #45828c;
  --copper-dark: #2f646c;
  --copper-soft: #8dd0d4;
  --slate: #1a454c;
  --slate-deep: #102e33;
  --slate-mid: #5ab1b6;
  --line: rgba(90, 177, 182, 0.28);
  --white: #f8fcfc;
  --danger: #9b3333;
  --sidebar: 17.5rem;
  --rail: 4.75rem;
  --topbar: 3.75rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --read: 38rem;
  --wide: 68rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "Candara", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(26, 69, 76, 0.1);
  --radius: 1rem;
  --ease: 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -8%, rgba(90, 177, 182, 0.2), transparent 48%),
    radial-gradient(circle at 100% 0%, rgba(90, 177, 182, 0.12), transparent 42%),
    radial-gradient(circle at 70% 100%, rgba(26, 69, 76, 0.05), transparent 40%),
    var(--cream);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--slate);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--slate-mid);
}

:focus-visible {
  outline: 2px solid var(--slate-mid);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

h1,
h2,
h3,
h4,
.wordmark,
.display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1.1rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 36rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}

/* —— Layout shell —— */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(26, 69, 76, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: min(20rem, 88vw);
  background: var(--slate-deep);
  color: var(--cream);
  transform: translateX(-105%);
  transition: transform var(--ease), width var(--ease);
}

body.nav-open .sidebar {
  transform: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.15rem 1.2rem;
  border-bottom: 1px solid rgba(222, 246, 248, 0.1);
  color: inherit;
  text-decoration: none;
}

.monogram {
  flex: 0 0 auto;
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  object-fit: cover;
}

.wordmark {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
  color: var(--cream);
}

.wordmark small {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-soft);
}

.sidebar-close {
  position: absolute;
  top: 0.85rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
}

.sidebar nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  overflow: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.3rem;
  color: rgba(222, 246, 248, 0.82);
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(222, 246, 248, 0.08);
  color: var(--cream);
}

.nav-list a.is-active {
  background: rgba(90, 177, 182, 0.22);
  color: var(--cream);
  box-shadow: inset 3px 0 0 var(--copper);
}

.nav-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
}

.nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-foot {
  padding: 1rem 1.15rem 1.3rem;
  border-top: 1px solid rgba(222, 246, 248, 0.1);
}

.sidebar-foot a {
  color: var(--copper-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 2.85rem;
  margin-bottom: 0.85rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(222, 246, 248, 0.22);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.nav-contact:hover {
  border-color: var(--copper-soft);
  color: var(--cream);
}

.sidebar-collapse {
  display: none;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.55rem 0.4rem;
  border: 1px solid rgba(222, 246, 248, 0.18);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.sidebar-collapse:hover {
  border-color: var(--copper-soft);
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--topbar);
  padding: 0.4rem 0.75rem;
  background: rgba(222, 246, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.menu-btn,
.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.menu-btn {
  background: var(--slate);
  color: var(--cream);
  min-width: 2.75rem;
}

.brand-mobile {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-btn {
  background: var(--copper);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.92rem;
}

.call-btn:hover {
  background: var(--copper-dark);
  color: var(--paper);
}

main {
  flex: 1;
  padding: calc(var(--pad) * 0.7) var(--pad) var(--pad);
}

.wrap {
  width: min(100%, var(--wide));
  margin: 0 auto;
}

.wrap-read {
  width: min(100%, var(--read));
}

/* —— Home —— */

.hero {
  max-width: 42rem;
  padding: 1.5rem 0 3.5rem;
}

.hero p + p {
  max-width: 36rem;
}

.hero-intro {
  display: flex;
  flex-direction: column;
}

.hero-copy {
  display: contents;
}

.hero-copy p:last-child {
  order: 1;
}

.hero-figure {
  margin: 0 0 1.25rem;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.partner-card,
.partner-logo,
.partner-soon,
.zone-list li,
.contact-band,
.volets details,
.note,
.cookie-banner,
.tarif-scroll,
.tarif-sim-panel,
.tarif-sim-suggest ul,
.tarif-teaser-card,
.dim-fieldset,
.dim-result,
.loi-board,
.tarif-ref-tooltip,
table.cookies {
  border-radius: var(--radius);
}

table.cookies {
  overflow: hidden;
}

.rule {
  width: 4rem;
  height: 2px;
  margin: 1.5rem 0 1.75rem;
  background: var(--copper);
  border: 0;
}

.services {
  display: grid;
  gap: 1.1rem;
  margin: 0.5rem 0 3.5rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: var(--shadow);
}

.card a {
  font-weight: 650;
  text-decoration: none;
  color: var(--copper-dark);
}

.card a:hover {
  text-decoration: underline;
}

.partner-grid {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 3.25rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.15rem 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

a.partner-card:hover {
  border-color: var(--copper-soft);
  color: inherit;
}

.partner-logo,
.partner-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: 0 0 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
}

.partner-soon {
  flex-direction: column;
  gap: 0.35rem;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.partner-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.partner-card h2,
.partner-card h3 {
  margin-bottom: 0.45rem;
}

.partner-card p,
.partner-card li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.partner-card p {
  margin-bottom: 0.7rem;
}

.partner-card ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.partner-card li {
  margin: 0.15rem 0;
}

.partner-link {
  margin-top: auto;
  font-weight: 650;
  color: var(--copper-dark);
}

a.partner-link {
  text-decoration: none;
}

a.partner-card:hover .partner-link,
a.partner-link:hover {
  text-decoration: underline;
}

.partner-phone {
  margin: auto 0 0.35rem;
  font-weight: 650;
}

.partner-phone a {
  color: var(--copper-dark);
  text-decoration: none;
}

.partner-phone a:hover {
  text-decoration: underline;
}

.partner-card:has(.partner-phone) .partner-link {
  margin-top: 0;
}

.partner-finder {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0 2rem;
  padding: 1.15rem 1.2rem 1.2rem;
  max-width: 36rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.partner-finder-row {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.partner-finder-row[hidden] {
  display: none;
}

.partner-finder label {
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.partner-finder select {
  max-width: 28rem;
  background: var(--white);
}

.partner-finder-status {
  min-height: 1.45em;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.partner-empty {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.partner-empty[hidden] {
  display: none;
}

.partner-card[hidden] {
  display: none;
}

.partner-card.is-best {
  border-color: var(--copper-soft);
  box-shadow: 0 0 0 1px var(--copper-soft), var(--shadow);
}

.partner-fit {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-dark);
}

.partner-card.is-related {
  opacity: 0.86;
}

@media (min-width: 640px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pictogram {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1rem;
  background-color: var(--slate);
  -webkit-mask: var(--pic) center / contain no-repeat;
  mask: var(--pic) center / contain no-repeat;
}

.pictogram--chaudiere {
  --pic: url("../img/logo/maintenance.webp");
}

.pictogram--pac {
  --pic: url("../img/logo/mise%20en%20service.webp");
}

.pictogram--rad {
  --pic: url("../img/logo/panne.webp");
}

.zone,
.faq,
.contact-band,
.legal-block {
  margin: 0 0 3.25rem;
}

.faq dl {
  margin: 1.1rem 0 0;
}

.faq dt {
  margin-top: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.faq dd {
  margin: 0.35rem 0 0;
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.zone-list li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.92rem;
}

.contact-band {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: var(--slate);
  color: var(--cream);
}

.contact-band h2,
.contact-band p,
.contact-band a {
  color: var(--cream);
}

.contact-band a:hover {
  color: var(--copper-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--copper);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--copper-dark);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(222, 246, 248, 0.4);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--copper-soft);
  color: var(--copper-soft);
}

.contact-panel[hidden] {
  display: none;
}

.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.contact-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 69, 76, 0.45);
}

.contact-panel-sheet {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(32rem, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.contact-panel-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.contact-panel-sheet iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--white);
}

body.contact-open {
  overflow: hidden;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background: var(--copper);
  color: var(--paper);
}

.btn-line {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* —— Process —— */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin: 0 0 2.75rem;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.steps li {
  position: relative;
  padding: 0 0 1.6rem 3.1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--slate);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 1.02rem;
  top: 2.2rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  margin-bottom: 0.2rem;
}

/* —— Accordions —— */

.volets {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 2.5rem;
}

.volets details {
  background: var(--paper);
  border: 1px solid var(--line);
}

.volets summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.volets summary::-webkit-details-marker {
  display: none;
}

.volet-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.volet-label img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.tarif-block h2 .volet-label img {
  width: 2.5rem;
  height: 2.5rem;
}

.tarif-heading-pair {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tarif-heading-pair img {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.volets summary::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(45deg);
  transition: transform var(--ease);
  flex: 0 0 auto;
}

.volets details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.volet-body {
  padding: 0 1.2rem 1.4rem;
  border-top: 1px solid var(--line);
}

.volet-body h3 {
  margin-top: 1.2rem;
  color: var(--slate);
}

.split-two {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .split-two {
    grid-template-columns: 1fr 1fr;
  }
}

.note {
  padding: 1rem 1.15rem;
  background: var(--cream-deep);
  border-left: 3px solid var(--copper);
}

/* —— Legal —— */

.legal-block h2 {
  margin-top: 2.2rem;
}

.legal-block ul,
.legal-block ol {
  padding-left: 1.2rem;
}

table.cookies {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper);
}

table.cookies th,
table.cookies td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

table.cookies th {
  background: var(--slate);
  color: var(--cream);
  font-weight: 600;
}

.form {
  display: grid;
  gap: 0.95rem;
  max-width: 34rem;
}

label span {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.92rem;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-error {
  color: var(--danger);
  font-size: 0.92rem;
}

.form-ok {
  color: var(--slate);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checkbox input {
  width: auto;
  margin-top: 0.35rem;
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  padding: 1.75rem var(--pad) 6.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer .nap {
  max-width: var(--wide);
  margin: 0 auto 1rem;
}

.site-footer .nap strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.legal-nav a {
  color: var(--ink-soft);
}

/* —— Cookie banner —— */

.cookie-banner {
  position: fixed;
  z-index: 80;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.15rem 1.2rem 1.2rem;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner h2 {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.cookie-banner p,
.cookie-banner a {
  color: rgba(222, 246, 248, 0.86);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.cookie-actions button {
  min-height: 2.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.cookie-accept {
  background: var(--copper);
  color: var(--paper);
}

.cookie-refuse {
  background: transparent;
  border-color: rgba(222, 246, 248, 0.45);
  color: var(--cream);
}

.cookie-customize {
  background: var(--cream);
  color: var(--ink);
}

.cookie-panel {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(222, 246, 248, 0.16);
}

.cookie-panel[hidden] {
  display: none !important;
}

.pref {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.55rem 0;
  font-size: 0.95rem;
}

.pref input {
  width: auto;
  margin-top: 0.28rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— Desktop sidebar —— */

@media (min-width: 900px) {
  .topbar {
    display: none;
  }

  .sidebar-close {
    display: none;
  }

  .sidebar {
    width: var(--sidebar);
    transform: none;
  }

  .sidebar-collapse {
    display: block;
  }

  .shell {
    margin-left: var(--sidebar);
    transition: margin-left var(--ease);
  }

  main {
    padding: 3.25rem var(--pad) 4rem;
  }

  .hero {
    padding-top: 1.25rem;
    padding-bottom: 4.5rem;
  }

  .services {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .contact-band {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 2.1rem 2rem;
  }

  .site-footer {
    padding-bottom: 2.2rem;
  }

  body.sidebar-collapsed .sidebar {
    width: var(--rail);
  }

  body.sidebar-collapsed .shell {
    margin-left: var(--rail);
  }

  body.sidebar-collapsed .wordmark,
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .sidebar-foot p,
  body.sidebar-collapsed .collapse-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding-inline: 0.5rem;
  }

  body.sidebar-collapsed .nav-list a,
  body.sidebar-collapsed .nav-contact {
    justify-content: center;
    padding-inline: 0.4rem;
  }

  body.sidebar-collapsed .sidebar-collapse {
    font-size: 0;
    min-height: 2.6rem;
  }

  body.sidebar-collapsed .sidebar-collapse::after {
    content: "»";
    font-size: 1.1rem;
    display: block;
    transform: rotate(180deg);
  }
}

@media (min-width: 820px) {
  .hero-home {
    max-width: none;
  }

  .hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.9fr);
    column-gap: 2.25rem;
    align-items: start;
  }

  .hero-copy {
    display: block;
  }

  .hero-copy p:last-child {
    order: 0;
    max-width: none;
  }

  .hero-intro .lede {
    max-width: none;
  }

  .hero-intro .hero-figure {
    margin: 0;
  }
}

@media (min-width: 1100px) {
  .hero {
    max-width: 44rem;
  }

  .hero-home {
    max-width: none;
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 419px) {
  .call-btn span {
    display: none;
  }

  .call-btn::after {
    content: "Appel";
  }
}

/* —— Tarifs —— */

.tarif-legend {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tarif-legend li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.tarif-legend-swatch {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  background: rgba(90, 177, 182, 0.28);
  border: 1px solid var(--copper-soft);
}

.tarif-legend-swatch-na {
  background: repeating-linear-gradient(
    -45deg,
    var(--cream-deep),
    var(--cream-deep) 3px,
    var(--paper) 3px,
    var(--paper) 6px
  );
  border-color: var(--line);
  opacity: 0.85;
}

.tarif-block {
  margin: 0 0 2.75rem;
  scroll-margin-top: 5.5rem;
}

#depannage-chaudiere {
  scroll-margin-top: 5.5rem;
}

.tarif-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.tarif-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--paper);
}

.tarif-table th,
.tarif-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tarif-table th {
  background: var(--slate);
  color: var(--cream);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.tarif-table tbody tr:last-child td {
  border-bottom: 0;
}

.tarif-col-price,
.tarif-ht,
.tarif-ttc {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tarif-ttc-usual {
  background: rgba(90, 177, 182, 0.14);
  font-weight: 650;
}

.tarif-ttc-na {
  color: var(--ink-soft);
  background: var(--cream);
  opacity: 0.72;
}

.tarif-ttc-ref {
  color: var(--ink-soft);
}

.tarif-ref {
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--copper-dark);
}

.tarif-ref:hover {
  text-decoration: underline;
}

.tarif-more {
  margin: 0.25rem 0 0;
}

.tarif-sim-panel {
  padding: 1.35rem 1.25rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tarif-sim-lead {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tarif-sim-field {
  margin: 0 0 1.15rem;
}

.tarif-sim-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-weight: 650;
}

.tarif-sim-label span {
  color: var(--copper-dark);
  font-variant-numeric: tabular-nums;
}

.tarif-sim input[type="range"] {
  width: 100%;
  height: 1.4rem;
  padding: 0;
  background: transparent;
  accent-color: var(--copper);
  cursor: pointer;
}

.tarif-sim-field p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.tarif-sim-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.4rem 0 0.2rem;
  font-weight: 400;
}

.tarif-sim-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.28rem;
  padding: 0;
  accent-color: var(--slate);
}

.tarif-sim-check strong {
  display: block;
}

.tarif-sim-hint {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.tarif-sim-recap {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.tarif-sim-recap > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tarif-sim-recap > div[hidden] {
  display: none;
}

.tarif-sim-total {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  font-weight: 650;
}

.tarif-sim-total span:last-child {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--copper-dark);
}

.tarif-sim-route {
  display: grid;
  margin: 0.35rem 0 0;
}

.tarif-sim-stop {
  position: relative;
  margin: 0;
  padding: 0 0 1.05rem 1.85rem;
}

.tarif-sim-stop::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 0.42rem;
  z-index: 1;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--slate);
  box-shadow: 0 0 0 3px var(--paper);
}

.tarif-sim-stop::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.15rem;
  bottom: 0;
  width: 1px;
  background: var(--copper-soft);
}

.tarif-sim-stop-arrival {
  padding-bottom: 0;
}

.tarif-sim-stop-arrival::before {
  background: var(--copper);
}

.tarif-sim-stop-arrival::after {
  display: none;
}

.tarif-sim-kicker,
.tarif-sim-stop label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tarif-sim-suggest {
  position: relative;
}

.tarif-sim-suggest ul {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  margin: 0.2rem 0 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: 16rem;
  overflow: auto;
}

.tarif-sim-suggest button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.tarif-sim-suggest button:hover,
.tarif-sim-suggest button[aria-selected="true"] {
  background: rgba(90, 177, 182, 0.12);
}

.tarif-sim-status {
  min-height: 1.45em;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tarif-sim-status.is-error {
  color: var(--danger);
}

.tarif-sim-recap span:last-child {
  text-align: right;
}

.tarif-notes {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarif-notes li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.tarif-note-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--slate);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.tarif-ref-tooltip {
  position: fixed;
  z-index: 80;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.75rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.tarif-ref-tooltip a {
  color: var(--copper-soft);
}

.tarif-ref-tooltip[hidden] {
  display: none;
}

.tarif-teaser {
  margin: 0 0 3.25rem;
}

.tarif-teaser-grid {
  display: grid;
  gap: 1.1rem;
  margin: 1.25rem 0 1.1rem;
}

.tarif-teaser-card {
  padding: 1.15rem 1.15rem 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.tarif-teaser-card h3 {
  margin-bottom: 0.65rem;
}

.tarif-teaser-card ul {
  margin: 0;
  padding: 0 0 0.6rem;
  list-style: none;
}

.tarif-teaser-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.tarif-teaser-card li span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: right;
}

@media (min-width: 900px) {
  .tarif-teaser-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.to-top {
  position: fixed;
  z-index: 35;
  right: 1.15rem;
  bottom: 1.15rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--slate);
  color: var(--cream);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.4rem);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease), background var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--copper);
  color: var(--paper);
}

.to-top svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* —— Dimensionnement —— */

.dim-volets details {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dim-volets summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dim-volets .volet-body {
  padding: 1.15rem 0 0.4rem;
}

.dim-volets .dim-layout {
  margin-bottom: 1.5rem;
}

.dim-only-chauffage[hidden],
.dim-only-sanitaire[hidden],
#vase-loop-fields[hidden],
#vase-loop-custom[hidden] {
  display: none;
}

.dim-only-sanitaire .checkbox {
  margin-top: 0.95rem;
}

#vase-loop-fields {
  margin-top: 0.85rem;
}

#vase-loop-custom {
  grid-column: 1 / -1;
}

.dim-only-chauffage[hidden] + .dim-field {
  grid-column: 1 / -1;
}

.dim-eq {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}

.dim-layout {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  margin: 0 0 2.5rem;
}

.dim-form {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  min-width: 0;
  max-width: none;
}

.dim-fieldset {
  margin: 0;
  min-width: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.dim-fieldset legend {
  padding: 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.dim-hint {
  margin: 0.35rem 0 0.95rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.dim-grid {
  display: grid;
  gap: 0.95rem;
}

.dim-grid + .dim-field,
.dim-grid + .dim-detail,
.dim-field + .dim-field {
  margin-top: 0.95rem;
}

.dim-grid .dim-field {
  margin-top: 0;
}

.dim-detail {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.dim-c-line {
  margin: 0.95rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.dim-actions {
  margin: 0;
}

.dim-result {
  padding: 1.35rem 1.25rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dim-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.dim-power {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.2rem 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--copper-dark);
}

.dim-unit {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.dim-formula {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.dim-lines {
  margin: 0.9rem 0 0;
}

.dim-lines div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.dim-lines div[hidden] {
  display: none;
}

.dim-lines dt {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 400;
}

.dim-lines dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dim-lines .dim-total dt,
.dim-lines .dim-total dd {
  font-weight: 650;
  color: var(--ink);
}

.dim-status {
  min-height: 1.45em;
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.dim-status.is-error {
  color: var(--danger);
}

.dim-aside-note {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .dim-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .dim-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .dim-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  }

  .dim-result {
    position: sticky;
    top: 1.25rem;
  }
}

.loi-board {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.loi-board h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.loi-readout {
  margin: 0 0 0.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.loi-chart {
  min-height: 16rem;
  touch-action: pan-y;
}

.loi-chart svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.loi-range {
  width: 100%;
  height: 1.4rem;
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--copper);
  cursor: pointer;
}

.loi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.loi-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.loi-legend li[hidden] {
  display: none;
}

.loi-swatch {
  flex: 0 0 auto;
}

.loi-swatch--curve {
  width: 1.15rem;
  border-top: 2.5px solid var(--copper-dark);
}

.loi-swatch--line {
  width: 1.15rem;
  border-top: 1.5px dashed var(--ink-soft);
}

.loi-swatch--base {
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--copper-dark);
  border-radius: 50%;
  background: var(--paper);
}

.loi-swatch--now {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--copper);
}

.loi-swatch--cap {
  width: 1.15rem;
  border-top: 1.5px dashed var(--copper);
}

.loi-swatch--floor {
  width: 1.15rem;
  border-top: 1.5px dotted var(--slate-mid);
}

.loi-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.loi-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.loi-table caption {
  caption-side: bottom;
  margin-top: 0.65rem;
  text-align: left;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.loi-table th,
.loi-table td {
  padding: 0.42rem 0.5rem;
  border-top: 1px solid var(--line);
  text-align: right;
}

.loi-table thead th {
  border-top: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.loi-table th:first-child,
.loi-table td:first-child {
  text-align: left;
}

.loi-table button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--copper-dark);
  cursor: pointer;
}

.loi-table button:hover {
  text-decoration: underline;
}

.loi-table tr.is-now {
  background: rgba(141, 208, 212, 0.28);
}

.loi-table tr.is-base th,
.loi-table tr.is-base td {
  font-weight: 650;
}
