/* ═══════════════════════════════════════════════════════════════════════════
   KC Plomberie Chauffage — Feuille de style principale
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --blue-900:    #1e3a5f;
  --blue-700:    #1d4ed8;
  --blue-600:    #2563eb;
  --blue-500:    #3b82f6;
  --blue-100:    #dbeafe;
  --orange-500:  #f97316;
  --orange-600:  #ea580c;
  --dark:        #0f172a;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --bg:          #ffffff;
  --bg-light:    #f8fafc;
  --bg-section:  #f1f5f9;
  --border:      #e2e8f0;
  --success:     #16a34a;
  --success-bg:  #dcfce7;
  --error:       #dc2626;
  --error-bg:    #fee2e2;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 2px 0 rgb(0 0 0/.05);
  --shadow:      0 1px 3px 0 rgb(0 0 0/.1), 0 1px 2px -1px rgb(0 0 0/.1);
  --shadow-md:   0 4px 6px -1px rgb(0 0 0/.1), 0 2px 4px -2px rgb(0 0 0/.1);
  --shadow-lg:   0 10px 15px -3px rgb(0 0 0/.1), 0 4px 6px -4px rgb(0 0 0/.1);
  --transition:  all .2s ease;
  --header-h:    72px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-700); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Conteneur ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Boutons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9375rem;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.btn-lg  { padding: .8rem 2rem; font-size: 1.0625rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.btn-primary:hover { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

.btn-accent { background: var(--orange-500); color: #fff; border-color: var(--orange-500); }
.btn-accent:hover { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-700); color: #fff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.75rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.0625rem; color: var(--blue-900); }
.logo-text small  { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.logo-img { height: 56px; width: auto; max-width: 220px; object-fit: contain; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a {
  display: block;
  padding: .5rem .875rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: .9375rem;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-700);
  background: var(--blue-100);
}

.header-phone { margin-left: 1rem; font-size: .875rem; }
.header-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
body { padding-top: var(--header-h); }

/* ─── Sections génériques ────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.bg-light { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--dark); margin-bottom: .75rem; }
.section-header p  { font-size: 1.0625rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 2.5rem; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: .875rem; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(90vh, 720px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-900) 0%, #0c2340 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 50%, rgba(59,130,246,.12) 0%, transparent 70%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 5rem 1.25rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,.15);
  color: #fbbf24;
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
}
.hero-trust span { display: flex; align-items: center; gap: .4rem; }

/* ─── Page hero (intérieur) ──────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, #0c2340 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.25rem;
}
.page-hero-sm { padding: 3.5rem 1.25rem; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: .75rem; }
.page-hero p  { font-size: 1.0625rem; color: rgba(255,255,255,.8); }

/* ─── Services (grille homepage) ─────────────────────────────────────────────── */
.section-services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue-700);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.125rem; margin-bottom: .625rem; color: var(--dark); }
.service-card p  { color: var(--text-muted); font-size: .9375rem; line-height: 1.65; }

/* ─── Services (page services) ──────────────────────────────────────────────── */
.services-list { display: flex; flex-direction: column; gap: 4rem; }
.service-full {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  align-items: start;
}
.service-full-reverse { direction: rtl; }
.service-full-reverse > * { direction: ltr; }
.service-full-icon {
  width: 120px; height: 120px;
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-700);
  flex-shrink: 0;
}
.service-full-icon svg { width: 56px; height: 56px; }
.service-full-body h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark); }
.service-full-body p  { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }

