/* ==========================================================================
   GREEN VISION — Chauffage, Climatisation, Plomberie
   ========================================================================== */

/* Les polices sont chargées par <link> dans le <head> de chaque page :
   un @import ici bloquerait l'affichage le temps du téléchargement. */

:root {
  /* Palette — dominante verte "nature", bleu eau/froid en secondaire, ambre chauffage en accent ponctuel */
  --ink:        #16211b;
  --ink-soft:   #3b4a41;
  --forest:     #2a6a45;
  --forest-2:   #25603f;
  --leaf:       #338556;
  --leaf-2:     #46a56b;
  --leaf-bright:#6bc98a;
  --leaf-pale:  #e7f2ea;
  --sky:        #2b8aa3;
  --sky-pale:   #e3f2f6;
  --ember:      #4b7197;   /* anciennement ambre : le chauffage est en bleu acier, assorti à la carte de visite */
  --ember-pale: #dce5ef;
  --card-blue:  #c8d4e2;   /* fond de la carte de visite */
  --danger:     #b3261e;
  --danger-pale:#fbe9e7;
  --paper:      #f7f6f0;
  --paper-alt:  #eef3ec;
  --white:      #ffffff;
  --line:       #dde3d9;
  --line-dark:  rgba(255,255,255,.14);
  --shadow-1:   0 1px 2px rgba(22,33,27,.06), 0 6px 20px rgba(22,33,27,.05);
  --shadow-2:   0 2px 6px rgba(22,33,27,.08), 0 16px 40px rgba(22,33,27,.10);
  --radius-s:   8px;
  --radius-m:   14px;
  --radius-l:   22px;
  --content-w:  1120px;
  /* Sans géométrique assorti au lettrage du logo. Pour essayer une autre piste,
     il suffit de remplacer 'Montserrat' par 'Poppins' sur cette seule ligne
     (et dans le <link> Google Fonts des pages). */
  --font-display: 'Montserrat', 'Segoe UI', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--forest-2);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
ul { padding: 0; margin: 0; list-style: none; }
.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}
:focus-visible {
  outline: 3px solid var(--leaf-bright);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .85em 1.5em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--leaf);
  color: var(--white);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--leaf-2); box-shadow: var(--shadow-2); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-invert {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--white);
}
.btn-outline-invert:hover { background: rgba(255,255,255,.12); }
.btn-light {
  background: var(--white);
  color: var(--forest-2);
}
.btn-light:hover { background: var(--leaf-pale); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top phone bar ---------- */
.topbar {
  background: var(--forest-2);
  color: var(--white);
  font-size: .88rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { display: inline-flex; align-items: center; gap: .4em; }
.topbar svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: .02em;
  color: var(--forest-2);
  white-space: nowrap;
  flex-shrink: 0;
}
/* L'emblème seul : le fichier logo.png complet contient déjà le mot
   « GREEN VISION », qui ferait doublon avec le texte affiché à côté. */
.brand img { height: 68px; width: auto; object-fit: contain; }
@media (max-width: 860px) { .brand img { height: 54px; } }
@media (max-width: 420px) {
  .brand img { height: 46px; }
  .brand { font-size: 1.05rem; gap: .5rem; }
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
nav.main-nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: .3em 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--forest-2);
  border-bottom-color: var(--leaf);
}
nav.main-nav a.cta-nav {
  background: var(--leaf);
  color: var(--white);
  padding: .55em 1.1em;
  border-radius: 999px;
  border-bottom: none;
}
nav.main-nav a.cta-nav:hover { background: var(--leaf-2); color: var(--white); }
.header-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* Le menu bascule en tiroir dès 1150px : avec 8 entrées, un logo plus grand
   et le bouton d'appel, la barre déborderait bien avant le format tablette. */
