
:root {
  --bg: #f7f4ed;
  --bg-soft: #fffaf1;
  --bg-dark: #111827;
  --surface: #ffffff;
  --surface-strong: #f3eadb;
  --text: #162033;
  --text-soft: #5f6b7a;
  --text-light: #f9fafb;
  --primary: #c8942f;
  --primary-dark: #9f6f18;
  --accent: #2563eb;
  --border: rgba(22, 32, 51, 0.12);
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(200, 148, 47, 0.16), transparent 34rem), var(--bg);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
p { margin-top: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 80;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: var(--text);
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 72px 0; }
.no-top { padding-top: 0; }
.section-soft { background: rgba(255, 250, 241, 0.72); }
.section-dark { background: radial-gradient(circle at top right, rgba(200, 148, 47, 0.22), transparent 26rem), var(--bg-dark); color: var(--text-light); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 237, 0.88); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; color: #fff; font-weight: 900; background: linear-gradient(135deg, #d6a84e, #9f6f18); box-shadow: 0 12px 30px rgba(159, 111, 24, 0.26); }
.brand-text { display: grid; gap: 0; }
.brand-text strong { line-height: 1.1; font-size: 1rem; }
.brand-text small { color: var(--text-soft); font-size: 0.78rem; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 10px 12px; border-radius: 999px; color: var(--text-soft); font-size: 0.94rem; font-weight: 650; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(22, 32, 51, 0.06); }
.site-nav .nav-cta { color: #fff; background: var(--text); }
.site-nav .nav-cta:hover, .site-nav .nav-cta.active { color: #fff; background: #000; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.72); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 999px; background: var(--text); }
.site-nav a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.hero { padding-top: 92px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr); align-items: center; gap: 48px; }
.hero-grid-compact { align-items: stretch; }
.eyebrow { margin: 0 0 12px; color: var(--primary-dark); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.section-dark .eyebrow { color: #f3c469; }
h1, h2, h3 { margin-top: 0; }
h1 { margin-bottom: 22px; max-width: 880px; font-size: clamp(2.35rem, 7vw, 5rem); line-height: 0.98; letter-spacing: -0.06em; }
h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.045em; }
h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.2; }
.hero-lead, .page-lead, .section-heading p, .split-section p, .cta-box p { color: var(--text-soft); font-size: 1.08rem; }
.section-dark p { color: rgba(249, 250, 251, 0.76); }
.hero-lead { max-width: 720px; margin-bottom: 30px; }

.page-hero { padding-top: 68px; padding-bottom: 52px; }
.page-hero h1 { max-width: 950px; }
.page-lead { max-width: 860px; margin-bottom: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--text-soft); font-size: 0.9rem; font-weight: 700; }
.breadcrumb a { color: var(--primary-dark); }
.breadcrumb span { color: rgba(95, 107, 122, 0.72); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 999px; font-weight: 800; line-height: 1; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #8b5e13, #684100); box-shadow: 0 14px 34px rgba(104, 65, 0, 0.24); }
.btn-secondary { color: var(--text); background: rgba(255, 255, 255, 0.78); border: 1px solid var(--border); }
.btn-light { color: var(--text); background: #fff; }
.text-link { display: inline-flex; margin-top: 10px; color: var(--primary-dark); font-weight: 850; }
.hero-actions .text-link { margin-top: 0; align-self: center; }

.hero-points, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points span, .tag-list span { padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); background: rgba(255, 255, 255, 0.58); font-size: 0.88rem; font-weight: 700; }
.tag-list-spaced { margin-top: 24px; }
.section-dark .tag-list span, .product-card .tag-list span { color: rgba(249,250,251,.82); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

.hero-card, .visual-card, .product-card, .cta-box, .contact-panel, .aside-card, .project-card, .content-block { border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow); }
.hero-card { padding: 26px; }
.hero-card-top { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 9px 12px; border-radius: 999px; color: var(--text-soft); background: rgba(37, 99, 235, 0.08); font-size: 0.88rem; font-weight: 750; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12); }
.metric-list { display: grid; gap: 14px; }
.metric-list div { padding: 18px; border-radius: 22px; background: rgba(247, 244, 237, 0.82); }
.metric-list strong { display: block; margin-bottom: 4px; font-size: 1.65rem; line-height: 1; }
.metric-list span { color: var(--text-soft); font-size: 0.94rem; }

.section-heading { max-width: 780px; margin-bottom: 34px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.76); box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07); }
.service-card-large h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.service-card-link { display: flex; flex-direction: column; color: inherit; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.service-card-link:hover { transform: translateY(-3px); border-color: rgba(139, 94, 19, 0.38); background: rgba(255, 255, 255, 0.94); box-shadow: 0 24px 58px rgba(17, 24, 39, 0.12); }
.service-card-link:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.34); outline-offset: 4px; }
.card-link-label { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--primary-dark); font-weight: 850; }
.card-link-label span { transition: transform 0.18s ease; }
.service-card-link:hover .card-link-label span { transform: translateX(4px); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 16px; color: #fff; font-weight: 900; background: var(--text); }
.service-card p, .project-card p, .content-block p { color: var(--text-soft); }
.service-card a:not(.btn) { display: inline-flex; margin-top: 8px; color: var(--primary-dark); font-weight: 850; }
.section-action { margin-top: 28px; text-align: center; }

.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr); align-items: center; gap: 42px; }
.visual-card { min-height: 420px; padding: 30px; }
.visual-card-lines { display: grid; gap: 16px; box-shadow: none; background: rgba(255,255,255,.55); }
.diagram-card { padding: 20px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.8); }
.diagram-card span { width: 34px; height: 34px; display: inline-grid; place-items: center; margin-bottom: 12px; border-radius: 12px; color: #fff; background: var(--text); font-weight: 900; }
.diagram-card strong { display: block; margin-bottom: 4px; }
.diagram-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list p { display: flex; gap: 10px; margin: 0; color: var(--text); }
.check-list span { color: var(--primary-dark); font-weight: 900; }
.check-list-block { margin: 0; padding: 0; list-style: none; }
ul.check-list-block li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text-soft); }
ul.check-list-block li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-dark); font-weight: 900; }
.plain-list { margin: 18px 0 0; padding-left: 18px; color: var(--text-soft); }
.plain-list li { margin-bottom: 8px; }

