/* ===== TVE PROD — styles partagés ===== */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #ffffff; --surface: #f5f6f8; --text: #2a2e36; --text-strong: #14161b;
  --text-soft: #444b55; --muted: #555c67; --muted2: #6a717c; --faint: #98a0ab;
  --border: rgba(0,0,0,0.10); --border-soft: rgba(0,0,0,0.07); --border-strong: rgba(0,0,0,0.18);
  --accent: #0d9488; --accent-ink: #ffffff; --accent-soft: rgba(13,148,136,0.10);
  --stripe1: #edf0f3; --stripe2: #e2e7ec; --grid: rgba(0,0,0,0.05); --chip: rgba(0,0,0,0.045);
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; color: var(--text-strong); letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0; }
section { scroll-margin-top: 92px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 860px; margin: 0 auto; }

/* Nav */
header.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 6vw; background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
header.nav .logo { display: flex; align-items: center; text-decoration: none; }
header.nav .logo img { height: 50px; width: auto; display: block; }
nav.links { display: flex; align-items: center; gap: 30px; }
nav.links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
nav.links a:hover { color: var(--text); }
.btn-line { background: transparent; border: 1px solid var(--border-strong); color: var(--text); padding: 9px 18px; border-radius: 9px; text-decoration: none; font-size: 14px; white-space: nowrap; transition: all .15s; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 170px 6vw 110px; text-align: center; }
.hero.compact { padding: 150px 6vw 80px; }
.hero .glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; max-width: 110vw; height: 600px; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); opacity: .14; filter: blur(40px); pointer-events: none; }
.hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%); pointer-events: none; }
.hero .inner { position: relative; max-width: 1000px; margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 5.4vw, 70px); line-height: 1.04; font-weight: 600; margin: 22px 0 0; text-wrap: balance; }
.hero p.lead { max-width: 660px; margin: 26px auto 0; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); text-wrap: pretty; }
.hero .local { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--text-soft); background: var(--accent-soft); border: 1px solid rgba(13,148,136,.25); padding: 7px 14px; border-radius: 999px; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.btn-solid { background: var(--accent); color: var(--accent-ink); padding: 15px 28px; border-radius: 11px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; transition: filter .15s; }
.btn-solid:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); padding: 15px 28px; border-radius: 11px; text-decoration: none; border: 1px solid var(--border-strong); font-weight: 600; font-size: 16px; transition: border-color .15s; }
.btn-ghost:hover { border-color: var(--accent); }

/* Sections */
.sec { padding: 96px 6vw; border-top: 1px solid var(--border-soft); }
.sec h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 600; margin: 16px 0 0; }
.sec .sub { color: var(--muted2); margin: 14px 0 0; max-width: 600px; font-size: 16px; }

/* Breadcrumb */
.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .04em; color: var(--faint); padding: 100px 6vw 0; }
.breadcrumb a { color: var(--muted2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Prose (service pages) */
.prose { font-size: 17px; line-height: 1.75; color: var(--text-soft); }
.prose h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; text-wrap: pretty; }
.prose strong { color: var(--text-strong); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; }
.checklist li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.step .n { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); border: 1px solid var(--accent); width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.step h3 { font-size: 18px; margin: 14px 0 6px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; color: var(--muted2); }

/* Callout (price) */
.callout { margin-top: 40px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 14px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.callout .p b { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--accent); }
.callout .p span { color: var(--muted2); font-size: 14px; }
.callout .p small { display: block; color: var(--muted2); font-size: 13px; margin-top: 4px; }

/* Cards grid (shared) */
.grid { display: grid; gap: 18px; margin-top: 44px; }
.grid.cards3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: rgba(13,148,136,.45); }
.badge-code { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 36px; padding: 0 10px; border: 1px solid var(--accent); border-radius: 9px; color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 14px; }
.card h3 { font-size: 21px; font-weight: 600; margin: 18px 0 10px; }
.card p { font-size: 15px; color: var(--muted2); margin: 0; }
.card-link { margin-top: 18px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Related services */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.related a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.related a:hover { border-color: var(--accent); transform: translateY(-3px); }
.related .k { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); }
.related .t { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--text-strong); margin-top: 6px; }

/* Pricing */
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; }
.price-card.featured { border: 1.5px solid var(--accent); box-shadow: 0 10px 34px rgba(13,148,136,.12); }
.price-card .tag { position: absolute; top: 18px; right: 18px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 7px; }
.price-card h3 { font-size: 21px; font-weight: 600; margin: 0; padding-right: 90px; }
.price-card .price { display: flex; align-items: baseline; gap: 7px; margin: 14px 0 4px; }
.price-card .price b { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--accent); }
.price-card .price span { color: var(--muted2); font-size: 14px; }
.price-card .desc { font-size: 15px; color: var(--muted2); margin: 8px 0 0; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.price-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text-soft); }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .devis { margin-top: 24px; display: block; text-align: center; background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 12px; border-radius: 10px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; transition: all .15s; }
.price-card .devis:hover { background: var(--accent); color: var(--accent-ink); }

