/* =========================================================
   NYMYA GROUP — Main Stylesheet
   Palette: Navy #0B1E3D / #0F2A52   Gold #C9992E / #E3C171
   ========================================================= */

:root {
  --navy-950: #060f22;
  --navy-900: #0b1e3d;
  --navy-800: #10274d;
  --navy-700: #17335f;
  --navy-600: #223f72;
  --gold-700: #a87a1f;
  --gold-600: #c9992e;
  --gold-500: #d9ab45;
  --gold-300: #e6c579;
  --gold-100: #f7ecd2;
  --white: #ffffff;
  --off-white: #f6f7fa;
  --gray-100: #eef0f4;
  --gray-300: #d7dbe3;
  --gray-500: #8a93a3;
  --gray-700: #4a5468;
  --gray-900: #1c2333;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 30, 61, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 30, 61, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 30, 61, 0.18);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Language visibility ---------- */
/* Toggle language: "revert" restores each tag's natural default display
   (block for h1-h4/p/li/div, inline for span) instead of forcing every
   element to display:inline, which broke block-level layout for headings
   and paragraphs tagged directly with data-en/data-fr. */
[data-fr] { display: none; }
html[lang="fr"] [data-en] { display: none; }
html[lang="fr"] [data-fr] { display: revert; }
html[lang="en"] [data-fr] { display: none; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-600);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.05); }
.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-300); }
.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 72px; width: auto; }
.brand-text { font-family: var(--font-head); line-height: 1.1; }
.brand-text strong { display: block; color: var(--navy-900); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { display: block; color: var(--gold-700); font-size: 0.68rem; letter-spacing: 0.22em; font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.main-nav a:hover { color: var(--gold-700); }
.main-nav a.active { color: var(--gold-700); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gold-600);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  overflow: hidden;
}
.lang-switch a {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray-700);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-switch a.active { background: var(--navy-900); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,15,34,0.96) 0%, rgba(6,15,34,0.88) 32%, rgba(11,30,61,0.55) 62%, rgba(11,30,61,0.35) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 82% 20%, rgba(217,171,69,0.16), transparent 55%),
                     radial-gradient(circle at 10% 90%, rgba(217,171,69,0.10), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero .kicker { color: var(--gold-300); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.3rem); margin-bottom: 22px; }
.hero h1 em { color: var(--gold-500); font-style: normal; }
.hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-illustration { position: absolute; right: -40px; bottom: -20px; width: 46%; max-width: 560px; z-index: 1; opacity: 0.92; }

.hero.hero-sub { padding: 72px 0 60px; }
.hero.hero-sub h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-300); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.trust-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px; }
.trust-bar span { color: var(--gold-400,#dcb862); font-family: var(--font-head); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.trust-bar svg { width: 18px; height: 18px; flex: none; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.section-title { font-size: clamp(1.85rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
.label-sm { font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-700); }
.section-head p { color: var(--gray-700); font-size: 1.04rem; margin-top: 14px; }
.section-navy .section-head p { color: rgba(255,255,255,0.75); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-photo {
  margin: -34px -28px 24px;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}
.card-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,30,61,0.05), rgba(11,30,61,0.35));
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--gold-400, #dcb862); }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 0.95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; color: var(--gold-700); }

/* Service card variant with number */
.service-card { position: relative; border-top: 3px solid var(--gold-600); }
.service-card .num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--gray-100); }

