:root {
  --blue: #1a6bff;
  --blue-dark: #0d4fd1;
  --dark: #0d0f14;
  --dark2: #13161e;
  --mid: #1e2230;
  --light-bg: #f4f5f7;
  --text: #1a1d27;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e2e5ec;
  --red: #e63946;
  --success: #16a34a;
  --error-color: #dc2626;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 60px;
  background: rgba(10,12,20,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-brand { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 14px; letter-spacing: .12em;
  color: var(--white); text-transform: uppercase;
}
.nav-brand .logo-sub {
  font-size: 8.5px; letter-spacing: .20em; color: rgba(255,255,255,.45);
  text-transform: uppercase; margin-top: 5px;
  display: flex; align-items: center; gap: 5px;
}
.nav-brand .logo-sub .dash-blue { display: inline-block; width: 14px; height: 2px; background: var(--blue); flex-shrink: 0; }
.nav-brand .logo-sub .dash-red  { display: inline-block; width: 14px; height: 2px; background: var(--red);  flex-shrink: 0; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-block; padding: 10px 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ─── HERO ─── */
#hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,12,20,.55) 0%, rgba(10,12,20,.35) 40%, rgba(10,12,20,.7) 100%),
    url('/img/vue_usine.jpg') center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.10); } }
.hero-content { position: relative; z-index: 2; animation: fadeUp .9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero-content h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(42px, 7vw, 82px); font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--white); line-height: .96;
  text-shadow: 0 4px 32px rgba(0,0,0,.4);
}
.hero-content p { margin: 20px auto 32px; max-width: 520px; font-size: 15px; font-weight: 300; color: rgba(255,255,255,.82); line-height: 1.65; }

/* ─── SECTIONS ─── */
section { padding: 90px 48px; }
.legal-page section { padding: 0; margin-bottom: 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text);
}
.section-header p { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ─── SERVICES ─── */
#services { background: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.service-card { background: var(--white); padding: 36px 32px; border: 1px solid var(--border); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(26,107,255,.1); border-color: rgba(26,107,255,.3); }
.service-icon { width: 42px; height: 42px; margin-bottom: 20px; color: var(--blue); }
.service-card h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.service-card p { font-size: 13.5px; color: var(--muted); line-height: 1.72; }

/* ─── EXPERTISE ─── */
.expertise-wrapper {
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 90px 48px;
}
.expertise-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text); line-height: 1.05; margin-bottom: 24px;
}
.expertise-text p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.expertise-img { position: relative; }
.expertise-img img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.expertise-img::before { content: ''; position: absolute; inset: -10px -10px auto auto; width: 80px; height: 80px; background: var(--blue); z-index: -1; }

/* ─── DELIVERABLES ─── */
#deliverables { background: var(--dark); }
#deliverables .section-header h2 { color: var(--white); }
#deliverables .section-header p  { color: rgba(255,255,255,.45); }
.deliverables-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; max-width: 1100px; margin: 0 auto; }
.deliverable-item { background: var(--mid); padding: 36px 24px; text-align: center; border: 1px solid rgba(255,255,255,.06); transition: background .25s; }
.deliverable-item:hover { background: #252a3a; }
.deliverable-item h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
.deliverable-item p { font-size: 11.5px; color: rgba(255,255,255,.38); letter-spacing: .06em; }

/* ─── RÉALISATIONS ─── */
#realisations { background: var(--light-bg); }
.realisations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.realisation-card { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.realisation-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.realisation-card:hover img { transform: scale(1.07); }
.realisation-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,20,.85) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 20px; }
.realisation-overlay span { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }

/* ─── DEVIS FORM ─── */
#devis { background: var(--white); }
.devis-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.devis-form label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.devis-form label small { font-size: 10px; text-transform: none; letter-spacing: 0; }
.devis-form input, .devis-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); font-family: 'Barlow', sans-serif;
  font-size: 14px; color: var(--text); background: var(--white);
  outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.devis-form input:focus, .devis-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,107,255,.12); }
.devis-form input.invalid, .devis-form textarea.invalid { border-color: var(--error-color); }
.devis-form textarea { min-height: 110px; }
.field-error { font-size: 12px; color: var(--error-color); margin-top: 4px; min-height: 16px; }
.form-feedback { padding: 12px 16px; font-size: 13.5px; border-radius: 2px; display: none; }
.form-feedback.success { background: #dcfce7; color: #15803d; display: block; }
.form-feedback.error   { background: #fee2e2; color: var(--error-color); display: block; }
.devis-form .btn { align-self: stretch; text-align: center; padding: 14px; font-size: 13px; }
.devis-form .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ─── FOOTER ─── */
footer { background: var(--dark2); padding: 60px 48px 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-square { width: 28px; height: 28px; background: var(--blue); flex-shrink: 0; }
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-text .logo-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .12em; color: var(--white); text-transform: uppercase; }
.footer-logo-text .logo-sub-footer { font-size: 9px; letter-spacing: .2em; color: rgba(255,255,255,.35); text-transform: uppercase; margin-top: 3px; }
.footer-col h5 { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col address { font-style: normal; }
.footer-col address p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 2; }
.footer-bottom { max-width: 1100px; margin: 24px auto 0; font-size: 11.5px; color: rgba(255,255,255,.25); display: flex; justify-content: space-between; }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .expertise-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .deliverables-grid { grid-template-columns: repeat(2,1fr); }
  .realisations-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 24px; }
  .expertise-wrapper { padding: 60px 24px; }
}

/* ─── CONSENTEMENT FORMULAIRE ─── */
.form-consent { margin-top: 4px; }
.consent-label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.consent-label input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0;
  accent-color: var(--blue); cursor: pointer;
}
.consent-label span {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.consent-label span a { color: var(--blue); text-decoration: none; }
.consent-label span a:hover { text-decoration: underline; }

/* ─── BANDEAU COOKIES ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 48px;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; justify-content: space-between;
}
.cookie-text strong {
  display: block; color: var(--white); font-size: 14px; margin-bottom: 4px;
}
.cookie-text p {
  font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.6; margin: 0;
}
.cookie-text p a { color: var(--blue); text-decoration: none; }
.cookie-actions {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}
.cookie-link {
  font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none;
  white-space: nowrap;
}
.cookie-link:hover { color: var(--white); }

@media (max-width: 700px) {
  .cookie-banner { padding: 20px 24px; }
  .cookie-content { flex-direction: column; align-items: flex-start; gap: 16px; }
}