@media (max-width: 1150px) {
  nav.main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 28px;
    gap: 1.3rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-2);
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { font-size: 1.05rem; width: 100%; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 860px) {
  .header-cta .btn-outline { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 480px) {
  .topbar { font-size: .78rem; }
  .topbar .container { gap: .5rem 1rem; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 5vw, 60px) 0 clamp(40px, 5vw, 60px);
  background:
    radial-gradient(760px 420px at 82% -10%, var(--leaf-pale) 0%, transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
/* Sans min-width:0, un élément de grille ne peut pas devenir plus étroit que
   son contenu et déborde de l'écran sur mobile. */
.hero .container > * { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--forest);
  background: var(--leaf-pale);
  border: 1px solid #cfe5d6;
  padding: .4em .9em;
  border-radius: 999px;
  margin-bottom: 1.1em;
}
.hero .accent { color: var(--leaf); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.8rem; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: .55em;
  font-size: .9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.trust-strip svg { width: 20px; height: 20px; color: var(--leaf); flex-shrink: 0; }

.hero-art { width: 100%; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ---------- Section scaffolding ---------- */
section { padding: clamp(48px, 6vw, 68px) 0; }
.section-slim { padding: 34px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark {
  background: var(--forest-2);
  color: rgba(255,255,255,.86);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--leaf-2);
  background: var(--leaf-pale);
  padding: .35em .85em;
  border-radius: 999px;
  margin-bottom: .9em;
}
.tag.blue { color: var(--sky); background: var(--sky-pale); }
.tag.ember { color: var(--ember); background: var(--ember-pale); }

/* ---------- Three services (home) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.8rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.service-card .icon-badge { margin-bottom: .3rem; }
.service-card p { margin-bottom: .4rem; }
.service-card .go {
  margin-top: auto;
  font-weight: 600;
  font-size: .92rem;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: .4em;
}
.service-card.green .icon-badge { background: var(--leaf-pale); color: var(--leaf); }
.service-card.blue  .icon-badge { background: var(--sky-pale); color: var(--sky); }
.service-card.ember .icon-badge { background: var(--ember-pale); color: var(--ember); }
.icon-badge {
  width: 52px; height: 52px;
  border-radius: var(--radius-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat { flex: 1 1 200px; text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--leaf);
  display: block;
  font-weight: 600;
}
.stat .label { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Feature list (checklist style) ---------- */
.check-list { display: flex; flex-direction: column; gap: .9rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7em; }
.check-list svg { width: 20px; height: 20px; color: var(--leaf); flex-shrink: 0; margin-top: .15em; }

/* ---------- Info boxes / aides ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.info-box {
  background: var(--white);
  border-left: 3px solid var(--leaf);
  border-radius: var(--radius-s);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-1);
}
.info-box h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.info-box p { margin-bottom: 0; font-size: .94rem; color: var(--ink-soft); }

@media (max-width: 820px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- Two-column mode blocks (climatisation) ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.mode-card {
  border-radius: var(--radius-m);
  padding: 1.8rem;
  color: var(--white);
}
.mode-card.winter { background: linear-gradient(160deg, #54799f 0%, #3f6286 100%); }
.mode-card.summer { background: linear-gradient(160deg, #3aa5be 0%, #237f95 100%); }
.mode-card svg { width: 30px; height: 30px; margin-bottom: .8rem; }
.mode-card h3 { color: var(--white); }
.mode-card p { color: rgba(255,255,255,.88); margin-bottom: 0; }
@media (max-width: 720px) { .mode-grid { grid-template-columns: 1fr; } }

/* ---------- Reversible badge on hero art ---------- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: var(--forest-2);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  padding: .4em .9em;
  border-radius: 999px;
}

/* Section de même fond juste sous le hero : on évite de doubler les marges */
.hero + section:not(.section-alt):not(.section-slim) { padding-top: 8px; }

/* Le badge est aussi un .item du bandeau de confiance : sa couleur de texte doit rester claire */
.trust-strip .pill-badge { color: var(--white); }

/* ---------- Urgency banner ---------- */
.urgency {
  background: var(--ember);
  color: var(--white);
}
.urgency .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.6rem 24px;
}
.urgency h3 { color: var(--white); margin: 0 0 .2rem; font-size: 1.15rem; }
.urgency p { margin: 0; color: rgba(255,255,255,.92); font-size: .92rem; }

/* ---------- Final CTA band ---------- */
/* Encadré blanc arrondi sur fond crème : plus de bande de couleur avant le pied de page */
.cta-band {
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  padding: clamp(40px, 5vw, 60px) 0;
}
.cta-band .container {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 2.5rem);
  max-width: min(900px, calc(100% - 32px));
}
.cta-band h2 { color: var(--forest-2); }
.cta-band .lede { color: var(--ink-soft); margin-left: auto; margin-right: auto; }
.cta-band .btn-outline-invert { color: var(--ink); border-color: var(--ink); }
.cta-band .btn-outline-invert:hover { background: var(--ink); color: var(--white); }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Why choose us ---------- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.reason { padding: .2rem; }
.reason .icon-badge { margin-bottom: 1rem; }
@media (max-width: 820px) { .reason-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(22,33,27,.72), transparent);
  color: var(--white);
  font-size: .84rem;
  padding: 1.6rem .9rem .6rem;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leaf-2);
  background: var(--leaf-pale);
}
.gallery-placeholder svg { width: 40px; height: 40px; opacity: .7; }
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Indice visuel au survol d'une vignette */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22,33,27,0);
  transition: background .18s ease;
  pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after { background: rgba(22,33,27,.18); }
