/* ==========================================================================
   ATELIER LEFÈVRE — Artisan Plombier (Lille, Nord 59)
   Direction Artistique 2026 : Bleu Nuit, Blanc Cassé & Touches de Cuivre
   Palette :
   - Bleu nuit : #070F1B / #0B1626 / #122238
   - Blanc cassé : #F7F5F0 / #FCFBF8 / #ECE8DF
   - Cuivre : #C4572A / #A6441C / #DF7A4B
   Typographies : Plus Jakarta Sans & Fraunces (accent éditorial)
   ========================================================================== */

:root {
  --navy-deep: #070F1B;
  --navy: #0B1626;
  --navy-card: #122238;
  --navy-hover: #182C47;

  --bg-offwhite: #F7F5F0;
  --bg-chalk: #FCFBF8;
  --bg-stone: #ECE8DF;

  --ink-main: #0B1626;
  --ink-body: #3A4656;
  --ink-muted: #647182;
  --ink-light: #F7F5F0;
  --ink-light-muted: rgba(247, 245, 240, 0.78);

  --copper: #C4572A;
  --copper-hover: #A6441C;
  --copper-bright: #DF7A4B;
  --copper-soft: rgba(196, 87, 42, 0.1);
  --copper-border: rgba(196, 87, 42, 0.32);
  --brass: #D4A373;

  --rule-light: rgba(11, 22, 38, 0.1);
  --rule-medium: rgba(11, 22, 38, 0.18);
  --rule-dark: rgba(247, 245, 240, 0.14);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 4px 14px -6px rgba(11, 22, 38, 0.08);
  --shadow-card: 0 16px 36px -14px rgba(11, 22, 38, 0.1), 0 2px 6px rgba(11, 22, 38, 0.04);
  --shadow-lift: 0 24px 48px -16px rgba(11, 22, 38, 0.16);
  --shadow-copper: 0 14px 28px -10px rgba(196, 87, 42, 0.48);

  --container: 1220px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background-color: var(--bg-offwhite);
  color: var(--ink-main);
  font-family: var(--font-sans);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  background-color: var(--bg-offwhite);
  color: var(--ink-main);
  overflow-x: clip;
  padding-bottom: 4.75rem;
}

@media (min-width: 901px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

ul,
ol {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  background-color: var(--copper);
  color: #FFFFFF;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ================= BANDEAU INTÉGRATION WEBSPACE STUDIO ================= */
.studio-ribbon {
  background-color: var(--navy-deep);
  color: rgba(247, 245, 240, 0.78);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-ribbon-inner {
  min-height: 40px;
  padding: 0.45rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.studio-ribbon-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.studio-ribbon-left strong {
  color: #FFFFFF;
}

.studio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #3B82F6;
  flex-shrink: 0;
}

.studio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #FFFFFF;
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 999px;
  padding: 0.24rem 0.78rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.studio-back-link:hover {
  background-color: #2563EB;
  border-color: #3B82F6;
}

.studio-back-link svg {
  width: 14px;
  height: 14px;
}

/* ================= HEADER COLLANT BLEU NUIT ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(11, 22, 38, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--ink-light);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(11, 22, 38, 0.98);
  box-shadow: 0 12px 32px -16px rgba(7, 15, 27, 0.55);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.brand-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(247, 245, 240, 0.82);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(247, 245, 240, 0.78);
  padding: 0.45rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--copper-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: #FFFFFF;
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  border: 1px solid rgba(223, 122, 75, 0.45);
  padding: 0.48rem 1rem;
  border-radius: var(--radius-sm);
}

.header-phone-btn:hover {
  background-color: var(--copper);
  border-color: var(--copper);
  transform: translateY(-1px);
}

.header-phone-btn svg {
  width: 18px;
  height: 18px;
  color: var(--copper-bright);
  flex-shrink: 0;
}

.header-phone-btn:hover svg {
  color: #FFFFFF;
}

.phone-btn-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.phone-btn-copy strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.phone-btn-copy small {
  font-size: 0.69rem;
  color: rgba(247, 245, 240, 0.86);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  background-color: var(--navy-card);
  border-top: 1px solid var(--rule-dark);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.15rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  color: var(--ink-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-back-studio {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #93C5FD;
  padding: 0.4rem;
}

/* ================= BOUTONS HAUT DE GAMME ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn-xl {
  padding: 0.95rem 1.5rem;
  font-size: 0.96rem;
}

.btn-lg {
  padding: 0.88rem 1.35rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

.btn-copper {
  background: linear-gradient(180deg, #CF6133 0%, var(--copper) 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-copper), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-copper:hover {
  background: linear-gradient(180deg, #C4572A 0%, var(--copper-hover) 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -10px rgba(196, 87, 42, 0.56);
}

.btn-glass-light {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--ink-light);
  border-color: rgba(247, 245, 240, 0.24);
}

.btn-glass-light:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(247, 245, 240, 0.48);
  transform: translateY(-2px);
}

/* ================= 1. ACCUEIL BLEU NUIT & CUIVRE ================= */
.hero-section {
  position: relative;
  padding: clamp(3rem, 5.5vw, 5rem) 0 clamp(3.75rem, 6.5vw, 5.75rem);
  background-color: var(--navy);
  background-image:
    linear-gradient(to right, rgba(247, 245, 240, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 245, 240, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink-light);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px circle at 84% 22%, rgba(196, 87, 42, 0.22), transparent 62%),
    radial-gradient(560px circle at 12% 88%, rgba(59, 130, 246, 0.14), transparent 60%);
  pointer-events: none;
}

.hero-blueprint-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-piping-svg {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-stage {
  position: relative;
  z-index: 2;
}

.hero-spec-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.14);
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFFFFF;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--copper-bright);
  box-shadow: 0 0 0 4px rgba(223, 122, 75, 0.22);
  flex-shrink: 0;
}

.spec-meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(247, 245, 240, 0.82);
}

