/* =========================================================
   Abdelssalam Elssajidi — Groupe SMTG
   Bleu SMTG + rouge du logo, trame architecturale
   ========================================================= */
:root {
  --navy: #12295e;
  --ink: #0c1a3f;
  --ink-2: #142b62;
  --red: #d22e3a;
  --red-d: #b5222e;
  --paper: #ffffff;
  --tint: #f3f5fa;
  --line: #dfe4ef;
  --text: #1c2540;
  --muted: #5b6684;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(14, 27, 61, .35);
  --f-head: "Sora", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --hdr: 72px;
}
[dir="rtl"] { --f-head: "Tajawal", system-ui, sans-serif; --f-body: "Tajawal", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[dir="rtl"] body { font-size: 18px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
h2 em, h1 em { font-style: normal; color: var(--red); }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--f-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 28px -12px rgba(224, 38, 58, .7); }
.btn--red:hover { background: var(--red-d); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--ghost-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--full { width: 100%; }

/* ---------- En-tête ---------- */
.hdr { position: fixed; inset: 0 0 auto; height: var(--hdr); z-index: 50; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.hdr.solid { background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 38px; height: 30px; }
.brand__logo { height: 34px; width: auto; }
.brand__logo--color { display: none; }
.hdr.solid .brand__logo--white { display: none; }
.hdr.solid .brand__logo--color { display: block; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt b { font: 700 22px/1 "Sora", sans-serif; letter-spacing: .02em; }
.brand__txt b i { font-style: normal; color: var(--red); }
.brand__txt small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
[dir="rtl"] .brand__txt small { letter-spacing: 0; font-size: 12px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }
.hdr__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang button { background: none; border: 0; color: inherit; font: 700 12.5px/1 var(--f-body); padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 34px; }
.lang button[data-lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 15px; padding-block: 5px; }
.lang button.on { background: var(--red); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% 20%, #22418f 0%, transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; padding: calc(var(--hdr) + 56px) 0 0; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(35deg, transparent 49.7%, rgba(255,255,255,.07) 50%, transparent 50.3%);
  background-size: 64px 64px, 64px 64px, 380px 380px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
.hero__txt { padding-bottom: 72px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #aebde6; margin-bottom: 22px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 16px; }
.hero__name { color: #fff; font-size: clamp(46px, 7.4vw, 92px); font-weight: 700; line-height: .98; display: flex; flex-direction: column; letter-spacing: -.025em; }
[dir="rtl"] .hero__name { line-height: 1.2; letter-spacing: 0; font-weight: 800; }
.hero__last { color: #b9c7ee; }
.hero__last::after { content: "."; color: var(--red); }
.hero__role { font-size: clamp(18px, 2vw, 21px); margin: 28px 0 12px; max-width: 34ch; color: #e6ebf7; }
.hero__role strong { color: #fff; }
.hero__lead { color: #aebde6; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__photo { margin: 0; position: relative; justify-self: end; width: min(440px, 100%); }
.hero__frame { position: relative; border-radius: 220px 220px 0 0; overflow: hidden; background: linear-gradient(180deg, #e9eef8, #c9d4ec); aspect-ratio: 670 / 854; }
.hero__frame::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.3); border-radius: inherit; z-index: 1; pointer-events: none; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::before { content: ""; position: absolute; inset: -16px -16px 0 16px; border: 1.5px solid rgba(224, 38, 58, .7); border-radius: 230px 230px 0 0; border-bottom: 0; }
[dir="rtl"] .hero__photo::before { inset: -16px 16px 0 -16px; }
.hero__badge { position: absolute; inset-inline-start: -36px; bottom: 56px; background: #fff; color: var(--ink); padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-inline-start: 4px solid var(--red); z-index: 2; }
.hero__badge b { font-family: var(--f-head); font-size: 16px; }
.hero__badge span { font-size: 13.5px; color: var(--muted); }

.facts { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; color: var(--text); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
.facts li { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 6px; }
.facts li + li { border-inline-start: 1px solid var(--line); }
.facts b { font: 700 34px/1 var(--f-head); color: var(--navy); }
.facts li:first-child b { color: var(--red); }
.facts span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.sec--tint { background: var(--tint); }
.sec--dark { background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: #d8e0f3; overflow: hidden; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec__head { max-width: 680px; margin-bottom: 48px; }
.sec__lead { color: var(--muted); font-size: 18px; margin-top: 14px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }

.profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.profile__body > p { font-size: 18px; color: #36405c; }
.quote { margin: 32px 0 0; padding: 28px 30px; background: var(--tint); border-radius: var(--radius); border-inline-start: 4px solid var(--red); }
.quote p { font: 600 clamp(19px, 2vw, 23px)/1.45 var(--f-head); color: var(--ink); margin: 0 0 12px; }
.quote cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: 14px; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: #e7ecf8; padding: 5px 10px; border-radius: 6px; margin-bottom: 12px; }
[dir="rtl"] .tag { letter-spacing: 0; font-size: 13.5px; }
.flagship { display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.flagship__logo { display: grid; place-items: center; padding: 48px; background:
  linear-gradient(rgba(29,58,138,.06) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(29,58,138,.06) 1px, transparent 1px) 0 0 / 28px 28px, #fafbfe; border-inline-end: 1px solid var(--line); }
.flagship__logo svg, .flagship__logo > img:first-child { width: min(340px, 100%); height: auto; }
.flagship__txt { padding: 44px 48px; }
.flagship__txt h3 { font-size: 28px; margin-bottom: 12px; }
.flagship__txt p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 12px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 18px; padding: 26px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__logo { height: 120px; display: grid; place-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.card__logo img { max-height: 92px; max-width: 88%; object-fit: contain; }
.card .tag { align-self: flex-start; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; position: relative; }
.pillars li { padding: 34px 28px 30px; background: rgba(255,255,255,.04); border-top: 2px solid rgba(255,255,255,.12); transition: background .25s, border-color .25s; }
.pillars li:hover { background: rgba(255,255,255,.07); border-color: var(--red); }
.pillars__n { font: 700 14px/1 var(--f-head); color: var(--red); display: block; margin-bottom: 26px; }
.pillars h3 { font-size: 20px; margin-bottom: 10px; }
.pillars p { font-size: 15.5px; margin: 0; color: #b8c4e2; }

.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office--hq { background: var(--ink); }
.office--hq .office__city { color: #fff; }
.office--hq .office__addr { color: #b8c4e2; }
.office { position: relative; padding: 40px; border-radius: 20px; background: var(--tint); overflow: hidden; }
.office::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 180px; height: 180px; border: 1.5px solid rgba(29,58,138,.12); border-radius: 50%; box-shadow: 0 0 0 30px rgba(29,58,138,.03); }
.office__city { font: 700 clamp(28px, 3.4vw, 38px)/1 var(--f-head); color: var(--ink); display: block; margin-bottom: 16px; }
.office__addr { color: var(--muted); font-size: 17px; max-width: 30ch; }
.link { font-weight: 700; color: var(--red); text-decoration: none; }
.link:hover { text-decoration: underline; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.lines { list-style: none; padding: 0; margin: 28px 0 30px; border-top: 1px solid var(--line); }
.lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lines li > span:first-child { color: var(--muted); font-size: 14.5px; }
.lines a { font-weight: 700; text-decoration: none; color: var(--ink); }
.lines a:hover { color: var(--red); }
.form { background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { font-size: 22px; margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.form textarea { resize: vertical; }
.form__err { color: var(--red-d); font-size: 14px; margin: 0; }
.form__note { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }

.ftr { background: var(--ink); color: #9aa8cc; padding: 28px 0; font-size: 14px; }
.ftr__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ftr p { margin: 0; } .ftr b { color: #fff; }

.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); z-index: 40; transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Profil : photo + repères ---------- */
.profile__photo { margin: 36px 0 0; position: relative; }
.profile__photo img { width: 100%; aspect-ratio: 964 / 864; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.profile__photo::before { content: ""; position: absolute; top: 18px; left: 18px; width: 100%; aspect-ratio: 964 / 864; border: 1.5px solid rgba(224, 38, 58, .55); border-radius: 22px; z-index: -1; }
[dir="rtl"] .profile__photo::before { left: auto; right: 18px; }
.profile__photo figcaption { margin-top: 26px; font-size: 14px; color: var(--muted); font-weight: 600; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.keys div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.keys div:nth-child(odd) { padding-inline-end: 20px; }
.keys dt { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
[dir="rtl"] .keys dt { letter-spacing: 0; font-size: 14px; }
.keys dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Médias ---------- */
.media { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.media__shot { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.media__shot img { width: 100%; height: auto; }
.media__live { position: absolute; top: 16px; inset-inline-start: 16px; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px 6px 26px; border-radius: 999px; }
[dir="rtl"] .media__live { padding: 6px 26px 6px 12px; letter-spacing: 0; }
.media__live::before { content: ""; position: absolute; inset-inline-start: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.media__txt > p:not(.eyebrow) { color: #36405c; font-size: 17.5px; }
.media__txt h2 { margin-bottom: 18px; }

/* ---------- Parcours ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 134px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--navy)); }
.timeline li { display: grid; grid-template-columns: 114px 1fr; gap: 44px; padding: 20px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 128px; top: 27px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline__y { white-space: nowrap; font: 700 19px/1.2 var(--f-head); color: var(--navy); text-align: end; padding-top: 2px; }
.timeline h3 { font-size: 19px; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Références SMTG ---------- */
.flagship__logo { display: flex; flex-direction: column; gap: 28px; }
.flagship__photo { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px -18px rgba(14,27,61,.5); }
.refs { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; background: #fff; border-radius: 16px; padding: 22px 28px; margin-bottom: 24px; border: 1px solid var(--line); }
.refs__label { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
[dir="rtl"] .refs__label { letter-spacing: 0; font-size: 15px; }
.refs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.refs li { font: 700 18px/1 var(--f-head); color: var(--ink); opacity: .75; }

/* ---------- À la une ---------- */
.press-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.press { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.press:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.press__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); cursor: zoom-in; }
.press__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.press:hover .press__img img { transform: scale(1.04); }
.press__txt { padding: 22px 24px 26px; }
.press__outlet { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--red); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.press h3 { font-size: 19px; margin-bottom: 8px; }
.press p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Engagements ---------- */
.engage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; }
.engage { display: grid; grid-template-columns: 200px 1fr; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; }
.engage__img { display: block; cursor: zoom-in; }
.engage__img img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.engage__txt { padding: 26px 26px 28px; }
.engage h3 { font-size: 19px; margin-bottom: 8px; }
.engage p { margin: 0; color: #b8c4e2; font-size: 15px; }
.engage--wide { grid-column: 1 / -1; grid-template-columns: 300px 1fr; }
.engage--wide .engage__txt { padding: 32px 34px; }
.engage--wide h3 { font-size: 24px; }
.program { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.program li { background: rgba(255,255,255,.05); border-inline-start: 3px solid var(--red); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.program b { color: #fff; font-family: var(--f-head); font-size: 15px; }
.program span { color: #b8c4e2; font-size: 14px; line-height: 1.45; }
.tag--dark { background: rgba(224,38,58,.18); color: #ff8a96; }

/* ---------- Galerie ---------- */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery__item { display: block; margin-bottom: 18px; border-radius: 14px; overflow: hidden; break-inside: avoid; cursor: zoom-in; position: relative; }
.gallery__item img { width: 100%; height: auto; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__more { display: inline-block; margin-top: 12px; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 32, .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__prev { inset-inline-start: 16px; top: 50%; margin-top: -24px; }
.lightbox__next { inset-inline-end: 16px; top: 50%; margin-top: -24px; }
[dir="rtl"] .lightbox__prev, [dir="rtl"] .lightbox__next { transform: scaleX(-1); }

/* ---------- Nos métiers (affiche SMTG) ---------- */
.trades { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.trades__poster { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; position: relative; max-width: 420px; }
.trades__poster img { width: 100%; height: auto; transition: transform .6s; }
.trades__poster:hover img { transform: scale(1.03); }
.trades__slogan { font: 600 15px/1.4 var(--f-body); color: var(--muted); margin: 14px 0 26px; font-style: italic; }
.trades__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trades__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, transform .2s; }
.trades__list li:hover { border-color: var(--red); transform: translateY(-3px); }
.trades__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.trades__ic svg { width: 26px; height: 26px; }
.trades__ic--red { background: var(--red); }
.trades__list h3 { font-size: 16px; margin: 2px 0 4px; text-transform: uppercase; letter-spacing: .02em; }
[dir="rtl"] .trades__list h3 { text-transform: none; letter-spacing: 0; }
.trades__list p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.trades__motto { font: 700 clamp(20px, 2.4vw, 26px)/1.25 var(--f-head); color: var(--ink); border-inline-start: 4px solid var(--red); padding-inline-start: 18px; margin: 0; }
.trades__motto em { font-style: normal; color: var(--red); }

/* ---------- Mot du fondateur ---------- */
.word__in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.word__photo { display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); cursor: zoom-in; }
.word__photo img { width: 100%; height: auto; }
.word__quote { margin: 0; }
.word__quote blockquote { margin: 0; position: relative; }
.word__quote blockquote::before { content: "\201C"; position: absolute; top: -54px; inset-inline-start: -10px; font: 700 120px/1 Georgia, serif; color: var(--red); opacity: .9; }
.word__quote blockquote p { font: 600 clamp(19px, 1.9vw, 23px)/1.6 var(--f-head); color: #fff; margin: 0; }
[dir="rtl"] .word__quote blockquote p { line-height: 1.9; }
.word__quote figcaption { margin-top: 24px; color: #b8c4e2; font-size: 15px; }
.word__quote figcaption b { color: #fff; }

/* ---------- Maillot Académie Miral ---------- */
.card__kit { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; font-size: 13.5px; line-height: 1.35; cursor: zoom-in; }
.card__kit img { width: 46px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.card__kit:hover span { color: var(--red); }
.card p { flex: 1; }

/* ---------- Chantiers ---------- */
.sites { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.site { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.site a { display: block; overflow: hidden; cursor: zoom-in; flex: 1; min-height: 0; }
.site img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; aspect-ratio: 4 / 3; }
.site:hover img { transform: scale(1.04); }
.site figcaption { padding: 16px 18px 18px; }
.site h3 { font-size: 17px; margin: 0; }
.site p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.site--big { grid-row: span 2; }
.site--big img { aspect-ratio: auto; min-height: 360px; }
.site--big h3 { font-size: 21px; }
.visit { margin-top: 24px; background: var(--ink); color: #d8e0f3; border-radius: 20px; padding: 30px; display: grid; grid-template-columns: .8fr 1.6fr; gap: 30px; align-items: center; }
.visit h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.visit p { margin: 0; color: #b8c4e2; }
.visit .tag { background: rgba(224,38,58,.18); color: #ff8a96; }
.visit__pics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.visit__pics a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; cursor: zoom-in; }
.visit__pics img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.visit__pics a:hover img { transform: scale(1.06); }

/* ---------- Vidéo ---------- */
.vid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; background: var(--ink); border-radius: 20px; padding: 24px; margin-bottom: 28px; }
.vid video { width: 100%; height: auto; border-radius: 14px; background: #000; display: block; }
.vid h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.vid p { color: #b8c4e2; margin: 0; max-width: 46ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1480px) { .hdr__cta { display: none; } }
@media (max-width: 1240px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--hdr) 0 auto; flex-direction: column; gap: 0; background: #fff; color: var(--ink); padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .hdr__end { margin-inline-start: auto; }
}
@media (max-width: 1080px) {
  .cards, .press-grid { grid-template-columns: repeat(2, 1fr); }
  .sites { grid-template-columns: 1fr 1fr; }
  .site--big { grid-column: 1 / -1; grid-row: auto; }
  .visit { grid-template-columns: 1fr; }
  .engage-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .hdr__cta { display: none; }
}
@media (max-width: 900px) {
  :root { --hdr: 64px; }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--hdr) 0 auto; flex-direction: column; gap: 0; background: #fff; color: var(--ink); padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .hdr__end { margin-inline-start: auto; }
  .hero__in { grid-template-columns: 1fr; gap: 8px; }
  .hero__txt { padding-bottom: 40px; }
  .hero__photo { justify-self: center; width: min(360px, 82%); }
  .hero__badge { inset-inline-start: -12px; bottom: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-inline-start: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .profile, .contact, .media, .trades, .word__in { grid-template-columns: 1fr; gap: 32px; }
  .word__quote blockquote::before { top: -40px; font-size: 90px; }
  .trades__poster { max-width: 360px; margin-inline: auto; }
  .profile__photo { max-width: 520px; }
  .flagship { grid-template-columns: 1fr; }
  .flagship__logo { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 36px; }
  .flagship__txt { padding: 30px 26px; }
  .offices { grid-template-columns: 1fr; }
  .engage, .engage--wide { grid-template-columns: 160px 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__txt small { display: none; }
  .hero { padding-top: calc(var(--hdr) + 36px); }
  .hero__ctas .btn { width: 100%; }
  .cards, .pillars, .keys, .press-grid, .trades__list, .sites { grid-template-columns: 1fr; }
  .vid { grid-template-columns: 1fr; padding: 16px; }
  .vid video { max-width: 320px; margin: 0 auto; }
  .visit { padding: 22px; }
  .visit__pics { grid-template-columns: repeat(3, 1fr); }
  .brand__logo { height: 28px; }
  .engage, .engage--wide { grid-template-columns: 1fr; }
  .program { grid-template-columns: 1fr; }
  .engage--wide .engage__txt { padding: 24px 22px; }
  .engage__img img { height: 240px; min-height: 0; }
  .timeline::before { inset-inline-start: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-inline-start: 34px; }
  .timeline li::before { inset-inline-start: 1px; top: 24px; }
  .timeline__y { text-align: start; }
  .refs { padding: 20px; }
  .keys div:nth-child(odd) { padding-inline-end: 0; }
  .profile__photo::before { top: 10px; left: 10px; }
  [dir="rtl"] .profile__photo::before { left: auto; right: 10px; }
  .facts li { padding: 20px 16px; }
  .facts b { font-size: 28px; }
  .office { padding: 30px 24px; }
  .form { padding: 26px 20px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}
