/* =========================================================
   Clim-Tech 360 - Feuille de style principale
   ========================================================= */
:root {
  --navy: #0a2540;
  --navy-800: #0d2f52;
  --blue: #1479ff;
  --blue-dark: #0b5fd6;
  --cyan: #00d1c1;
  --cyan-dark: #00a99d;
  --warm: #ff7a59;
  --ink: #0f172a;
  --muted: #5b6b7f;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --line: #e4ebf2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
  --shadow: 0 14px 40px rgba(10, 37, 64, .10);
  --shadow-lg: 0 28px 70px rgba(10, 37, 64, .16);
  --grad: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  --grad-cyan: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--surface); }
.section--navy { background: var(--grad); color: #eaf2ff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #d6e8ff; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .78rem; font-weight: 700; color: var(--blue);
  background: rgba(20, 121, 255, .1); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #a9e9ff; background: rgba(255, 255, 255, .12); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  text-decoration: none !important; line-height: 1;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(20, 121, 255, .32); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--cyan { background: var(--cyan); color: var(--navy); box-shadow: 0 10px 24px rgba(0, 209, 193, .34); }
.btn--cyan:hover { background: var(--cyan-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--blue); color: var(--blue-dark); background: #fff; }
.btn--outline:hover { background: rgba(20, 121, 255, .07); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: #cfe0f5; font-size: .86rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar__info { display: flex; gap: 20px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.18rem; text-decoration: none !important; }
.brand__logo { width: 80px; height: 60px; border-radius: 12px; }
.brand__logo--lg { width: 150px; height: 110px; }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .97rem; }
.nav a:hover { background: rgba(20, 121, 255, .08); color: var(--blue-dark); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue-dark); background: rgba(20, 121, 255, .1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad); color: #eaf2ff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 400px at 85% -10%, rgba(0, 209, 193, .35), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero p { color: #d5e6fb; font-size: 1.2rem; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: #cfe0f5; font-size: .92rem; }
.hero__badges strong { display: block; font-size: 1.5rem; color: #fff; }
.hero__media { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; gap: 30px; }
}

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .22s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-cyan); color: #fff; font-size: 1.6rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__price { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-top: 14px; }

/* ---------- Features list ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--cyan);
  color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat strong { display: block; font-size: 2.4rem; color: var(--cyan); font-weight: 800; line-height: 1; }
.stat span { color: #cfe0f5; font-size: .92rem; }

/* ---------- Zones ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a, .chips span {
  display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: .9rem; color: var(--ink); font-weight: 600;
}
.chips a:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }

/* ---------- Split media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split--rev .split__media { order: 0; } }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 12px; }
.quote p { font-style: italic; color: var(--ink); }
.quote__author { font-weight: 700; color: var(--navy); font-style: normal; margin-top: auto; }
.quote__stars { color: #f5a623; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-cyan); color: var(--navy); border-radius: 24px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy); margin: 0; }
.cta-band p { margin: 6px 0 0; font-weight: 600; }

/* ---------- Forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--warm); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(20, 121, 255, .14); }
.field textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.form__note { font-size: .85rem; color: var(--muted); }
.form__status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form__status.ok { display: block; background: rgba(0, 209, 193, .14); color: var(--cyan-dark); }

/* ---------- Blog ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .22s ease; height: 100%; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { font-size: .82rem; color: var(--muted); font-weight: 600; }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.post-card .btn { align-self: flex-start; margin-top: auto; }

.article { max-width: 800px; margin: 0 auto; }
.article__hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow); }
.article__hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article__meta { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 24px; }
.article__body h2 { margin-top: 1.6em; }
.article__body h3 { margin-top: 1.3em; }
.article__body img { border-radius: var(--radius-sm); margin: 24px 0; box-shadow: var(--shadow-sm); }
.article__body figure { margin: 26px 0; }
.article__body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.article__body blockquote { border-left: 4px solid var(--cyan); margin: 24px 0; padding: 6px 20px; background: #fff; border-radius: 0 12px 12px 0; color: var(--navy); font-style: italic; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 30px; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.breadcrumb a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cde6; padding: 60px 0 24px; font-size: .94rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #b9cde6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8fa9c7; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Cookie banner (RGPD) ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999;
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px;
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  border-top: 4px solid var(--cyan);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner h2 { font-size: 1.1rem; margin: 0 0 6px; }
.cookie-banner p { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions .btn { padding: 11px 18px; font-size: .92rem; }
.cookie-banner__link { margin-top: 12px; font-size: .82rem; }
.cookie-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(10, 37, 64, .55); padding: 20px; overflow-y: auto;
}
.cookie-modal.is-open { display: block; }
.cookie-modal__box {
  max-width: 540px; margin: 40px auto; background: #fff; border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow-lg);
}
.cookie-modal__box h2 { margin-top: 0; }
.cookie-cat { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-cat h3 { margin: 0 0 4px; font-size: 1rem; }
.cookie-cat p { font-size: .86rem; color: var(--muted); margin: 0; }
.switch { position: relative; width: 48px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--cyan); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:disabled + span { background: var(--blue); opacity: .55; cursor: not-allowed; }
.cookie-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Utilities ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 18px; z-index: 200; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