/* ---------- Stats ---------- */
.stats-strip { background: var(--navy-950); padding: 56px 0; color: var(--white); }
.stats-strip .grid { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--gold-400,#e0b657); }
.stat .label { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; color: var(--gold-400,#dcb862); margin-top: 8px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Values / HSE pillars ---------- */
.pillar { display: flex; gap: 20px; align-items: flex-start; }
.pillar > div { min-width: 0; }
.pillar .icon-wrap {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: var(--gold-100); display: flex; align-items: center; justify-content: center;
}
.pillar .icon-wrap svg { width: 26px; height: 26px; stroke: var(--gold-700); }
.pillar h4 { font-size: 1.02rem; margin-bottom: 6px; }
.pillar p { color: var(--gray-700); font-size: 0.93rem; }

/* ---------- Two column split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img, .split .media-box { border-radius: var(--radius); }
.media-box {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  aspect-ratio: 4/3.1;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-300); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -34px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-600); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold-600);
}
.timeline-item h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-item p { color: var(--gray-700); font-size: 0.92rem; }

/* ---------- Badges / certifications ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 16px; }
.cert-badge {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--gray-300); border-radius: 8px;
  padding: 14px 18px; background: var(--white);
  min-width: 200px;
}
.cert-badge svg { width: 30px; height: 30px; stroke: var(--navy-800); flex: none; }
.cert-badge strong { display: block; font-family: var(--font-head); font-size: 0.94rem; color: var(--navy-900); }
.cert-badge span { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-700); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius: 16px;
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  color: var(--white);
}
.cta-band > * { max-width: 100%; min-width: 0; }
.cta-band .btn { white-space: normal; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,171,69,0.25), transparent 70%);
}
.cta-band > div { min-width: 0; }
.cta-band h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.75); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-700); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--gray-300); border-radius: 8px; padding: 13px 14px;
  background: var(--white); color: var(--gray-900); transition: border-color var(--transition);
  font-family: var(--font-body); font-size: 1rem; width: 100%;
}
.form-field select { cursor: pointer; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold-600);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; }

/* ---------- Custom dropdown (avoids native <select> popup rendering) ---------- */
.custom-select { position: relative; }
.custom-select-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 1.5px solid var(--gray-300); border-radius: 8px; padding: 13px 14px;
  background: var(--white); color: var(--gray-900); font-family: var(--font-body); font-size: 1rem;
  cursor: pointer; text-align: left; transition: border-color var(--transition);
}
.custom-select-trigger:focus, .custom-select-trigger.open { outline: none; border-color: var(--gold-600); }
.custom-select-trigger svg { width: 18px; height: 18px; flex: none; color: var(--gray-700); transition: transform var(--transition); }
.custom-select-trigger.open svg { transform: rotate(180deg); }
.custom-select-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
  background: var(--white); border: 1.5px solid var(--gray-300); border-radius: 8px;
  box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto;
  padding: 6px; margin: 0;
}
.custom-select-list[hidden] { display: none; }
.custom-select-list li {
  list-style: none; padding: 10px 12px; border-radius: 6px; font-size: 0.95rem;
  color: var(--gray-900); cursor: pointer; transition: background var(--transition);
}
.custom-select-list li:hover, .custom-select-list li.active { background: var(--off-white); }
.custom-select-list li.selected { color: var(--gold-700); font-weight: 700; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status { padding: 14px 16px; border-radius: 8px; font-size: 0.92rem; margin-bottom: 20px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f6ec; color: #1e6b3a; border: 1px solid #bfe6cb; }
.form-status.err { background: #fdecec; color: #a3261f; border: 1px solid #f3c6c3; }

/* ---------- Contact info list ---------- */
.info-card { background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 38px; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item > div { min-width: 0; }
.info-item:last-child { margin-bottom: 0; }
.info-item .icon-wrap { width: 44px; height: 44px; flex: none; border-radius: 10px; background: rgba(217,171,69,0.15); display: flex; align-items: center; justify-content: center; }
.info-item .icon-wrap svg { width: 22px; height: 22px; stroke: var(--gold-400,#e0b657); }
.info-item h4 { color: var(--gold-400,#dcb862); font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.info-item p, .info-item a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.info-item a:hover { color: var(--gold-300); }
.social-row { display: flex; gap: 10px; margin-top: 30px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.social-row a:hover { background: var(--gold-600); border-color: var(--gold-600); }
.social-row svg { width: 17px; height: 17px; stroke: var(--white); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200,#e5e7ec); }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- Sectors ---------- */
.sector-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 260px;
  display: flex; align-items: flex-end; padding: 26px;
  color: var(--white); box-shadow: var(--shadow-sm);
}
.sector-card .bg { position: absolute; inset: 0; z-index: 0; }
.sector-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,15,34,0.15), rgba(6,15,34,0.92)); z-index: 1; }
.sector-card .content { position: relative; z-index: 2; min-width: 0; width: 100%; }
.sector-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.sector-card p { color: var(--gold-300); font-size: 0.86rem; }

/* ---------- Logos strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; opacity: 0.75; }
.logo-strip span { font-family: var(--font-head); font-weight: 700; color: var(--gray-500); letter-spacing: 0.06em; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding-top: 70px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .logo-chip { background: var(--white); border-radius: 10px; padding: 6px; display: flex; align-items: center; justify-content: center; }
.footer-brand img { height: 40px; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1rem; display: block; }
.footer-brand span { color: var(--gold-400,#e0b657); font-size: 0.66rem; letter-spacing: 0.2em; }
.footer-col h4 { color: var(--white); font-family: var(--font-head); font-size: 0.88rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-400,#e0b657); }
.footer-col p { font-size: 0.88rem; margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 26px 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-400,#e0b657); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all var(--transition);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; stroke: var(--gold-400,#e0b657); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Breadcrumb sep ---------- */
.sep { opacity: 0.4; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-illustration { display: none; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { height: 74px; }
  .brand-text span { display: none !important; }
  .brand img { height: 56px; }
  .header-actions { gap: 10px; }
  .header-actions .btn-navy { padding: 9px 14px; font-size: 0.78rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }

  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--white); padding: 12px 24px 20px; box-shadow: var(--shadow-md); gap: 4px;
    max-height: calc(100vh - 74px); overflow-y: auto; z-index: 999;
  }
  .header-actions.open .lang-switch { display: flex; }
}

@media (max-width: 640px) {
  .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 34px 26px; flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 70px; }
}

@media (max-width: 420px) {
  .header-actions .btn-navy span { display: none; }
  .header-actions .btn-navy::after { content: "Quote"; }
  html[lang="fr"] .header-actions .btn-navy::after { content: "Devis"; }
  .header-actions .btn-navy { padding: 9px 12px; }
}
