/* ==========================================================================
   Climatisation Express — global.css
   Shared across every page. Poppins. Light mode only.
   Palette encodes the réversible duality: cool frost-blue + warm ember.
   ========================================================================== */

:root {
  /* Cool side — climatisation */
  --ink:        #0A2540;
  --ink-soft:   #1B3A57;
  --frost:      #1E9BD7;
  --frost-deep: #0E6BA8;
  --frost-soft: #E3F2FB;

  /* Warm side — chauffage / pompe à chaleur / conversion CTA */
  --ember:      #FF6A3D;
  --ember-deep: #ED5226;
  --ember-soft: #FFE7DE;

  /* Neutrals */
  --paper:  #FFFFFF;
  --mist:   #F2F8FC;
  --line:   #DCE6EE;
  --text:   #46586A;
  --muted:  #7C8D9C;

  --green:  #1FA463; /* WhatsApp + success */

  --radius:   18px;
  --radius-sm:12px;
  --radius-lg:28px;

  --shadow-sm: 0 2px 10px rgba(10,37,64,.06);
  --shadow:    0 18px 44px -22px rgba(10,37,64,.28);
  --shadow-lg: 0 40px 80px -30px rgba(10,37,64,.40);

  --wrap: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 700; color: var(--ink); }

h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--frost-deep);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--frost) 50%, var(--ember) 50%);
  box-shadow: 0 0 0 4px var(--frost-soft);
}

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: .98rem;
  padding: 15px 26px; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary {
  background: var(--ember); color: #fff;
  box-shadow: 0 14px 26px -12px rgba(255,106,61,.8);
}
.btn-primary:hover { background: var(--ember-deep); transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(255,106,61,.85); }
.btn-ghost {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--frost); color: var(--frost-deep); transform: translateY(-2px); }
.btn-frost { background: var(--frost-deep); color: #fff; box-shadow: 0 14px 26px -14px rgba(14,107,168,.85); }
.btn-frost:hover { background: var(--ink); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ----- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; max-width: 1280px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }
.brand-sub { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--frost-deep); }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 100px;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.is-active { background: var(--frost-soft); color: var(--frost-deep); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 10px; }
.header-phone .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--frost-soft); display: grid; place-items: center; color: var(--frost-deep); }
.header-phone .ico svg { width: 18px; height: 18px; }
.header-phone .lbl { line-height: 1.1; }
.header-phone .lbl small { display: block; font-size: .66rem; color: var(--muted); letter-spacing: .04em; }
.header-phone .lbl b { font-size: 1.02rem; color: var(--ink); font-weight: 700; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 2px; position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #cfdcea; padding: 72px 0 30px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #7fb6dd; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: .94rem; color: #9fb3c7; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: .94rem; color: #b9c8d8; transition: color .2s; }
.footer-col a:hover { color: var(--frost); }
.footer-zones { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-zones a { background: rgba(255,255,255,.06); padding: 6px 13px; border-radius: 100px; font-size: .85rem; }
.footer-contact-line { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; font-size: .95rem; }
.footer-contact-line svg { width: 18px; height: 18px; color: var(--frost); flex-shrink: 0; }
.footer-contact-line b { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #8aa0b5; }

/* ----- Floating WhatsApp (desktop / tablet only) ------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 26px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -10px rgba(31,164,99,.7);
  animation: waPulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.07); }
@keyframes waPulse {
  0%   { box-shadow: 0 16px 34px -10px rgba(31,164,99,.7), 0 0 0 0 rgba(31,164,99,.45); }
  70%  { box-shadow: 0 16px 34px -10px rgba(31,164,99,.7), 0 0 0 16px rgba(31,164,99,0); }
  100% { box-shadow: 0 16px 34px -10px rgba(31,164,99,.7), 0 0 0 0 rgba(31,164,99,0); }
}

/* ----- Sticky mobile CTA bar --------------------------------------------- */
.mobile-cta { display: none; }

/* ----- Section scaffolding ----------------------------------------------- */
.section { padding: 84px 0; }
.section-tight { padding: 60px 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { margin-top: 16px; font-size: 1.05rem; }
.bg-mist { background: var(--mist); }

/* ----- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}

/* ----- Responsive: header + footer + floating elements ------------------- */

/* Tight on space: drop the phone text block first (button + nav remain). */
@media (max-width: 1280px) {
  .header-phone { display: none; }
}

/* Not enough room for the full menu: switch to the hamburger.
   Button stays visible and groups with the toggle on the right. */
@media (max-width: 1120px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* On phones the bottom sticky bar carries the CTAs, so free up the header
     row for the brand + hamburger only. */
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }

  /* Compact brand so it never collides with the toggle, down to 320px. */
  .brand-sub { display: none; }
  .brand-name { font-size: 1.02rem; }
  .brand-mark { width: 38px; height: 38px; }

  /* Hide floating WhatsApp on mobile to avoid duplication with sticky bar */
  .wa-float { display: none; }

  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -16px rgba(10,37,64,.35);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 10px; font-weight: 600; font-size: .96rem;
  }
  .mobile-cta a svg { width: 19px; height: 19px; }
  .mobile-cta .mc-call { background: var(--ember); color: #fff; }
  .mobile-cta .mc-wa  { background: var(--green); color: #fff; }
  body { padding-bottom: 56px; }
}