.hero-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.78fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: end;
}

.hero-title {
  font-size: clamp(2.25rem, 4.3vw, 3.7rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1.45rem;
}

.text-copper {
  display: block;
  margin-top: 0.14em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--copper-bright);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-light-muted);
  max-width: 600px;
  line-height: 1.68;
  margin-bottom: 2.1rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-call-btn {
  text-align: left;
  padding: 0.82rem 1.4rem;
}

.hero-call-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.hero-call-btn strong {
  font-variant-numeric: tabular-nums;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hero-call-btn small {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.92;
}

/* Panneau d'engagements latéral en bleu nuit translucide */
.hero-aside-panel {
  background: linear-gradient(180deg, rgba(18, 34, 56, 0.82) 0%, rgba(18, 34, 56, 0.56) 100%);
  border: 1px solid rgba(247, 245, 240, 0.14);
  border-top: 2px solid var(--copper-bright);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-trust-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.hero-trust-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-light);
  line-height: 1.5;
}

.hero-trust-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--copper-bright);
}

.hero-quick-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(247, 245, 240, 0.12);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brass);
}

.hero-quick-guide:hover {
  color: #FFFFFF;
}

.guide-arrow {
  transition: transform 0.22s var(--ease);
}

.hero-quick-guide:hover .guide-arrow {
  transform: translateY(3px);
}

/* ================= SECTIONS COMMUNES ================= */
.section {
  padding: clamp(4.25rem, 7.5vw, 6.75rem) 0;
}

.section-chalk {
  background-color: var(--bg-chalk);
  border-bottom: 1px solid var(--rule-light);
}

.section-sand {
  background-color: var(--bg-stone);
  border-bottom: 1px solid var(--rule-light);
}

.section-paper {
  background-color: var(--bg-offwhite);
  border-bottom: 1px solid var(--rule-light);
}

.section-petrol {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(to right, rgba(247, 245, 240, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 245, 240, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink-light);
  border-bottom: 1px solid var(--rule-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: end;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.section-badge::before {
  content: '';
  width: 20px;
  height: 2px;
  background-color: currentColor;
}

.section-badge-light {
  color: var(--copper-bright);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--ink-main);
}

.section-title-light {
  color: #FFFFFF;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--ink-body);
  line-height: 1.65;
}

.section-desc-light {
  color: var(--ink-light-muted);
}

/* ================= 2. PRÉSENTATION DE L'ARTISAN ================= */
.artisan-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
  isolation: isolate;
}

.artisan-photo-frame {
  position: relative;
  background-color: var(--bg-offwhite);
  border: 1px solid var(--rule-light);
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.artisan-photo-frame::after {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1.5px solid var(--copper-border);
  border-radius: var(--radius-lg);
  z-index: -1;
  pointer-events: none;
}

.artisan-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

.artisan-photo-frame figcaption {
  padding: 0.85rem 0.35rem 0.15rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.artisan-story .section-title {
  margin-bottom: 1.15rem;
}

.story-para {
  font-size: 1.02rem;
  color: var(--ink-body);
  margin-bottom: 1rem;
}

.artisan-principles {
  margin-top: 2rem;
  border-top: 1px solid var(--rule-light);
}

.artisan-principles li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule-light);
  align-items: start;
}

.principle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background-color: var(--copper-soft);
  color: var(--copper);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 700;
}

