/*
Theme Name: Dual-HST
Theme URI: https://dual-hst.ch
Author: Dual-HST Sàrl
Author URI: https://dual-hst.ch
Description: Thème WordPress custom pour Dual-HST — Hygiène et Sécurité au Travail, Lausanne, Suisse. Reproduit fidèlement le design one-page original avec infrastructure SEO complète.
Version: 1.0.0
License: Proprietary
License URI: https://dual-hst.ch
Text Domain: dual-hst
Tags: one-page, business, consulting, safety, french
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ===== VARIABLES CSS ===== */
:root {
  --teal: #0891b2;
  --teal-l: #22d3ee;
  --orange: #f97316;
  --navy: #0e1c36;
  --white: #fff;
  --off: #f4f7fb;
  --gray: #64748b;
  --lgray: #94a3b8;
  --border: #e2e8f0;
  --font: 'Plus Jakarta Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--navy); background: var(--white); overflow-x: hidden; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; padding: 0 6vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(14,28,54,.08); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { color: var(--gray); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--white);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 10px 22px; border-radius: 8px;
  text-decoration: none; transition: background .2s, transform .15s; display: inline-block;
}
.nav-cta:hover { background: #0777a0; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  min-height: auto;
  background: linear-gradient(180deg, rgba(14,28,54,.04) 0%, rgba(14,28,54,.015) 40%, var(--white) 100%);
  display: flex; align-items: center; padding: 96px 6vw 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -180px; right: -140px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,.08) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: 30%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; position: relative; z-index: 1;
}
h1 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px; color: var(--navy);
  margin-bottom: 24px;
}
h1 .accent-teal { color: var(--teal); }
.hero-sub { font-size: 16px; line-height: 1.8; color: var(--gray); max-width: 480px; margin-bottom: 44px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--teal); color: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  display: inline-block;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: #0777a0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(8,145,178,.25); }
.btn-secondary {
  background: transparent; color: var(--navy);
  font-family: var(--font); font-size: 15px; font-weight: 500;
  padding: 13px 28px; border-radius: 10px;
  text-decoration: none; border: 1.5px solid var(--border);
  cursor: pointer; display: inline-block;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.hero-visual { display: flex; justify-content: center; align-items: center; }

/* ===== SECTIONS ===== */
section { padding: 96px 6vw; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px; display: block;
}
h2 {
  font-size: clamp(28px, 3vw, 42px); font-weight: 800;
  letter-spacing: -1px; line-height: 1.15; color: var(--navy);
  margin-bottom: 16px;
}
.lead { font-size: 17px; color: var(--gray); line-height: 1.75; max-width: 600px; }

/* ===== INTRO BAND ===== */
.intro-band {
  background: var(--off); padding: 40px 6vw;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.intro-band-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.intro-band p { font-size: 15px; color: var(--gray); font-style: italic; max-width: 500px; }
.intro-kpis { display: flex; gap: 48px; }
.kpi { text-align: center; }
.kpi-num { font-size: 28px; font-weight: 800; color: var(--teal); letter-spacing: -1px; display: block; }
.kpi-label { font-size: 12px; color: var(--lgray); font-family: var(--mono); letter-spacing: .06em; }

/* ===== CONCEPT (APPROCHE) ===== */
.concept { background: var(--white); }
.concept-cols { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.concept-col {
  display: grid; grid-template-columns: auto 1fr; gap: 40px;
  align-items: center; padding: 52px 48px; border-radius: 20px;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.concept-col:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(14,28,54,.08); }
.concept-col.t-bg {
  background: linear-gradient(135deg, rgba(8,145,178,.06) 0%, rgba(8,145,178,.02) 100%);
  border: 1px solid rgba(8,145,178,.12);
}
.concept-col.o-bg {
  background: linear-gradient(135deg, rgba(249,115,22,.06) 0%, rgba(249,115,22,.02) 100%);
  border: 1px solid rgba(249,115,22,.12);
}
.concept-num {
  font-family: var(--mono); font-size: 96px; font-weight: 700;
  line-height: 1; opacity: .12; flex-shrink: 0; width: 120px; text-align: center;
}
.concept-col.t-bg .concept-num { color: var(--teal); }
.concept-col.o-bg .concept-num { color: var(--orange); }
.concept-col-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.concept-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.concept-icon.t { background: rgba(8,145,178,.12); }
.concept-icon.o { background: rgba(249,115,22,.12); }
.concept-col h3 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.concept-col p { font-size: 15px; line-height: 1.8; color: var(--gray); }
.concept-deco {
  position: absolute; bottom: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%; opacity: .04;
}
.concept-deco.t { background: var(--teal); }
.concept-deco.o { background: var(--orange); }

/* ===== SERVICES ===== */
.services { background: var(--off); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.svc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .25s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.svc::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px;
  border-top: 3px solid var(--teal); opacity: 0; transition: opacity .25s;
}
.svc:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(14,28,54,.08);
  border-color: rgba(8,145,178,.25);
}
.svc:hover::after { opacity: 1; }
.svc-n {
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  letter-spacing: .08em; margin-bottom: 16px; display: block; opacity: .6;
}
.svc h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.svc p { font-size: 14px; line-height: 1.65; color: var(--gray); }

/* ===== METHOD ===== */
.method { background: var(--white); }
.method-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 56px; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.step { padding: 36px 28px; border-right: 1px solid var(--border); transition: background .2s; }
.step:last-child { border-right: none; }
.step:hover { background: var(--off); }
.step-n {
  font-family: var(--mono); font-size: 32px; font-weight: 500;
  color: var(--border); line-height: 1; margin-bottom: 20px;
  display: block; letter-spacing: -1px;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 13px; line-height: 1.65; color: var(--gray); }

/* ===== TOOLS ===== */
.tools { background: var(--off); }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.tool-card {
  background: var(--white); border-radius: 16px; padding: 44px 40px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.tool-card:hover { box-shadow: 0 16px 48px rgba(14,28,54,.08); transform: translateY(-4px); }
.tool-card.t-card { border-top: 3px solid var(--teal); }
.tool-card.o-card { border-top: 3px solid var(--orange); }
.tool-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
.tool-tag.t { background: rgba(8,145,178,.1); color: var(--teal); }
.tool-tag.o { background: rgba(249,115,22,.1); color: var(--orange); }
.tool-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 12px; }
.tool-card p { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 28px; }
.tool-link {
  font-size: 14px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s;
}
.tool-link:hover { gap: 10px; }
.tool-link.t { color: var(--teal); }
.tool-link.o { color: var(--orange); }
.tool-deco {
  position: absolute; bottom: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%; opacity: .04;
}
.tool-deco.t { background: var(--teal); }
.tool-deco.o { background: var(--orange); }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-list { margin-top: 52px; max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  font-size: 17px; font-weight: 700; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; background: none; border: none;
  width: 100%; text-align: left; font-family: var(--font);
  padding: 0; transition: color .2s;
}
.faq-question:hover { color: var(--teal); }
.faq-question::after {
  content: '+'; font-size: 24px; font-weight: 300; color: var(--teal);
  flex-shrink: 0; transition: transform .3s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px; padding-top: 16px;
}
.faq-answer p {
  font-size: 15px; line-height: 1.75; color: var(--gray);
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--navy); padding: 96px 6vw;
  text-align: center; position: relative; overflow: hidden;
}
.contact-section::before {
  content: ''; position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%); width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(8,145,178,.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-section h2 { color: var(--white); position: relative; z-index: 1; }
.contact-section h2 span { color: var(--teal-l); }
.contact-sub {
  font-size: 17px; color: rgba(255,255,255,.55); max-width: 460px;
  margin: 16px auto 40px; position: relative; z-index: 1; line-height: 1.7;
}
.email-block {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 20px 28px; margin-bottom: 36px;
  position: relative; z-index: 1;
}
.email-block-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(8,145,178,.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.email-block-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 5px;
}
.email-svg-wrap { display: block; -webkit-user-select: none; user-select: none; pointer-events: none; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  padding: 15px 34px; border-radius: 10px; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  position: relative; z-index: 1; text-decoration: none;
}
.contact-btn:hover {
  background: var(--teal-l); color: var(--navy);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(8,145,178,.35);
}

/* ===== FOOTER ===== */
footer { background: #060e1e; padding: 56px 6vw 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 40px; margin-bottom: 52px;
}
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.7; margin-top: 14px; }
.footer-col h4 {
  font-size: 11px; font-family: var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.38); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--teal-l); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); }
