/* ============================================================
   ENGC — Site vitrine V1.0
   Charte cohérente avec le formulaire de devis (quote-wizard-engc.css)
   ============================================================ */

:root {
  --bleu: #2e86b5;
  --bleu-fonce: #205f82;
  --bleu-glow: rgba(46, 134, 181, 0.35);
  --rouge: #d6453d;
  --encre: #1b2530;
  --acier: #6c7a87;
  --trait: #d8dee4;
  --fond: #eef1f4;
  --papier: #ffffff;
  --radius: 12px;
  --ombre: 0 10px 30px rgba(27, 37, 48, 0.10), 0 2px 6px rgba(27, 37, 48, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }

.section-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-sub {
  color: var(--acier);
  font-size: 17px;
  max-width: 720px;
  margin: -6px 0 36px;
}

.center { text-align: center; }

/* ------------------------------------------------ boutons */
.btn-primary {
  display: inline-block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--bleu), var(--bleu-fonce));
  padding: 15px 32px;
  border-radius: 10px;
  box-shadow: 0 4px 14px var(--bleu-glow);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: translateY(1px); }

.btn-big {
  font-size: 21px;
  padding: 18px 40px;
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.btn-big small {
  display: block;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
  margin-top: 4px;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 14px var(--bleu-glow); }
  50%      { box-shadow: 0 4px 26px rgba(46, 134, 181, 0.6); }
}

.btn-ghost {
  display: inline-block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
  background: #fff;
  border: 1px solid var(--trait);
  padding: 15px 28px;
  border-radius: 10px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--bleu); color: var(--bleu-fonce); }

/* Bouton secondaire dans le hero sombre : contour clair translucide */
.hero .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