.stack-panel { display: grid; gap: 14px; }
.stack-panel div { padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.72); }
.stack-panel strong { display: block; margin-bottom: 4px; }
.stack-panel span { color: var(--text-soft); }
.stack-panel-light { grid-template-columns: repeat(2, minmax(0,1fr)); }

.product-card { padding: 28px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.product-card span:first-child { display: inline-flex; margin-bottom: 44px; padding: 8px 11px; border-radius: 999px; color: #111827; background: #f3c469; font-weight: 900; }
.product-card h3 { font-size: 1.8rem; }
.product-card .btn { margin-top: 12px; }
.cta-box { max-width: 900px; margin-inline: auto; padding: clamp(28px, 6vw, 56px); text-align: center; }
.cta-box-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; }

.two-column-detail, .case-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 24px; align-items: start; }
.detail-aside, .case-sidebar { position: sticky; top: 100px; }
.aside-card { padding: 24px; }
.aside-icon { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 20px; color: #fff; background: var(--text); font-weight: 900; }
.aside-card .btn { width: 100%; margin-top: 16px; }
.detail-content, .case-content { display: grid; gap: 18px; }
.content-block { padding: clamp(22px, 4vw, 34px); box-shadow: 0 18px 48px rgba(17,24,39,.06); }
.content-block h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); }
.content-block ul { margin: 0 0 18px; padding-left: 20px; color: var(--text-soft); }
.content-block li { margin-bottom: 8px; }
.content-cta { background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,250,241,.88)); }
.feature-list { display: grid; gap: 12px; }
.feature-list div { padding: 18px; border: 1px solid var(--border); border-radius: 20px; background: rgba(247,244,237,.7); }
.feature-list strong { display: block; margin-bottom: 4px; }
.feature-list span { color: var(--text-soft); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.project-card { padding: clamp(24px,4vw,34px); box-shadow: 0 18px 48px rgba(17,24,39,.08); }
.project-card-featured { grid-column: 1 / -1; min-height: 320px; background: radial-gradient(circle at top right, rgba(200,148,47,.18), transparent 24rem), rgba(255,255,255,.82); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-meta span { padding: 7px 10px; border-radius: 999px; background: rgba(22,32,51,.07); color: var(--text-soft); font-size: .84rem; font-weight: 800; }
.project-card h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
.project-card .tag-list { margin: 22px 0; }

.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result-grid div { padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: rgba(247,244,237,.7); }
.result-grid strong { display: block; margin-bottom: 4px; }
.result-grid span { color: var(--text-soft); font-size: 0.9rem; }

.timeline { display: grid; gap: 16px; }
.timeline article { padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 18px 48px rgba(17,24,39,.06); }
.timeline span { display: inline-flex; margin-bottom: 10px; color: var(--primary-dark); font-weight: 900; }
.timeline p { margin-bottom: 0; color: var(--text-soft); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.testimonial-card { margin: 0; padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.07); }
.testimonial-card blockquote { margin: 0 0 18px; font-size: 1.1rem; line-height: 1.5; }
.testimonial-card figcaption { color: rgba(249,250,251,.72); font-size: .92rem; }

.contact-panel { padding: clamp(24px,4vw,36px); }
.contact-email { display: inline-flex; margin: 10px 0 20px; color: var(--primary-dark); font-size: clamp(1.2rem,3vw,1.8rem); font-weight: 900; word-break: break-word; }
.contact-actions { margin-bottom: 0; }
.contact-form { display: grid; gap: 18px; margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-weight: 800; }
.form-field label span, .form-help { color: var(--text-soft); font-size: 0.88rem; font-weight: 500; }
.form-field input,
.form-field select,
.form-field textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; color: var(--text); background: rgba(255, 255, 255, 0.9); }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; border-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions .form-help { margin: 0; }
.contact-fallback { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.contact-fallback a { color: var(--primary-dark); font-weight: 850; word-break: break-word; }
.narrow-content { max-width: 860px; }
.legal-page .content-block { margin-bottom: 18px; }
.legal-update { color: var(--text-soft); font-weight: 700; }
.document-shell { max-width: 920px; }
.document-article { display: grid; gap: 24px; }
.document-article .content-block { margin-bottom: 0; }
.document-footer { padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 0.95rem; }
.note-box { padding: 14px 16px; border-radius: 18px; background: rgba(200, 148, 47, 0.12); color: var(--text); font-weight: 700; }
.not-found-section { min-height: calc(100vh - 180px); display: flex; align-items: center; }
.not-found-content { text-align: center; }
.not-found-content p { margin-inline: auto; }
.not-found-content h1 { margin-bottom: 18px; }
.not-found-content .page-lead { margin-bottom: 30px; max-width: 640px; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text-soft); font-size: 0.92rem; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner a { font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* Réalisation - Self connecté                                                */
/* -------------------------------------------------------------------------- */

.case-hero {
  padding-top: 64px;
  padding-bottom: 42px;
}

.case-hero .breadcrumb {
  margin-bottom: 34px;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  align-items: end;
  gap: 42px;
}

.case-hero-content {
  max-width: 820px;
}

.case-hero .page-lead {
  max-width: 780px;
  margin-bottom: 28px;
}

.case-hero .hero-actions {
  margin-top: 0;
  gap: 14px;
}

.case-hero .btn {
  white-space: nowrap;
}

.case-summary-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.case-summary-card div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.case-summary-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-summary-card strong {
  display: block;
  color: var(--text);
  line-height: 1.25;
}

.case-cover-section {
  padding-top: 10px;
  padding-bottom: 54px;
}

.case-cover {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #111827;
  box-shadow: var(--shadow);
}

.case-cover-contained {
  max-width: 860px;
  margin-inline: auto;
}

.case-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.case-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 32px;
}

.content-text p {
  color: var(--text-soft);
  font-size: 1.06rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pain-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
}

.pain-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--text);
  font-weight: 900;
}

.pain-card h3 {
  margin-bottom: 8px;
}

.pain-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.sticky-card {
  position: sticky;
  top: 104px;
}

.feature-list-large {
  gap: 14px;
}

.feature-list-large div {
  padding: 20px;
}

