/* ════════════════════════════════════════
   DESIGN SYSTEM — B3IA CYBER-INDUSTRIAL
   ════════════════════════════════════════ */
:root {
  --bg:        #080b12;
  --bg2:       #0d1220;
  --bg3:       #111827;
  --surface:   rgba(17,24,39,0.7);
  --border:    rgba(59,130,246,0.15);
  --border2:   rgba(59,130,246,0.4);
  --blue:      #3b82f6;
  --blue-lt:   #60a5fa;
  --cyan:      #06b6d4;
  --slate:     #94a3b8;
  --light:     #e2e8f0;
  --white:     #f8fafc;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
  --blue-dk:   #2563eb;
  --green:     #22c55e;
  --green-bg:  rgba(34,197,94,0.08);
  --red:       #ef4444;
  --orange:    #f59e0b;
}

/* ════ LIGHT THEME ════ */
[data-theme="light"] {
  --bg:        #f0f4ff;
  --bg2:       #e8eef8;
  --bg3:       #dde6f5;
  --surface:   rgba(240,244,255,0.9);
  --border:    rgba(59,130,246,0.2);
  --border2:   rgba(59,130,246,0.5);
  --slate:     #4a5568;
  --light:     #1a202c;
  --white:     #0f172a;
}
[data-theme="light"] body { background: var(--bg); color: var(--light); }
[data-theme="light"] body::before { opacity: 0.08; }
[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(59,130,246,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px);
}
[data-theme="light"] header { background: rgba(240,244,255,0.92); }
[data-theme="light"] .hero-glow { background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%); }
[data-theme="light"] .svc-card,
[data-theme="light"] .exp-card,
[data-theme="light"] .price-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(59,130,246,0.18);
}
[data-theme="light"] .svc-card:hover,
[data-theme="light"] .exp-card:hover { border-color: rgba(59,130,246,0.4); }
[data-theme="light"] footer.footer-alt { border-color: rgba(59,130,246,0.15); }
[data-theme="light"] .stat-item { border-color: rgba(59,130,246,0.2); }
[data-theme="light"] .divider { background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), transparent); }
[data-theme="light"] .footer-copy,
[data-theme="light"] .footer-links a { color: #4a5568; }
[data-theme="light"] .price-card.featured { background: rgba(59,130,246,0.08); }
/* ── Light theme: card & offer text contrast fixes ── */
[data-theme="light"] .exp-card p,
[data-theme="light"] .svc-card > p,
[data-theme="light"] .services-header p,
[data-theme="light"] .expertise-header p,
[data-theme="light"] .pricing-header p,
[data-theme="light"] .hero-sub,
[data-theme="light"] .price-desc,
[data-theme="light"] .price-audience { color: #374151; }

[data-theme="light"] .svc-list li,
[data-theme="light"] .price-features li { color: #1f2937; }

[data-theme="light"] .exp-card-num { color: rgba(37,99,235,0.7); }

[data-theme="light"] .stat-label { color: #374151; }

[data-theme="light"] .tech-tag {
  color: #1d4ed8;
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

[data-theme="light"] .hero-tag {
  color: #0369a1;
  border-color: rgba(3,105,161,0.35);
}
[data-theme="light"] .hero-tag::before { opacity: 0.6; }

[data-theme="light"] .section-label { color: #0369a1; }
[data-theme="light"] .section-label::after { background: rgba(3,105,161,0.3); }

[data-theme="light"] .price-tier { color: #1d4ed8; }
[data-theme="light"] .price-tax { color: #1d4ed8; }
[data-theme="light"] .price-name,
[data-theme="light"] .exp-card h3,
[data-theme="light"] .svc-card h3 { color: #0f172a; }


[data-theme="light"] .quote-banner h3 { color: #0f172a; }
[data-theme="light"] .quote-banner p { color: #374151; }

[data-theme="light"] .svc-card:hover { box-shadow: 0 12px 40px rgba(37,99,235,0.12); }

[data-theme="light"] .divider {
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.25), transparent);
}

[data-theme="light"] .price-cta {
  border-color: rgba(37,99,235,0.4);
  color: #1d4ed8;
}
[data-theme="light"] .price-cta:hover {
  background: rgba(37,99,235,0.08);
}

/* ════ CONTRAST FIXES (WCAG AA) ════ */
/* dark theme — #3b82f6 → #2563eb (blanc/fond: 4.84:1) */
[data-theme="dark"] .btn-prim { background: #2563eb; box-shadow: 0 0 30px rgba(37,99,235,0.35); }
[data-theme="dark"] .btn-prim:hover { background: #3b82f6; box-shadow: 0 0 45px rgba(37,99,235,0.55); }
[data-theme="dark"] .badge { background: #2563eb; }
[data-theme="dark"] .price-cta.cta-fill { background: #2563eb; border-color: #2563eb; box-shadow: 0 0 25px rgba(37,99,235,0.4); }
[data-theme="dark"] .price-cta.cta-fill:hover { background: #3b82f6; box-shadow: 0 0 40px rgba(37,99,235,0.6); }
/* light theme — #1d4ed8 pour fond (blanc/fond: 6.1:1) et texte (fond clair: 5.6:1) */
[data-theme="light"] .lang-btn { color: #1d4ed8; }
[data-theme="light"] .btn-prim { background: #1d4ed8; box-shadow: 0 0 30px rgba(29,78,216,0.35); }
[data-theme="light"] .btn-prim:hover { background: #1e40af; }
[data-theme="light"] .svc-cta { color: #1d4ed8; border-color: rgba(29,78,216,0.5); }
[data-theme="light"] .badge { background: #1d4ed8; }
[data-theme="light"] .price-cta.cta-fill { background: #1d4ed8; border-color: #1d4ed8; box-shadow: 0 0 25px rgba(29,78,216,0.4); }
[data-theme="light"] .price-cta.cta-fill:hover { background: #1e40af; }


/* ════ THEME TOGGLE BUTTON ════ */
.theme-btn {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s;
  margin-right: 0.5rem;
}
.theme-btn:hover { border-color: var(--border2); color: var(--blue-lt); }
.theme-btn svg { width: 0.9rem; height: 0.9rem; }

/* ════ LEGAL MODAL (iframe) ════ */
.legal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.legal-overlay.open { display: flex; }
.legal-modal {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  width: 100%;
  max-width: 860px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
[data-theme="light"] .legal-modal { background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,0.15); }
.legal-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}
[data-theme="light"] .legal-modal-bar { background: var(--bg3); }
.legal-modal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.legal-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--slate);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  transition: all 0.2s;
}
.legal-modal-close:hover { border-color: var(--border2); color: var(--light); }
.legal-modal iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
}
@media(max-width:640px){
  .legal-overlay { padding: 0; }
  .legal-modal { max-width:100%; height:100%; border-radius:0; border:none; }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NOISE GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── GRID BACKGROUND ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* ════ TYPOGRAPHY ════ */
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.1; color: var(--white); }
.mono { font-family: var(--font-mono); }

.grad {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-lt) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════ HEADER ════ */
header {
  position: fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 2.75rem; width: auto; flex-shrink: 0; }

.header-btns { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.lang-btn {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 2px;
  color: var(--blue-lt);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { background: rgba(59,130,246,0.1); border-color: var(--blue); }
.lang-btn .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ════ NAVIGATION ════ */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
}
.main-nav > ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 0.625rem 0.875rem;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover { color: var(--blue-lt); }
.main-nav > ul > li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.6rem;
  vertical-align: middle;
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;           /* collé au bas du li — pas de trou */
  left: 0;
  background: rgba(13,18,32,0.97);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 240px;
  padding: 0.25rem 0 0.5rem; /* 0.25rem haut = visuel du gap sans rupture hover */
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  backdrop-filter: blur(10px);
}
.has-dropdown:hover .dropdown,
.has-dropdown.touch-open .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-decoration: none;
  transition: all 0.15s;
}
.dropdown li a:hover {
  color: var(--blue-lt);
  background: rgba(59,130,246,0.07);
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--slate);
  border-radius: 1px;
  transition: all 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Light theme navigation */
[data-theme="light"] .main-nav > ul > li > a { color: #4a5568; }
[data-theme="light"] .main-nav > ul > li > a:hover { color: #1d4ed8; }
[data-theme="light"] .dropdown { background: rgba(248,250,255,0.98); border-color: rgba(59,130,246,0.2); }
[data-theme="light"] .dropdown li a { color: #4a5568; }
[data-theme="light"] .dropdown li a:hover { color: #1d4ed8; background: rgba(37,99,235,0.05); }

/* ════ HERO ════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,0.3);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  animation: fadeDown 0.6s ease both;
}
.hero-tag::before { content: '//'; opacity: 0.5; }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  margin-bottom: 1.75rem;
  animation: fadeDown 0.7s 0.1s ease both;
  max-width: 820px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--slate);
  max-width: 680px;
  margin-bottom: 3rem;
  animation: fadeDown 0.7s 0.2s ease both;
  line-height: 1.8;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeDown 0.7s 0.3s ease both;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer; border: none;
}
.btn-prim {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 30px rgba(59,130,246,0.35);
}
.btn-prim:hover { background: var(--blue-lt); transform: translateY(-2px); box-shadow: 0 0 45px rgba(59,130,246,0.55); }
.btn-ghost {
  background: transparent;
  color: var(--blue-lt);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: rgba(59,130,246,0.08); transform: translateY(-2px); }
[data-theme="light"] .btn-ghost { color: #1d4ed8; border-color: rgba(37,99,235,0.5); }
[data-theme="light"] .btn-ghost:hover { background: rgba(37,99,235,0.08); }

/* Hero stats strip */
.hero-stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  animation: fadeDown 0.7s 0.4s ease both;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-num span { color: var(--blue); }
.stat-label { font-size: 0.82rem; color: var(--slate); letter-spacing: 0.05em; }

@keyframes fadeDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }

/* ════ EXPERTISE SECTION ════ */
.expertise {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::after { content:''; flex:1; max-width:80px; height:1px; background:rgba(6,182,212,0.4); }

.expertise-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1.25rem; }
.expertise-header p { color: var(--slate); max-width: 660px; font-size: 1.1rem; line-height: 1.8; }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.exp-card::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, transparent 60%);
  opacity:0; transition: opacity 0.3s;
}
.exp-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.exp-card:hover::before { opacity: 1; }

.exp-card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(59,130,246,0.55);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.exp-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--white); }
.exp-card p { font-size: 0.92rem; color: var(--slate); line-height: 1.7; }

/* ════ SERVICES ════ */
.services {
  padding: 6rem 0;
  position: relative;
}

.services-header { text-align: center; margin-bottom: 4rem; }
.services-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1rem; }
.services-header p { color: var(--slate); font-size: 1.05rem; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.svc-card::after {
  content: '';
  position: absolute; top:0; left:0; right:0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.svc-card:hover { border-color: var(--border2); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(59,130,246,0.1); }
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 3.5rem; height: 3.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem;
}
.svc-icon svg { width: 1.75rem; height: 1.75rem; color: var(--blue-lt); }

.svc-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }

.svc-card > p { font-size: 0.92rem; color: var(--slate); margin-bottom: 1.75rem; line-height: 1.75; }

.svc-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.svc-list li {
  font-size: 0.88rem; color: var(--light);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.svc-list li::before {
  content: '→';
  color: var(--blue);
  font-family: var(--font-mono);
  flex-shrink: 0;
  margin-top: 1px;
}

.svc-tech {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}

/* ════ SECTION DIVIDER ════ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border2) 30%, var(--border2) 70%, transparent 100%);
  margin: 0;
}

/* ════ PRICING ════ */
.pricing {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.pricing-header { text-align: center; margin-bottom: 4rem; }
.pricing-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1rem; }
.pricing-header p { color: var(--slate); font-size: 1.05rem; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover { border-color: rgba(59,130,246,0.35); }

.price-card.featured {
  background: linear-gradient(135deg, rgba(37,99,235,0.18) 0%, rgba(59,130,246,0.12) 100%);
  border: 1px solid rgba(59,130,246,0.5);
  box-shadow: 0 0 60px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: scale(1.02);
}
.price-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.12em;
  background: var(--blue);
  color: #fff;
  padding: 0.3rem 1.25rem;
  border-radius: 0 0 4px 4px;
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--blue-lt);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.price-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.price-amount {
  display: flex; align-items: baseline; gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.price-num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.price-period {
  font-size: 0.85rem;
  color: var(--slate);
}

.price-tax {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue-lt);
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.price-tax::before { content:''; width:8px; height:1px; background:var(--blue-lt); }

.price-audience {
  font-size: 0.8rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.price-desc {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 2rem;
}
.price-features li {
  font-size: 0.88rem;
  color: var(--light);
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.price-features li::before {
  content:'✓';
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.price-cta {
  display: block; width: 100%; text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.875rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid var(--border2);
  color: var(--blue-lt);
  background: transparent;
}
.price-cta:hover { background: rgba(59,130,246,0.1); color: var(--white); }
.price-cta.cta-fill {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 25px rgba(59,130,246,0.4);
}
.price-cta.cta-fill:hover { background: var(--blue-lt); box-shadow: 0 0 40px rgba(59,130,246,0.6); transform: translateY(-2px); }

/* ════ SERVICE CARD CTA ════ */
.svc-cta {
  display: block; width: 100%; text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.875rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid var(--border2);
  color: var(--blue-lt);
  background: transparent;
  margin-top: 1.5rem;
}
.svc-cta:hover { background: rgba(59,130,246,0.1); color: var(--white); }

/* ════ QUOTE BANNER ════ */
.quote-wrap { padding: 0 0 3rem; }

.quote-banner {
  margin-top: 3rem;
  padding: 2.5rem 3rem;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 4px;
  display: flex; align-items: center; gap: 2.5rem;
  flex-wrap: wrap; justify-content: space-between;
  position: relative; overflow: hidden;
}
.quote-banner::before {
  content:'';
  position:absolute; top:0; left:0; bottom:0; width:3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}
.quote-info h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.quote-info p { font-size: 0.95rem; color: var(--slate); }

/* ════ FOOTER ════ */
footer.footer-alt {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  position: relative; z-index: 1;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}
.footer-top img { height: 2rem; width: auto; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.78rem;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-lt); }

.footer-copy { font-size: 0.78rem; color: var(--slate); }

/* ════ SCROLLBAR ════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ════ RESPONSIVE ════ */

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  .hero { padding: 7rem 0 4rem; }
  .hero h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-num { font-size: 1.6rem; }

  .exp-grid { grid-template-columns: 1fr; gap: 1rem; }
  .exp-card { padding: 1.5rem; }

  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card { padding: 2rem; }

  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: scale(1); }
  .price-card { padding: 2rem; }

  /* The 4th offer row: stack vertically */
  .quote-wrap .price-grid { grid-template-columns: 1fr !important; }

  .section-label { font-size: 0.65rem; }
}

/* ── Nav mobile (≤768px) ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 3.35rem; left: 0; right: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: rgba(8,11,18,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem 0.5rem;
    transform: translateY(calc(-100% - 3.5rem));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 95;
    overflow-y: auto;
    max-height: 100vh;
  }
  [data-theme="light"] .main-nav { background: rgba(240,244,255,0.97); }
  .main-nav.open { transform: translateY(0); }
  .main-nav > ul { flex-direction: column; width: 100%; align-items: flex-start; gap: 0; }
  .main-nav > ul > li { width: 100%; }
  .main-nav > ul > li > a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
  .main-nav > ul > li:last-child > a { border-bottom: none; }
  .main-nav > ul > li.has-dropdown > a::after { content: ' ▾'; font-size: 0.6rem; }
  .dropdown {
    position: static;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transform: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
    backdrop-filter: none;
    transition: opacity 0.2s, max-height 0.3s ease;
  }
  .has-dropdown.touch-open .dropdown {
    opacity: 1;
    pointer-events: all;
    max-height: 20rem;
    padding: 0.25rem 0 0.5rem 1rem;
  }
  .dropdown li a {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(59,130,246,0.06);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
  /* ── Prevent ANY horizontal overflow ── */
  html, body { max-width: 100vw; overflow-x: hidden; }
  * { word-break: break-word; }

  /* ── Header ── */
  .header-inner { padding: 0.75rem 1rem; gap: 0.5rem; }
  .logo img { height: 2rem; width: auto; }
  .lang-btn { padding: 0.35rem 0.6rem; font-size: 0.65rem; letter-spacing: 0.06em; }
  .theme-btn { padding: 0.35rem 0.5rem; margin-right: 0; }
  .theme-btn svg { width: 0.8rem; height: 0.8rem; }

  /* ── Hero ── */
  .hero { padding: 5.5rem 0 2.5rem; text-align: left; }
  .hero h1 {
    font-size: clamp(1.35rem, 6.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }
  .hero h1, .hero h1 span {
    word-break: normal !important;
    overflow-wrap: normal !important;
    -webkit-hyphens: none !important;
    hyphens: none !important;
  }
  .hero-tag { font-size: 0.62rem; padding: 0.35rem 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .hero-sub { font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; gap: 0.625rem; }
  .btn { width: 100%; justify-content: center; padding: 0.8rem 1rem; font-size: 0.875rem; }

  /* ── Stats: 2×2 grid ── */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.25rem;
    padding-top: 0;
  }
  .stat-item {
    padding: 0.875rem 0.625rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.55rem; letter-spacing: 0.06em; line-height: 1.3; white-space: normal; }

  /* ── Section labels ── */
  .section-label { font-size: 0.6rem; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* ── Expertise ── */
  .expertise { padding: 3rem 1rem; }
  .expertise h2, .expertise-header h2 { font-size: 1.65rem; }
  .expertise-header p { font-size: 0.875rem; }
  .exp-grid { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.75rem; }
  .exp-card { padding: 1.1rem; }
  .exp-card-num { font-size: 0.6rem; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .exp-card h3 { font-size: 1rem; }
  .exp-card p { font-size: 0.85rem; }

  /* ── Services ── */
  .services { padding: 3rem 1rem; }
  .services-header h2 { font-size: 1.65rem; }
  .svc-grid { grid-template-columns: 1fr; gap: 0.875rem; }
  .svc-card { padding: 1.25rem; }
  .svc-card h3 { font-size: 1.1rem; }
  .svc-card > p { font-size: 0.85rem; }
  .svc-list li { font-size: 0.82rem; }
  .svc-tech { gap: 0.3rem; margin-top: 1rem; padding-top: 1rem; flex-wrap: wrap; }
  .tech-tag { font-size: 0.6rem; padding: 0.18rem 0.45rem; white-space: nowrap; }

  /* ── Pricing ── */
  .pricing { padding: 3rem 1rem; }
  .pricing-header h2 { font-size: 1.65rem; }
  .price-grid { grid-template-columns: 1fr; gap: 0.875rem; }
  .price-card { padding: 1.25rem; }
  .price-card.featured { transform: none; }
  .price-num { font-size: 2rem; }
  .price-features li { font-size: 0.82rem; }
  .quote-wrap .price-grid { grid-template-columns: 1fr !important; gap: 0.875rem; }
  .quote-banner { flex-direction: column; text-align: center; padding: 1.5rem 1.25rem; gap: 1rem; }
  .quote-banner::before { top:0; left:0; right:0; bottom:auto; width:auto; height:3px; }
  .quote-banner .btn { width: 100%; justify-content: center; }
  .badge { font-size: 0.58rem; padding: 0.2rem 0.75rem; white-space: nowrap; }

  /* ── Footer ── */
  footer.footer-alt { padding: 1.5rem 0; margin-top: 2rem; }
  .footer-top { flex-direction: column; align-items: center; gap: 1rem; }
  .footer-inner { text-align: center; padding: 0 1rem; }
  .footer-links { justify-content: center; }
  .content { padding: 6rem 0 3rem; }
}

/* ── Very small phones (≤390px) ── */
@media (max-width: 390px) {
  .hero h1 { font-size: clamp(1.55rem, 7.5vw, 2rem); }
  .header-inner { padding: 0.65rem 0.75rem; }
  .lang-btn { padding: 0.3rem 0.5rem; font-size: 0.6rem; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.5rem; }
}

/* ════ FOCUS / A11Y ════ */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ════ FAB MENU (WhatsApp + Chat IA) ════ */
.fab-menu {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
}
.fab-main {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 2;
}
.fab-main:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(59,130,246,0.55);
}
.fab-main svg { width: 26px; height: 26px; transition: transform 0.25s; }
.fab-menu.open .fab-main svg { transform: rotate(45deg); }

/* ── Sous-boutons ── */
.fab-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  padding-bottom: 0.75rem;
}
.fab-menu.open .fab-items {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.fab-item-label {
  background: var(--bg3);
  color: var(--light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.fab-item-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.fab-item:hover .fab-item-btn { transform: scale(1.1); }
.fab-item-btn svg { width: 22px; height: 22px; }
.fab-item-btn.wa { background: #25d366; }
.fab-item-btn.chat { background: var(--blue); }

/* ── Overlay pour fermer le menu ── */
.fab-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}
.fab-overlay.open { display: block; }

/* ── Light theme ── */
[data-theme="light"] .fab-item-label {
  background: #fff;
  color: #1f2937;
  border-color: rgba(59,130,246,0.2);
}

@media (max-width: 640px) {
  .fab-menu { bottom: 1rem; right: 1rem; }
  .fab-main { width: 50px; height: 50px; }
  .fab-main svg { width: 22px; height: 22px; }
  .fab-item-btn { width: 40px; height: 40px; }
  .fab-item-btn svg { width: 18px; height: 18px; }
}

/* ════════════════════════════════════════
   LEGAL PAGES
   ════════════════════════════════════════ */

/* Narrow container for legal content */
.container.content { max-width: 860px; }
.content { padding: 7rem 0 5rem; }

/* Page header label */
.page-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-label::after { content: ''; flex: 1; max-width: 60px; height: 1px; background: rgba(6,182,212,0.4); }

.page-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate); margin-bottom: 3rem; }

/* H1 in legal content */
.content h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 0.4rem; }

/* H2 in legal content */
.content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--blue-lt);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.3;
}
.content h2::before {
  content: '//';
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(96,165,250,0.4);
  flex-shrink: 0;
}

/* H3 in legal content */
.content h3 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.4rem; color: var(--white); }

/* Paragraphs in legal content */
.content p { color: var(--light); margin-bottom: 0.875rem; font-size: 0.93rem; }

/* Lists in legal content */
.content ul { list-style: none; margin-bottom: 1.25rem; }
.content ul li {
  color: var(--light);
  font-size: 0.93rem;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
}
.content ul li::before {
  content: '→';
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.72rem;
  position: absolute;
  left: 0;
  top: 3px;
}

/* Links in legal content */
.content a { color: var(--blue-lt); text-decoration: none; transition: color 0.2s; }
.content a:hover { color: var(--white); }

/* Info box */
.info-box {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.22);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  position: relative;
  overflow: hidden;
}
.info-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}
.info-box p { margin-bottom: 0.4rem; font-size: 0.9rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--blue-lt); }

/* ── Light theme overrides for legal content ── */
[data-theme="light"] .content h2 { color: #1d4ed8; }
[data-theme="light"] .content h2::before { color: rgba(29,78,216,0.35); }
[data-theme="light"] .content h3 { color: #0f172a; }
[data-theme="light"] .content p { color: #1f2937; }
[data-theme="light"] .content ul li { color: #1f2937; }
[data-theme="light"] .content ul li::before { color: #1d4ed8; }
[data-theme="light"] .content a { color: #1d4ed8; }
[data-theme="light"] .content a:hover { color: #0f172a; }
[data-theme="light"] .page-date { color: #4b5563; }
[data-theme="light"] .page-label { color: #0369a1; }
[data-theme="light"] .page-label::after { background: rgba(3,105,161,0.3); }
[data-theme="light"] .info-box { background: rgba(59,130,246,0.05); border-color: rgba(59,130,246,0.2); }
[data-theme="light"] .info-box p { color: #1f2937; }
[data-theme="light"] .info-box strong { color: #1d4ed8; }
[data-theme="light"] .footer-copy,
[data-theme="light"] .footer-links a { color: #4b5563; }
[data-theme="light"] .footer-links a:hover { color: #1d4ed8; }

/* ════════════════════════════════════════
   SERVICE PAGES
   ════════════════════════════════════════ */
.service-hero {
  padding: 8rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.service-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.service-hero .hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.service-hero .hero-sub { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.7; }
.service-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}
.service-hero-ctas .svc-cta {
  display: inline-block;
  width: auto;
  margin-top: 0;
}
.service-detail { padding: 1rem 0 3rem; }
.service-detail h2 { margin-top: 0; }
.service-detail h3 { margin-top: 2rem; }
.service-why,
.service-pricing,
.service-cta { padding: 2.5rem 0; }
.service-area { padding: 2.5rem 0 3rem; }
.service-area .section-label { justify-content: flex-start; }

@media (max-width: 640px) {
  /* Sections sans padding horizontal — le .container fournit déjà 2rem/côté */
  .service-hero { padding: 6rem 0 1.5rem; }
  .service-hero h1 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  .service-hero .hero-sub { font-size: 0.875rem; line-height: 1.6; }
  .service-detail { padding: 1.5rem 0 2rem; }
  .service-area { padding: 1.5rem 0 2.5rem; }
  .service-why,
  .service-pricing,
  .service-cta { padding: 1.5rem 0 2.5rem; }
  .service-detail h2,
  .service-why h2,
  .service-pricing h2,
  .service-area h2,
  .service-cta h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
  .service-detail h3,
  .service-why h3 { font-size: 1rem; margin-top: 1.5rem; }
  .service-detail p,
  .service-why p,
  .service-pricing p,
  .service-area p,
  .service-cta p { font-size: 0.875rem; line-height: 1.65; }
  .service-detail ul li,
  .service-why ul li { font-size: 0.875rem; }
  /* Pricing table */
  .service-pricing table td,
  .service-pricing table th { padding: 0.45rem 0.2rem; font-size: 0.72rem; }
  /* Colonne prestation : sans césure en milieu de mot */
  .service-pricing table td:first-child,
  .service-pricing table th:first-child {
    padding-left: 0;
    font-size: 0.78rem;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
  /* Colonnes prix : jamais coupées */
  .service-pricing table td:not(:first-child),
  .service-pricing table th:not(:first-child) {
    white-space: nowrap;
    padding-left: 0.1rem;
  }
  .service-hero-ctas { flex-direction: column; gap: 0.75rem; }
  .service-hero-ctas .btn,
  .service-hero-ctas .svc-cta { width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 390px) {
  .service-hero h1 { font-size: clamp(1.15rem, 5vw, 1.4rem); }
  .service-pricing table td,
  .service-pricing table th { padding: 0.35rem 0.15rem; font-size: 0.65rem; }
  .service-pricing table td:first-child,
  .service-pricing table th:first-child { font-size: 0.7rem; padding-left: 0; }
}

/* ── Related services (cross-linking) ── */
.service-related { padding: 3rem 0 4rem; }
.service-related h2 { margin-bottom: 1.5rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.related-link {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-link:hover {
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(59,130,246,0.12);
}
.related-link strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--heading);
}
.related-link span {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .service-related { padding: 1.5rem 0 2.5rem; }
  .service-related h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   COMMANDER — ORDER FORM
   ════════════════════════════════════════ */

/* Narrow wrapper for the form */
.order-wrap { max-width: 740px; margin: 0 auto; padding: 1.5rem 0 5rem; }

/* ── Step progress bar ── */
.steps-bar { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.step-pip { width: 48px; height: 3px; border-radius: 2px; background: rgba(59,130,246,0.12); transition: all 0.3s ease; }
.step-pip.active { background: var(--blue); box-shadow: 0 0 12px rgba(59,130,246,0.4); }
.step-pip.done   { background: var(--green); }

/* ── Multi-step sections ── */
.order-step { display: none; animation: orderSlideIn 0.35s ease; }
.order-step.active { display: block; }
@keyframes orderSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.75rem;
}

/* ── Form groups ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--slate); margin-bottom: 0.4rem; }
.form-group label .req { color: var(--red); }
.form-group .err-msg { font-size: 0.75rem; color: var(--red); margin-top: 0.3rem; display: none; }
.form-group.error .err-msg { display: block; }
.form-group.error input,
.form-group.error select { border-color: var(--red) !important; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ── Inputs (scoped to .order-wrap to avoid global pollution) ── */
.order-wrap input[type="text"],
.order-wrap input[type="email"],
.order-wrap input[type="tel"],
.order-wrap select,
.order-wrap textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.order-wrap input:focus,
.order-wrap select:focus,
.order-wrap textarea:focus {
  border-color: var(--border2);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.order-wrap input::placeholder,
.order-wrap textarea::placeholder { color: rgba(148,163,184,0.4); }
.order-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.order-wrap textarea { resize: vertical; min-height: 80px; }

/* ── Light theme overrides for form inputs ── */
[data-theme="light"] .order-wrap input[type="text"],
[data-theme="light"] .order-wrap input[type="email"],
[data-theme="light"] .order-wrap input[type="tel"],
[data-theme="light"] .order-wrap select,
[data-theme="light"] .order-wrap textarea { color: var(--light); }

/* ── Client type toggle ── */
.type-toggle { display: flex; background: var(--bg2); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 1.5rem; }
.type-btn { flex: 1; padding: 0.75rem; text-align: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--slate); background: transparent; border: none; cursor: pointer; transition: all 0.2s; }
.type-btn.active { background: var(--blue-dk); color: #fff; box-shadow: 0 0 20px rgba(37,99,235,0.3); }
.pro-fields { display: none; }
.pro-fields.show { display: block; }

/* ── Service selection list ── */
.svc-list-order { display: flex; flex-direction: column; gap: 0.625rem; }
.svc-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; cursor: pointer; transition: all 0.2s; }
.svc-item:hover { border-color: var(--border2); background: rgba(59,130,246,0.04); }
.svc-item.selected { border-color: var(--blue); background: rgba(59,130,246,0.08); box-shadow: 0 0 25px rgba(59,130,246,0.1); }
.svc-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(59,130,246,0.3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.svc-item.selected .svc-radio { border-color: var(--blue); }
.svc-item.selected .svc-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.svc-detail { flex: 1; min-width: 0; }
.svc-name { font-size: 0.9rem; font-weight: 500; color: var(--light); }
.svc-cat { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: rgba(148,163,184,0.5); text-transform: uppercase; }
.svc-price { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--blue-lt); white-space: nowrap; }
[data-theme="light"] .svc-price { color: var(--blue-dk); }

/* ── Intervention type cards ── */
.int-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (max-width: 520px) { .int-cards { grid-template-columns: 1fr; } }
.int-card { padding: 1.25rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; cursor: pointer; text-align: center; transition: all 0.2s; }
.int-card:hover { border-color: var(--border2); }
.int-card.selected { border-color: var(--blue); background: rgba(59,130,246,0.08); box-shadow: 0 0 25px rgba(59,130,246,0.1); }
.int-card .ic-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.int-card .ic-name { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; color: var(--white); }
.int-card .ic-sub  { font-family: var(--font-mono); font-size: 0.65rem; color: var(--slate); margin-top: 0.25rem; }

/* ── Info box — compact variant for order form ── */
.order-wrap .info-box { padding: 1rem 1.25rem; margin: 0 0 1.25rem; border-radius: 2px; font-size: 0.85rem; color: var(--slate); line-height: 1.6; }
.info-box.green { background: var(--green-bg); border-color: rgba(34,197,94,0.2); }
.info-box.green::before { background: linear-gradient(180deg, var(--green), var(--cyan)); }
.info-box.green strong { color: var(--green); }

/* ── Diagnostic row ── */
.diag-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; cursor: pointer; margin-bottom: 1.25rem; transition: all 0.2s; }
.diag-row:hover { border-color: var(--border2); }
.diag-row.active { border-color: var(--green); background: var(--green-bg); }
.chk-box { width: 18px; height: 18px; border: 2px solid rgba(59,130,246,0.3); border-radius: 2px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.diag-row.active .chk-box { background: var(--green); border-color: var(--green); }
.diag-row.active .chk-box::after { content: '✓'; color: #000; font-size: 0.7rem; font-weight: 700; }
.diag-info { flex: 1; }
.diag-info .d-name { font-size: 0.9rem; font-weight: 500; color: var(--light); }
.diag-info .d-desc { font-size: 0.72rem; color: var(--slate); margin-top: 0.15rem; }
.diag-price { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--green); }

/* ── Summary card ── */
.sum-card { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 1.5rem; margin-bottom: 1.5rem; }
.sum-card h3 { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em; color: var(--cyan); text-transform: uppercase; margin-bottom: 1rem; }
.sum-line { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.9rem; }
.sum-line .sl-label { color: var(--slate); }
.sum-line .sl-val   { font-family: var(--font-mono); font-weight: 700; color: var(--light); }
.sum-line.discount .sl-label,
.sum-line.discount .sl-val { color: var(--green); }
.sum-hr { border: none; border-top: 1px solid var(--border); margin: 0.75rem 0; }
.sum-line.total { padding-top: 0.75rem; }
.sum-line.total .sl-label { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.sum-line.total .sl-val   { font-size: 1.4rem; font-weight: 700; color: var(--blue-lt); }
[data-theme="light"] .sum-line.total .sl-val { color: var(--blue-dk); }
.sum-note   { font-family: var(--font-mono); font-size: 0.65rem; color: var(--slate); text-align: right; margin-top: 0.5rem; letter-spacing: 0.05em; }
.cli-detail { font-size: 0.88rem; color: var(--slate); padding: 0.2rem 0; }
.cli-detail strong { color: var(--light); font-weight: 500; }

/* ── Order buttons ── */
.btn-order { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; padding: 0.875rem 2rem; border-radius: 2px; text-decoration: none; transition: all 0.25s; cursor: pointer; border: none; width: 100%; }
.btn-prim-order { background: var(--blue-dk); color: #fff; box-shadow: 0 0 30px rgba(37,99,235,0.35); }
.btn-prim-order:hover    { background: var(--blue); transform: translateY(-2px); box-shadow: 0 0 45px rgba(59,130,246,0.55); }
.btn-prim-order:disabled { background: rgba(37,99,235,0.2); color: rgba(59,130,246,0.4); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost-order         { background: transparent; color: var(--blue-lt); border: 1px solid var(--border2); }
.btn-ghost-order:hover   { background: rgba(59,130,246,0.08); transform: translateY(-2px); }
[data-theme="light"] .btn-ghost-order { color: var(--blue-dk); }
.btn-row                 { display: flex; gap: 0.75rem; margin-top: 2rem; }
.btn-row .btn-ghost-order { width: auto; padding: 0.875rem 1.5rem; flex-shrink: 0; }

/* ── Error banner ── */
.error-banner { display: none; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); border-radius: 2px; padding: 1rem 1.25rem; margin-top: 1rem; font-size: 0.85rem; color: #fca5a5; position: relative; overflow: hidden; }
.error-banner::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--red); }
.error-banner.show { display: block; }
[data-theme="light"] .error-banner { color: #991b1b; }

/* ── TVA validation ── */
.tva-st { font-family: var(--font-mono); font-size: 0.7rem; margin-top: 0.3rem; display: flex; align-items: center; gap: 0.4rem; }
.tva-st.ok  { color: var(--green); }
.tva-st.err { color: var(--red); }

/* ── Order page responsive ── */
@media (max-width: 520px) {
  .order-wrap { padding: 2rem 0 4rem; }
  .step-title { font-size: 1.25rem; }
}

/* ════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════ */

.contact-section { padding: 4rem 0 6rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

/* Remove .order-wrap centering constraints when inside the contact column */
.contact-form-col > .order-wrap {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ── Sticky info sidebar ── */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: sticky;
  top: 5.5rem; /* below fixed header */
}

/* ── Contact info cards ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.25s;
}
a.contact-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 2.25rem; height: 2.25rem;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 1.1rem; height: 1.1rem; color: var(--blue-lt); }

.contact-card-body { min-width: 0; }
.contact-card-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.contact-card-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--light);
  word-break: break-all;
}
a.contact-card:hover .contact-card-value { color: var(--blue-lt); }

/* ── GDPR consent checkbox ── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 1rem; height: 1rem;
  border: 2px solid rgba(59,130,246,0.35);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-check-label {
  font-size: 0.83rem;
  color: var(--slate);
  line-height: 1.55;
  cursor: pointer;
}
.form-check-label a { color: var(--blue-lt); text-decoration: none; }
.form-check-label a:hover { color: var(--white); }

/* ── Success state ── */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeDown 0.4s ease;
}
.form-success.show { display: block; }
.form-success-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.form-success h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--slate); font-size: 0.95rem; line-height: 1.7; max-width: 400px; margin: 0 auto; }

/* ── Light theme overrides ── */
[data-theme="light"] .contact-card { background: rgba(255,255,255,0.8); border-color: rgba(59,130,246,0.18); }
[data-theme="light"] a.contact-card:hover { border-color: rgba(59,130,246,0.4); }
[data-theme="light"] .contact-card-icon { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.18); }
[data-theme="light"] .contact-card-icon svg { color: #1d4ed8; }
[data-theme="light"] .contact-card-value { color: #1f2937; }
[data-theme="light"] a.contact-card:hover .contact-card-value { color: #1d4ed8; }
[data-theme="light"] .form-check-label { color: #4a5568; }
[data-theme="light"] .form-check-label a { color: #1d4ed8; }
[data-theme="light"] .form-check-label a:hover { color: #0f172a; }

/* ── Contact page responsive ── */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 600px;
  }
  .contact-info-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
@media (max-width: 640px) {
  .contact-section { padding: 2rem 0 4rem; }
  .contact-info-col { grid-template-columns: 1fr; }
  .form-success { padding: 2rem 1rem; }
}

/* ════════════════════════════════════════
   MERCI — CONFIRMATION PAGE
   ════════════════════════════════════════ */
.merci-section { padding: 6rem 0 8rem; text-align: center; }
.merci-icon { font-size: 4rem; margin-bottom: 1.5rem; display: block; }
.merci-section h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.merci-section > .container > p { font-size: 1.05rem; color: var(--slate); max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }
.merci-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1.75rem 2rem; max-width: 480px; margin: 0 auto 2.5rem; text-align: left; }
.merci-card-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.6rem 0; font-size: 0.9rem; }
.merci-card-item + .merci-card-item { border-top: 1px solid var(--border); }
.merci-card-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.merci-card-text { color: var(--slate); line-height: 1.5; }
.merci-card-text strong { color: var(--light); font-weight: 500; display: block; margin-bottom: 0.15rem; }
.merci-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ════════════════════════════════════════
   CHAT WIDGET — Fenêtre de chat
   ════════════════════════════════════════ */

/* ── Fenêtre de chat ── */
.chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 10000;
  width: 370px;
  height: 500px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  padding: 0.9rem 1.1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.chat-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.chat-header-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--light);
  font-weight: 700;
}
.chat-header-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--slate);
  margin-left: auto;
}
.chat-close {
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
  padding: 0.2rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.chat-close:hover { color: var(--light); }
.chat-close svg { width: 18px; height: 18px; }

/* ── Zone de messages ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.55;
  font-family: var(--font-body);
  word-break: break-word;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.chat-msg.assistant {
  align-self: flex-start;
  background: var(--bg3);
  color: var(--light);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
}
.chat-msg.assistant a {
  color: var(--blue-lt);
  text-decoration: underline;
}

/* ── Typing indicator ── */
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.7rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-bottom-left-radius: 3px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  animation: chatBounce 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ── Zone d'envoi ── */
.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  gap: 0.5rem;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--light);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--blue); }
.chat-input::placeholder { color: var(--slate); }
.chat-send {
  border: none;
  background: var(--blue);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--blue-dk); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-send svg { width: 18px; height: 18px; }

/* ── Light theme ── */
[data-theme="light"] .chat-window {
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] .chat-header { background: #f0f4ff; }
[data-theme="light"] .chat-msg.assistant { background: #f0f4ff; border-color: rgba(59,130,246,0.18); color: #1f2937; }
[data-theme="light"] .chat-msg.assistant a { color: #1d4ed8; }
[data-theme="light"] .chat-input-area { background: #f8faff; }
[data-theme="light"] .chat-input { background: #fff; color: #1a202c; }
[data-theme="light"] .chat-typing { background: #f0f4ff; border-color: rgba(59,130,246,0.18); }

/* ── Responsive mobile ── */
@media (max-width: 640px) {
  .chat-window {
    width: calc(100vw - 1rem);
    height: calc(100dvh - 5rem);
    bottom: 4.5rem;
    right: 0.5rem;
    border-radius: 10px;
  }
}
