/* MKL Énergies — refonte accueil premium / minimaliste */

:root {
  --brand: #2f5bb8;
  --brand-dark: #244a96;
  --brand-soft: #f3f6fc;
  --yellow: #f0c93a;
  --yellow-dark: #c9a20f;
  --ink: #1d2330;
  --muted: #6b7385;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Outfit", system-ui, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --narrow: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(var(--narrow), calc(100% - 2.5rem));
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(230, 234, 242, 0.9);
}

.header__inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
  gap: 1.35rem;
  margin-left: 0.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--brand);
}

.header__phone {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
}

.header__phone:hover {
  color: var(--brand-dark);
}

.header__phone-icon {
  flex-shrink: 0;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--brand);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--yellow:hover {
  background: var(--yellow-dark);
  color: var(--white);
}

.btn--ghost {
  color: var(--brand);
  border: 1px solid var(--line);
  background: var(--white);
}

.btn--ghost:hover {
  border-color: var(--brand);
}

.btn--ghost-light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  animation: heroFade 21s infinite;
}

.hero__photo:nth-child(1) {
  animation-delay: 0s;
}

.hero__photo:nth-child(2) {
  animation-delay: 7s;
}

.hero__photo:nth-child(3) {
  animation-delay: 14s;
}

/* Cadre sur le produit (radiateur / clim) */
.hero__photo--radiateur {
  object-position: 88% 45%;
}

.hero__photo--clim {
  object-position: 72% 22%;
}

.hero__photo--radiateur-b {
  object-position: 28% 40%;
}

@keyframes heroFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  28% { opacity: 1; }
  34% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo {
    animation: none;
    opacity: 0;
  }

  .hero__photo:first-child {
    opacity: 1;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(18, 28, 48, 0.18) 0%,
      rgba(18, 28, 48, 0.22) 38%,
      rgba(18, 28, 48, 0.72) 100%
    );
}

.hero__content {
  width: min(var(--max), calc(100% - 2.5rem));
  padding: 5.5rem 0 3.75rem;
}

.hero__brand {
  width: min(220px, 58vw);
  height: auto;
  margin-bottom: 1.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border-radius: 10px;
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2.15rem, 5.4vw, 3.65rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero__sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.hero__cta .btn {
  min-width: 14rem;
  box-shadow: none;
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--quiet {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.section--activities {
  padding-top: 5.75rem;
}

.section--lead {
  background: var(--brand-soft);
}

.section--offer {
  padding-bottom: 2rem;
}

.principle {
  margin-bottom: 3.5rem;
}

.principle__line {
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--muted);
}

.doors {
  display: grid;
  gap: 1.25rem;
}

.door {
  display: block;
  color: inherit;
}

.door img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.door__body {
  padding: 1.15rem 0.15rem 0.25rem;
}

.door__body h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0.15rem 0 0.45rem;
}

.door__body p:last-child {
  color: var(--muted);
  max-width: 28rem;
}

.chapters {
  padding: 1rem 0 2rem;
}

.chapters--last {
  padding-bottom: 4.5rem;
}

.chapters__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin: 2.5rem 0 0.5rem;
}

.chapter {
  display: grid;
  gap: 1.25rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.chapter img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center center;
  border-radius: 16px;
}

/* Recadrage : produit bien visible dans le cadre 5/4 */
.chapter__media--clim {
  object-position: 78% 18%;
}

.chapter__media--radiateur {
  object-position: 92% 48%;
}

.chapter__copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.chapter__copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
  margin-bottom: 1.25rem;
}

.chapter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.section__eyebrow {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.section__title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

/* ——— Activities ——— */
.activity-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.activity {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0.15rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: color 0.2s var(--ease);
}

.activity__name {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.activity__hint {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yellow-dark);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.activity:hover .activity__name,
.activity:focus-visible .activity__name {
  color: var(--brand);
}

.activity:hover .activity__hint,
.activity:focus-visible .activity__hint {
  opacity: 1;
  transform: translateX(0);
}

/* ——— Steps ——— */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}

.steps__num {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow-dark);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
}

.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.steps p {
  color: var(--muted);
}