.footer-loc {
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.2);
  display: flex; align-items: center; gap: 6px;
}

/* ===== SERVICE PAGE ===== */
.service-hero {
  padding: 140px 6vw 80px;
  background: linear-gradient(180deg, rgba(14,28,54,.04) 0%, var(--white) 100%);
}
.service-hero-inner { max-width: 800px; margin: 0 auto; }
.service-hero .section-label { margin-bottom: 16px; }
.service-hero h1 { margin-bottom: 20px; }
.service-hero .lead { max-width: 700px; margin-bottom: 32px; }
.service-content {
  padding: 0 6vw 96px;
}
.service-content-inner {
  max-width: 800px; margin: 0 auto;
  font-size: 16px; line-height: 1.85; color: var(--gray);
}
.service-content-inner h2 { font-size: 28px; margin-top: 48px; margin-bottom: 16px; }
.service-content-inner h3 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; }
.service-content-inner ul { padding-left: 24px; margin: 16px 0; }
.service-content-inner li { margin-bottom: 8px; }
.service-cta {
  background: var(--off); padding: 64px 6vw; text-align: center;
  border-top: 1px solid var(--border);
}
.service-cta-inner { max-width: 600px; margin: 0 auto; }
.service-cta h2 { font-size: 28px; margin-bottom: 16px; }
.service-cta .lead { margin: 0 auto 32px; }