.artisan-principles strong {
  display: block;
  font-size: 1rem;
  color: var(--ink-main);
  margin-bottom: 0.22rem;
}

.artisan-principles p {
  font-size: 0.94rem;
  color: var(--ink-body);
}

/* ================= 3. CARTES DE SERVICES & AIDE RAPIDE ================= */
.services-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-row-item {
  background-color: var(--bg-chalk);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.service-row-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--copper-border);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.service-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--copper-soft);
  border: 1px solid rgba(196, 87, 42, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
}

.service-icon-box svg {
  width: 22px;
  height: 22px;
}

.service-row-num {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  background-color: var(--bg-offwhite);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.service-row-item h3 {
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}

.service-row-item p {
  font-size: 0.95rem;
  color: var(--ink-body);
}

/* Console d'aide rapide */
.diagnostic-card {
  position: relative;
  background-color: var(--bg-chalk);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.diagnostic-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--copper) 100%);
}

.diagnostic-console-head {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.diagnostic-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 0.25rem;
}

.diagnostic-title {
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink-main);
  letter-spacing: -0.02em;
}

.diagnostic-sub {
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 470px;
}

.diagnostic-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.symptom-tabs {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-offwhite);
  border-right: 1px solid var(--rule-light);
}

.symptom-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.45rem;
  border: none;
  border-bottom: 1px solid var(--rule-light);
  background-color: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-body);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.symptom-tab:last-child {
  border-bottom: none;
}

.symptom-tab:hover {
  background-color: var(--bg-chalk);
  color: var(--ink-main);
}

.symptom-tab.is-active {
  background-color: var(--navy);
  color: #FFFFFF;
}

.symptom-tab.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--copper-bright);
}

.symptom-code {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.symptom-tab.is-active .symptom-code {
  color: var(--copper-bright);
}

.diagnostic-result {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.result-urgency {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--copper);
  background-color: var(--copper-soft);
  border: 1px solid rgba(196, 87, 42, 0.24);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
}

.result-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background-color: rgba(11, 22, 38, 0.06);
  border: 1px solid rgba(11, 22, 38, 0.14);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
}

.result-steps-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

.result-step-box {
  padding-left: 1rem;
  border-left: 2px solid var(--rule-light);
}

.result-step-box:first-child {
  border-left-color: var(--copper);
}

.result-step-box:last-child {
  border-left-color: var(--navy);
}

.result-step-box h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 0.4rem;
}

.result-step-box p {
  font-size: 0.94rem;
  color: var(--ink-body);
  line-height: 1.6;
}

.diagnostic-footer {
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.artisan-direct {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.artisan-phone-link {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--copper);
}

.artisan-phone-link:hover {
  text-decoration: underline;
}

.diag-callback-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-main);
  border-bottom: 2px solid var(--copper-bright);
  padding-bottom: 2px;
}

.diag-callback-link:hover {
  color: var(--copper);
}

/* ================= 4. RÉALISATIONS (GALERIE HAUT DE GAMME) ================= */
.gallery-asymmetric {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 1.75rem;
  align-items: stretch;
}

.gallery-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.gallery-item {
  border: 1px solid var(--rule-light);
  background-color: var(--bg-offwhite);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.gallery-featured {
  height: 100%;
}

.gallery-img-wrap {
  overflow: hidden;
  background-color: var(--bg-stone);
}

.gallery-featured .gallery-img-wrap {
  flex: 1;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery-side-stack .gallery-img-wrap img {
  aspect-ratio: 16 / 10;
}

.gallery-item:hover .gallery-img-wrap img {
  transform: scale(1.035);
}

.gallery-item figcaption {
  padding: 1.25rem 1.45rem;
  background-color: var(--bg-offwhite);
}

.gallery-item figcaption strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 0.3rem;
}

.gallery-item figcaption span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.55;
}

