/* ==========================================================================
   EMG Construction — feuille de style
   Couleurs du logo : bleu #1E4276 · rouge #E84532
   ========================================================================== */
:root {
  --navy: #1E4276;
  --navy-700: #183764;
  --navy-800: #0f2445;
  --navy-900: #0a1830;
  --red: #E84532;
  --red-600: #d23a28;
  --ink: #14223a;
  --muted: #5d6b82;
  --line: #e3e8f0;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --sand: #f5f1ea;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(15, 36, 69, .35);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --f-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
html[lang="ar"] { --f-head: 'Cairo', 'Montserrat', system-ui, sans-serif; --f-body: 'Cairo', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { font-size: 17.5px; line-height: 1.8; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 10vw, 140px); position: relative; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Motif du logo : les barres du « E » ---------- */
.bars { display: inline-grid; grid-template-columns: 14px 8px; grid-template-rows: repeat(3, 3px); gap: 3px; vertical-align: middle; flex: none; }
.bars i { display: block; border-radius: 1px; background: var(--navy); }
.bars i:nth-child(1), .bars i:nth-child(4) { grid-column: 1 / 3; }
.bars i:nth-child(2), .bars i:nth-child(3) { background: var(--red); }
.kicker--light .bars i:nth-child(1), .kicker--light .bars i:nth-child(4),
.shead--light .bars i:nth-child(1), .shead--light .bars i:nth-child(4),
.bpm .bars i:nth-child(1), .bpm .bars i:nth-child(4),
.footer .bars i:nth-child(1), .footer .bars i:nth-child(4) { background: #fff; }

/* ---------- En-têtes de section ---------- */
.shead { margin-bottom: clamp(40px, 5vw, 64px); max-width: 860px; }
.shead--center { margin-inline: auto; text-align: center; display: grid; justify-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin-bottom: 20px; }
.kicker b { color: var(--red); font-weight: 800; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; }
.kicker--light, .shead--light .kicker { color: #fff; }
.h2 { font-size: clamp(28px, 3.8vw, 50px); font-weight: 800; color: var(--navy-800); text-wrap: balance; }
.shead--light .h2 { color: #fff; }
.shead__sub { margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 640px; }
.shead--light .shead__sub { color: rgba(255,255,255,.72); }

/* ---------- Boutons ---------- */
.btn { --bg: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: 15px; background: var(--bg); color: #fff; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); white-space: nowrap; }
.btn::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.14); transform: translateX(-101%); transition: transform .5s var(--ease-out); z-index: -1; }
[dir="rtl"] .btn::before { transform: translateX(101%); }
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(232, 69, 50, .55); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .i-arrow { transform: translateX(-4px); }
.btn--red { --bg: var(--red); }
.btn--glass { --bg: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- Préchargement ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--navy-900); display: grid; place-items: center; align-content: center; gap: 34px; transition: opacity .6s var(--ease), visibility .6s; }
.preloader__logo { width: min(260px, 60vw); overflow: hidden; }
.preloader__logo img { width: 100%; animation: pl-in 1s var(--ease-out) both; }
.preloader__bar { width: min(260px, 60vw); height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--red); transform-origin: left; animation: pl-bar 1.1s var(--ease) both; }
@keyframes pl-in { from { opacity: 0; transform: translateY(30%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes pl-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.is-loaded .preloader { opacity: 0; visibility: hidden; }
.no-preloader .preloader { display: none; }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .4s var(--ease), transform .45s var(--ease), height .4s var(--ease); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo img { width: 132px; height: auto; transition: width .4s var(--ease); }
.header__nav { display: flex; gap: 4px; margin-inline-start: auto; }
.header__nav a { position: relative; padding: 10px 13px; color: rgba(255, 255, 255, .86); font-family: var(--f-head); font-weight: 600; font-size: 14.5px; transition: color .25s; }
.header__nav a::after { content: ''; position: absolute; inset-inline: 13px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .35s var(--ease); }
.header__nav a:hover, .header__nav a.is-active { color: #fff; }
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); }
.langs a { min-width: 34px; height: 32px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; color: rgba(255,255,255,.75); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12.5px; transition: background .25s, color .25s; }
.langs a[lang="ar"] { font-family: 'Cairo', sans-serif; font-size: 15px; }
.langs a:hover { color: #fff; }
.langs a.is-current { background: #fff; color: var(--navy-800); }
.langs--big a { height: 42px; min-width: 48px; font-size: 14px; }
.header.is-scrolled { background: rgba(10, 24, 48, .84); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); height: 70px; }
.header.is-scrolled .header__logo img { width: 112px; }
.header.is-hidden { transform: translateY(-100%); }
.page-404 .header { background: var(--navy-900); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); position: relative; z-index: 120; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; background: var(--red); right: 19px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 90; background: var(--navy-900); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) var(--gutter) 40px; clip-path: circle(0 at calc(100% - 50px) 42px); transition: clip-path .7s var(--ease-out); visibility: hidden; }
[dir="rtl"] .mnav { clip-path: circle(0 at 50px 42px); }
.menu-open .mnav { clip-path: circle(150% at calc(100% - 50px) 42px); visibility: visible; }
[dir="rtl"].menu-open .mnav { clip-path: circle(150% at 50px 42px); }
.mnav__links { display: grid; gap: 6px; }
.mnav__links a { display: flex; align-items: baseline; gap: 16px; color: #fff; font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 8.5vw, 44px); line-height: 1.25; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out), color .2s; transition-delay: calc(var(--i) * 60ms + 150ms); }
.mnav__links a small { font-size: 13px; color: var(--red); font-weight: 700; }
.mnav__links a:hover { color: var(--red); }
.menu-open .mnav__links a { opacity: 1; transform: none; }
.mnav__foot { margin-top: 44px; display: grid; gap: 14px; justify-items: start; color: rgba(255,255,255,.75); }
.mnav__foot > a { display: inline-flex; align-items: center; gap: 12px; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; color: #fff; overflow: hidden; background: var(--navy-900); display: flex; flex-direction: column; justify-content: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img, .hero__slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active img, .hero__slide.is-active video { animation: kenburns 9s linear forwards; }
.hero__slide:nth-child(even).is-active img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes kenburns2 { from { transform: scale(1.02) translate3d(-1%, 0, 0); } to { transform: scale(1.14) translate3d(1.5%, -1%, 0); } }
.hero__shade { position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(180deg, rgba(10,24,48,.65) 0%, rgba(10,24,48,.1) 28%, rgba(10,24,48,.25) 55%, rgba(10,24,48,.94) 100%),
  linear-gradient(90deg, rgba(10,24,48,.7) 0%, rgba(10,24,48,0) 60%); }
[dir="rtl"] .hero__shade { background: linear-gradient(180deg, rgba(10,24,48,.65) 0%, rgba(10,24,48,.1) 28%, rgba(10,24,48,.25) 55%, rgba(10,24,48,.94) 100%), linear-gradient(270deg, rgba(10,24,48,.7) 0%, rgba(10,24,48,0) 60%); }
.hero__grid { position: absolute; inset: 0; z-index: 2; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 70%, transparent); }
.hero__content { position: relative; z-index: 3; padding-bottom: clamp(30px, 5vh, 56px); }
.hero__title { font-size: clamp(46px, 8.6vw, 128px); font-weight: 900; line-height: .98; letter-spacing: -.04em; max-width: 1000px; text-transform: uppercase; }
html[lang="ar"] .hero__title { text-transform: none; line-height: 1.25; letter-spacing: 0; font-size: clamp(44px, 7.4vw, 104px); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .06em; margin: -.14em 0 -.06em; }
.hero__title .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--k) * 90ms + 100ms); }
.hero__title .w:last-child > span { color: var(--red); }
.hero__in { opacity: 0; transform: translateY(18px); transition: opacity .9s, transform 1s var(--ease-out); transition-delay: calc(var(--k) * 90ms + 200ms); }
.is-loaded .hero__title .w > span, .is-loaded .hero__in { transform: none; opacity: 1; }
.hero__text { max-width: 560px; margin-top: 26px; font-size: clamp(16px, 1.35vw, 20px); color: rgba(255,255,255,.85); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__bottom { position: relative; z-index: 3; display: flex; align-items: center; gap: 30px; padding-bottom: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__caption { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1; font-size: 14px; color: rgba(255,255,255,.8); }
.hero__count { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13px; color: rgba(255,255,255,.55); white-space: nowrap; }
.hero__count b { color: #fff; font-weight: 800; }
.hero__cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s, transform .5s var(--ease-out); }
.hero__cap.is-swapping { opacity: 0; transform: translateY(8px); }
.hero__bars { display: flex; gap: 8px; }
.hero__bar { width: 54px; height: 22px; display: grid; align-items: center; }
.hero__bar i { display: block; height: 2px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.hero__bar i::after { content: ''; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero__bar i::after { transform-origin: right; }
.hero__bar.is-active i::after { animation: barfill var(--dur, 7s) linear forwards; }
.hero__bar.is-done i::after { transform: scaleX(1); }
.hero.is-paused .hero__bar.is-active i::after { animation-play-state: paused; }
@keyframes barfill { to { transform: scaleX(1); } }
.hero__scroll i { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.hero__scroll i::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Photos cliquables ---------- */
.shot { margin: 0; }
.shot__btn { display: block; position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: var(--navy-900); }
.shot__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .5s; }
.shot__btn:hover img { transform: scale(1.06); }
.shot__zoom { position: absolute; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--navy); opacity: 0; transform: scale(.8); transition: opacity .35s, transform .45s var(--ease-out); }
.shot__zoom svg { width: 20px; height: 20px; }
.shot__btn:hover .shot__zoom, .shot__btn:focus-visible .shot__zoom { opacity: 1; transform: none; }
.shot figcaption { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .shot figcaption { letter-spacing: 0; font-size: 15px; }
.shot figcaption::before { content: ''; width: 22px; height: 3px; background: var(--red); border-radius: 2px; }

/* ---------- 01 Qui sommes-nous ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about .h2 { font-size: clamp(36px, 5vw, 66px); }
.about__lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: #34425b; }
.about__badge { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 20px; border-radius: 999px; background: var(--mist); font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--navy-800); }
.about__visual { position: relative; }
.about__img { position: relative; z-index: 1; aspect-ratio: 1 / 1; box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.about__img .shot, .about__img .shot__btn { height: 100%; }
.about__frame { position: absolute; inset: 36px -26px -26px 36px; border: 2px solid var(--red); border-radius: var(--radius-lg); }
[dir="rtl"] .about__frame { inset: 36px 36px -26px -26px; }

/* ---------- 02 Mission & vision ---------- */
.mission { background: var(--mist); padding-bottom: 0; overflow: hidden; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv__card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px); box-shadow: 0 10px 40px -24px rgba(15,36,69,.3); overflow: hidden; }
.mv__card::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--navy) 0 55%, var(--red) 55%); }
.mv__n { position: absolute; top: 20px; inset-inline-end: 28px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 80px; line-height: 1; color: var(--mist); }
.mv__card h3 { position: relative; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
html[lang="ar"] .mv__card h3 { letter-spacing: 0; font-size: 18px; }
.mv__card p { position: relative; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--navy-800); font-weight: 500; margin: 0; }
.values-band { margin-top: clamp(70px, 9vw, 110px); padding-block: 34px; background: var(--navy-900); overflow: hidden; }
.values-band__track { display: flex; align-items: center; gap: 46px; width: max-content; animation: marquee 40s linear infinite; }
.values-band span { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); white-space: nowrap; }
html[lang="ar"] .values-band span { font-family: 'Cairo', sans-serif; text-transform: none; letter-spacing: 0; }
.values-band span:nth-of-type(4n+1) { color: #fff; -webkit-text-stroke: 0; }
.values-band i { width: 16px; height: 16px; background: var(--red); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-100% / var(--copies, 6))); } }

