/* =========================================================
   Baie-James Automobiles — design system
   ========================================================= */
:root {
  --color-black: #0c0e11;
  --color-dark: #16191d;
  --color-gold: #c9a227;
  --color-gold-light: #e8c65a;
  --color-red: #d4241a;
  --color-linex: #ffd400;
  --color-bg: #f7f6f3;
  --color-bg-alt: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6a6f76;
  --color-border: #e6e4df;
  --font-heading: 'Oswald', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --shadow: 0 10px 30px rgba(12, 14, 17, 0.14);
  --shadow-lg: 0 24px 60px rgba(12, 14, 17, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; color: var(--color-black); text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--color-gold); font-family: var(--font-heading); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 30px; height: 3px; background: var(--color-red); display: inline-block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 34px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .88rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .06em; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--color-red); color: #fff; box-shadow: 0 10px 24px rgba(212,36,26,.4); }
.btn-red:hover { background: #a91b13; }
.btn-linex { background: var(--color-linex); color: var(--color-black); box-shadow: 0 10px 24px rgba(255,212,0,.35); }
.btn-linex:hover { background: #e6bf00; }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; color: var(--color-black); box-shadow: inset 0 0 0 2px var(--color-black); }
.btn-outline-dark:hover { background: var(--color-black); color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Header ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(12,14,17,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); transition: padding .3s ease; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; transition: padding .3s ease; }
.site-header.scrolled .container { padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand img { height: 46px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { text-decoration: none; font-weight: 600; font-family: var(--font-heading); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; position: relative; padding: 8px 0; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--color-gold); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--color-gold); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.6); text-decoration: none; }
.lang-switch strong { color: #fff; }
.lang-switch:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; color: #fff; }

.mobile-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .25s ease; }
.mobile-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); background: var(--color-black); padding: 28px 24px; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 18px; }
body.menu-open .mobile-drawer { visibility: visible; }
body.menu-open .mobile-drawer .backdrop { opacity: 1; }
body.menu-open .mobile-drawer .panel { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.mobile-drawer nav a { text-decoration: none; font-weight: 700; font-family: var(--font-heading); text-transform: uppercase; font-size: 1.05rem; color: #fff; padding: 6px 0; }
.mobile-drawer .close-drawer { align-self: flex-end; background: none; border: none; cursor: pointer; }
.mobile-drawer .close-drawer svg { width: 24px; height: 24px; color: #fff; }

/* ===== Hero ===== */
.hero { position: relative; padding: 170px 0 120px; color: #fff; background-size: cover; background-position: center; min-height: 640px; display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,7,9,.95) 5%, rgba(6,7,9,.55) 45%, rgba(6,7,9,.25) 100%); }
.hero::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--color-red), var(--color-gold)); }
.hero .container { position: relative; z-index: 1; max-width: 780px; }
.hero .eyebrow { color: var(--color-linex); }
.hero .eyebrow::before { background: var(--color-linex); }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page hero */
.page-hero { position: relative; padding: 160px 0 60px; color: #fff; background-size: cover; background-position: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,7,9,.94), rgba(6,7,9,.65)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; max-width: 65ch; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-dark { background: var(--color-black); color: rgba(255,255,255,.85); }
.section-dark h2 { color: #fff; }
.section-header { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }

/* Intro split */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.intro-split img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; height: 100%; }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } }

/* Service pillar cards (Accueil) */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.pillar-card { position: relative; overflow: hidden; display: block; text-decoration: none; height: 420px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); box-shadow: var(--shadow-lg); }
.pillar-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar-card:hover img { transform: scale(1.06); }
.pillar-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,7,9,.94) 10%, rgba(6,7,9,.3) 60%, rgba(6,7,9,.1) 100%); }
.pillar-card .content { position: absolute; left: 30px; right: 30px; bottom: 28px; z-index: 2; }
.pillar-card .tag { display: inline-block; background: var(--color-linex); color: var(--color-black); font-family: var(--font-heading); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 5px 14px; margin-bottom: 12px; }
.pillar-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.pillar-card p { color: rgba(255,255,255,.82); font-size: .92rem; margin-bottom: 0; }
.pillar-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--color-gold-light); font-weight: 700; font-family: var(--font-heading); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* Stat strip */
.stat-strip { background: var(--color-black); color: #fff; }
.stat-strip .container { display: flex; flex-wrap: wrap; gap: 60px; padding-top: 40px; padding-bottom: 40px; justify-content: center; }
.stat-item { text-align: center; flex: 0 1 180px; }
.stat-item .num { display: block; font-family: var(--font-heading); font-size: 2.3rem; font-weight: 700; color: var(--color-linex); }
.stat-item .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.7); font-weight: 600; }