/* ------------------------------------------------ navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait);
}
.nav-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo img { width: 150px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre);
}
.nav-links a:hover { color: var(--bleu-fonce); }
.nav-links .nav-cta {
  color: #fff;
  background: linear-gradient(180deg, var(--bleu), var(--bleu-fonce));
  padding: 9px 18px;
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--bleu-glow);
}
.nav-burger { display: none; }

/* ------------------------------------------------ hero */
.hero {
  /* Texture acier issue du logo ENGC (calque source du PSD) */
  background:
    linear-gradient(rgba(20, 26, 33, 0.34), rgba(20, 26, 33, 0.34)),
    url("../img/texture-acier-hd.jpg") center / cover no-repeat,
    var(--encre);
  border-bottom: 1px solid var(--encre);
}
.hero-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 90px 24px 70px;
  text-align: center;
}
.hero-eyebrow {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5aa9d6;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
/* signature : le mot-clé en halo facon enseigne lumineuse */
.halo {
  color: #5aa9d6;
  text-shadow:
    0 0 12px rgba(90, 169, 214, 0.6),
    0 0 30px rgba(90, 169, 214, 0.45),
    0 0 60px rgba(46, 134, 181, 0.3);
}
.hero-sub {
  font-size: 19px;
  color: #d4dce2;
  max-width: 660px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.hero-bandeau {
  margin: 0;
  padding: 14px 24px;
  text-align: center;
  font-size: 15.5px;
  color: #fff;
  background: linear-gradient(90deg, var(--bleu-fonce), var(--bleu) 55%, var(--rouge) 140%);
}
.hero-bandeau strong {
  font-family: "Barlow Semi Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ------------------------------------------------ engagements */
.engagements { background: var(--fond); }
.eng-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.eng-card {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-top: 4px solid var(--bleu);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--ombre);
}
.eng-card h3 { margin-bottom: 8px; }
.eng-card p { margin: 0; color: var(--acier); font-size: 15px; }

/* ------------------------------------------------ produits */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.prod-card {
  text-decoration: none;
  color: inherit;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  border-color: var(--bleu);
  box-shadow: 0 14px 30px rgba(27, 37, 48, 0.14);
}
.prod-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.prod-body { padding: 18px 20px 22px; }
.prod-body h3 { color: var(--bleu-fonce); margin-bottom: 6px; }
.prod-body p { margin: 0; font-size: 14.5px; color: var(--acier); }

/* ------------------------------------------------ atelier */
.atelier { background: var(--encre); color: #fff; }
.atelier h2 { color: #fff; }
.atelier .section-sub { color: #aab6c2; }
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.machine-grid figure { margin: 0; }
.machine-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}
.machine-grid figcaption {
  font-size: 14px;
  color: #aab6c2;
  padding: 10px 4px 0;
}
.machine-grid strong {
  color: #fff;
  font-family: "Barlow Semi Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ------------------------------------------------ réalisations */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(27, 37, 48, 0.18);
}

/* ------------------------------------------------ CTA final */
.cta-final {
  background:
    linear-gradient(rgba(32, 95, 130, 0.92), rgba(27, 37, 48, 0.94)),
    url("../img/realisations/caisson-lumineux-facade-commerce.jpg") center / cover no-repeat;
  color: #fff;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #cfd9e2; max-width: 600px; margin: 0 auto 30px; }

/* ------------------------------------------------ footer */
.footer { background: var(--encre); color: #cfd9e2; }
.footer .section-inner { padding-top: 56px; padding-bottom: 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
}
.footer h3 {
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
}
.footer-logo { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.footer-slogan {
  font-family: "Barlow Semi Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  margin: 10px 0 4px;
}
.footer-bandeau { font-size: 13px; color: #8fa1b0; }
.footer address { font-style: normal; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--bleu); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-legal {
  text-align: center;
  font-size: 13px;
  color: #8fa1b0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  padding: 18px 24px;
}
.footer-legal a { color: #8fa1b0; text-decoration: underline; }

/* ------------------------------------------------ responsive */
@media (max-width: 820px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-burger span {
    width: 26px;
    height: 3px;
    background: var(--encre);
    border-radius: 2px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--trait);
    padding: 18px 24px;
    gap: 18px;
    box-shadow: var(--ombre);
  }
  body.nav-open .nav-links { display: flex; }

  .section-inner { padding: 52px 18px; }
  .hero-inner { padding: 60px 18px 48px; }
  .hero-ctas { flex-direction: column; }
  .btn-big { width: 100%; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-big { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Pages intérieures (produits, mentions, devis)
   ============================================================ */

.breadcrumb {
  max-width: 1150px;
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 13.5px;
  color: var(--acier);
}
.breadcrumb a { color: var(--bleu-fonce); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero {
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
}
.page-hero .section-inner { padding: 44px 24px 48px; }
.page-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero .lead {
  font-size: 18px;
  color: var(--acier);
  max-width: 760px;
  margin: 0 0 26px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.specs {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-top: 4px solid var(--bleu);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 22px 24px;
}
.specs h2, .specs h3 { font-size: 17px; color: var(--bleu-fonce); margin-bottom: 12px; }
.specs dl { margin: 0; }
.specs dt {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  color: var(--encre);
  margin-top: 12px;
}
.specs dd { margin: 2px 0 0; font-size: 14.5px; color: var(--acier); }

.variantes { margin-top: 36px; }
.var-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.var-card {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-left: 4px solid var(--bleu);
  border-radius: 10px;
  padding: 18px 18px 16px;
}
.var-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--bleu-fonce); }
.var-card p { margin: 0; font-size: 14px; color: var(--acier); }

.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}
.photo-duo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 640px) { .photo-duo { grid-template-columns: 1fr; } }

.cta-band {
  background: linear-gradient(90deg, var(--bleu-fonce), var(--bleu));
  color: #fff;
  text-align: center;
}
.cta-band .section-inner { padding: 48px 24px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3.5vw, 30px); }
.cta-band p { color: #d8e6ef; margin: 0 auto 24px; max-width: 560px; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--bleu-fonce);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 20px; margin-top: 34px; }
.placeholder-box {
  background: #fff7f6;
  border: 1px dashed var(--rouge);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--rouge);
  font-size: 14px;
  display: inline-block;
}