/* ===== BLOG ===== */
.blog-hero {
  padding: 140px 6vw 60px;
  background: linear-gradient(180deg, rgba(14,28,54,.04) 0%, var(--white) 100%);
}
.blog-hero-inner { max-width: 1200px; margin: 0 auto; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 0 6vw 96px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14,28,54,.08);
}
.blog-card-body { padding: 28px 24px; }
.blog-card-meta {
  font-family: var(--mono); font-size: 11px; color: var(--lgray);
  letter-spacing: .06em; margin-bottom: 12px; display: block;
}
.blog-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.blog-card p { font-size: 14px; line-height: 1.65; color: var(--gray); }

/* ===== 404 ===== */
.page-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 96px 6vw;
}
.page-404 h1 { font-size: 120px; color: var(--border); margin-bottom: 16px; }
.page-404 p { font-size: 18px; color: var(--gray); margin-bottom: 32px; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ===== HERO SVG ANIMATIONS ===== */
@keyframes draw-line { 0% { stroke-dashoffset: 200; } 100% { stroke-dashoffset: 0; } }
@keyframes core-emit { 0%, 100% { opacity: .9; } 15% { opacity: 1; } 30% { opacity: .9; } }
@keyframes halo-ring { 0% { r: 42; opacity: .18; } 100% { r: 70; opacity: 0; } }
@keyframes label-in { 0% { opacity: 0; } 100% { opacity: .7; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .concept-col { grid-template-columns: 1fr; }
  .concept-num { font-size: 64px; width: auto; text-align: left; margin-bottom: -8px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .method-steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-top: 1px solid var(--border); }
  .nav-links { display: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .services-grid, .method-steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .intro-kpis { gap: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
}