/* Value / feature cards */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--color-border); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); padding: 30px 26px; box-shadow: var(--shadow); }
.value-card .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--color-black); color: var(--color-linex); margin-bottom: 16px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.value-card .icon-wrap svg { width: 26px; height: 26px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--color-text-muted); font-size: .93rem; margin: 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-grid a { position: relative; overflow: hidden; display: block; aspect-ratio: 4/3; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%); opacity: 0; transition: opacity .25s ease; }
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.gallery-grid a:hover .cap { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(4,5,6,.95); }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 80vh; object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--font-heading); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.lightbox-close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.lightbox-close svg { width: 28px; height: 28px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--color-red); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev svg, .lightbox-next svg { width: 24px; height: 24px; }
body.lightbox-open { overflow: hidden; }

/* Pricing tables */
.price-block { background: #fff; border: 1px solid var(--color-border); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); box-shadow: var(--shadow); padding: 32px; margin-bottom: 24px; }
.price-block h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--color-red); padding-bottom: 12px; margin-bottom: 18px; }
.price-block .from { font-family: var(--font-body); font-size: .78rem; text-transform: none; letter-spacing: 0; color: var(--color-text-muted); font-weight: 600; }
table.price-table { width: 100%; border-collapse: collapse; }
table.price-table td { padding: 10px 0; border-bottom: 1px dashed var(--color-border); font-size: .93rem; }
table.price-table tr:last-child td { border-bottom: none; }
table.price-table td:last-child { text-align: right; font-family: var(--font-heading); font-weight: 700; color: var(--color-red); white-space: nowrap; }
.price-note { text-align: center; color: var(--color-text-muted); font-size: .85rem; margin-top: 10px; }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.cert-card { background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow); overflow: hidden; }
.cert-card img { width: 100%; height: 220px; object-fit: cover; }
.cert-card .body { padding: 22px 24px; }
.cert-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cert-card p { color: var(--color-text-muted); font-size: .88rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.contact-feature { background: #fff; border: 1px solid var(--color-border); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); padding: 30px; box-shadow: var(--shadow); text-align: center; }
.contact-feature .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--color-red); color: #fff; margin-bottom: 16px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.contact-feature .icon-wrap svg { width: 24px; height: 24px; }
.contact-feature h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-feature a, .contact-feature p { color: var(--color-text-muted); text-decoration: none; margin: 0; }
.contact-feature a { color: var(--color-red); font-weight: 700; }
.map-embed { width: 100%; min-height: 380px; border: 0; box-shadow: var(--shadow); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--color-black), #26160f); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); padding: 52px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--color-black); color: rgba(255,255,255,.75); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-brand img { height: 68px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 36ch; font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.78); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: var(--color-gold); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-contact span { text-decoration: none; color: rgba(255,255,255,.78); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--color-gold); flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s; }
.footer-social a:hover { background: var(--color-red); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.8); text-decoration: none; }

/* Responsive */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; }
  .section { padding: 58px 0; }
  .hero { padding: 130px 0 70px; min-height: 520px; }
}

/* =========================================================
   Consent banner — Loi 25 / cookie consent
   ========================================================= */
.consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--color-dark);
  color: #fff;
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  border-top: 3px solid var(--color-gold);
}
.consent-banner.visible { display: flex; }
.consent-banner p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
  max-width: 680px;
  color: rgba(255,255,255,.85);
}
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions button {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}
.consent-accept { background: var(--color-gold); color: var(--color-black); }
.consent-accept:hover { background: var(--color-gold-light); }
.consent-decline { background: transparent; color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.consent-decline:hover { color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 640px) {
  .consent-banner { padding: 16px; justify-content: flex-start; }
  .consent-actions { width: 100%; }
  .consent-actions button { flex: 1; }
}