/* ==========================================================================
   Chauffage Culem – feuille de styles
   ========================================================================== */

:root {
  --blue: #29abe3;          /* couleur de la marque (décor) */
  --blue-600: #1590c6;
  --blue-700: #0b6fa0;      /* texte et boutons : contraste AA sur blanc */
  --blue-900: #083b56;
  --blue-50: #eef8fd;
  --blue-100: #d7effa;

  --ink: #17232d;
  --text: #3a4753;
  --muted: #5d6b77;
  --line: #e1e8ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 61, .06), 0 2px 8px rgba(16, 42, 61, .05);
  --shadow: 0 10px 30px -10px rgba(16, 42, 61, .22);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--blue-700); text-underline-offset: .18em; }
a:hover { color: var(--blue-900); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: inline-block;
  margin-bottom: .9rem;
  color: var(--blue-700);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Boutons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .75em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(11, 111, 160, .55);
}
.btn--primary:hover { background: var(--blue-900); color: #fff; }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-700); }

.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .95rem; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

/* En-tête ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand img { width: auto; height: 52px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s;
}
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .brand img { height: 40px; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 112px);
  background:
    radial-gradient(60rem 30rem at 100% 0%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, var(--blue-50), #fff);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero .lead {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--muted);
  font-size: .95rem;
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.hero__facts strong { color: var(--ink); }

.hero__media {
  position: relative;
  margin: 0;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 12% -8% -8% 12%;
  border-radius: var(--radius-lg);
  background: var(--blue);
  opacity: .9;
}
.hero__media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; margin-right: 6%; }
}

/* Bandeau rendez-vous ---------------------------------------------------- */

.rdv {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(circle at 100% 0%, rgba(41, 171, 227, .45), transparent 55%),
    linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #e6f4fb;
}

.rdv__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px clamp(32px, 5vw, 64px);
}

.rdv h2 { margin-bottom: .4em; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
.rdv p { margin: 0; }
.rdv strong { color: #fff; }
.rdv :focus-visible { outline-color: #fff; }

.rdv__badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: 1rem !important;
  padding: .4em .9em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rdv__intro > p:not(.rdv__badge) { font-size: 1.1rem; }

.rdv__days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.rdv__days li {
  padding: .45em 1.1em;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-900);
  font-weight: 700;
}

.rdv__phones { display: grid; gap: 14px; }

.rdv__phone {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s;
}
.rdv__phone:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .6); }
.rdv .rdv__phone:focus-visible { outline-color: #fff; outline-offset: 3px; }

.rdv__phone-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-700));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(11, 111, 160, .7);
}
.rdv__phone-icon .icon { width: 26px; height: 26px; }

.rdv__phone-call {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  margin-left: auto;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  transition: background-color .2s, color .2s;
}
.rdv__phone:hover .rdv__phone-call { background: var(--blue-700); color: #fff; }

.rdv__phone-label { display: block; color: var(--muted); font-size: .9rem; font-weight: 600; }
.rdv__phone-number {
  display: block;
  color: var(--blue-900);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.rdv__phone--alt { background: var(--blue-50); }
.rdv__phone--alt .rdv__phone-icon { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); }
.rdv__phone--alt .rdv__phone-call { background: #fff; }

.rdv__mail {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  justify-self: start;
  margin-top: 4px;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.rdv__mail:hover { color: #fff; opacity: .85; }

@media (max-width: 860px) {
  .rdv__inner { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .rdv__phone { gap: 14px; padding: 16px; }
  .rdv__phone-icon { width: 46px; height: 46px; border-radius: 13px; }
  .rdv__phone-call { display: none; }
}


/* Sections --------------------------------------------------------------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }

.section__header {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section__header--left { margin-inline: 0; text-align: left; }
.section__header p:last-child { color: var(--muted); }

/* Services --------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 1.3rem;
}

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

/* Réalisations ----------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filter {
  min-height: 42px;
  padding: .45em 1.15em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--blue); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item[hidden] { display: none; }

.gallery__item a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s;
}
.gallery__item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 59, 86, .45));
  opacity: 0;
  transition: opacity .3s;
}
.gallery__item a:hover img { transform: scale(1.05); }
.gallery__item a:hover::after { opacity: 1; }

@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(6, 18, 26, .92); }
.lightbox[open] { display: grid; place-items: center; }

.lightbox__figure { margin: 0; padding: 64px 72px; text-align: center; }
.lightbox__img {
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 170px);
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__caption { margin-top: 14px; color: #cfdce5; font-size: .95rem; }

.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

@media (max-width: 640px) {
  .lightbox__figure { padding: 72px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; translate: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

/* Contact ---------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}
.contact .section__header { margin-bottom: 0; }

.contact__list { display: grid; gap: 12px; }

.contact__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact__item:hover { color: var(--ink); border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateX(4px); }

.contact__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.contact__label {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contact__item { gap: 14px; padding: 14px; font-size: 1rem; } }

/* Pied de page ----------------------------------------------------------- */

.site-footer {
  padding-top: clamp(48px, 7vw, 80px);
  background: var(--ink);
  color: #b8c4cd;
  font-size: .95rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--blue); }
.site-footer :focus-visible { outline-color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer__title { margin-bottom: .8em; color: #fff; font-weight: 700; }
.site-footer__links { display: grid; gap: 6px; }
.site-footer__links .link-button { color: #fff; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__bottom p { margin: 0; }
.site-footer__credit { color: #b8c4cd; font-size: .85rem; }

@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 8px; } }

/* Bandeau cookies -------------------------------------------------------- */

.consent {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 60;
  max-width: 460px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 50px -12px rgba(16, 42, 61, .35);
  font-size: .95rem;
}
.consent[hidden] { display: none; }
.consent p { margin-bottom: 14px; }
.consent__actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 520px) {
  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .consent__actions .btn { flex: 1; }
}

/* Page de contenu (cookies) ---------------------------------------------- */

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 48px);
  background: linear-gradient(180deg, var(--blue-50), #fff);
}
.page-hero p { max-width: 40em; color: var(--muted); font-size: 1.1rem; }

.prose { max-width: 760px; padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: .4em; }

.table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); background: var(--bg-alt); }