/* ---------- 03 Métiers ---------- */
.services { background: var(--navy-800); color: #fff; overflow: hidden; }
.services__bg { position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% -10%, rgba(232,69,50,.18), transparent 60%), radial-gradient(800px 600px at 0% 110%, rgba(30,66,118,.9), transparent 60%); }
.services__bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 60px 60px; }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.service { position: relative; padding: clamp(34px, 4vw, 54px); background: var(--navy-800); overflow: hidden; }
.service::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); opacity: 0; transition: opacity .45s var(--ease); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__n { position: absolute; inset-inline-end: 34px; top: 30px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 64px; line-height: 1; color: rgba(255,255,255,.05); transition: color .4s; }
.service:hover .service__n { color: rgba(232,69,50,.35); }
.service__ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); margin-bottom: 28px; transition: background .4s, border-color .4s, transform .5s var(--ease-out); }
.service__ic svg { width: 28px; height: 28px; }
.service:hover .service__ic { background: var(--red); border-color: var(--red); transform: translateY(-4px); }
.service h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; margin-bottom: 12px; }
.service p { color: rgba(255,255,255,.7); margin: 0; max-width: 420px; }
.service__line { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
[dir="rtl"] .service__line { transform-origin: right; }
.service:hover .service__line { transform: scaleX(1); }

/* ---------- 04 Qualité ---------- */
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: q; }
.qcard { position: relative; padding: 40px 34px 44px; border-radius: var(--radius-lg); background: var(--mist); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s; }
.qcard::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--red); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease-out); }
[dir="rtl"] .qcard::before { transform-origin: right; }
.qcard:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow); }
.qcard:hover::before { transform: scaleX(1); }
.qcard__n { display: block; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 15px; color: var(--red); margin-bottom: 40px; }
.qcard h3 { font-size: 22px; font-weight: 800; color: var(--navy-800); margin-bottom: 14px; }
.qcard p { color: var(--muted); margin: 0; }

