/* ==========================================================================
   CONSTRUCTIONS MÉTALLIQUES STEINER SA — DESIGN SYSTEM OFFICIEL
   Direction : 75% Rigueur Constructive Suisse + 25% Matière d'Atelier
   ========================================================================== */

:root {
  /* Nuancier officiel issu du logo et des métaux */
  --color-brand-red: #D8181F;
  --color-brand-red-dark: #B71217;
  --color-brand-red-tint: #FDE8E9;

  --color-steel-950: #101418;
  --color-steel-900: #181E24;
  --color-steel-800: #242D38;
  --color-steel-700: #3A4654;
  --color-steel-600: #546274;
  --color-steel-400: #8896A6;
  --color-steel-200: #D8DFE7;
  --color-steel-100: #EEF2F6;
  --color-steel-50:  #F4F6F9;
  --color-white:     #FFFFFF;

  /* Typographie */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Structure & Mesures */
  --container-max: 1280px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --border-light: 1px solid var(--color-steel-200);
  --border-dark: 1px solid var(--color-steel-700);
}

/* --------------------------------------------------------------------------
   RESET & FONDATIONS ACCESSIBLES
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background-color: var(--color-steel-50); }
body {
  font-family: var(--font-sans);
  background-color: var(--color-steel-50);
  color: var(--color-steel-950);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mono { font-family: var(--font-mono); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--color-brand-red);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   EN-TÊTE DU SITE & LOGO OFFICIEL
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: var(--border-light);
}

.top-bar {
  background: var(--color-steel-950);
  color: var(--color-steel-400);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.meta-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  display: inline-block;
}
.top-bar-direct {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.meta-sep { color: var(--color-steel-600); }
.top-phone {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-mono);
}
.top-phone:hover { color: var(--color-brand-red); }

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

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  object-contain: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}
.nav-list a {
  color: var(--color-steel-700);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  transition: color var(--transition-fast);
}
.nav-list a:hover { color: var(--color-brand-red); }
.nav-list a.is-active {
  color: var(--color-steel-950);
  border-bottom: 2px solid var(--color-brand-red);
}

.nav-action-btn {
  background: var(--color-steel-950);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background var(--transition-fast);
}
.nav-action-btn:hover { background: var(--color-brand-red); }

.mobile-menu-btn { display: none; }

/* --------------------------------------------------------------------------
   BOUTONS STRUCTURELS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.85rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: all var(--transition-fast);
}
.btn-primary {
  background: var(--color-brand-red);
  color: var(--color-white);
  border: 2px solid var(--color-brand-red);
}
.btn-primary:hover {
  background: var(--color-brand-red-dark);
  border-color: var(--color-brand-red-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--color-steel-950);
  border: 2px solid var(--color-steel-950);
}
.btn-secondary:hover {
  background: var(--color-steel-950);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  background: var(--color-white);
  border-bottom: var(--border-light);
  padding: 4.5rem 0 4rem;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-meta-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-steel-600);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.meta-pill {
  color: var(--color-brand-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(2.2rem, 3.8vw + 0.5rem, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-steel-950);
  margin-bottom: 1.25rem;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--color-steel-600);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-actions-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual-block { position: relative; }
.hero-image-frame {
  background: var(--color-steel-100);
  border: var(--border-light);
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-caption-card {
  background: var(--color-white);
  border: var(--border-light);
  border-left: 3px solid var(--color-brand-red);
  padding: 0.75rem 1rem;
  margin-top: -1.5rem;
  margin-left: 1.5rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  max-width: 320px;
}
.caption-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-steel-950);
}
.caption-detail {
  font-size: 0.75rem;
  color: var(--color-steel-600);
}

/* --------------------------------------------------------------------------
   2. BANDEAU DES MÉTRIQUES
   -------------------------------------------------------------------------- */