.gallery-item img { transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Visionneuse (galerie défilante) ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(12,17,14,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-figure img {
  max-height: 68vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--radius-m);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.lightbox-figure figcaption {
  color: var(--white);
  text-align: center;
  max-width: 62ch;
}
.lightbox-caption {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  margin-bottom: .35rem;
}
.lightbox-desc {
  display: block;
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255,255,255,.76);
}
.lightbox-counter {
  display: block;
  margin-top: .7rem;
  font-size: .82rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 20px; right: 24px; width: 44px; height: 44px; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-nav svg { width: 26px; height: 26px; }
.lightbox-nav.prev { left: 2vw; }
.lightbox-nav.next { right: 2vw; }

@media (max-width: 700px) {
  .lightbox { padding: 2vh 3vw; }
  .lightbox-figure img { max-height: 52vh; }
  .lightbox-nav { width: 44px; height: 44px; top: auto; bottom: 14px; transform: none; }
  .lightbox-nav.prev { left: 16px; }
  .lightbox-nav.next { right: 16px; }
  .lightbox-desc { font-size: .9rem; }
}

/* ---------- Avis / Google block ---------- */
.avis-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-1);
}
.avis-card .stars { color: #e0a233; font-size: 1.3rem; letter-spacing: .1em; }
.avis-card .msg { flex: 1 1 320px; }
.avis-card .msg p { margin-bottom: .3rem; }

/* ---------- About / story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.6rem;
  align-items: center;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-left: 2px solid var(--line);
  padding-left: 1.4rem;
  margin-top: 1.6rem;
}
.timeline .step { position: relative; }
.timeline .step::before {
  content: '';
  position: absolute;
  left: -1.85rem; top: .3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--leaf);
}
.timeline .step .year { font-weight: 700; color: var(--forest); font-size: .9rem; }
.timeline .step p { margin: .2rem 0 0; font-size: .95rem; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

.map-frame {
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.4rem;
  align-items: start;
}
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 2.2rem;
  box-shadow: var(--shadow-2);
}
.form-card .logo-mark {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.4rem;
}
.form-card .logo-mark img { height: 56px; width: auto; object-fit: contain; }
.form-card .logo-mark span {
  font-family: var(--font-display); font-weight: 700; color: var(--forest-2);
  letter-spacing: .02em;
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--ink);
}
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .96rem;
  padding: .75em .9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--leaf-pale);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
.form-note {
  font-size: .84rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  margin-bottom: 0;
}
.form-status {
  display: none;
  margin-top: 1rem;
  padding: .8em 1em;
  border-radius: var(--radius-s);
  background: var(--leaf-pale);
  color: var(--forest);
  font-size: .9rem;
}
.form-status.show { display: block; }
.form-status.is-error { background: var(--danger-pale); color: var(--danger); }

/* Champ piège anti-robot : invisible pour un visiteur, rempli par les automates.
   Retiré du flux et de l'ordre de tabulation plutôt que display:none, que
   certains robots savent détecter. */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.side-card {
  background: var(--paper-alt);
  border-radius: var(--radius-l);
  padding: 1.8rem;
  margin-bottom: 1.2rem;
}
.side-card h3 { margin-bottom: .5rem; }
.side-card .phone-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 1.1rem; color: var(--forest);
  margin-top: .5rem;
}
.side-steps { display: flex; flex-direction: column; gap: 1.1rem; }
.side-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.side-steps .n {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--leaf); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; flex-shrink: 0;
}
.side-steps p { margin: 0; font-size: .92rem; }
.side-steps strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #2e6e4a;
  color: rgba(255,255,255,.75);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand img { height: 64px; width: auto; object-fit: contain; }