.technical-block {
  border-top: 1px solid var(--border);
  padding-top: 34px;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.technical-grid div {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.technical-grid h3 {
  margin-bottom: 8px;
}

.technical-grid p {
  margin-bottom: 0;
  color: var(--text-soft);
}

@media (max-width: 920px) {
  .case-hero {
    padding-top: 48px;
  }

  .case-hero-grid,
  .case-intro-grid {
    grid-template-columns: 1fr;
  }

  .case-summary-card {
    align-self: stretch;
  }

  .pain-grid,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .case-hero {
    padding-top: 38px;
    padding-bottom: 32px;
  }

  .case-hero .breadcrumb {
    margin-bottom: 24px;
  }

  .case-hero .btn {
    width: 100%;
    white-space: normal;
  }

  .case-cover-section {
    padding-bottom: 34px;
  }

  .case-cover-contained {
    max-width: 100%;
    border-radius: 24px;
  }

  .case-summary-card,
  .pain-card,
  .technical-grid div {
    border-radius: 22px;
  }
}

/* -------------------------------------------------------------------------- */
/* Réalisation - Era Clash                                                 */
/* -------------------------------------------------------------------------- */

.chrono-hero {
  padding-top: 64px;
  padding-bottom: 64px;
}

.chrono-hero .breadcrumb {
  margin-bottom: 34px;
}

.chrono-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 52px;
}

.chrono-hero-content {
  max-width: 820px;
}

.chrono-hero .page-lead {
  max-width: 760px;
  margin-bottom: 28px;
}

.chrono-phone-stack {
  position: relative;
  min-height: 620px;
  isolation: isolate;
}

.phone-shot {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 36px;
  background: #1a0d05;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
}

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

.phone-shot-main {
  position: absolute;
  right: 0;
  top: 0;
  width: min(68%, 330px);
  max-height: 600px;
  z-index: 2;
}

.phone-shot-secondary {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: min(54%, 260px);
  max-height: 500px;
  z-index: 1;
  opacity: 0.96;
}

.chrono-hero + .section-soft {
  padding-top: 72px;
}

.chrono-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 36px;
}

.chrono-screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* -------------------------------------------------------------------------- */
/* Page Réalisations                                                          */
/* -------------------------------------------------------------------------- */

.realisations-hero {
  padding-bottom: 54px;
}

.realisations-hero .breadcrumb {
  margin-bottom: 34px;
}

.realisations-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  align-items: end;
  gap: 42px;
}

.hero-proof-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.hero-proof-card strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-proof-card span {
  color: var(--text-soft);
}

.featured-realisation {
  width: min(100% - 32px, 1280px);
  margin-bottom: 28px;
}

.featured-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 34px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
          radial-gradient(circle at top right, rgba(200, 148, 47, 0.16), transparent 28rem),
          rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.featured-project-content p {
  color: var(--text-soft);
}

.project-results-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.project-results-row div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(247, 244, 237, 0.72);
}

.project-results-row strong {
  display: block;
  margin-bottom: 5px;
}

.project-results-row span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.industrial-visual {
  position: relative;
  min-height: 420px;
  padding: 24px;
  overflow: hidden;
  border-radius: 30px;
  background:
          linear-gradient(145deg, #162033, #263248);
}

.industrial-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 24px;
}