/* ---------- 05 Innovation ---------- */
.innovation { background: var(--sand); }
.innovation__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.innovation__visual .shot__btn { aspect-ratio: 5 / 4; }
.innovation__text .shead { margin-bottom: 30px; }
.innovation__text .h2 { font-size: clamp(24px, 2.6vw, 34px); }
.innovation__quote { margin: 0 0 22px; padding-inline-start: 24px; border-inline-start: 4px solid var(--red); font-family: var(--f-head); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; color: var(--navy); }
.innovation__text p { color: #3c4a62; font-size: 17px; }

/* ---------- 06 Fournisseurs ---------- */
.suppliers__intro { max-width: 760px; font-size: 18px; color: #3c4a62; margin: -20px 0 40px; }
.lgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lcard { height: 130px; display: grid; place-items: center; padding: 22px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.lcard img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
.lcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(15,36,69,.4); border-color: transparent; }
.suppliers__note { margin: 26px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- 07 Réalisations ---------- */
.works { background: var(--mist); padding-bottom: 0; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.duo .shot__btn { aspect-ratio: 6 / 5; }
.bpm { margin-top: clamp(80px, 10vw, 130px); padding-block: clamp(80px, 10vw, 130px); background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.bpm::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 500px at 100% 0%, rgba(30,66,118,.75), transparent 60%); }
.bpm > .container { position: relative; }
.bpm__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-direction: row-reverse; }
.bpm__head .shead { margin-bottom: clamp(40px, 5vw, 60px); }
.bpm .h2 { font-size: clamp(34px, 5vw, 64px); }
.bpm__logo { width: 120px; border-radius: 14px; background: #fff; padding: 12px; margin-bottom: clamp(40px, 5vw, 60px); }
.bpm .shot figcaption { color: rgba(255,255,255,.75); }
.bpm__sub { display: flex; align-items: center; gap: 14px; margin: clamp(60px, 7vw, 90px) 0 30px; font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.worksite { padding-block: clamp(80px, 10vw, 130px); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -10px auto 34px; }
.tab { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--muted); transition: all .3s var(--ease); }
.tab:hover { color: var(--navy); border-color: var(--navy); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabpanel__sub { text-align: center; color: var(--muted); margin: 0 0 30px; }
.tabpanel.is-active .shot { animation: rise .8s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.mosaic { display: grid; gap: 20px; }
.mosaic--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic--2 .shot__btn { aspect-ratio: 6 / 5; }
.mosaic--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mosaic--3 .shot__btn { aspect-ratio: 4 / 5; }

/* ---------- 08 Références (défilement) ---------- */
.clients { background: #fff; overflow: hidden; }
.clients .shead { margin-bottom: 50px; }
.marquee { overflow: hidden; padding-block: 10px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { --copies: 3; list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo { flex: none; width: 240px; height: 140px; display: grid; place-items: center; padding: 22px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -22px rgba(15,36,69,.35); transition: transform .4s var(--ease), box-shadow .4s; }
.logo img { max-width: 100%; max-height: 86px; width: auto; height: auto; object-fit: contain; }
.logo:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(15,36,69,.45); }

/* ---------- 09 Pourquoi EMG ---------- */
.why { background: var(--mist); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why__item { display: flex; gap: 22px; align-items: flex-start; padding: 34px; background: #fff; border-radius: var(--radius-lg); border-inline-start: 4px solid var(--red); transition: transform .4s var(--ease), box-shadow .4s; }
.why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why__ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; flex: none; }
.why__ic svg { width: 26px; height: 26px; }
.why__item h3 { font-size: 20px; font-weight: 800; color: var(--navy-800); margin-bottom: 8px; }
.why__item p { color: var(--muted); margin: 0; }

/* ---------- Clôture + contact ---------- */
.closing { position: relative; overflow: hidden; color: #fff; padding-block: clamp(100px, 12vw, 160px); background: var(--navy-900); }
.closing__bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; will-change: transform; }
.closing__shade { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(10,24,48,.97) 0%, rgba(10,24,48,.9) 45%, rgba(10,24,48,.7) 100%); }
.closing__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.closing__title { font-size: clamp(42px, 6.4vw, 92px); font-weight: 900; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
html[lang="ar"] .closing__title { text-transform: none; line-height: 1.3; letter-spacing: 0; }
.closing__lead { margin: 26px 0 0; color: rgba(255,255,255,.78); font-size: 18px; max-width: 480px; }
.cinfo { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.cinfo li { display: flex; gap: 16px; align-items: flex-start; }
.cinfo__ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--red); display: grid; place-items: center; flex: none; }
.cinfo__ic svg { width: 20px; height: 20px; }
.cinfo small { display: block; color: rgba(255,255,255,.55); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
html[lang="ar"] .cinfo small { letter-spacing: 0; font-size: 14px; }
.cinfo div > a, .cinfo div > span { display: block; font-weight: 600; font-size: 17px; }
.cinfo div > a:hover { color: var(--red); }
[dir="rtl"] .cinfo a[dir="ltr"] { text-align: right; }
.cinfo .cinfo__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.7); }
.cinfo .cinfo__link svg { width: 15px; height: 15px; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 46px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); display: grid; gap: 16px; position: relative; }
.form::before { content: ''; position: absolute; top: 0; inset-inline: 40px; height: 4px; background: linear-gradient(90deg, var(--navy) 0 40%, var(--red) 40% 70%, var(--navy) 70%); border-radius: 0 0 4px 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 12px; padding: 26px 18px 10px; outline: none; transition: border-color .25s, background .25s, box-shadow .25s; resize: vertical; }
.field textarea { min-height: 150px; }
.field > span { position: absolute; inset-inline-start: 19px; top: 18px; color: var(--muted); font-size: 15.5px; pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
[dir="rtl"] .field > span { transform-origin: right top; }
.field input:focus, .field textarea:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(30,66,118,.08); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.78); color: var(--navy); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); background: #fff6f5; }
.hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form__foot small { color: var(--muted); font-size: 13px; max-width: 300px; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form__status.is-ok { color: #138a4a; }
.form__status.is-err { color: var(--red-600); }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* ---------- Pied de page ---------- */
.footer { background: #060f20; color: rgba(255,255,255,.65); padding-top: clamp(60px, 7vw, 90px); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 50px; padding-bottom: 56px; }
.footer__brand img { width: 170px; margin-bottom: 22px; }
.footer__brand p { max-width: 320px; }
.footer h3 { color: #fff; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; font-weight: 700; }
html[lang="ar"] .footer h3 { letter-spacing: 0; font-size: 17px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--red); margin-top: 4px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }

/* ---------- WhatsApp (affiché seulement si un numéro est renseigné) ---------- */
.wa-float { position: fixed; z-index: 80; inset-inline-end: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(6, 14, 30, .96); display: grid; place-items: center; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; max-width: 92vw; display: grid; gap: 14px; justify-items: center; }
.lightbox__stage img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 10px; transition: opacity .25s; }
.lightbox__stage figcaption { display: flex; gap: 18px; color: rgba(255,255,255,.75); font-size: 14px; }
.lightbox__stage figcaption [data-lb-count] { color: rgba(255,255,255,.45); font-family: 'Montserrat', sans-serif; }
.lightbox__close, .lightbox__nav { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .25s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__close { top: 20px; inset-inline-end: 20px; }
.lightbox__prev { inset-inline-start: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { inset-inline-end: 20px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }
.lightbox.is-single .lightbox__nav { display: none; }

/* ---------- 404 ---------- */
.nf { min-height: 90vh; display: grid; place-items: center; background: var(--mist); text-align: center; padding-top: var(--header-h); }
.nf__inner { display: grid; justify-items: center; gap: 10px; }
.nf__code { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: clamp(110px, 20vw, 220px); line-height: 1; color: var(--navy); letter-spacing: -.05em; }
.nf .btn { margin-top: 26px; }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-inline-start: auto; }
  .lgrid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .header__cta, .header .langs { display: none; }
  .header__logo img { width: 112px; }
  .about__grid, .innovation__grid, .closing__inner { grid-template-columns: 1fr; }
  .about__visual { width: calc(100% - 26px); max-width: 560px; }
  .mv, .why__grid, .services__grid { grid-template-columns: 1fr; }
  .qgrid { grid-template-columns: 1fr; }
  .qcard__n { margin-bottom: 20px; }
  .bpm__head { flex-direction: column-reverse; align-items: flex-start; }
  .bpm__logo { width: 90px; margin-bottom: 0; }
  .hero__cap { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(42px, 13vw, 64px); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .hero__bar { width: 34px; }
  .duo, .mosaic--2, .mosaic--3 { grid-template-columns: 1fr; }
  .mosaic--3 .shot__btn { aspect-ratio: 4 / 4.4; }
  .lgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lcard { height: 100px; padding: 16px 18px; }
  .lcard img { max-height: 56px; }
  .logo { width: 180px; height: 110px; padding: 16px 22px; }
  .logo img { max-height: 70px; }
  .why__item { padding: 26px 22px; gap: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tab { flex: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .lightbox__nav { top: auto; bottom: 20px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track, .values-band__track { animation: none !important; }
}

/* ---------- Réalisations : projet phare + cartes projets ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; margin-bottom: 18px; }
.works > .container:first-child .shead { margin-bottom: 0; }
.works .bpm { margin-top: clamp(50px, 6vw, 80px); }
.trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 22px; margin-top: 34px; align-items: stretch; }
.trio > .shot { display: flex; flex-direction: column; }
.trio > .shot .shot__btn { flex: 1; min-height: 320px; }
.trio > .shot .shot__btn img { position: absolute; inset: 0; }
.trio__col { display: grid; gap: 26px; }
.trio__col .shot__btn { aspect-ratio: 16 / 9; }
.duo .shot__btn { aspect-ratio: 6 / 5; }
.projects { padding-top: clamp(70px, 9vw, 110px); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard__btn { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); text-align: start; cursor: zoom-in; }
.pcard__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard__btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,48,0) 35%, rgba(10,24,48,.92) 100%); }
.pcard__btn:hover img { transform: scale(1.07); }
.pcard__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 28px; display: grid; justify-items: start; color: #fff; }
.pcard__body .chip { margin-bottom: 12px; }
.pcard__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; }
.pcard__count { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.8); }
.pcard__count svg { width: 16px; height: 16px; color: var(--red); }
.pcard__btn { border: 2px solid transparent; transition: border-color .4s; }
.pcard__btn:hover { border-color: var(--red); }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .pgrid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio > .shot .shot__btn { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Site multi-pages
   ========================================================================== */
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { box-shadow: 0 14px 30px -12px rgba(30, 66, 118, .6); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--navy); }
.link-arrow svg { width: 18px; height: 18px; color: var(--red); transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover svg { transform: translateX(-4px); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 34px; }
.about__visual .about__badge { position: absolute; z-index: 2; bottom: -22px; inset-inline-start: -22px; margin: 0; background: var(--navy); color: #fff; box-shadow: var(--shadow); max-width: 320px; border-radius: var(--radius); line-height: 1.4; }
.about__visual .about__badge .bars i:nth-child(1), .about__visual .about__badge .bars i:nth-child(4) { background: #fff; }

/* Bandeau des pages intérieures */
.pbanner { position: relative; min-height: 64vh; min-height: 64svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy-900); }
.pbanner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 14s ease-out both; }
.pbanner__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,48,.7) 0%, rgba(10,24,48,.25) 40%, rgba(10,24,48,.92) 100%); }
.pbanner__inner { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(50px, 7vw, 80px); }
.pbanner__title { font-size: clamp(44px, 7vw, 96px); font-weight: 900; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
html[lang="ar"] .pbanner__title { text-transform: none; letter-spacing: 0; line-height: 1.3; }
.pbanner__sub { margin: 22px 0 0; max-width: 620px; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255,255,255,.82); }
.pb-in { opacity: 0; transform: translateY(20px); animation: pbin .9s var(--ease-out) forwards; animation-delay: calc(var(--k) * 110ms + 100ms); }
@keyframes pbin { to { opacity: 1; transform: none; } }

/* Bandeau final */
.cta { position: relative; overflow: hidden; color: #fff; padding-block: clamp(100px, 12vw, 160px); background: var(--navy-900); text-align: center; }
.cta__bg { position: absolute; inset: -15% 0; background-size: cover; background-position: center; will-change: transform; }
.cta__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,24,48,.72), rgba(10,24,48,.95)); }
.cta__inner { position: relative; display: grid; justify-items: center; }
.cta__inner > .bars { transform: scale(1.6); margin-bottom: 30px; }
.cta__inner > .bars i:nth-child(1), .cta__inner > .bars i:nth-child(4) { background: #fff; }
.cta__title { font-size: clamp(40px, 6.6vw, 96px); font-weight: 900; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
html[lang="ar"] .cta__title { text-transform: none; letter-spacing: 0; line-height: 1.3; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* Page Projets */
.pindex { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .45s var(--ease); }
body:has(.header:not(.is-hidden)) .pindex { top: 70px; }
.pindex__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pindex__item { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 18px 16px; font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; transition: color .25s, border-color .25s; white-space: nowrap; }
.pindex__item b { color: var(--red); font-size: 12px; }
.pindex__item:hover, .pindex__item.is-active { color: var(--navy-800); border-bottom-color: var(--red); }
.project { padding-block: clamp(70px, 9vw, 120px); scroll-margin-top: 140px; }
.project:nth-child(even) { background: var(--mist); }
.project__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.project--rev .project__media { order: 2; }
.project__cover { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); cursor: zoom-in; box-shadow: var(--shadow); }
.project__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project__cover:hover img { transform: scale(1.05); }
.project__cover:hover .shot__zoom, .project__cover:focus-visible .shot__zoom { opacity: 1; transform: none; }
.project__thumbs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.project__thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--navy-900); }
.project__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .3s; }
.project__thumb:hover img { transform: scale(1.08); opacity: .85; }
.project__n { display: inline-flex; align-items: center; gap: 12px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; color: var(--muted); }
.project__n b { color: var(--red); font-size: 18px; font-weight: 900; }
.project__n i { width: 40px; height: 2px; background: var(--line); }
.project__logo { display: block; height: 64px; width: auto; margin-top: 24px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.project__title { margin-top: 20px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; color: var(--navy-800); letter-spacing: -.025em; }
.project__desc { margin: 20px 0 0; font-size: 18px; line-height: 1.65; color: #3c4a62; }
.project__points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.project__points li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--navy-800); }
[dir="rtl"] .project__points li { padding: 10px 10px 10px 16px; }
.project:nth-child(odd) .project__points li { background: var(--mist); border-color: transparent; }
.project__points span { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.project__points svg { width: 14px; height: 14px; stroke-width: 2.6; }
.project__more { margin-top: 34px; }
.worksite { background: #fff; border-top: 1px solid var(--line); }

/* Page Contact */
.ccards { list-style: none; padding: 0; margin: 0 0 clamp(60px, 8vw, 100px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ccard { position: relative; padding: 34px 30px 36px; border-radius: var(--radius-lg); background: var(--mist); display: grid; align-content: start; gap: 6px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, background .4s; }
.ccard::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--navy) 0 55%, var(--red) 55%); }
.ccard:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.ccard__ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 16px; }
.ccard__ic svg { width: 24px; height: 24px; }
.ccard small { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
html[lang="ar"] .ccard small { letter-spacing: 0; font-size: 14px; }
.ccard > a:not(.link-arrow), .ccard > span:not(.ccard__ic) { font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--navy-800); overflow-wrap: anywhere; }
.ccard > a:not(.link-arrow):hover { color: var(--red); }
.ccard .link-arrow { margin-top: 10px; font-size: 14px; }
[dir="rtl"] .ccard a[dir="ltr"] { text-align: right; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__intro .h2 { font-size: clamp(34px, 4.6vw, 60px); text-transform: uppercase; font-weight: 900; letter-spacing: -.03em; }
html[lang="ar"] .contact__intro .h2 { text-transform: none; letter-spacing: 0; }
.contact .form { box-shadow: var(--shadow); border: 1px solid var(--line); }

@media (max-width: 860px) {
  .project__grid, .contact__grid { grid-template-columns: 1fr; }
  .project--rev .project__media { order: 0; }
  .ccards { grid-template-columns: 1fr; }
  .about__visual .about__badge { position: relative; bottom: auto; inset-inline-start: auto; margin-top: 36px; }
  body:has(.header:not(.is-hidden)) .pindex { top: 70px; }
}
@media (max-width: 620px) {
  .project__thumbs { --n: 3 !important; }
  .pbanner { min-height: 56svh; }
}