.footer-brand span {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: 1.2rem; letter-spacing: .02em;
}
footer h4 {
  color: var(--white); font-family: var(--font-body); font-weight: 600;
  font-size: .92rem; margin-bottom: 1rem;
}
footer ul { display: flex; flex-direction: column; gap: .65rem; }
footer a:hover { color: var(--white); }
footer .cert-list li { display: flex; align-items: center; gap: .5em; font-size: .92rem; }
footer .cert-list svg { width: 16px; height: 16px; color: var(--leaf-bright); flex-shrink: 0; }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Présence de la marque ---------- */

/* Logo complet en grand : il tient lieu d'illustration dans le hero d'accueil.
   Le min() est indispensable : un max-width fixe imposerait sa largeur à la
   colonne de grille et ferait déborder la page sur mobile. */
.hero-art-logo {
  width: 100%;
  max-width: min(430px, 100%);
  height: auto;
  margin: 0 auto;
}

/* Photo d'ambiance en tête des pages métiers */
.hero-photo.hero-photo-portrait { aspect-ratio: 3 / 4; max-width: min(380px, 100%); }
.hero-photo {
  width: 100%;
  max-width: min(480px, 100%);
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  margin: 0 auto;
}

/* Emblème en filigrane derrière le bandeau d'appel à l'action final */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band .watermark {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  height: 340px;
  width: auto;
  opacity: .12;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 820px) { .cta-band .watermark { height: 260px; right: -110px; } }

/* Petit emblème centré en ornement de séparation entre deux sections */
.brand-rule {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 420px;
  margin: 0 auto;
}
.brand-rule::before,
.brand-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.brand-rule img { height: 34px; width: auto; opacity: .85; }

/* ---------- Bande de certifications ---------- */
.certif-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
}
.certif-badge {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: .95rem 1.3rem;
  box-shadow: var(--shadow-1);
  flex: 0 1 auto;
}
.certif-badge img { height: 46px; width: auto; object-fit: contain; }
.certif-badge img.logo-fluides { height: 64px; }
.certif-badge .mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--leaf-pale); color: var(--leaf);
  flex-shrink: 0;
}
.certif-badge .mark svg { width: 24px; height: 24px; }
.certif-badge .txt { display: flex; flex-direction: column; line-height: 1.25; }
.certif-badge .txt strong {
  font-family: var(--font-display);
  font-size: .98rem;
  color: var(--forest-2);
  letter-spacing: -.01em;
}
.certif-badge .txt span { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 540px) {
  .certif-strip { flex-direction: column; }
  .certif-badge { width: 100%; }
}

