/* ==========================================================
   LABEL CLIMAT — feuille de style principale
   Organisée en sections : variables, base, layout, composants,
   pages spécifiques, responsive.
   ========================================================== */

:root {
  --color-primary: #1c4f8c;      /* bleu principal (confiance, pro) */
  --color-primary-dark: #123963;
  --color-secondary: #3fa9f5;    /* bleu clair, tiré du logo */
  --color-accent: #d6362e;       /* rouge adouci, réservé aux CTA */
  --color-accent-dark: #b32a23;
  --color-dark: #222831;
  --color-text: #3a3f47;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f8fb;
  --color-border: #e2e8f0;

  --font-main: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1140px;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(28, 79, 140, 0.08);
}

* { box-sizing: border-box; }

/* Coin bleu-blanc-rouge — clin d'œil "Made in France" */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0055A4 0%, #0055A4 16.6%, #ffffff 16.6%, #ffffff 33.3%, #EF4135 33.3%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 999;
  pointer-events: none;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

/* ---------- Bouton WhatsApp flottant ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 997;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 760px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}

/* ---------- Bulle d'accueil (assistante) ---------- */
.chat-bubble {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 996;
  animation: bubble-in 0.4s ease;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble-link {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-dark);
}
.chat-bubble-link:hover { color: var(--color-dark); }
.chat-bubble-link img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-secondary);
}
.chat-bubble-text { font-size: 0.82rem; line-height: 1.35; font-weight: 500; }
.chat-bubble-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  color: #667085;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 760px) {
  .chat-bubble { bottom: 84px; right: 16px; }
  .chat-bubble-link { max-width: 210px; padding: 10px 14px; }
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  color: var(--color-dark);
  line-height: 1.25;
  margin-top: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-header .eyebrow {
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.section-header h2 { font-size: 2rem; margin: 8px 0 12px; }
.section-header .eyebrow-lg { font-size: 1.3rem; letter-spacing: normal; text-transform: none; color: var(--color-primary); display: block; }
.section-header p { color: #667085; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary:hover { background: var(--color-primary-dark); color: #fff; }

/* ---------- Bandeau top (téléphone) ---------- */
.top-bar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: #fff; }
.top-bar a:hover { color: var(--color-secondary); }
.top-bar .top-links span { margin-right: 18px; }

/* ---------- Header / Navigation ---------- */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo img { height: 92px; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--color-accent); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary) 70%);
  color: #fff;
  padding: 48px 0;
}
.hero .container { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-text { flex: 1 1 460px; }
.hero-image { flex: 1 1 380px; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 16px; }
.hero p { font-size: 1.1rem; color: #dce8f5; margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Cartes services ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card.card-photo { padding: 0; overflow: hidden; }
.card.card-photo img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
}
.card.card-photo .card-photo-body { padding: 24px; }
.card.card-photo .icon { margin-top: 0; }

.section-photo {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
  height: 320px;
}

.grid-center { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-center .card { flex: 1 1 260px; max-width: 340px; }

.card .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: #667085; font-size: 0.95rem; margin-bottom: 0; }
.card a.card-link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* ---------- Public cible (syndics / particuliers / tertiaire) ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.audience-card {
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
}
.audience-card.syndic { background: var(--color-primary); }
.audience-card.particulier { background: var(--color-accent); }
.audience-card.tertiaire { background: var(--color-primary-dark); }
.audience-card h3 { color: #fff; }
.audience-card ul { padding-left: 20px; margin: 16px 0; }
.audience-card li { margin-bottom: 8px; }

/* ---------- Chiffres clés ---------- */
.stats { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px; text-align: center; }
.stats .stat strong { display: block; font-size: 2.2rem; color: var(--color-primary); }
.stats .stat span { color: #667085; font-size: 0.9rem; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3e1; margin-bottom: 24px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.blog-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-card img { height: 180px; width: 100%; object-fit: cover; object-position: center; }
.blog-card .blog-content { padding: 20px; }
.blog-card .date { color: var(--color-secondary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.blog-card h3 { font-size: 1.1rem; margin: 8px 0 10px; }
.blog-card p { color: #667085; font-size: 0.92rem; }

article.blog-post { max-width: 760px; margin: 0 auto; }
article.blog-post .post-meta { color: var(--color-secondary); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 8px; }
article.blog-post h1 { font-size: 2.1rem; }
article.blog-post img.cover { border-radius: var(--radius); margin: 24px 0; }
article.blog-post h2 { margin-top: 32px; }
article.blog-post ul { padding-left: 22px; }

/* ---------- Formulaire de contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .info-item .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--color-bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-info .info-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-info .info-item p, .contact-info .info-item a { margin: 0; color: #667085; }

form.contact-form { background: var(--color-bg-alt); padding: 32px; border-radius: var(--radius); }
form.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}
form.contact-form textarea { resize: vertical; min-height: 120px; }
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}
.form-note { font-size: 0.82rem; color: #94a0b3; margin-top: -6px; }

.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 32px; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Page interne : bandeau titre ---------- */
.page-hero {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .breadcrumb { color: #a9c4e0; font-size: 0.9rem; }
.page-hero .breadcrumb a { color: #a9c4e0; }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ---------- Réalisations ---------- */
.realisation-card img { border-radius: var(--radius) var(--radius) 0 0; height: 200px; width: 100%; object-fit: cover; object-position: center; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-dark);
  color: #b8bfc9;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
footer.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 10px; }
footer.site-footer a { color: #b8bfc9; }
footer.site-footer a:hover { color: var(--color-secondary); }
footer.site-footer .logo img { height: 46px; margin-bottom: 14px; filter: brightness(0) invert(1); }
footer.site-footer p.tagline { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #3a3f47;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-layout, .audience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 16px 20px; gap: 4px; }
  nav.main-nav li { border-bottom: 1px solid var(--color-border); }
  nav.main-nav a { display: block; padding: 12px 0; }
  .nav-actions .btn { display: none; }
  .hero h1 { font-size: 2rem; }
  .top-bar .container { justify-content: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