.industrial-panel {
  position: relative;
  display: grid;
  gap: 5px;
  width: 82%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.industrial-panel span {
  color: #f3c469;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.industrial-panel strong {
  line-height: 1.25;
}

.panel-top {
  margin-left: auto;
}

.panel-middle {
  width: 100%;
  margin: 86px 0;
  background: rgba(200, 148, 47, 0.16);
}

.panel-bottom {
  margin-right: auto;
}

.realisation-cards-grid {
  width: min(100% - 32px, 1280px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.visual-project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.visual-project-media {
  display: block;
  overflow: hidden;
  height: 320px;
  background: #111827;
}

.visual-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.visual-project-media:hover img {
  transform: scale(1.025);
}

.visual-project-media-phone {
  display: grid;
  place-items: center;
  background:
          radial-gradient(circle at center, rgba(200, 148, 47, 0.22), transparent 18rem),
          #1a0d05;
}

.visual-project-media-phone img {
  width: auto;
  max-width: 72%;
  height: 100%;
  object-fit: contain;
}

.visual-project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.visual-project-content p {
  color: var(--text-soft);
}

.visual-project-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.visual-project-content .btn {
  margin-top: 12px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.visual-project-content .project-actions .btn {
  margin-top: 0;
}

.visual-project-content > .btn,
.visual-project-content > .project-actions {
  margin-top: auto;
  padding-top: 20px;
}

.featured-project-content .btn {
  margin-top: 4px;
}

.cta-box-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

@media (max-width: 980px) {
  .realisations-hero-grid,
  .featured-project-card {
    grid-template-columns: 1fr;
  }

  .industrial-visual {
    min-height: 360px;
  }

  .project-results-row,
  .realisation-cards-grid {
    grid-template-columns: 1fr;
  }

  .visual-project-media {
    height: auto;
  }

  .visual-project-media img {
    height: auto;
  }

  .visual-project-media-phone img {
    width: 100%;
    max-width: 360px;
    height: auto;
  }
}

@media (max-width: 620px) {
  .featured-realisation,
  .realisation-cards-grid {
    width: min(100% - 24px, 1280px);
  }

  .realisations-hero {
    padding-bottom: 40px;
  }

  .realisations-hero .breadcrumb {
    margin-bottom: 24px;
  }

  .featured-project-card,
  .visual-project-card {
    border-radius: 24px;
  }

  .industrial-visual {
    min-height: 320px;
    padding: 18px;
    border-radius: 24px;
  }

  .panel-middle {
    margin: 58px 0;
  }

  .industrial-panel {
    width: 100%;
  }

  .visual-project-content {
    padding: 22px;
  }
}

.chrono-screen-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.chrono-screen-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #1a0d05;
}

.chrono-screen-card figcaption {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.chrono-screen-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.chrono-screen-card span {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.legal-links-block {
  border-top: 1px solid var(--border);
  padding-top: 34px;
}

.legal-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-link-grid a {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.legal-link-grid a:hover {
  background: rgba(255, 255, 255, 0.92);
}

.legal-link-grid strong {
  color: var(--text);
}

.legal-link-grid span {
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .chrono-hero-grid,
  .chrono-intro-grid {
    grid-template-columns: 1fr;
  }

  .chrono-phone-stack {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .phone-shot-main,
  .phone-shot-secondary {
    position: static;
    width: 100%;
  }

  .chrono-screens-grid {
    grid-template-columns: 1fr;
  }

  .chrono-screen-card {
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .chrono-hero {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .chrono-hero .breadcrumb {
    margin-bottom: 24px;
  }

  .chrono-hero .btn {
    width: 100%;
    white-space: normal;
  }

  .chrono-phone-stack {
    grid-template-columns: 1fr;
  }

  .phone-shot-secondary {
    display: none;
  }

  .phone-shot {
    max-width: 330px;
    margin-inline: auto;
    border-radius: 30px;
  }

  .legal-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: 76px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 14px; border-radius: 14px; }
  .hero { padding-top: 56px; }
  .hero-grid, .split-section, .two-column-detail, .case-layout { grid-template-columns: 1fr; }
  .detail-aside, .case-sidebar { position: static; }
  .cards-grid, .cards-grid-2, .project-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .project-card-featured { min-height: auto; }
  .stack-panel-light, .result-grid { grid-template-columns: 1fr; }
  .visual-card { min-height: auto; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 52px 0; }
  .no-top { padding-top: 0; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 14px; }
  .brand-text small { display: none; }
  .site-nav { top: 68px; }
  h1 { letter-spacing: -0.05em; }
  .hero-actions { width: 100%; }
  .hero-actions .btn,
  .project-actions .btn,
  .contact-actions .btn,
  .aside-card .btn,
  .case-hero .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .hero-card, .visual-card, .product-card, .service-card, .project-card, .content-block, .contact-panel, .aside-card { border-radius: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .visual-project-media:hover img { transform: none; }
}


/* V5 homepage editorial refinements */
body[data-page="home"] .hero { padding-top: 72px; }
body[data-page="home"] h1 { font-size: clamp(2.15rem, 5.4vw, 4.15rem); }
.home-actions-center { justify-content: center; margin-bottom: 0; }
.section-dark .btn-secondary { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.section-dark .btn-secondary:hover { background: rgba(255,255,255,.14); }
@media (max-width: 620px) { body[data-page="home"] .hero { padding-top: 52px; } }

/* -------------------------------------------------------------------------- */
/* Réalisation - Rule Garden                                                  */
/* -------------------------------------------------------------------------- */

.visual-project-media-garden {
  background:
          radial-gradient(circle at center, rgba(170, 196, 82, 0.22), transparent 22rem),
          #f3dfb6;
}

.visual-project-media-garden img {
  object-position: center;
}

.rule-garden-page {
  background:
          radial-gradient(circle at 90% 12%, rgba(132, 166, 52, 0.12), transparent 30rem),
          radial-gradient(circle at 10% 0%, rgba(200, 148, 47, 0.16), transparent 34rem),
          var(--bg);
}

.rule-garden-hero {
  padding-top: 64px;
  padding-bottom: 72px;
}

.rule-garden-hero .breadcrumb {
  margin-bottom: 34px;
}

.rule-garden-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 52px;
}

.rule-garden-hero-content {
  max-width: 760px;
}

.rule-garden-hero .page-lead {
  max-width: 720px;
  margin-bottom: 28px;
}

.rule-garden-hero-visual {
  position: relative;
  overflow: visible;
  margin: 0;
  border: 1px solid rgba(122, 92, 37, 0.2);
  border-radius: 34px;
  background: #f2dca9;
  box-shadow: 0 30px 80px rgba(72, 54, 23, 0.2);
}

.rule-garden-hero-visual > img:first-child {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: inherit;
}

.rule-garden-icon-float {
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: clamp(92px, 14vw, 138px);
  aspect-ratio: 1;
  border: 6px solid rgba(255, 250, 241, 0.92);
  border-radius: 28%;
  box-shadow: 0 20px 46px rgba(57, 42, 18, 0.28);
}

.rule-garden-concept-section {
  padding-top: 72px;
}

.rule-garden-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 34px;
}

.garden-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.garden-pillar-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
}

.garden-pillar-card > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #739c2d, #416918);
  font-weight: 900;
}

.garden-pillar-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.rule-garden-showcase-section {
  overflow: hidden;
}

.garden-screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.garden-screen-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 54px rgba(17, 24, 39, 0.1);
}

.garden-screen-card-featured {
  transform: translateY(-18px);
}

.garden-screen-card img {
  width: 100%;
  aspect-ratio: 709 / 1536;
  object-fit: cover;
  object-position: top center;
  background: #f8e8bf;
}

.garden-screen-card figcaption {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.garden-screen-card strong {
  font-size: 1.05rem;
}

.garden-screen-card span {
  color: var(--text-soft);
  font-size: 0.93rem;
}

.garden-world-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.garden-world-art {
  overflow: hidden;
  max-width: 470px;
  margin: 0 auto;
  border: 1px solid rgba(122, 92, 37, 0.2);
  border-radius: 34px;
  background: #f7e8bd;
  box-shadow: var(--shadow);
}

.garden-world-art img {
  width: 100%;
  aspect-ratio: 941 / 1672;
  object-fit: cover;
}

.garden-world-content > p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.garden-secondary-screens {
  display: grid;
  gap: 28px;
}

.garden-wide-screen-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin: 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.garden-wide-screen-card-reverse img {
  order: 2;
}

.garden-wide-screen-card-reverse figcaption {
  order: 1;
}

.garden-wide-screen-card img {
  width: min(100%, 330px);
  justify-self: center;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
}

.garden-wide-screen-card figcaption p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.garden-stack-card img {
  width: 112px;
  margin: 0 auto 22px;
  border-radius: 28%;
  box-shadow: 0 14px 34px rgba(57, 42, 18, 0.2);
}

.garden-stack-card h2 {
  font-size: 1.55rem;
}

.rule-garden-page .technical-grid div,
.rule-garden-page .result-grid div,
.rule-garden-page .feature-list div {
  background: rgba(249, 245, 227, 0.82);
}

.rule-garden-page .btn-primary {
  background: linear-gradient(135deg, #4f741e, #355313);
  box-shadow: 0 14px 34px rgba(53, 83, 19, 0.25);
}

.rule-garden-page .eyebrow,
.rule-garden-page .text-link,
.rule-garden-page .breadcrumb a {
  color: #547b22;
}

.legal-page .document-article a {
  color: var(--primary-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (min-width: 1200px) {
  .realisation-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .rule-garden-hero-grid {
    grid-template-columns: 1fr;
  }

  .rule-garden-hero-visual {
    max-width: 860px;
  }

  .rule-garden-icon-float {
    right: 20px;
  }
}

@media (max-width: 920px) {
  .rule-garden-intro-grid,
  .garden-world-grid,
  .garden-wide-screen-card {
    grid-template-columns: 1fr;
  }

  .garden-pillar-grid,
  .garden-screens-grid {
    grid-template-columns: 1fr;
  }

  .garden-screen-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .garden-screen-card-featured {
    transform: none;
  }

  .garden-wide-screen-card-reverse img,
  .garden-wide-screen-card-reverse figcaption {
    order: initial;
  }

  .garden-wide-screen-card figcaption {
    max-width: 700px;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .rule-garden-hero {
    padding-top: 38px;
    padding-bottom: 54px;
  }

  .rule-garden-hero .breadcrumb {
    margin-bottom: 24px;
  }

  .rule-garden-hero .btn {
    width: 100%;
  }

  .rule-garden-hero-visual,
  .garden-world-art,
  .garden-wide-screen-card,
  .garden-screen-card {
    border-radius: 24px;
  }

  .rule-garden-icon-float {
    right: 14px;
    bottom: -24px;
    width: 90px;
    border-width: 4px;
  }

  .garden-wide-screen-card img {
    max-width: 290px;
    border-radius: 24px;
  }
}

/* ========================================================================== */
/* 2026 — Refonte éditoriale HV Solutions                                    */
/* ========================================================================== */
:root { --bg:#f3f1eb; --bg-soft:#ebe9e2; --bg-dark:#101820; --surface:#faf9f6; --text:#14202b; --text-soft:#62707a; --primary:#b67b31; --primary-dark:#84561f; --accent:#256f68; --border:rgba(20,32,43,.13); --shadow:0 26px 70px rgba(16,24,32,.1); --container:1180px; }
body { background:var(--bg); font-size:16px; line-height:1.55; }
.site-header { background:rgba(243,241,235,.9); }
.header-inner { min-height:82px; }
.brand-mark { width:42px; height:42px; border-radius:11px; background:var(--text); box-shadow:none; font-size:.9rem; letter-spacing:-.03em; }
.brand-text strong { font-size:.95rem; }
.brand-text small { font-size:.72rem; letter-spacing:.015em; }
.site-nav { gap:4px; }
.site-nav a { padding:10px 15px; }
.site-nav .nav-cta { margin-left:7px; padding-inline:18px; }
h1,h2,h3 { text-wrap:balance; }
h1 { font-size:clamp(3rem,7vw,6.25rem); line-height:.94; letter-spacing:-.072em; }
h2 { font-size:clamp(2.2rem,4.5vw,4.1rem); line-height:.98; }
.eyebrow { color:var(--primary-dark); font-size:.72rem; letter-spacing:.15em; }
.section { padding:clamp(72px,9vw,120px) 0; }
.section-heading { max-width:850px; }
.compact-heading { max-width:720px; margin-bottom:45px; }
.compact-heading p:last-child { color:var(--text-soft); }
.btn { min-height:52px; padding:15px 21px; border-radius:11px; }
.btn-primary { background:var(--text); box-shadow:0 12px 28px rgba(20,32,43,.18); }
.btn-primary:hover { background:#000; }
.btn-secondary { background:transparent; border-color:rgba(20,32,43,.2); }
.text-link { color:var(--text); }
.hero-premium { min-height:calc(100vh - 82px); padding-top:clamp(58px,7vw,100px); background:radial-gradient(circle at 82% 5%,rgba(182,123,49,.12),transparent 27rem); }
.hero-grid-new { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(380px,.78fr); gap:clamp(45px,7vw,90px); align-items:center; }
.hero-copy h1 { max-width:820px; margin-bottom:28px; }
.hero-copy .hero-lead { max-width:650px; font-size:clamp(1.08rem,1.7vw,1.3rem); }
.hero-copy .hero-actions { margin-top:35px; }
.availability-dot { display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; background:#3a9a75; box-shadow:0 0 0 5px rgba(58,154,117,.12); }
.system-visual { padding:18px; border:1px solid rgba(255,255,255,.1); border-radius:28px; color:#fff; background:#14202b; box-shadow:0 35px 90px rgba(20,32,43,.23); }
.system-visual-head { display:flex; justify-content:space-between; padding:3px 4px 18px; color:rgba(255,255,255,.55); font-size:.76rem; font-weight:750; text-transform:uppercase; letter-spacing:.1em; }
.live-label { color:#79c5a8; }
.system-core { display:grid; gap:4px; padding:30px 24px; border:1px solid rgba(232,184,115,.33); border-radius:18px; background:rgba(182,123,49,.13); }
.system-core small,.system-nodes small { color:rgba(255,255,255,.5); }
.system-core strong { font-size:1.45rem; }
.system-core span { color:rgba(255,255,255,.7); font-size:.88rem; }
.system-nodes { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:28px; }
.system-nodes::before { content:''; position:absolute; left:50%; top:-28px; width:1px; height:28px; background:rgba(255,255,255,.19); }
.system-nodes div { display:grid; grid-template-columns:auto 1fr; column-gap:10px; padding:15px; border:1px solid rgba(255,255,255,.09); border-radius:14px; background:rgba(255,255,255,.045); }
.system-nodes strong,.system-nodes small { grid-column:2; }
.node-icon { grid-row:1/3; display:grid; width:28px; height:28px; place-items:center; border-radius:8px; color:#ddaf70; background:rgba(182,123,49,.17); font-size:.67rem; font-weight:900; }
.kpi-strip { display:grid; grid-template-columns:repeat(4,1fr); margin-top:clamp(60px,8vw,105px); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.kpi-strip>div { padding:26px clamp(12px,3vw,30px); border-right:1px solid var(--border); }
.kpi-strip>div:first-child { padding-left:0; }
.kpi-strip>div:last-child { border:0; }
.kpi-strip strong { display:block; font-size:clamp(2.1rem,4vw,3.8rem); line-height:1; letter-spacing:-.06em; }
.kpi-strip strong span { color:var(--primary); }
.kpi-strip p { margin:8px 0 0; color:var(--text-soft); font-size:.86rem; }
.expertise-section { background:var(--surface); }
.expertise-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--border); }
.expertise-card { padding:33px 32px 12px 0; border-right:1px solid var(--border); }
.expertise-card+.expertise-card { padding-left:32px; }
.expertise-card:last-child { border:0; }
.expertise-card>span { color:var(--primary); font-size:.74rem; font-weight:900; }
.expertise-card h3 { margin:28px 0 12px; font-size:1.45rem; }
.expertise-card p { max-width:300px; color:var(--text-soft); }
.mes-showcase { color:#fff; background:var(--bg-dark); }
.eyebrow-light { color:#dca960; }
.showcase-heading { display:grid; grid-template-columns:1.4fr .6fr; gap:50px; align-items:end; margin-bottom:50px; }
.showcase-heading h2 { max-width:820px; margin:0; }
.showcase-heading>p { max-width:390px; margin:0 0 5px; color:rgba(255,255,255,.62); }
.mes-stage { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr); overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:28px; background:rgba(255,255,255,.035); }
.placeholder-gallery { display:grid; grid-template-columns:1fr 1fr; gap:10px; min-height:540px; padding:10px; }
.photo-placeholder { position:relative; display:flex; min-height:205px; flex-direction:column; justify-content:flex-end; overflow:hidden; margin:0; padding:25px; border:1px dashed rgba(255,255,255,.23); border-radius:18px; background:linear-gradient(145deg,#26323c,#19232c); color:#fff; }
.photo-placeholder::after { content:'+'; position:absolute; right:18px; top:13px; color:rgba(255,255,255,.35); font-size:1.6rem; font-weight:200; }
.photo-placeholder-main { grid-column:1/-1; min-height:320px; }
.photo-placeholder span { margin-bottom:5px; color:#dca960; font-size:.67rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.photo-placeholder strong { font-size:1rem; }
.photo-placeholder small { margin-top:4px; color:rgba(255,255,255,.48); }
.placeholder-grid { position:absolute; inset:0; opacity:.13; background-image:linear-gradient(rgba(255,255,255,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.2) 1px,transparent 1px); background-size:35px 35px; mask-image:linear-gradient(to bottom,#000,transparent); }
.mes-facts { display:flex; flex-direction:column; padding:clamp(28px,4vw,48px); border-left:1px solid rgba(255,255,255,.1); }
.fact-intro { color:rgba(255,255,255,.68); font-size:1.02rem; }
.fact-line { display:grid; gap:7px; padding:26px 0; border-top:1px solid rgba(255,255,255,.1); }
.fact-line strong { color:#e4b676; font-size:clamp(1.6rem,3vw,2.6rem); line-height:1; }
.fact-line span { color:rgba(255,255,255,.62); font-size:.9rem; }
.mes-facts .btn { margin-top:auto; }
.integration-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
.integration-card { padding:28px; border:1px solid rgba(255,255,255,.1); border-radius:22px; background:rgba(255,255,255,.04); }
.integration-top { display:flex; gap:16px; }
.integration-number { display:grid; flex:0 0 40px; height:40px; place-items:center; border-radius:11px; color:#e4b676; background:rgba(182,123,49,.14); font-size:.72rem; font-weight:900; }
.integration-card h3 { font-size:1.35rem; }
.integration-card>p { margin-bottom:0; color:rgba(255,255,255,.57); font-size:.9rem; }
.mini-flow { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:22px 0; }
.mini-flow span { padding:8px 10px; border-radius:8px; color:rgba(255,255,255,.8); background:rgba(255,255,255,.07); font-size:.76rem; font-weight:750; }
.mini-flow i { color:rgba(255,255,255,.32); font-style:normal; }
.mini-flow .flow-success { color:#8dd0b4; background:rgba(62,150,114,.13); }
.section-heading-row { display:flex; justify-content:space-between; gap:35px; align-items:end; margin-bottom:42px; }
.section-heading-row h2 { max-width:820px; margin:0; }
.heading-side-copy { max-width:390px; color:var(--text-soft); }
.preview-grid { display:grid; grid-template-columns:1.2fr .9fr .9fr; gap:16px; }
.preview-card { overflow:hidden; border:1px solid var(--border); border-radius:22px; background:var(--surface); transition:transform .22s ease,box-shadow .22s ease; }
.preview-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.preview-image { display:grid; height:250px; place-items:center; overflow:hidden; background:#d9d7cf; }
.preview-image img { width:100%; height:100%; object-fit:cover; }
.preview-self .preview-image img { object-position:center 24%; }
.preview-phone { background:#18222b; }
.preview-phone img { width:auto; max-width:54%; object-fit:contain; object-position:top; }
.preview-content { padding:24px; }
.project-type { margin-bottom:10px; color:var(--primary-dark); font-size:.7rem; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.preview-content h3 { font-size:1.55rem; }
.preview-content>p:not(.project-type) { color:var(--text-soft); }
.preview-content .tag-list { margin:20px 0; }
.preview-content>a { font-weight:850; }
.tag-list span { border:0; background:rgba(20,32,43,.065); font-size:.76rem; }
.testimonials-section { color:#fff; background:#16222c; }
.testimonial-layout { display:grid; grid-template-columns:.7fr 1.3fr; gap:60px; align-items:start; }
.testimonial-heading h2 { font-size:clamp(2.2rem,4vw,3.5rem); }
.testimonial-grid { gap:14px; }
.testimonial-card { padding:30px; border-color:rgba(255,255,255,.1); border-radius:18px; background:rgba(255,255,255,.04); }
.testimonial-card blockquote { color:rgba(255,255,255,.88); font-size:1.05rem; }
.testimonial-card figcaption { display:grid; }
.testimonial-card figcaption strong { color:#fff; }
.final-cta { background:var(--surface); }
.cta-inner { display:flex; justify-content:space-between; gap:40px; align-items:center; padding:clamp(35px,6vw,70px); border:1px solid var(--border); border-radius:28px; background:var(--bg); }
.cta-inner h2 { max-width:790px; margin:0; font-size:clamp(2rem,4vw,3.6rem); }
.site-footer { padding:50px 0 26px; color:rgba(255,255,255,.72); background:#0f181f; }
.footer-main,.footer-bottom { display:flex; justify-content:space-between; gap:30px; }
.footer-main { align-items:flex-start; padding-bottom:42px; }
.footer-brand { display:grid; gap:5px; }
.footer-brand strong { color:#fff; font-size:1.15rem; }
.footer-brand span { font-size:.82rem; }
.footer-links { display:flex; flex-wrap:wrap; gap:22px; font-size:.84rem; font-weight:700; }
.footer-bottom { padding-top:20px; border-top:1px solid rgba(255,255,255,.1); font-size:.78rem; }
.footer-bottom p { margin:0; }

/* Portfolio */
.portfolio-hero { padding-bottom:85px; }
.portfolio-hero h1 { max-width:980px; }
.portfolio-hero .page-lead { max-width:750px; }
.portfolio-section { background:var(--surface); }
.category-heading { display:flex; gap:18px; align-items:flex-start; margin-bottom:32px; }
.category-heading>span { display:grid; width:42px; height:42px; place-items:center; border-radius:50%; color:var(--primary-dark); background:rgba(182,123,49,.12); font-size:.72rem; font-weight:900; }
.category-heading h2 { margin:0; font-size:clamp(2rem,3.5vw,3.2rem); }
.category-spaced { margin-top:105px; }
.portfolio-featured { display:grid; grid-template-columns:1.15fr .85fr; gap:45px; padding:clamp(30px,5vw,58px); border-radius:28px; color:#fff; background:#14202b; }
.portfolio-featured-copy h2 { font-size:clamp(2.8rem,5vw,4.8rem); }
.featured-lead { max-width:610px; color:rgba(255,255,255,.68); font-size:1.12rem; }
.project-kpis { display:grid; grid-template-columns:repeat(3,1fr); margin:28px 0; border-top:1px solid rgba(255,255,255,.11); border-bottom:1px solid rgba(255,255,255,.11); }
.project-kpis div { padding:20px 14px 20px 0; }
.project-kpis strong,.project-kpis span { display:block; }
.project-kpis strong { color:#e2b477; font-size:1.55rem; }
.project-kpis span { color:rgba(255,255,255,.5); font-size:.76rem; }
.impact-note { display:flex; gap:10px; color:rgba(255,255,255,.72); font-size:.88rem; }
.impact-note span { color:#78c6a5; }
.portfolio-featured .tag-list { margin:24px 0; }
.portfolio-featured .tag-list span { color:rgba(255,255,255,.7); background:rgba(255,255,255,.07); }
.portfolio-featured .btn-primary { color:var(--text); background:#fff; }
.portfolio-system-visual { display:flex; min-height:440px; flex-direction:column; justify-content:space-between; padding:22px; border:1px solid rgba(255,255,255,.1); border-radius:20px; background:radial-gradient(circle at center,rgba(182,123,49,.18),transparent 18rem),rgba(255,255,255,.035); }
.portfolio-visual-label,.visual-caption { color:rgba(255,255,255,.42); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; }
.architecture-stack { display:grid; gap:12px; text-align:center; }
.architecture-stack span,.architecture-stack strong { padding:17px; border:1px solid rgba(255,255,255,.11); border-radius:12px; background:rgba(255,255,255,.04); }
.architecture-stack strong { border-color:rgba(226,180,119,.35); background:rgba(182,123,49,.15); }
.architecture-stack i { color:rgba(255,255,255,.35); font-style:normal; }
.portfolio-row { display:grid; grid-template-columns:.65fr 1.35fr; gap:clamp(35px,7vw,85px); align-items:center; margin-top:28px; padding:35px; border:1px solid var(--border); border-radius:24px; }
.portfolio-row-media { overflow:hidden; height:320px; border-radius:16px; background:#1a242c; }
.portfolio-row-media img { width:100%; height:100%; object-fit:cover; object-position:center 25%; }
.portfolio-row-copy h2,.personal-copy h2 { font-size:clamp(2.1rem,4vw,3.5rem); }
.portfolio-row-copy>p:not(.project-type),.personal-copy>p:not(.project-type) { color:var(--text-soft); }
.personal-projects { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.personal-card { overflow:hidden; border:1px solid var(--border); border-radius:24px; background:var(--bg); }
.personal-visual { height:310px; overflow:hidden; background:#d8d5cb; }
.personal-visual img { width:100%; height:100%; object-fit:cover; }
.personal-era { display:grid; place-items:center; background:#18222b; }
.personal-era img { width:auto; max-width:47%; object-fit:contain; object-position:top; }
.personal-copy { padding:30px; }
.compact-list { margin:18px 0; padding-left:18px; color:var(--text-soft); }
.compact-list li { margin-bottom:5px; }
.journey-section { background:var(--bg-soft); }
.journey-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:60px; }
.timeline-modern { display:grid; }
.timeline-modern article { display:grid; grid-template-columns:180px 1fr; gap:25px; padding:27px 0; border-top:1px solid var(--border); }
.timeline-modern time { color:var(--primary-dark); font-size:.78rem; font-weight:850; }
.timeline-modern h3 { font-size:1.3rem; }
.timeline-modern p { margin:0; color:var(--text-soft); }
.tech-panel { padding:28px; border:1px solid var(--border); border-radius:22px; background:rgba(255,255,255,.5); }
.tech-list { display:flex; flex-wrap:wrap; gap:8px; }
.tech-list span { padding:8px 10px; border-radius:8px; background:rgba(20,32,43,.06); font-size:.78rem; font-weight:700; }

/* MES detail */
.mes-detail-hero { padding-bottom:68px; }
.case-title-grid { display:grid; grid-template-columns:1fr auto; gap:45px; align-items:end; }
.case-title-grid h1 { max-width:950px; }
.case-status { display:grid; min-width:210px; grid-template-columns:auto 1fr; column-gap:12px; padding:19px; border:1px solid var(--border); border-radius:15px; background:rgba(255,255,255,.45); }
.case-status .availability-dot { grid-row:1/3; margin-top:7px; }
.case-status small { color:var(--text-soft); }
.kpi-strip-light { margin-top:0; }
.kpi-strip-light>div:first-child { padding-left:18px; }
.kpi-strip-light>div:last-child p { max-width:190px; }
.metric-disclaimer { max-width:850px; margin:15px auto 0; color:var(--text-soft); font-size:.75rem; text-align:center; }
.full-system-diagram { display:grid; grid-template-columns:.75fr auto 1fr auto 1.8fr; gap:17px; align-items:center; padding:35px; border:1px solid var(--border); border-radius:24px; background:rgba(255,255,255,.55); }
.full-system-diagram>i { color:var(--primary); font-style:normal; font-size:1.4rem; }
.diagram-layer,.diagram-branches>div { display:grid; gap:5px; padding:20px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.diagram-layer span,.diagram-branches span { color:var(--text-soft); font-size:.72rem; }
.diagram-core { border-color:rgba(182,123,49,.4); background:rgba(182,123,49,.1); }
.diagram-branches { display:grid; gap:8px; }
.mes-use-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.photo-placeholder-wide { min-height:500px; }
.use-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.use-cards article { padding:24px; border:1px solid var(--border); border-radius:17px; background:var(--surface); }
.use-cards article>span { color:var(--primary); font-size:.72rem; font-weight:900; }
.use-cards h3 { margin-top:35px; }
.use-cards p { color:var(--text-soft); font-size:.9rem; }
.gallery-section { background:var(--bg-soft); }
.industrial-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.industrial-gallery .photo-placeholder { min-height:280px; }

/* Contact */
.contact-page { min-height:calc(100vh - 82px); display:flex; align-items:center; }
.contact-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(55px,9vw,120px); align-items:center; }
.contact-intro h1 { font-size:clamp(3.2rem,7vw,6rem); }
.contact-intro .page-lead { max-width:570px; }
.direct-contact { display:grid; gap:16px; margin-top:45px; }
.direct-contact div { display:grid; gap:4px; }
.direct-contact span { color:var(--text-soft); font-size:.68rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.direct-contact a { font-weight:800; }
.contact-form-shell { padding:clamp(28px,5vw,48px); border:1px solid var(--border); border-radius:26px; background:var(--surface); box-shadow:var(--shadow); }
.contact-form { margin-top:0; }
.form-field input,.form-field textarea { border-radius:10px; background:#fff; }
.form-field label { font-size:.85rem; }
.form-actions { margin-top:4px; }
.form-status { min-height:24px; margin-top:4px; font-size:.85rem; }
.form-status.is-success { color:#267358; }
.form-status.is-error { color:#a14332; }
.form-status.is-loading { color:var(--text-soft); }
.honeypot { position:absolute!important; left:-10000px!important; width:1px; height:1px; overflow:hidden; }
button:disabled { cursor:wait; opacity:.65; }
.reveal-ready .reveal { opacity:0; transform:translateY(18px); transition:opacity .6s ease,transform .6s ease; }
.reveal-ready .reveal.is-visible { opacity:1; transform:none; }

@media (max-width:980px) {
  .hero-grid-new,.showcase-heading,.mes-stage,.testimonial-layout,.portfolio-featured,.journey-grid,.case-title-grid,.mes-use-grid,.contact-layout { grid-template-columns:1fr; }
  .hero-premium { min-height:auto; }
  .system-visual { max-width:680px; }
  .showcase-heading>p,.heading-side-copy { max-width:650px; }
  .mes-facts { border-top:1px solid rgba(255,255,255,.1); border-left:0; }
  .mes-facts .btn { margin-top:25px; }
  .preview-grid { grid-template-columns:1fr 1fr; }
  .preview-self { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; }
  .preview-self .preview-image { height:100%; min-height:320px; }
  .full-system-diagram { grid-template-columns:1fr; text-align:center; }
  .full-system-diagram>i { transform:rotate(90deg); }
  .case-status { max-width:280px; }
  .contact-intro { max-width:720px; }
}
@media (max-width:720px) {
  .section { padding:68px 0; }
  .header-inner { min-height:70px; }
  .site-nav { top:70px; }
  h1 { font-size:clamp(2.75rem,13vw,4.4rem); }
  .hero-premium { padding-top:52px; }
  .system-nodes,.expertise-grid,.integration-grid,.personal-projects,.industrial-gallery { grid-template-columns:1fr; }
  .kpi-strip { grid-template-columns:1fr 1fr; }
  .kpi-strip>div { padding:22px 13px; border-bottom:1px solid var(--border); }
  .kpi-strip>div:nth-child(2) { border-right:0; }
  .kpi-strip>div:nth-last-child(-n+2) { border-bottom:0; }
  .kpi-strip>div:first-child,.kpi-strip-light>div:first-child { padding-left:13px; }
  .expertise-grid { border-top:0; }
  .expertise-card,.expertise-card+.expertise-card { padding:26px 0; border-top:1px solid var(--border); border-right:0; }
  .expertise-card h3 { margin-top:18px; }
  .placeholder-gallery { grid-template-columns:1fr; min-height:auto; }
  .photo-placeholder-main { grid-column:auto; }
  .showcase-heading,.section-heading-row,.cta-inner,.footer-main,.footer-bottom { align-items:flex-start; flex-direction:column; }
  .showcase-heading { display:grid; gap:20px; }
  .preview-grid { grid-template-columns:1fr; }
  .preview-self { grid-column:auto; display:block; }
  .preview-self .preview-image { min-height:auto; }
  .section-heading-row { display:flex; }
  .testimonial-layout { gap:25px; }
  .cta-inner .btn { width:100%; }
  .footer-links { display:grid; grid-template-columns:1fr 1fr; }
  .portfolio-row { grid-template-columns:1fr; padding:20px; }
  .portfolio-row-media { height:280px; }
  .project-kpis { grid-template-columns:1fr; }
  .project-kpis div { border-bottom:1px solid rgba(255,255,255,.09); }
  .project-kpis div:last-child { border:0; }
  .timeline-modern article { grid-template-columns:1fr; gap:8px; }
  .use-cards { grid-template-columns:1fr; }
  .contact-page { display:block; }
}
@media (max-width:430px) {
  .system-visual { padding:12px; border-radius:20px; }
  .system-nodes div { padding:12px; }
  .mini-flow { align-items:flex-start; flex-direction:column; }
  .mini-flow i { transform:rotate(90deg); margin-left:20px; }
  .portfolio-featured { padding:24px 18px; }
  .portfolio-system-visual { min-height:360px; }
  .contact-form-shell { padding:24px 18px; }
}