/* ─── About ──────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--dark); margin-bottom: 1rem; }
.about-text > p { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; font-size: 1.0625rem; }
.about-list { display: flex; flex-direction: column; gap: 1.25rem; }
.about-list li { display: flex; gap: 1rem; align-items: flex-start; }
.about-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .2rem; }
.about-list strong { display: block; color: var(--dark); margin-bottom: .25rem; }
.about-list p { color: var(--text-muted); font-size: .9375rem; margin: 0; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow-md); }
.stat-number { display: block; font-size: 2.25rem; font-weight: 800; color: var(--blue-700); }
.stat-label  { display: block; font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }

/* ─── Gallery ────────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-grid-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--bg);
}
.gallery-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.gallery-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-section); }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-card:hover .gallery-img img { transform: scale(1.05); }
.gallery-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.gallery-info { padding: 1.25rem; }
.gallery-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .625rem;
  border-radius: 50px;
  margin-bottom: .625rem;
}
.gallery-info h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--dark); }
.gallery-info p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Filtres ────────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.filter-btn:hover  { border-color: var(--blue-500); color: var(--blue-700); }
.filter-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.filter-count {
  background: rgba(0,0,0,.08);
  border-radius: 50px;
  padding: 0 .4rem;
  font-size: .75rem;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,.25); }

/* ─── CTA Contact ───────────────────────────────────────────────────────────── */
.section-cta-contact {
  background: linear-gradient(135deg, var(--blue-900) 0%, #0c2340 100%);
  color: #fff;
}
.cta-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 4rem 1.25rem;
}
.cta-contact-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .625rem; }
.cta-contact-text p  { color: rgba(255,255,255,.75); font-size: 1rem; }
.cta-contact-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ─── Contact page ───────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.contact-form-wrapper h2,
.contact-info h2 { font-size: 1.375rem; margin-bottom: 1.5rem; color: var(--dark); }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-details li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-detail-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .125rem; }
.contact-details strong { display: block; color: var(--dark); font-size: .875rem; margin-bottom: .125rem; }
.contact-details a, .contact-details span { color: var(--text-muted); font-size: .9375rem; }
.contact-hours { background: var(--bg-light); border-radius: var(--radius); padding: 1.25rem; }
.contact-hours h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--dark); }
.contact-hours table { width: 100%; border-collapse: collapse; }
.contact-hours td { padding: .35rem 0; font-size: .875rem; color: var(--text-muted); }
.contact-hours td:last-child { text-align: right; }

/* ─── Formulaires ────────────────────────────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1.25rem; }
.form-group label { font-weight: 600; font-size: .875rem; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .625rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .8125rem; }
.required { color: var(--error); }

/* ─── Flash messages ─────────────────────────────────────────────────────────── */
.flash {
  padding: .875rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: .9375rem;
}
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid #bbf7d0; }
.flash-error   { background: var(--error-bg);   color: var(--error);   border: 1px solid #fecaca; }

/* ─── Empty state ────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
  font-size: 1rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .9375rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { font-size: .875rem; line-height: 1.7; margin-bottom: .5rem; }
.footer-legal { font-size: .8125rem; color: rgba(255,255,255,.4); }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo .logo-icon { font-size: 1.5rem; }
.footer-logo strong { color: #fff; font-size: 1rem; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .75rem; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .2rem; color: var(--blue-500); }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,.65); font-size: .9375rem; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.4); text-align: center; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .main-nav, .header-phone {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
  }
  .main-nav ul { flex-direction: column; }
  .header-phone { margin: 0; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .service-full { grid-template-columns: 1fr; }
  .service-full-icon { width: 80px; height: 80px; }
  .service-full-icon svg { width: 36px; height: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-contact-inner { text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ─── Pages dynamiques ───────────────────────────────────────────────────────── */
.main-content { padding: 3rem 0 4rem; }
.page-article { max-width: 800px; margin: 0 auto; }
.page-article-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.page-article-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--dark); line-height: 1.2; }
.page-article-body { line-height: 1.8; color: var(--text); }
.page-article-body p { margin-bottom: 1.25rem; }
.page-article-body h2 { font-size: 1.5rem; color: var(--dark); margin: 2rem 0 .75rem; }
.page-article-body h3 { font-size: 1.2rem; color: var(--dark); margin: 1.5rem 0 .5rem; }
.page-article-body ul, .page-article-body ol { margin: 0 0 1.25rem 1.5rem; }
.page-article-body li { margin-bottom: .4rem; }
.page-article-body a { color: var(--primary); }
.page-article-body a:hover { text-decoration: underline; }