/* ——— Trust ——— */
.trust {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.trust__item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.trust__item p {
  color: var(--muted);
  max-width: 28rem;
}

/* ——— Réalisations ——— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--white);
}

.filter-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.realisations__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.chantier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.chantier:hover {
  border-color: #d0d7e6;
}

.chantier__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
}

.chantier__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chantier__village {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.chantier__count {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(29, 35, 48, 0.55);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
}

.chantier__body {
  padding: 0.95rem 1rem 1.1rem;
}

.chantier__cat {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.chantier__title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.chantier__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.chantier__cta,
.chantier__devis {
  font-size: 0.88rem;
  font-weight: 600;
}

.chantier__cta {
  color: var(--muted);
}

.chantier__cta:hover {
  color: var(--ink);
}

.chantier__devis {
  margin-left: auto;
  color: var(--brand);
}

.chantier__devis:hover {
  color: var(--brand-dark);
}

/* ——— Lightbox ——— */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

#lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 34, 0.72);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--white);
  border-radius: 16px;
  padding: 1rem 1rem 1.15rem;
}

.lightbox__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}

.lightbox__close:hover {
  color: var(--ink);
}

.lightbox__head {
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.lightbox__village {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}

.lightbox__meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  min-height: 240px;
  overflow: hidden;
}

.lightbox__stage img {
  max-height: 52vh;
  width: auto;
  margin-inline: auto;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.4rem;
}

.lightbox__nav--prev {
  left: 0.6rem;
}

.lightbox__nav--next {
  right: 0.6rem;
}

.lightbox__thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-top: 0.75rem;
  padding-bottom: 0.2rem;
}

.lightbox__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.55;
  border: 2px solid transparent;
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--brand);
}

.lightbox__toolbar {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-end;
}

.lightbox__devis {
  min-width: 10rem;
}

/* ——— Lead ——— */
.lead-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.lead-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin-bottom: 0.75rem;
}

.lead-copy > p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 28rem;
}

.lead-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.lead-copy li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink);
  font-weight: 500;
}

.lead-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--yellow);
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.4rem;
}

.lead-form__top {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.lead-form__intents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--bg-soft);
  border-radius: 999px;
}

.lead-form__intents button {
  min-height: 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.lead-form__intents button.is-active {
  background: var(--white);
  color: var(--brand);
}

.lead-form__steps {
  list-style: none;
  display: flex;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.lead-form__steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.lead-form__steps span {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  font-size: 0.75rem;
}

.lead-form__steps .is-current span,
.lead-form__steps .is-done span {
  background: var(--brand);
  color: var(--white);
}

.lead-form__panel {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.lead-form__panel legend {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  padding: 0;
}

.lead-form__hint-inline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.lead-form__projects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lead-form__projects button,
.lead-form__housing button {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--white);
}

.lead-form__projects button.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.lead-form__housing button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.lead-form__housing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.lead-form__field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.lead-form__field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.lead-form__field input,
.lead-form__field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: var(--white);
}

.lead-form__field input:focus,
.lead-form__field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.lead-form__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.lead-form__error {
  margin-top: 0.85rem;
  color: #9b1c1c;
  background: #fff5f5;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.lead-form__legal {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.lead-form--success {
  text-align: center;
  padding: 2rem 1rem;
}

.lead-form__check {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
}

.lead-form--success h3 {
  margin-bottom: 0.5rem;
}

.lead-form--success p {
  color: var(--muted);
}

.lead-form__hint {
  margin-top: 0.85rem;
}

.lead-form__hint a {
  color: var(--brand);
  font-weight: 600;
}

/* ——— Agenda RDV ——— */
.rdv {
  margin-top: 0.5rem;
}

.rdv__layout {
  display: grid;
  gap: 1.25rem;
}

.rdv__agenda {
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.rdv__legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.rdv__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rdv__swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
}

.rdv__swatch--ok {
  background: var(--yellow);
}

.rdv__swatch--busy {
  background: #d7dbe5;
}

.rdv__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}

.rdv__form h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.rdv__picked {
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.rdv__picked strong {
  color: var(--ink);
}

.rdv__fields {
  display: grid;
  gap: 0.7rem;
}

.rdv__fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.rdv__fields input,
.rdv__fields select,
.rdv__fields textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font-weight: 500;
}

.rdv__error {
  margin-top: 0.7rem;
  color: #9b1c1c;
  font-size: 0.9rem;
}

