html, body {
  height: 100%;
  margin: 0;
}

:root{
  --accent:#45828C;
  --muted:#1a454c;
  --shadow: 0 6px 20px rgba(20,30,40,0.08);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

.wrap{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  height:64px;
  padding:0 28px;
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:space-between;
}

header{
  background:linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
  backdrop-filter: blur(6px);
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(20,30,40,0.04);
}

.mobile-toggle{
  display:none;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
  color:var(--muted);
  align-items:center;
  justify-content:center;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:inherit;
}

.logo img{
  height:50px;
  width:auto;
  flex-shrink:0;
  display:block;
}

.site-bg {
  background-color: #def6f8;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0;
}

.phone-link {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.no-wrap {
  white-space: nowrap;
}

.text-main {
  color: #1a454c;
}

.text-main-soft {
  color: #1a454c;
  opacity: 0.75;
}

.text-main-muted {
  color: #1a454c;
  opacity: 0.65;
}

.text-main-faint {
  color: #1a454c;
  opacity: 0.55;
}

.text-accent {
  color: #5ab1b6;
}

.bg-accent-soft {
  background: rgba(90, 177, 182, 0.12);
}

.bg-accent-soft-strong {
  background: rgba(90, 177, 182, 0.15);
}

.card-border {
  border-color: rgba(90, 177, 182, 0.15);
}

.divider-border {
  border-color: rgba(90, 177, 182, 0.12);
}

.btn-accent {
  background: #5ab1b6;
}

.btn-light {
  background: #fff;
  color: #1a454c;
}

nav{flex:1; display:flex; justify-content:center}
.nav-list{display:flex;gap:16px;align-items:center;justify-content:center}
.nav-list a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:8px;
  font-weight:600;
  font-size:14px;
}
.nav-list a.cta{
  background:var(--accent);
  color:#fff;
  box-shadow:var(--shadow);
}

.font-heading {
  font-family: inherit;
}

.font-body {
  font-family: inherit;
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(90,177,182,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(90,177,182,0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(26,69,76,0.06) 0%, transparent 40%);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,69,76,0.12);
}

#tarifs-climatisation .clim-sim input[type="range"].clim-sim-range {
  accent-color: #5ab1b6;
}

.img-placeholder {
  background: linear-gradient(135deg, #b8e6e9 0%, #8dd0d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.25s; }
.anim-d3 { animation-delay: 0.4s; }
.anim-d4 { animation-delay: 0.55s; }

.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5ab1b6;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.category-badge:hover { transform: scale(1.05); }

.scroll-smooth { scroll-behavior: smooth; }

.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

@media (max-width: 860px) {
  nav { display: none; }
  .wrap > .phone-link { display: none; }
  .mobile-toggle { display: inline-flex; }

  .mobile-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(20, 30, 40, 0.08);
    box-shadow: var(--shadow);
  }
  .mobile-menu a {
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
  }
  .mobile-menu a.cta {
    background: var(--accent);
    color: #fff;
    text-align: center;
  }
}

.service-logo {
  width: 100%;
  height: 100%;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}

.gallery-acc > summary {
  list-style: none;
}

.gallery-acc > summary::-webkit-details-marker {
  display: none;
}

.gallery-acc[open] > summary .gallery-chevron {
  transform: rotate(180deg);
}

.gallery-chevron {
  transition: transform 0.2s ease;
}

/* Kept from the original inline CSS */
body {
  box-sizing: border-box;
}

/* Panneau latéral Inter-fast (z-index au-dessus du header sticky z-index:50) */
.interfast-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
}

.interfast-panel.is-open {
  pointer-events: auto;
  visibility: visible;
}

.interfast-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 69, 76, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.interfast-panel.is-open .interfast-panel__backdrop {
  opacity: 1;
}

.interfast-panel__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(26, 69, 76, 0.15);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

@media (min-width: 768px) {
  .interfast-panel__sheet {
    width: 50%;
    max-width: 640px;
  }
}

.interfast-panel.is-open .interfast-panel__sheet {
  transform: translateX(0);
}

.interfast-panel__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(26, 69, 76, 0.12);
  background: #f8fcfc;
}

.interfast-panel__fallback {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.interfast-panel__fallback:hover {
  color: #1a454c;
}

.interfast-panel__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px -4px -6px 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.interfast-panel__close:hover {
  background: rgba(26, 69, 76, 0.08);
  color: #1a454c;
}

.interfast-panel__iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
}

.voir-plus {
  margin-top: 0.75rem;
}

.voir-plus summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #1a454c;
  user-select: none;
  list-style: none;
  transition: background-color 0.15s ease;
}

.voir-plus summary:hover {
  background-color: #143840;
}

.voir-plus summary:focus-visible {
  outline: 2px solid #5ab1b6;
  outline-offset: 2px;
}

.voir-plus summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.voir-plus[open] summary::before {
  content: "−";
}

.voir-plus .voir-plus-label-open {
  display: none;
}

.voir-plus[open] .voir-plus-label-closed {
  display: none;
}

.voir-plus[open] .voir-plus-label-open {
  display: inline;
}

.voir-plus summary::-webkit-details-marker {
  display: none;
}

.voir-plus summary::marker {
  display: none;
}

.voir-plus .grid.grid-cols-2.gap-3.mt-3.max-w-md {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
  max-width: none;
}

.voir-plus figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.voir-plus figure.col-span-2 {
  grid-column: auto;
}

.voir-plus figure > div {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.voir-plus figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.voir-plus figure > img {
  aspect-ratio: 1 / 1;
  height: auto;
}

.voir-plus img {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voir-plus img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(26, 69, 76, 0.2);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.image-lightbox__content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image-lightbox__image {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 3rem);
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  background: #111;
}

.image-lightbox__caption {
  color: #f1f5f9;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.image-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  background: #1a454c;
  color: #fff;
  cursor: pointer;
}

.image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  background: #1a454c;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__nav--prev {
  left: 0.5rem;
}

.image-lightbox__nav--next {
  right: 0.5rem;
}

.image-lightbox__nav:disabled {
  opacity: 0.45;
  cursor: default;
}

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #5ab1b6;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20,30,40,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 120;
}
#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover { background: #4a9aa0; transform: translateY(-2px); }
#back-to-top i { width: 22px; height: 22px; }