/* ─── Réseaux sociaux footer ─────────────────────────────────────────────────── */
.footer-social { margin-top: 1.25rem; }
.footer-social h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .6rem; font-weight: 600; }
.social-icons { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #cbd5e1;
  transition: background .2s, color .2s, transform .15s;
  text-decoration: none;
}
.social-icon svg { width: 14px; height: 14px; }
.social-icon:hover { transform: translateY(-2px); color: #fff; }
.social-icon.social-facebook:hover  { background: #1877f2; }
.social-icon.social-instagram:hover { background: #e1306c; }
.social-icon.social-youtube:hover   { background: #ff0000; }
.social-icon.social-tiktok:hover    { background: #010101; }
.social-icon.social-linkedin:hover  { background: #0a66c2; }
.social-icon.social-twitter:hover   { background: #000; }

/* ─── Anti-spam : honeypot + obfuscation coordonnées ────────────────────────── */
/* Honeypot : positionné hors écran, invisible pour les humains */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Placeholder affiché avant que le JS décode les coordonnées */
.obf-placeholder {
  color: var(--text-muted);
  font-style: italic;
  font-size: .875rem;
}

/* ─── Galerie vidéo ──────────────────────────────────────────────────────────── */
.gallery-img-video {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.gallery-img-video img {
  transition: transform .3s ease, filter .3s ease;
  display: block;
  width: 100%;
}
.gallery-img-video:hover img,
.gallery-img-video:focus img {
  transform: scale(1.04);
  filter: brightness(.75);
}
.gallery-img-video:focus {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.video-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue-900);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s, background .2s;
  padding-left: 4px; /* compense optiquement le triangle */
}
.gallery-img-video:hover .video-play-btn,
.gallery-img-video:focus .video-play-btn {
  transform: scale(1.12);
  background: #fff;
}

/* ─── Modal lecteur vidéo ────────────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInModal .2s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.video-modal-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}
.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.video-modal-close:hover { background: rgba(255,255,255,.3); }

/* ─── Bandeau consentement cookies (RGPD) ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--dark);
  color: #e2e8f0;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  animation: cookieBannerIn .3s ease;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 220px;
}
.cookie-banner-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .25rem;
  color: #fff;
}
.cookie-banner-text p {
  font-size: .85rem;
  color: #94a3b8;
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept { min-width: 130px; }
.cookie-btn-refuse  { min-width: 110px; background: transparent; color: #cbd5e1; border-color: #475569; }
.cookie-btn-refuse:hover { background: #1e293b; color: #fff; border-color: #94a3b8; }

/* ─── Footer bottom avec lien cookies ───────────────────────────────────────── */
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-manage-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
  transition: color .2s;
}
.cookie-manage-link:hover { color: #cbd5e1; }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-refuse { flex: 1; }
}

/* ─── Avis clients ───────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.review-content {
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.review-author strong {
  display: block;
  font-size: .95rem;
  color: var(--blue-900);
}
.review-author span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ─── Page devis ─────────────────────────────────────────────────────────────── */
.container-narrow { max-width: 780px; }

.devis-intro {
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.devis-intro-items {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--blue-900);
  font-weight: 500;
  font-size: .9rem;
}

.devis-form { padding: 2rem; }
.form-section { margin-bottom: 2rem; }
.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-900);
  border-bottom: 2px solid var(--blue-100);
  padding-bottom: .5rem;
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-legal {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

.devis-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.devis-success-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.devis-success h2   { color: var(--success); margin-bottom: 1rem; }
.devis-success p    { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 440px; margin-inline: auto; }

/* ─── Bouton appel flottant (mobile uniquement) ──────────────────────────────── */
.float-call-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  background: var(--orange-500);
  color: #fff;
  border-radius: 50px;
  padding: .85rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(249, 115, 22, .45);
  align-items: center;
  gap: .5rem;
  transition: background .2s, transform .2s, box-shadow .2s;
  animation: float-pulse 2.5s ease-in-out infinite;
}
.float-call-btn:hover {
  background: var(--orange-600);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(249, 115, 22, .55);
}
.float-call-btn svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(249, 115, 22, .45); }
  50%       { box-shadow: 0 6px 30px rgba(249, 115, 22, .65); }
}
@media (max-width: 768px) {
  .float-call-btn { display: flex; }
  /* Éviter que le bouton flottant cache le contenu en bas */
  body { padding-bottom: 5rem; }
}

/* ─── Footer liens légaux ────────────────────────────────────────────────────── */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-legal-links a,
.footer-legal-links .cookie-manage-link {
  color: #94a3b8;
  font-size: .8rem;
  transition: color .2s;
}
.footer-legal-links a:hover { color: #cbd5e1; }
.footer-legal-links span[aria-hidden] { color: #475569; }
@media (max-width: 600px) {
  .footer-bottom-inner { flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
  .footer-legal-links  { justify-content: center; }
}

/* ─── Pages légales ──────────────────────────────────────────────────────────── */
.legal-page {
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.legal-page h2 {
  font-size: 1.25rem;
  color: var(--blue-900);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  border-left: 4px solid var(--blue-600);
  padding-left: .75rem;
}
.legal-page h3 {
  font-size: 1rem;
  color: var(--blue-900);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.legal-page p  { margin-bottom: 1rem; line-height: 1.8; }
.legal-date    { color: var(--text-muted); font-size: .85rem; margin-bottom: 2rem; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .9rem;
}
.legal-table th,
.legal-table td { padding: .65rem 1rem; border: 1px solid var(--border); text-align: left; }
.legal-table th  { background: var(--blue-100); color: var(--blue-900); font-weight: 600; }
.legal-table tr:nth-child(even) { background: var(--bg-light); }
.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-list li { margin-bottom: .4rem; line-height: 1.7; }

/* ─── Page Urgence ───────────────────────────────────────────────────────────── */
.hero-urgence { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #1e3a5f 100%); }
.urgence-badge {
  display: inline-block;
  background: rgba(239,68,68,.9);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  letter-spacing: .5px;
  animation: urgence-blink 1.5s ease-in-out infinite;
}
@keyframes urgence-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .7; }
}
.urgence-highlight { color: #fca5a5; }
.urgence-call-btn { font-size: 1.15rem !important; padding: 1rem 2.5rem !important; }

.urgence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.urgence-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}
.urgence-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.urgence-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.urgence-card h3 { font-size: 1.1rem; color: var(--blue-900); margin-bottom: .5rem; }
.urgence-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

.urgence-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.urgence-reason { display: flex; gap: 1.25rem; align-items: flex-start; }
.urgence-reason-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-100);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}
.urgence-reason h3 { font-size: 1rem; color: var(--blue-900); margin-bottom: .4rem; }
.urgence-reason p  { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

.urgence-cta { background: var(--blue-900); color: #fff; }
.urgence-cta .cta-contact-text h2 { color: #fff; }
.urgence-cta .cta-contact-text p  { color: #cbd5e1; }

/* ─── Zones d'intervention ───────────────────────────────────────────────────── */
.section-zones { background: var(--bg-section); }
.zones-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 640px) { .zones-home-grid { grid-template-columns: 1fr; } }
.zones-home-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: .9rem;
}
.zones-home-card strong { font-size: 1.1rem; }
.zones-home-badge {
  background: rgba(255,255,255,.2);
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.zones-home-1 { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.zones-home-2 { background: linear-gradient(135deg, #ea580c, #c2410c); }
.zones-home-3 { background: linear-gradient(135deg, #1d4ed8, #1e40af); }

.zones-intro   { max-width: 720px; margin-bottom: 2.5rem; }
.zones-intro p { margin-bottom: .75rem; line-height: 1.8; }
.zones-phone   { font-weight: 700; color: var(--orange-500); font-size: 1.1rem; }

.zones-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.zones-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  flex: 1;
  min-width: 160px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.zones-stat-icon { font-size: 1.75rem; margin-bottom: .25rem; }
.zones-stat strong { color: var(--blue-900); font-size: 1rem; }
.zones-stat span   { font-size: .8rem; color: var(--text-muted); }

/* Cercles de zone */
.zones-circles {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem auto;
  width: 360px;
  height: 360px;
  max-width: 100%;
}
.zones-circle {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255,255,255,.4);
}
.zones-circle-1 { width: 140px; height: 140px; background: rgba(220,38,38,.15); border-color: #dc2626; z-index: 3; }
.zones-circle-2 { width: 240px; height: 240px; background: rgba(234,88,12,.08); border-color: #ea580c; z-index: 2; }
.zones-circle-3 { width: 340px; height: 340px; background: rgba(29,78,216,.05); border-color: #1d4ed8; z-index: 1; }
.zones-circle-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.zones-circle-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.zones-circle-time  { font-size: 1.1rem; font-weight: 900; color: var(--blue-900); }
.zones-circle-urgence { font-size: .7rem; color: var(--text-muted); }

/* ─── Listes communes zones d'intervention ───────────────────────────────────── */
.zones-lists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.zones-list {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.zones-list h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  color: var(--blue-900);
}
.zones-list-1 { border-top: 3px solid #dc2626; }
.zones-list-2 { border-top: 3px solid #ea580c; }
.zones-list-3 { border-top: 3px solid #1d4ed8; }
.zones-list ul { list-style: none; }
.zones-list ul li {
  padding: .3rem 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.zones-list ul li::before {
  content: '✓';
  color: var(--success);
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