/* Portfolio */
.proj { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .2s, border-color .2s; }
.proj:hover { transform: translateY(-4px); border-color: rgba(13,148,136,.45); }
.proj .thumb { height: 190px; background-image: repeating-linear-gradient(135deg, var(--stripe1) 0, var(--stripe1) 12px, var(--stripe2) 12px, var(--stripe2) 24px); display: flex; align-items: center; justify-content: center; }
.proj .thumb span { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.proj .body { padding: 24px; }
.proj .meta { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.proj .meta .yr { color: var(--faint); }
.proj h3 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; }
.proj p { font-size: 15px; color: var(--muted2); margin: 0 0 16px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 4px 10px; border-radius: 6px; background: var(--chip); color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-grid p { font-size: 18px; line-height: 1.7; color: var(--text-soft); margin: 0; text-wrap: pretty; }
.skilltags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.skilltags span { font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); }

/* Contact */
.contact-card { max-width: 1000px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.contact-card .glow { position: absolute; bottom: -160px; left: 50%; transform: translateX(-50%); width: 600px; max-width: 100%; height: 320px; background: radial-gradient(circle, var(--accent) 0%, transparent 65%); opacity: .12; filter: blur(30px); pointer-events: none; }
.contact-card .inner { position: relative; }
.contact-card p { color: var(--muted); margin: 16px auto 0; max-width: 480px; font-size: 17px; }
.contact-card .mail { display: inline-block; margin-top: 30px; background: var(--accent); color: var(--accent-ink); padding: 15px 30px; border-radius: 11px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; word-break: break-word; }
.contact-card .mail:hover { filter: brightness(1.08); }
.contact-meta { display: flex; gap: 28px; justify-content: center; margin-top: 30px; flex-wrap: wrap; color: var(--muted2); font-size: 15px; }

footer.foot { padding: 40px 6vw; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.foot img { height: 56px; width: auto; }
footer.foot .copy { color: var(--faint); font-size: 14px; }

/* ===== Cross-universe link (domotique <-> informatique) ===== */
.crosslink { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; text-align: center; padding: 24px 6vw; background: var(--surface); border-top: 1px solid var(--border-soft); font-size: 15px; color: var(--muted); }
.crosslink strong { color: var(--text-strong); font-weight: 600; }
.crosslink a.cross { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid var(--accent); padding: 9px 18px; border-radius: 10px; transition: all .15s; }
.crosslink a.cross:hover { background: var(--accent); color: var(--accent-ink); }
nav.links a.cross { color: var(--accent); font-weight: 600; }

/* ===== Long-form service-page components ===== */
.lead-block { max-width: 820px; margin: 0 auto; }

/* Benefits grid */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.benefit-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.benefit-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.benefit-card p { margin: 0; font-size: 15px; color: var(--muted2); line-height: 1.55; }

/* Protocol cards */
.protocoles { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.protocole { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; }
.protocole-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.protocole-header h3 { font-size: 20px; font-weight: 600; margin: 0; }
.protocole .badge { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(13,148,136,.3); white-space: nowrap; }
.protocole > p { color: var(--muted2); font-size: 15px; line-height: 1.6; }
.protocole > p strong { color: var(--text-strong); }
.protocole-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 16px 0; }
.protocole-cols h4 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; margin: 0 0 8px; color: var(--text-strong); }
.protocole-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.protocole-cols li { font-size: 14px; color: var(--text-soft); padding-left: 20px; position: relative; line-height: 1.45; }
.protocole-cols .pros li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.protocole-cols .cons li::before { content: "–"; position: absolute; left: 0; color: var(--faint); font-weight: 700; }
.protocole .meta-line { font-size: 14px; color: var(--muted2); margin: 4px 0 0; }
.protocole .meta-line strong { color: var(--text-strong); }

/* Comparison table */
.table-scroll { overflow-x: auto; margin-top: 8px; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.comparison-table th, .comparison-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.comparison-table thead th { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--text-strong); background: var(--surface); border-bottom: 1px solid var(--border-strong); }
.comparison-table thead th:first-child { border-top-left-radius: 11px; }
.comparison-table thead th:last-child { border-top-right-radius: 11px; }
.comparison-table tbody td:first-child { color: var(--text-strong); }
.comparison-table tbody tr:hover { background: var(--surface); }

/* Use cases */
.use-cases { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.use-case { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 26px; }
.use-case h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.use-case p { margin: 0 0 10px; font-size: 15px; color: var(--muted2); line-height: 1.6; }
.use-case p strong { color: var(--text-strong); }
.use-case ul { margin: 0; padding-left: 20px; color: var(--text-soft); font-size: 15px; line-height: 1.6; }
.use-case .exemple { font-size: 14px; color: var(--muted2); border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 12px; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; color: var(--text-strong); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; font-size: 15px; color: var(--muted2); line-height: 1.65; }

@media (max-width: 880px) {
  nav.links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 130px 6vw 80px; }
  .hero.compact { padding: 120px 6vw 64px; }
  .breadcrumb { padding: 88px 6vw 0; }
  .sec { padding: 70px 6vw; }
  .contact-card { padding: 40px 24px; }
  .protocole-cols { grid-template-columns: 1fr; gap: 14px; }
}

/* Align buttons at bottom of cards */
.callout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.callout .btn-solid {
  margin-top: auto;
}

/* Align devis buttons at bottom of price cards */
.price-card {
  display: flex;
  flex-direction: column;
}

.price-card .devis {
  margin-top: auto;
}
