/*
Theme Name: EBM Industrie
Theme URI: https://ebm-sa.be/
Author: EBM
Description: Thème WordPress léger conçu pour EBM SA : défense, conteneurs aménagés et fabrication métallique.
Version: 1.5.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: ebm-industrie
*/

:root {
  --ink: #10212b;
  --ink-2: #17313e;
  --steel: #54646d;
  --mist: #eef2f3;
  --white: #fff;
  --accent: #e96b2c;
  --accent-dark: #bf4d18;
  --line: #d8e0e3;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(16, 33, 43, .12);
}

* { box-sizing: border-box; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; padding: .7rem 1rem; clip: auto; color: var(--ink); background: var(--white); }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .55em; font-family: "Arial Narrow", Inter, ui-sans-serif, sans-serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.1rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section--dark { color: var(--white); background: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1rem; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; content: ""; background: currentColor; }
.lead { max-width: 760px; color: var(--steel); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.section--dark .lead { color: #c6d1d6; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .75rem 1.25rem; border: 2px solid var(--accent); border-radius: 4px; color: var(--white); background: var(--accent); font-weight: 800; text-decoration: none; transition: .2s ease; cursor: pointer; }
.button:hover, .button:focus-visible { border-color: var(--accent-dark); background: var(--accent-dark); transform: translateY(-1px); }
.button--ghost { border-color: rgba(255,255,255,.55); background: transparent; }
.button--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.button--dark { border-color: var(--ink); background: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.site-header { position: sticky; z-index: 50; top: 0; color: var(--white); background: rgba(16,33,43,.97); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { width: 154px; }
.main-nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: .94rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: #ffae84; }
.nav-cta, .main-nav li:last-child a { padding: .62rem .9rem; border-radius: 4px; background: var(--accent); }
.menu-toggle { display: none; padding: .5rem; border: 0; color: white; background: transparent; font: inherit; font-weight: 800; }

.hero { position: relative; min-height: 700px; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::before { position: absolute; inset: 0; content: ""; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.hero-grid { position: relative; display: grid; min-height: 700px; align-items: center; grid-template-columns: 1.1fr .9fr; gap: clamp(35px, 7vw, 90px); padding: 80px 0; }
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 690px; }
.hero-copy > p { max-width: 650px; color: #d0d9dd; font-size: 1.18rem; }
.hero-visual { position: relative; min-height: 490px; }
.hero-visual img { position: absolute; width: 75%; height: 300px; border: 8px solid var(--ink-2); object-fit: cover; box-shadow: var(--shadow); }
.hero-visual img:first-child { top: 0; right: 0; }
.hero-visual img:last-child { bottom: 0; left: 0; }
.hero-badge { position: absolute; z-index: 2; right: 4%; bottom: 18%; width: 145px; padding: 1.1rem; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.hero-badge strong { display: block; color: var(--accent); font-size: 2rem; line-height: 1; }
.proofbar { border-bottom: 1px solid var(--line); background: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof { padding: 1.55rem; border-right: 1px solid var(--line); }
.proof:first-child { border-left: 1px solid var(--line); }
.proof strong { display: block; font-size: 1.05rem; }
.proof span { color: var(--steel); font-size: .88rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 32px rgba(16,33,43,.07); }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 1.6rem; }
.card-number { color: var(--accent); font-weight: 900; }
.card p { color: var(--steel); }
.text-link { color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.text-link::after { content: " →"; }

.split { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); }
.split-media { position: relative; }
.split-media img { width: 100%; min-height: 480px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.split-note { position: absolute; right: -20px; bottom: -22px; max-width: 260px; padding: 1.25rem; color: var(--white); background: var(--accent); font-weight: 800; }
.ticks { display: grid; gap: .7rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { position: absolute; left: 0; color: var(--accent); content: "✓"; font-weight: 900; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.15); }
.process-step { min-height: 210px; padding: 1.6rem; background: var(--ink); }
.process-step span { color: var(--accent); font-size: 2rem; font-weight: 900; }
.process-step p { color: #bac8ce; }
.projects { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 1rem; margin-top: 3rem; }
.project { position: relative; min-height: 420px; overflow: hidden; border-radius: 12px; color: var(--white); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover img { transform: scale(1.03); }
.project::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(6,19,26,.94)); }
.project-caption { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 1.4rem; }
.project-caption small { color: #ffae84; font-weight: 800; text-transform: uppercase; }
.cta-panel { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 2rem; padding: clamp(35px, 6vw, 70px); border-radius: var(--radius); color: var(--white); background: var(--accent); }
.cta-panel h2 { max-width: 780px; }
.cta-panel .button { border-color: var(--white); color: var(--ink); background: var(--white); }

.page-hero { padding: 95px 0 75px; color: var(--white); background: var(--ink); }
.page-hero h1 { max-width: 940px; font-size: clamp(2.6rem, 5vw, 4.7rem); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.5rem; font-size: 2.25rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul { padding-left: 1.2rem; }
.entry-content img { border-radius: 12px; }
.related-services { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.service-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.service-link { position: relative; display: grid; gap: .25rem; min-height: 120px; padding: 1.2rem 3rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.service-link span { color: var(--steel); font-size: .92rem; }
.service-link b { position: absolute; top: 1.1rem; right: 1.2rem; color: var(--accent); font-size: 1.25rem; }
.service-link:hover, .service-link:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,33,43,.08); }
.sidebar-box { position: sticky; top: 110px; padding: 1.5rem; border-top: 5px solid var(--accent); background: var(--mist); }
.sidebar-box .button { width: 100%; }

.quote-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem; border: 1px solid #b9c4c9; border-radius: 4px; background: var(--white); font: inherit; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(233,107,44,.22); border-color: var(--accent); }
.form-note { color: var(--steel); font-size: .9rem; }
.notice { padding: 1rem; border-left: 4px solid var(--accent); background: var(--mist); }
.notice--success { border-color: #168252; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { color: #d4dde1; background: #09171e; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding: 70px 0 45px; }
.footer-grid img { width: 160px; margin-bottom: 1rem; }
.footer-grid h3 { color: var(--white); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #ffae84; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.consent-banner { position: fixed; z-index: 99999; right: 20px; bottom: 20px; left: 20px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1050px; margin: 0 auto; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); box-shadow: 0 18px 50px rgba(9,23,30,.24); }
.consent-banner[hidden] { display: none; }
.consent-copy { max-width: 720px; }
.consent-copy p { margin: .35rem 0; color: var(--steel); }
.consent-actions { display: flex; flex-shrink: 0; gap: .65rem; }
.consent-actions .button { cursor: pointer; }
.consent-actions .button--outline { border-color: var(--ink); color: var(--ink); background: transparent; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 78px; right: 0; left: 0; display: none; padding: 1rem 20px 1.4rem; background: var(--ink); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; }
  .main-nav .nav-cta { text-align: center; }
  .hero-grid, .split, .content-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: .8fr 1.2fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .project:first-child { grid-column: 1 / -1; }
  .process { grid-template-columns: 1fr 1fr; }
  .sidebar-box { position: static; }
}

@media (max-width: 620px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { padding: 65px 0; }
  .hero-visual { display: none; }
  .proof-grid, .projects, .process, .footer-grid, .quote-form, .service-links { grid-template-columns: 1fr; }
  .proof { border-right: 0; border-bottom: 1px solid var(--line); }
  .card { display: block; }
  .project, .projects .project:first-child { min-height: 340px; grid-column: auto; }
  .split-media img { min-height: 340px; }
  .split-note { right: 0; }
  .cta-panel { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .consent-banner { align-items: stretch; flex-direction: column; gap: 1rem; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