/* ================= 5. AVIS CLIENTS (EXEMPLES FICTIFS) ================= */
.reviews-demo-notice {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
  background-color: var(--bg-chalk);
  border: 1px solid var(--rule-light);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.review-card {
  position: relative;
  background-color: var(--bg-chalk);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-card::before {
  content: '«';
  position: absolute;
  top: 1.15rem;
  right: 1.45rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(196, 87, 42, 0.22);
  pointer-events: none;
}

.review-top {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 1.05rem;
}

.review-top strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink-main);
}

.review-top span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--copper);
  margin-top: 0.18rem;
}

.review-card p {
  font-size: 0.94rem;
  color: var(--ink-body);
  line-height: 1.65;
}

/* ================= 6. ZONES D'INTERVENTION ================= */
.zone-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.zone-info .section-title {
  margin-bottom: 1rem;
}

.zone-info .section-desc {
  margin-bottom: 1.65rem;
}

.cities-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.city-chip {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-light-muted);
  background-color: var(--navy-card);
  border: 1px solid var(--rule-dark);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.city-chip.is-primary {
  background-color: rgba(196, 87, 42, 0.22);
  color: #FFFFFF;
  border-color: rgba(223, 122, 75, 0.65);
  font-weight: 600;
}

.network-diagram {
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--navy-card);
  box-shadow: 0 24px 48px -20px rgba(7, 15, 27, 0.65);
}

.network-diagram svg {
  width: 100%;
  height: auto;
}

/* ================= 7. CONTACT SIMPLE & VISIBLE ================= */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 0.9rem;
}

.contact-ledger {
  margin-top: 2.15rem;
  border-top: 1px solid var(--rule-medium);
}

.contact-ledger-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.contact-ledger-row dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  padding-top: 4px;
}

.contact-ledger-row dd {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.contact-phone-big {
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--copper);
}

.contact-phone-big:hover {
  text-decoration: underline;
}

.contact-ledger-row dd a:not(.contact-phone-big) {
  font-weight: 600;
  color: var(--ink-main);
  word-break: break-word;
}

.contact-ledger-row dd a:not(.contact-phone-big):hover {
  color: var(--copper);
}

.contact-ledger-row dd span {
  font-size: 0.9rem;
  color: var(--ink-body);
}

.callback-box {
  position: relative;
  background-color: var(--bg-chalk);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.callback-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper) 0%, var(--navy) 100%);
}

.callback-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.callback-box h3 {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.callback-box > p {
  font-size: 0.92rem;
  color: var(--ink-body);
  margin-bottom: 1.45rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label,
.form-field .field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink-main);
}

.req {
  color: var(--copper);
}

.opt {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-field input:not([type="radio"]):not([type="file"]),
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-medium);
  background-color: var(--bg-offwhite);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink-main);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.form-field textarea {
  min-height: 92px;
  padding: 0.72rem 0.95rem;
  line-height: 1.5;
  resize: vertical;
}

.form-field input:not([type="radio"]):not([type="file"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(196, 87, 42, 0.22);
  border-color: var(--copper);
  background-color: #FFFFFF;
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #B91C1C;
  background-color: #FEF2F2;
}

.field-err {
  display: block;
  min-height: 1rem;
  margin-top: 0.24rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #B91C1C;
}

.cb-status {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-offwhite);
  border: 1px solid var(--copper-border);
  border-left: 3px solid var(--copper);
  font-size: 0.88rem;
  color: var(--ink-main);
}

.cb-demo-recap {
  margin-top: 0.6rem;
  padding-left: 1rem;
  list-style: disc;
  font-size: 0.84rem;
  color: var(--ink-body);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.callback-or-call {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-light);
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-body);
}

.callback-or-call a {
  display: inline-block;
  margin-left: 0.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--copper);
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: var(--navy-deep);
  color: var(--ink-light-muted);
  border-top: 2px solid var(--copper);
  padding: 3.75rem 0 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.85fr));
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.7rem;
}

.footer-logo span {
  color: var(--copper-bright);
  font-weight: 600;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 400px;
}

.footer-demo-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: rgba(247, 245, 240, 0.74);
}