.metrics-section {
  background: var(--color-steel-950);
  color: var(--color-white);
  padding: 3rem 0;
  border-bottom: var(--border-dark);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.metric-card {
  border-left: 2px solid var(--color-brand-red);
  padding-left: 1.25rem;
}
.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  color: var(--color-white);
}
.metric-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-steel-200);
  margin-bottom: 0.35rem;
}
.metric-desc {
  font-size: 0.8125rem;
  color: var(--color-steel-400);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   SECTIONS GÉNÉRALES & TITRAGES
   -------------------------------------------------------------------------- */
main { flex-grow: 1; }
.content-section { padding: 5rem 0; }
.section-toned { background: var(--color-steel-100); border-top: var(--border-light); border-bottom: var(--border-light); }
.section-dark { background: var(--color-steel-900); color: var(--color-white); }

.section-title-wrap {
  max-width: 780px;
  margin-bottom: 3.5rem;
}
.section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-red);
  display: block;
  margin-bottom: 0.5rem;
}
.kicker-light { color: #FF6B6B; }
.section-main-heading {
  font-size: clamp(1.85rem, 2.5vw + 0.5rem, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-steel-950);
  margin-bottom: 0.75rem;
}
.heading-light { color: var(--color-white); }
.section-lead-text {
  font-size: 1.1rem;
  color: var(--color-steel-600);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. PROCESSUS DE FABRICATION (De A à Z)
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.process-card {
  background: var(--color-white);
  border: var(--border-light);
  padding: 2.25rem;
  position: relative;
  transition: transform var(--transition-fast);
}
.process-card:hover { transform: translateY(-2px); }
.process-num {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-brand-red);
  margin-bottom: 1rem;
}
.process-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-steel-950);
  margin-bottom: 0.75rem;
}
.process-text {
  font-size: 0.9375rem;
  color: var(--color-steel-600);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. RÉALISATIONS ÉDITORIALES
   -------------------------------------------------------------------------- */
.projects-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--color-white);
  border: var(--border-light);
  display: flex;
  flex-direction: column;
}
.project-primary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}
.project-media-frame {
  background: var(--color-steel-100);
  overflow: hidden;
  position: relative;
}
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-details-wrap {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-client-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-red);
  margin-bottom: 0.5rem;
  display: block;
}
.project-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-steel-950);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.project-summary-text {
  font-size: 0.9375rem;
  color: var(--color-steel-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.project-tech-meta {
  font-size: 0.8125rem;
  color: var(--color-steel-700);
  font-weight: 600;
  border-top: 1px solid var(--color-steel-100);
  padding-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   5. ATELIER & TÔLERIE (25% Matière)
   -------------------------------------------------------------------------- */
.workshop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.workshop-lead {
  font-size: 1.1rem;
  color: var(--color-steel-200);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.workshop-specs-table-wrap {
  background: var(--color-steel-950);
  border: var(--border-dark);
  margin-bottom: 2rem;
}
.workshop-specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.workshop-specs-table th, .workshop-specs-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-steel-800);
}
.workshop-specs-table th {
  background: #0A0D10;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-steel-400);
}
.workshop-specs-table td {
  font-size: 0.9375rem;
  color: var(--color-steel-100);
}

.workshop-visuals-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.workshop-machine-card {
  background: var(--color-steel-950);
  border: var(--border-dark);
  overflow: hidden;
}
.machine-media-box {
  background: var(--color-steel-800);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.machine-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.machine-caption {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.machine-caption strong {
  font-size: 0.9375rem;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}
.machine-caption span {
  font-size: 0.8125rem;
  color: var(--color-steel-400);
}

/* --------------------------------------------------------------------------
   6. CONFORMITÉ & QUALIFICATIONS
   -------------------------------------------------------------------------- */
.compliance-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.compliance-text {
  font-size: 1.05rem;
  color: var(--color-steel-600);
  margin-bottom: 1.5rem;
}
.compliance-cert-box {
  background: var(--color-white);
  border: var(--border-light);
  border-left: 3px solid var(--color-brand-red);
  padding: 1.75rem;
}
.cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-steel-950);
  margin-bottom: 0.5rem;
}
.cert-desc {
  font-size: 0.9375rem;
  color: var(--color-steel-600);
  line-height: 1.6;
}

.systems-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-steel-950);
  margin-bottom: 0.5rem;
}
.systems-desc {
  font-size: 0.9375rem;
  color: var(--color-steel-600);
  margin-bottom: 1rem;
}
.systems-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.system-tag-item {
  background: var(--color-white);
  border: var(--border-light);
  padding: 0.75rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-steel-900);
}
.safety-affiliation {
  background: var(--color-steel-100);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-steel-700);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--color-white);
  border: var(--border-light);
  border-left: 4px solid var(--color-brand-red);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cta-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-red);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.35rem;
}
.cta-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-steel-950);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.cta-desc {
  font-size: 0.95rem;
  color: var(--color-steel-600);
  max-width: 600px;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-steel-950);
  color: var(--color-steel-400);
  border-top: var(--border-dark);
  padding-top: 4.5rem;
  margin-top: auto;
}
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr 1.4fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.footer-badges-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.meta-tag {
  background: var(--color-steel-900);
  border: var(--border-dark);
  color: var(--color-steel-200);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  display: block;
  margin-bottom: 1.25rem;
}
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 0.5rem; }
.footer-links-list a {
  color: var(--color-steel-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links-list a:hover { color: var(--color-white); }
.footer-address-text {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-contact-details p {
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-contact-details a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
}
.footer-contact-details a:hover { color: var(--color-brand-red); }
.footer-quality-text {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.footer-quality-text strong { color: var(--color-white); }

.footer-bottom-bar {
  background: #0A0D10;
  border-top: var(--border-dark);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
}
.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-legal-links a {
  color: var(--color-steel-400);
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--color-white); }

/* --------------------------------------------------------------------------
   RESPONSIVE & MOBILE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }
  .projects-editorial-grid { grid-template-columns: 1fr; }
  .project-primary { grid-template-columns: 1fr; }
  .workshop-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .compliance-layout { grid-template-columns: 1fr; }
  .footer-main-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .brand-logo { height: 38px; }
  
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .btn-line {
    width: 100%;
    height: 2px;
    background: var(--color-steel-950);
    transition: all var(--transition-fast);
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: var(--border-light);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  }
  .main-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-list a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--color-steel-100); }
  .nav-action-btn { width: 100%; text-align: center; }

  .metrics-grid { grid-template-columns: 1fr; }
  .footer-main-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-flex { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-caption-card { margin-left: 0; margin-top: 0.5rem; }
}

/* --------------------------------------------------------------------------
   PRÉFÉRENCE DE MOUVEMENT RÉDUIT (WCAG 2.2 AA)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}