/* V4 Industriel / Pro B2B — fond blanc, dominant navy */
:root {
  --bg: #FFFFFF;
  --navy: #0A2540;
  --navy-light: #1E3A5F;
  --steel: #475569;
  --text: #0A2540;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --line: #CBD5E1;
  --line-strong: #0A2540;
  --accent: #F59E0B;
  --bg-soft: #F8FAFC;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Helvetica Neue", "Roboto", "Arial", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--accent); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* Header — bande navy en bas */
.site-header {
  background: var(--bg);
  border-bottom: 4px solid var(--navy);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 10;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 36px; }
.brand-text { font-weight: 800; font-size: 16px; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; }
.brand-text small { display: block; font-weight: 500; font-size: 11px; color: var(--steel); text-transform: none; letter-spacing: 0; margin-top: 2px; }
.ref-block {
  text-align: right;
  font-size: 11px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ref-block strong { display: block; color: var(--navy); font-size: 13px; }
.switches { display: flex; gap: 12px; }
.switch-group { display: flex; border: 2px solid var(--navy); }
.switch-group a { padding: 6px 12px; font-size: 11px; font-weight: 700; color: var(--navy); border-right: 2px solid var(--navy); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; }
.switch-group a:last-child { border-right: 0; }
.switch-group a.active { background: var(--navy); color: white; }
.switch-group a:hover { background: var(--accent); color: var(--navy); }

/* Hero — bandeau industriel */
.hero { background: var(--bg-soft); padding: 40px 0; border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-img { padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.hero-img img { max-height: 320px; margin: 0 auto; object-fit: contain; }
.hero-img p { font-size: 11px; color: var(--text-muted); margin: 8px 0 0; text-align: center; font-style: italic; }
.hero-content .badge-line {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-content .tagline {
  font-size: 16px;
  color: var(--steel);
  margin: 0 0 22px 0;
  max-width: 520px;
  line-height: 1.5;
}
.specs-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--navy);
  margin-top: 16px;
}
.specs-summary .item {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}
.specs-summary .item:last-child { border-right: 0; }
.specs-summary .item .data { min-width: 0; }
.specs-summary .item .v { font-weight: 800; color: var(--navy); font-size: 20px; line-height: 1; letter-spacing: -0.01em; }
.specs-summary .item .l { font-size: 10px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* Sections */
section { padding: 40px 0; }
.section-title {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.section-title .num {
  background: var(--navy);
  color: white;
  font-weight: 800;
  padding: 6px 14px;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.section-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex: 1;
}
.section-title::after { content: ""; display: block; height: 2px; background: var(--navy); flex: 0 0 auto; width: 30%; }

/* Specs cartes catalogue — 3 cols densité catalogue */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--navy);
}
.spec-block {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.spec-block:nth-child(3n) { border-right: 0; }
.spec-block:nth-last-child(-n+1) { border-bottom: 0; }
.spec-block h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 5px;
}
.spec-block dl { margin: 0; }
.spec-block dl div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.spec-block dl div:last-child { border-bottom: 0; }
.spec-block dt { color: var(--steel); }
.spec-block dd { margin: 0; color: var(--navy); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Reassurance row pro */
.reassurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 2px solid var(--navy);
}
.reassurance .item {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
}
.reassurance .item:last-child { border-right: 0; }
.reassurance .item .item-num {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: "Helvetica Neue", monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.reassurance .item .icon { font-size: 28px; display: block; margin-bottom: 8px; }
.reassurance .item .label { font-weight: 800; color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.reassurance .item .desc { font-size: 12.5px; color: var(--steel); line-height: 1.45; }

.cert-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  border: 2px solid var(--navy);
  border-top: 0;
  padding: 10px 16px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-items: center;
  flex-wrap: wrap;
}
.cert-row .cert-label { font-weight: 800; }
.cert-row .cert {
  background: white;
  color: var(--navy);
  padding: 4px 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 11px;
  border-radius: 2px;
}

/* Contact pro B2B */
.contact-block {
  background: var(--navy);
  color: white;
  padding: 28px 32px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.contact-block .label-top { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.contact-block h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px 0; text-transform: uppercase; letter-spacing: 0.02em; color: white; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.contact-info p { margin: 0; padding: 4px 0; font-size: 14px; border-bottom: 1px solid var(--steel); color: white; }
.contact-info .contact-phone { font-size: 22px !important; font-weight: 800 !important; color: var(--accent); }
.contact-info .contact-phone strong { color: var(--accent); }
.contact-info a { color: white; text-decoration: none; }
.contact-info a:hover { color: var(--accent); }
.contact-cta a {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  padding: 14px 26px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.contact-cta a:hover { background: white; }

/* Footer pro */
.site-footer {
  margin-top: 0;
  padding: 18px 0;
  background: var(--navy);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 760px) {
  .hero .container { grid-template-columns: 1fr; gap: 18px; }
  .hero-content h1 { font-size: 26px; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-block { border-right: 0 !important; }
  .reassurance { grid-template-columns: 1fr; }
  .reassurance .item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .contact-block { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
}

/* Print A4 — AÉRÉ (req-fpv15) + tableaux non coupés + orphelins corrigés (req-fpv18) + hero pleine largeur (req-fpv19) */
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  html, body { background: white; }
  .container { padding: 0 !important; max-width: 100%; }
  .site-header { position: static; }
  .switches { display: none !important; }
  .contact-cta { display: none; }
  /* Hero pleine largeur pour PDFs (req-fpv19) : image au-dessus + tagline full width */
  .hero .container { display: block !important; grid-template-columns: none !important; }
  .hero-img { max-width: 60%; margin: 0 auto 16px; display: block; }
  .hero-content { width: 100%; max-width: 100%; }
  .hero-content .tagline, .hero-content h1 { max-width: 100%; }
  /* Tableaux/cards non coupés entre pages — !important agressif (req-fpv20) */
  .spec-block,
  .reassurance .item,
  .contact-block,
  .specs-summary,
  .reassurance,
  .cert-row,
  .hero,
  dl, dl div {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
  }
  /* .specs-grid : retirer border parent (crée cadre vide page break) + autoriser split */
  .specs-grid {
    border: 0 !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }
  /* Chaque spec-block prend sa propre border complète (au lieu d'hériter du parent border) */
  .spec-block {
    border: 1px solid var(--navy) !important;
    margin: -0.5px !important;
    box-sizing: border-box;
  }
  /* Anti-orphelins typographiques : titres ne restent jamais seuls en bas de page */
  .section-title,
  h1, h2, h3 {
    page-break-after: avoid;
    break-after: avoid;
  }
  /* Premier élément après un titre ne se sépare pas du titre */
  .section-title + *,
  h2 + *, h3 + * {
    page-break-before: avoid;
    break-before: avoid;
  }
  /* Orphelins/veuves paragraphes */
  p { orphans: 3; widows: 3; }
  a { color: inherit; }
}

/* Downloads block (req-fpv25) */
.downloads {
  background: var(--bg-soft);
  padding: 28px 0;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  margin-top: 32px;
}
.downloads h2 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.dl-link {
  display: block;
  background: white;
  border: 1.5px solid var(--navy);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.dl-link:hover { background: var(--navy); color: white; }
.dl-link.current { background: var(--accent); color: var(--navy); border-color: var(--accent); pointer-events: none; }
@media print { .downloads { display: none !important; } }