.footer-col h3,
.footer-col h4 {
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.95rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-studio-return {
  color: #93C5FD;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

/* ================= BARRE D'APPEL FIXE MOBILE ================= */
.sticky-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background-color: rgba(11, 22, 38, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(223, 122, 75, 0.55);
}

.sticky-call-action,
.sticky-callback-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.72rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  font-weight: 700;
  white-space: nowrap;
}

.sticky-call-action {
  background-color: var(--copper);
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
}

.sticky-call-action svg {
  width: 17px;
  height: 17px;
}

.sticky-callback-action {
  background-color: rgba(247, 245, 240, 0.1);
  border: 1px solid rgba(247, 245, 240, 0.22);
  color: #FFFFFF;
}

@media (min-width: 901px) {
  .sticky-contact-bar,
  .mobile-drawer {
    display: none;
  }
}

/* ================= NOUVEAU DIAGNOSTIC & GALERIE AVANT/APRÈS ================= */
section[id],
#diagnostic,
#rappel {
  scroll-margin-top: calc(var(--header-h, 78px) + 18px);
}

.diag-progress-wrap {
  min-width: 240px;
  flex: 0 1 320px;
}

.diag-step-indicator {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 0.45rem;
}

.diag-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: var(--bg-stone);
  overflow: hidden;
}

.diag-progress-fill {
  width: 33.33%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--copper) 100%);
  transition: width 0.32s var(--ease);
}

.diagnostic-body {
  padding: 1.75rem 2rem;
}

.diag-step-intro {
  font-size: 0.94rem;
  color: var(--ink-body);
  margin-bottom: 1.25rem;
}

.diag-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.diag-problem-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.15rem 1.2rem;
  min-height: 98px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule-medium);
  background-color: var(--bg-offwhite);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.diag-problem-btn:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.diag-problem-btn.is-active {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.diag-problem-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--copper);
  background-color: var(--copper-soft);
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
}

.diag-problem-btn.is-active .diag-problem-num {
  color: #FFFFFF;
  background-color: var(--copper);
}

.diag-problem-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-main);
}

.diag-problem-btn.is-active .diag-problem-title {
  color: #FFFFFF;
}

.diag-problem-hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.diag-problem-btn.is-active .diag-problem-hint {
  color: rgba(247, 245, 240, 0.78);
}

.diag-selected-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  background-color: var(--bg-stone);
  border: 1px solid var(--rule-medium);
  margin-bottom: 1.2rem;
}

.diag-questions-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diag-question-block {
  border: none;
  padding: 0;
  margin: 0;
}

.diag-question-block legend {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 0.65rem;
}

.diag-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
}

.diag-choice-pill {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-medium);
  background-color: var(--bg-offwhite);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-main);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.diag-choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.diag-choice-pill:hover {
  border-color: var(--copper);
  background-color: #FFFFFF;
}

.diag-choice-pill.is-selected {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.diag-step-nav {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-diag-back {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-medium);
  background-color: transparent;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-main);
  cursor: pointer;
}

.btn-diag-back:hover {
  background-color: var(--bg-offwhite);
  border-color: var(--navy);
}

.diag-safety-alert {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid #FCA5A5;
  border-left: 4px solid #B91C1C;
  background-color: #FEF2F2;
  color: #7F1D1D;
}

.diag-safety-alert.is-caution {
  border-color: #FCD34D;
  border-left-color: #B45309;
  background-color: #FFFBEB;
  color: #78350F;
}

.diag-safety-alert strong {
  display: block;
  font-size: 0.94rem;
  margin-bottom: 0.3rem;
}

.diag-safety-alert p {
  font-size: 0.88rem;
  line-height: 1.55;
}

.diag-summary-recap {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-offwhite);
  border: 1px solid var(--rule-light);
}

.diag-recap-head {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin-bottom: 0.55rem;
}

.diag-summary-recap ul {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  font-size: 0.9rem;
  color: var(--ink-body);
}

.diag-disclaimer-note {
  margin-bottom: 1.15rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-muted);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-offwhite);
  border: 1px dashed var(--rule-medium);
}

.diagnostic-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

/* Galerie interactive Avant / Après */
.ba-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ba-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ba-project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ba-project-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--rule-medium);
  background-color: var(--bg-offwhite);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-main);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.ba-project-tab.is-active {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.ba-tab-num {
  font-size: 0.75rem;
  color: var(--copper);
}

.ba-project-tab.is-active .ba-tab-num {
  color: var(--copper-bright);
}

.ba-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.ba-arrow-btn {
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-medium);
  background-color: var(--bg-offwhite);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-main);
  cursor: pointer;
}