/* ---------- Attestation fluides frigorigènes ---------- */
/* Logo Cemafroid : toujours redimensionné de façon homothétique (règles d'usage de la marque). */
.attest-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.attest-block img { width: 100%; height: auto; }
.attest-block p { margin: 0 0 .7rem; }
.attest-logo-sm { display: block; width: 160px; height: auto; margin-top: 1rem; }
@media (max-width: 640px) {
  .attest-block { grid-template-columns: 1fr; gap: 1.2rem; }
  .attest-block img { max-width: 260px; }
}

/* ---------- Zone d'intervention détaillée ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 1rem;
  margin-top: .8rem;
}
.zone-list li {
  font-size: .93rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}
.zone-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--leaf);
}
@media (max-width: 720px) { .zone-grid { grid-template-columns: 1fr; } }

/* ---------- Bloc avis Google ---------- */
.google-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 2.2rem;
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.8rem;
}
.google-card .g-mark {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--paper-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.google-card .g-mark svg { width: 32px; height: 32px; }
.google-card h3 { margin-bottom: .3rem; }
.google-card p { margin-bottom: 0; font-size: .94rem; color: var(--ink-soft); }
.google-card .g-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 820px) {
  .google-card { grid-template-columns: auto 1fr; }
  .google-card .g-actions { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .google-card { grid-template-columns: 1fr; padding: 1.6rem; }
}

/* ---------- Étapes d'un chantier (page d'accueil) ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}
.step-card { position: relative; padding-top: .4rem; }
.step-card .n {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--leaf); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  margin-bottom: .9rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step-card p { font-size: .93rem; color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; max-width: 820px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--forest-2);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 11px; height: 11px;
  border-right: 2px solid var(--leaf);
  border-bottom: 2px solid var(--leaf);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-item .answer { padding: 0 1.4rem 1.2rem; }
.faq-item .answer p { margin-bottom: .6rem; font-size: .95rem; color: var(--ink-soft); }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- Barre d'appel fixe (mobile) ---------- */
.mobile-callbar { display: none; }
@media (max-width: 860px) {
  .mobile-callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(22,33,27,.10);
  }
  .mobile-callbar .btn { justify-content: center; padding: .8em 1em; font-size: .95rem; }
  /* Laisse la place à la barre pour ne pas masquer la fin du pied de page */
  body { padding-bottom: 74px; }
}

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal li { margin-bottom: .4rem; }
.legal dl { margin: 0 0 1.4rem; }
.legal dt { font-weight: 600; color: var(--ink); margin-top: .8rem; }
.legal dd { margin: .2rem 0 0; color: var(--ink-soft); }
/* Champs restant à renseigner avant la mise en ligne — volontairement voyants */
.todo {
  background: var(--danger-pale);
  color: var(--danger);
  font-weight: 600;
  padding: .12em .45em;
  border-radius: 4px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center-text { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Contact mis en avant (accueil) ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.contact-tile {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
  min-width: 0;
}
.contact-tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.contact-tile .ct-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--leaf-pale); color: var(--leaf);
  flex-shrink: 0;
}
.contact-tile .ct-icon svg { width: 24px; height: 24px; }
.contact-tile .ct-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.contact-tile .ct-label { font-size: .82rem; color: var(--ink-soft); }
.contact-tile strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--forest-2);
  overflow-wrap: anywhere;
}
.contact-tile strong.ct-email { font-size: .98rem; overflow-wrap: anywhere; }
.contact-tile-primary { background: var(--leaf); border-color: var(--leaf); }
.contact-tile-primary .ct-icon { background: rgba(255,255,255,.18); color: var(--white); }
.contact-tile-primary .ct-label { color: rgba(255,255,255,.85); }
.contact-tile-primary strong { color: var(--white); }
@media (max-width: 1100px) {
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .contact-tile-primary { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .contact-strip { grid-template-columns: 1fr; }
}