.rdv__success {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.rdv__success h3 {
  margin-bottom: 0.5rem;
}

.rdv__loading {
  color: var(--muted);
  padding: 1.5rem 0;
}

.rdv-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.rdv-head .section__title {
  margin-bottom: 0.4rem;
}

.rdv-head .section__lead {
  margin-bottom: 0;
}

.rdv-back {
  margin-bottom: 1rem;
  color: var(--muted);
}

.rdv-back a {
  color: var(--brand);
  font-weight: 600;
}

.rdv-page {
  padding-top: 2.5rem;
}

.page-rdv .sticky {
  display: none;
}

.rdv-solo {
  padding: 2.5rem 0 4.5rem;
  min-height: calc(100vh - var(--header-h));
  background: var(--bg);
}

.rdv-solo .section__lead {
  margin-bottom: 1.75rem;
}

.rdv__agenda--solo {
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.rdv__form--modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.rdv-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.rdv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 34, 0.55);
}

.rdv-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
}

.rdv-modal__panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
  padding-right: 2rem;
}

.rdv-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
}

.rdv-modal__close:hover {
  color: var(--ink);
}

.cal {
  display: flex;
  gap: 0.65rem;
  min-width: max-content;
}

.cal__col {
  width: 5.35rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.cal__day {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.2rem;
  min-height: 2.2rem;
}

.cal__slot {
  display: grid;
  place-items: center;
  min-height: 2.1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

.cal__slot.is-free {
  background: #fff8db;
  color: var(--ink);
  border: 1px solid #f0e2a0;
}

.cal__slot.is-free:hover,
.cal__slot.is-free.is-selected {
  background: var(--yellow);
  border-color: var(--yellow-dark);
}

.cal__slot.is-busy {
  background: var(--bg-soft);
  color: #a0a7b5;
}

/* ——— Reviews / footer ——— */
.reviews {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.reviews blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.reviews blockquote p {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.reviews footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 6.5rem;
  background: var(--white);
}

.footer__inner {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer img {
  height: 36px;
  width: auto;
  margin-bottom: 0.35rem;
}

.footer a {
  color: var(--brand);
  font-weight: 600;
}

.sticky {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 0.4rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.sticky a,
.sticky button {
  min-height: 2.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.sticky a[href^="tel"] {
  color: var(--muted);
}

.sticky .is-primary {
  background: var(--brand);
  color: var(--white);
}

/* ——— Breakpoints ——— */
@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .doors {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .realisations__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }

  .reviews {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .sticky {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .footer {
    padding-bottom: 2.75rem;
  }
}

@media (min-width: 900px) {
  .hero__content {
    padding: 7rem 0 4.5rem;
  }

  .hero__brand {
    width: 260px;
  }

  .lead-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
  }

  .rdv__layout {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }

  .chapter {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    padding: 4rem 0;
  }

  .chapter--flip img {
    order: 2;
  }

  .realisations__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    gap: 2rem;
  }

  .activity:hover .activity__hint,
  .activity:focus-visible .activity__hint {
    opacity: 1;
  }
}

@media (max-width: 719px) {
  .header__phone span {
    display: none;
  }

  .hero {
    min-height: min(88vh, 40rem);
  }

  .hero__content {
    padding: 4.5rem 0 2.75rem;
  }

  .activity__hint {
    opacity: 0.85;
    transform: none;
    color: var(--brand);
  }
}

/* ——— Page radiateurs : ambiance chaleureuse (distincte du bleu site) ——— */
.page-warm {
  --brand: #9a5b2e;
  --brand-dark: #7a4520;
  --brand-soft: #f7efe6;
  --yellow: #e8b04a;
  --yellow-dark: #b8841f;
  --ink: #2c241c;
  --muted: #6e6256;
  --line: #e8ddd0;
  --bg: #fcf8f3;
  --bg-soft: #f3ebe1;
  --header-h: 68px;
  background: var(--bg);
  color: var(--ink);
}

.page-warm .header {
  background: rgba(252, 248, 243, 0.9);
  border-bottom-color: rgba(232, 221, 208, 0.95);
}

.page-warm .nav a:hover,
.page-warm .header__phone {
  color: var(--brand);
}

.page-warm .section__eyebrow {
  color: var(--brand);
}

.page-warm .btn--primary,
.page-warm .sticky .is-primary,
.page-warm .lead-form__intents button.is-active,
.page-warm .lead-form__steps .is-current span,
.page-warm .lead-form__steps .is-done span,
.page-warm .lead-form__housing button.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-warm .lead-form__projects button.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.page-warm .lead-form__field input:focus,
.page-warm .lead-form__field textarea:focus {
  border-color: var(--brand);
}

.page-warm .footer a {
  color: var(--brand);
}

.btn--warm {
  background: var(--brand);
  color: #fff;
}

.btn--warm:hover {
  background: var(--brand-dark);
}

.btn--warm-ghost {
  color: var(--brand-dark);
  border: 1px solid var(--line);
  background: transparent;
}

.btn--warm-ghost:hover {
  border-color: var(--brand);
}

.warm-hero {
  display: grid;
  gap: 0;
}

.warm-hero__media img {
  width: 100%;
  max-height: min(62vh, 36rem);
  object-fit: cover;
  /* Cadre serré sur le radiateur (mur de droite) */
  object-position: 92% 45%;
}

.warm-hero__content {
  padding: 2.75rem 0 3.25rem;
}

.warm-hero__content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 14ch;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.warm-hero__sub {
  max-width: 32rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.warm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.warm-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.warm-section--soft {
  background: var(--bg-soft);
}

.warm-points {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.warm-points h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.warm-points p {
  color: var(--muted);
  max-width: 28rem;
}

.page-radiateurs .lead-form {
  border-color: var(--line);
  background: #fff;
}

@media (min-width: 720px) {
  .warm-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 900px) {
  .warm-hero {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: stretch;
    min-height: min(78vh, 40rem);
  }

  .warm-hero__media {
    min-height: 100%;
  }

  .warm-hero__media img {
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .warm-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 4rem 1rem;
  }
}

/* ——— Livre catalogue radiateurs (page à page, flip fluide) ——— */
.book {
  margin-top: 1.25rem;
}

.book--empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #fff;
}

.book__empty-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.book__empty-text {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto;
}

.book--turn {
  max-width: 980px;
  margin: 0 auto;
}

.book--turn .book__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1521 / 1075;
  max-height: min(72vh, 640px);
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  perspective: 2200px;
  transform-style: preserve-3d;
  background:
    linear-gradient(160deg, #3a3028 0%, #2c241c 55%, #1f1a16 100%);
  box-shadow: 0 22px 48px rgba(44, 36, 28, 0.22);
}

.book--turn .book__viewport:active {
  cursor: grabbing;
}

.book--turn .book__leaf {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.68s cubic-bezier(0.22, 0.8, 0.28, 1);
  background: #fff;
}

.book--turn .book__leaf.is-front {
  z-index: 2;
  transform-origin: left center;
}

.book--turn .book__leaf.is-under {
  z-index: 1;
  transform: none !important;
}

.book--turn .book__leaf.is-instant {
  transition: none !important;
}

.book--turn .book__leaf.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.book--turn .book__leaf img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}

.book--turn .book__leaf.is-front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.68s cubic-bezier(0.22, 0.8, 0.28, 1);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12) 0%,
    transparent 14%,
    transparent 80%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.book--turn .book__viewport.is-turning-next .book__leaf.is-front {
  transform: rotateY(-180deg);
  box-shadow: -14px 0 28px rgba(0, 0, 0, 0.22);
}

.book--turn .book__viewport.is-turning-next .book__leaf.is-front::after {
  opacity: 1;
}

.book--turn .book__viewport.is-turning-prev .book__leaf.is-front {
  transform-origin: right center;
  transform: rotateY(180deg);
  box-shadow: 14px 0 28px rgba(0, 0, 0, 0.22);
}

.book--turn .book__viewport.is-turning-prev .book__leaf.is-front::after {
  opacity: 1;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.12) 0%,
    transparent 14%,
    transparent 80%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.book--turn .book__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.15rem;
}

.book--turn .book__nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.book--turn .book__nav:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  transform: scale(1.05);
}

.book--turn .book__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.book--turn .book__count {
  min-width: 7.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.book--turn .book__hint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 719px) {
  .book--turn .book__viewport {
    border-radius: 12px;
    max-height: min(58vh, 420px);
  }

  .book--turn .book__hint {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book--turn .book__leaf,
  .book--turn .book__leaf.is-front::after {
    transition-duration: 0.01ms !important;
  }
}