.ba-arrow-btn:hover {
  border-color: var(--copper);
  background-color: #FFFFFF;
}

.ba-counter {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-muted);
  min-width: 3ch;
  text-align: center;
}

.ba-card-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  background-color: var(--bg-offwhite);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ba-stage {
  position: relative;
  aspect-ratio: 960 / 717;
  background-color: var(--navy-deep);
  overflow: hidden;
  --ba-split: 50%;
}

.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-before-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-split)) 0 0);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-split);
  width: 2px;
  background-color: #FFFFFF;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--copper);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-tag {
  position: absolute;
  bottom: 0.85rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background-color: rgba(11, 22, 38, 0.86);
  color: #FFFFFF;
  pointer-events: none;
}

.ba-tag-before {
  left: 0.85rem;
}

.ba-tag-after {
  right: 0.85rem;
}

.ba-meta-panel {
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ba-meta-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.ba-demo-badge {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--copper);
  background-color: var(--copper-soft);
  border: 1px solid rgba(196, 87, 42, 0.25);
}

.ba-quick-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ba-mode-btn {
  min-height: 36px;
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-medium);
  background-color: var(--bg-chalk);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-main);
  cursor: pointer;
}

.ba-mode-btn.is-active {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.ba-project-title {
  font-size: 1.24rem;
  line-height: 1.25;
  color: var(--ink-main);
}

.ba-project-desc {
  font-size: 0.92rem;
  color: var(--ink-body);
  line-height: 1.6;
}

.ba-project-specs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule-light);
}

.ba-spec-item {
  font-size: 0.86rem;
  color: var(--ink-body);
}

.ba-spec-item strong {
  color: var(--ink-main);
}

.ba-meta-footer {
  margin-top: auto;
  padding-top: 0.65rem;
}

/* Formulaire enrichi : mode + photo locale */
.cb-mode-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.cb-mode-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-medium);
  background-color: var(--bg-offwhite);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-main);
  cursor: pointer;
}

.cb-mode-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cb-mode-pill.is-selected {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}

.cb-photo-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cb-photo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--rule-medium);
  background-color: var(--bg-offwhite);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-main);
  cursor: pointer;
  margin-bottom: 0;
}

.cb-photo-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--copper);
}

.cb-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.cb-photo-clear {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-medium);
  background-color: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #B91C1C;
  cursor: pointer;
}

.cb-photo-preview-wrap {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-offwhite);
  border: 1px solid var(--rule-light);
}

.cb-photo-preview-wrap img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.cb-photo-preview-wrap span {
  font-size: 0.8rem;
  color: var(--ink-body);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .hero-main-grid,
  .section-head,
  .artisan-layout,
  .ba-card-frame,
  .zone-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-index-grid,
  .diag-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-nav,
  .header-phone-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .result-steps-columns,
  .reviews-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .artisan-photo-frame::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .services-index-grid,
  .diag-problem-grid,
  .form-row-2,
  .cb-mode-row {
    grid-template-columns: 1fr;
  }

  .diagnostic-body,
  .diagnostic-console-head,
  .ba-meta-panel,
  .callback-box {
    padding: 1.35rem 1.25rem;
  }

  .ba-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ba-nav-arrows {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .hero-section {
    padding: 1.6rem 0 2.75rem;
  }

  .hero-spec-strip {
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    gap: 0.45rem;
  }

  .hero-title {
    font-size: 1.95rem;
    margin-bottom: 0.95rem;
  }

  .hero-lead {
    font-size: 0.96rem;
    margin-bottom: 1.35rem;
  }

  .contact-ledger-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--copper-bright, #C4572A);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}


/* ================= RESPONSIVE & ACCESSIBILITÉ PLOMBIER ================= */
.cb-photo-preview-wrap[hidden] {
  display: none;
}

.mobile-drawer {
  max-height: calc(100dvh - 78px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.studio-back-link,
.ba-mode-btn,
.cb-photo-clear,
.btn-sm {
  min-height: 44px;
}

.ba-range-input {
  touch-action: pan-y;
}

@media (max-width: 1120px) {
  .site-nav,
  .header-phone-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
  }

  .header-inner {
    height: auto;
    min-height: 72px;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
  }

  .sticky-contact-bar {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .sticky-call-action,
  .sticky-callback-action {
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
  }

  .diag-progress-wrap {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .ba-tag {
    max-width: 44%;
    font-size: 0.68rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
