/* Novalith Technologies — styles communs */
:root {
  --ink: #0e141b; --ink-2: #16202b; --paper: #f5f2eb; --white: #fffdf8;
  --sun: #ffd21f; --muted: #5b6470; --muted-l: #a9b2bd;
  --line: rgba(14,20,27,.14); --line-l: rgba(255,253,248,.14);
  --g: clamp(20px, 6vw, 96px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Archivo", Arial, sans-serif; font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--g); }
h1, h2 { font-variation-settings: "wdth" 112; font-weight: 750; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
.label { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--muted); }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* En-tête */
header { position: absolute; inset: 0 0 auto; z-index: 5; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.logo img { height: 44px; width: auto; }
.h-cta { font-size: 15px; font-weight: 650; text-decoration: none; color: var(--white); padding: 11px 20px; border: 1px solid rgba(255,253,248,.4); border-radius: 2px; transition: background .2s, border-color .2s; }
.h-cta:hover { background: rgba(255,253,248,.08); border-color: var(--white); }

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: center; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line-l) 1px, transparent 1px), linear-gradient(90deg, var(--line-l) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%); mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%); }
.hero::after { content: ""; position: absolute; right: -4%; top: -8%; width: min(46vw, 640px); height: 118%; z-index: -1; opacity: .9;
  background: linear-gradient(160deg, rgba(255,210,31,.9), rgba(255,210,31,0) 70%);
  clip-path: polygon(52% 0, 100% 0, 66% 44%, 86% 44%, 22% 100%, 44% 54%, 24% 54%); filter: blur(.5px); }
.hero .wrap { padding-top: 120px; padding-bottom: 96px; width: 100%; }
.hero .label { color: var(--sun); }
.hero h1 { font-size: clamp(44px, 6.6vw, 96px); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p.lead { max-width: 560px; margin-top: 34px; font-size: clamp(18px, 1.5vw, 21px); color: #d4d9df; }

/* Qui sommes-nous */
.about { padding: clamp(110px, 13vw, 180px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about h2 { font-size: clamp(34px, 4vw, 54px); }
.about-text p { color: var(--muted); }
.about-text p + p { margin-top: 22px; }
.about figure { border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 3; }
.about figure img { width: 100%; height: 100%; object-fit: cover; }

/* Domaines */
.fields { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(110px, 13vw, 180px) 0; }
.fields h2 { font-size: clamp(34px, 4vw, 54px); max-width: 16ch; margin-bottom: clamp(56px, 7vw, 96px); }
.f-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.f-grid article { padding: 34px 28px 10px 0; }
.f-grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.f-n { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); }
.f-grid h3 { font-size: 23px; font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -.01em; margin: 40px 0 12px; line-height: 1.2; }
.f-grid p { font-size: 16.5px; color: var(--muted); line-height: 1.6; }
.f-grid article::before { content: ""; display: block; width: 26px; height: 4px; background: var(--sun); margin-top: -36px; margin-bottom: 32px; }

/* Solutions */
.solutions { background: var(--ink); color: var(--white); padding: clamp(110px, 13vw, 180px) 0; position: relative; overflow: hidden; }
.solutions .label { color: var(--sun); }
.solutions h2 { font-size: clamp(34px, 4vw, 54px); max-width: 16ch; margin-bottom: clamp(56px, 7vw, 96px); }
.s-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.s-card { display: flex; flex-direction: column; padding: clamp(30px, 3.4vw, 44px); border: 1px solid var(--line-l); border-radius: 4px; background: var(--ink-2); text-decoration: none; min-height: 280px; transition: transform .3s, border-color .3s, background .3s; }
a.s-card:hover { transform: translateY(-6px); border-color: var(--sun); }
.s-tag { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-l); }
.s-card h3 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -.02em; line-height: 1.1; margin: 28px 0 14px; }
.s-card p { color: var(--muted-l); font-size: 16.5px; line-height: 1.6; }
.s-link { margin-top: auto; padding-top: 34px; display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 15.5px; color: var(--sun); }
.s-link span { transition: transform .3s; }
a.s-card:hover .s-link span { transform: translateX(5px); }
.s-soon { background: transparent; border-style: dashed; border-color: rgba(255,253,248,.28); }
.s-soon .s-link { color: var(--muted-l); font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.s-soon .s-link i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255,210,31,.18); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Engagement */
.pledge { padding: clamp(110px, 13vw, 180px) 0; text-align: center; }
.pledge p.big { font-size: clamp(30px, 3.6vw, 50px); font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -.025em; line-height: 1.15; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.pledge p.big span { background: linear-gradient(transparent 62%, rgba(255,210,31,.75) 62%); }

/* Contact */
.contact { background: var(--ink); color: var(--white); padding: clamp(100px, 12vw, 160px) 0 0; }
.c-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 8vw, 120px); align-items: end; padding-bottom: clamp(80px, 10vw, 130px); }
.contact .label { color: var(--sun); }
.contact h2 { font-size: clamp(34px, 4.4vw, 60px); }
.c-list { list-style: none; border-top: 1px solid var(--line-l); }
.c-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-l); align-items: baseline; }
.c-list span { font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-l); }
.c-list a, .c-list p { font-weight: 600; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.c-list a:hover { color: var(--sun); }
footer { border-top: 1px solid var(--line-l); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; font-size: 13px; color: var(--muted-l); }
footer img { height: 30px; width: auto; }

/* Apparition */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .wrap > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > :nth-child(2) { animation-delay: .1s; }
.hero .wrap > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .about-grid, .c-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .f-grid article:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 36px; }
  .hero::after { width: 70vw; right: -25vw; opacity: .5; }
  .s-grid { grid-template-columns: 1fr; gap: 18px; }
  .s-card { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  header .wrap { height: 76px; }
  .logo img { height: 34px; }
  .h-cta { padding: 9px 14px; font-size: 14px; }
  .f-grid { grid-template-columns: 1fr; }
  .f-grid article, .f-grid article + article { padding: 34px 0 6px; border-left: 0; }
  .f-grid article + article { border-top: 1px solid var(--line); margin-top: 30px; }
  .c-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Menu ---------- */
.h-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.h-nav a:not(.h-cta) { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; opacity: .85; transition: opacity .2s, color .2s; }
.h-nav a:not(.h-cta):hover, .h-nav a[aria-current="page"] { opacity: 1; color: var(--sun); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; padding: 15px 26px; border: 0; border-radius: 2px; background: var(--sun); color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: #ffe066; transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- Contact ---------- */
.c-grid { align-items: start; }
.c-lead { color: #d4d9df; margin: 26px 0 40px; max-width: 460px; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--white); color: var(--ink); padding: clamp(28px, 4vw, 48px); border-radius: 4px; display: grid; gap: 18px; box-shadow: 14px 14px 0 var(--sun); }
.form-title { font-size: 26px; font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -.02em; line-height: 1.2; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c7c1b4; border-radius: 2px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e141b' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center no-repeat; }
.field input[type="file"] { padding: 10px; min-height: 0; font-size: 14.5px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,210,31,.55); }
.field [aria-invalid="true"], .check input[aria-invalid="true"] { border-color: #b3261e; outline: 2px solid rgba(179,38,30,.25); }
.field small { font-size: 12.5px; color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; accent-color: var(--ink); }
.check a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1f7a45; background: #e6f4ec; padding: 12px 14px; border-radius: 2px; }
.form-status.err { color: #b3261e; background: #fbeaea; padding: 12px 14px; border-radius: 2px; }
footer a { color: inherit; }
footer a:hover { color: var(--sun); }

/* ---------- Page Carrières ---------- */
.hero-sm { min-height: 0; }
.hero-sm .wrap { padding-top: 190px; padding-bottom: 120px; }
.hero-sm h1 { font-size: clamp(42px, 5.6vw, 80px); max-width: 15ch; }
.jobs-sec { padding: clamp(100px, 12vw, 160px) 0; }
.jobs-sec h2 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: clamp(48px, 6vw, 80px); max-width: 18ch; }
.jobs { display: grid; gap: 22px; }
.job { background: var(--white); border: 1px solid var(--line); border-radius: 4px; transition: border-color .25s, box-shadow .25s; }
.job[open] { border-color: var(--ink); box-shadow: 0 18px 40px rgba(14,20,27,.08); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px); }
.job summary::-webkit-details-marker { display: none; }
.job-tag { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.job h3 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 750; font-variation-settings: "wdth" 108; letter-spacing: -.015em; line-height: 1.2; margin: 10px 0 14px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.job-meta li { font-size: 13.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--paper); }
.job-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); position: relative; flex: 0 0 46px; transition: background .25s; }
.job-toggle::before, .job-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--ink); transition: transform .3s; }
.job-toggle::after { transform: rotate(90deg); }
.job[open] .job-toggle { background: var(--sun); border-color: var(--sun); }
.job[open] .job-toggle::after { transform: rotate(0); }
.job-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; margin: 0 clamp(24px, 3.4vw, 44px); padding: 32px 0 clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.job-body h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.job-body ul { list-style: none; display: grid; gap: 10px; }
.job-body li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.job-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--sun); transform: rotate(45deg); }
.job-intro { grid-column: 1 / -1; color: var(--muted); }
.job-cta { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.apply { background: var(--ink); color: var(--white); padding: clamp(100px, 12vw, 160px) 0 0; }
.apply .label { color: var(--sun); }
.apply h2 { font-size: clamp(34px, 4.2vw, 56px); }
.apply-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 110px); align-items: start; padding-bottom: clamp(80px, 10vw, 130px); }
.apply-steps { list-style: none; margin-top: 36px; display: grid; gap: 18px; counter-reset: st; }
.apply-steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: #d4d9df; font-size: 16.5px; }
.apply-steps li::before { content: counter(st, decimal-leading-zero); font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--sun); padding-top: 3px; }

/* ---------- Mentions légales ---------- */
.legal { padding: 170px 0 110px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 40px; }
.legal h2 { font-size: 22px; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
header.on-light .h-nav a:not(.h-cta) { color: var(--ink); }
header.on-light .h-cta { color: var(--ink); border-color: rgba(14,20,27,.35); }
header.on-light .h-cta:hover { background: var(--ink); color: var(--white); }

@media (max-width: 960px) {
  .apply-grid { grid-template-columns: 1fr; }
  .job-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .h-nav { gap: 14px; }
  .h-nav a:not(.h-cta) { font-size: 14px; }
  .row { grid-template-columns: 1fr; }
  .form-card { box-shadow: 8px 8px 0 var(--sun); }
  .job summary { grid-template-columns: 1fr; }
  .job-toggle { display: none; }
  .hero-sm .wrap { padding-top: 130px; padding-bottom: 80px; }
}

/* =========================================================
   Multilingue : sélecteur de langue, arabe et lecture de droite à gauche
   ========================================================= */
.lang-sw { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,253,248,.22); border-radius: 3px; }
.lang-sw a { color: var(--white); text-decoration: none; font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; line-height: 1; padding: 7px 8px; border-radius: 2px; opacity: .7; transition: opacity .2s, background .2s; }
.lang-sw a:hover { opacity: 1; }
.lang-sw a[aria-current="true"] { opacity: 1; background: var(--sun); color: var(--ink); }
.lang-sw a[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 14px; padding: 5px 9px 6px; }
header.on-light .lang-sw { border-color: rgba(14,20,27,.25); }
header.on-light .lang-sw a { color: var(--ink); }

/* champ piège anti-robot : hors écran sans créer de défilement horizontal */
.hp { left: auto; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Arabe ---------- */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Archivo", Arial, sans-serif; line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .form-title, html[lang="ar"] .pledge p.big, html[lang="ar"] .s-card h3:not([dir]) {
  font-family: "IBM Plex Sans Arabic", sans-serif; font-variation-settings: normal; letter-spacing: 0; font-weight: 700;
}
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.3; }
html[lang="ar"] .s-card h3[dir="ltr"] { font-family: "Archivo", sans-serif; text-align: right; }
/* l'espacement des lettres casse la liaison des lettres arabes */
html[lang="ar"] .label, html[lang="ar"] .s-tag, html[lang="ar"] .job-tag, html[lang="ar"] .c-list span,
html[lang="ar"] .job-body h4, html[lang="ar"] .s-soon .s-link, html[lang="ar"] .field label {
  letter-spacing: 0; text-transform: none; font-family: "IBM Plex Sans Arabic", sans-serif;
}
html[lang="ar"] .label { font-size: 14px; font-weight: 500; }
html[lang="ar"] .s-tag, html[lang="ar"] .job-tag, html[lang="ar"] .c-list span { font-size: 13.5px; }
html[lang="ar"] .job-body h4 { font-size: 16px; }
html[lang="ar"] .btn, html[lang="ar"] .h-nav a, html[lang="ar"] .job-meta li { font-family: "IBM Plex Sans Arabic", sans-serif; }

/* ---------- Mise en page de droite à gauche ---------- */
[dir="rtl"] .hero::after { right: auto; left: -4%; transform: scaleX(-1); }
[dir="rtl"] .f-grid article { padding: 34px 0 10px 28px; }
[dir="rtl"] .f-grid article + article { padding-left: 28px; padding-right: 28px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] a.s-card:hover .s-link span { transform: translateX(-5px); }
[dir="rtl"] .form-card { box-shadow: -14px 14px 0 var(--sun); }
[dir="rtl"] .field select { padding-right: 14px; padding-left: 40px; background-position: left 14px center; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="url"] { direction: ltr; text-align: right; }
[dir="rtl"] .job-body li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .job-body li::before { left: auto; right: 0; }
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .c-list a[dir="ltr"] { text-align: right; }

@media (max-width: 960px) {
  [dir="rtl"] .hero::after { left: -25vw; right: auto; }
  [dir="rtl"] .f-grid article:nth-child(3) { padding-right: 0; border-right: 0; }
}
@media (max-width: 600px) {
  .h-nav { gap: 10px; }
  .lang-sw a { padding: 6px 6px; }
  .h-cta { padding: 9px 12px; }
  [dir="rtl"] .f-grid article, [dir="rtl"] .f-grid article + article { padding: 34px 0 6px; border-right: 0; }
  [dir="rtl"] .form-card { box-shadow: -8px 8px 0 var(--sun); }
}

/* =========================================================
   Boutons du haut de page
   ========================================================= */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn-ghost-light { background: transparent; color: var(--white); border: 1px solid rgba(255,253,248,.45); }
.btn-ghost-light:hover { background: rgba(255,253,248,.08); border-color: var(--white); }

/* =========================================================
   Menu mobile (burger)
   ========================================================= */
.burger { display: none; position: relative; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid rgba(255,253,248,.35); border-radius: 3px; background: transparent; cursor: pointer; z-index: 60; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
header.on-light .burger { border-color: rgba(14,20,27,.3); }
header.on-light .burger span { background: var(--ink); }

.m-menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--white); padding: 108px 24px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow-y: auto; }
.m-menu[hidden] { display: none; }
.m-links { display: grid; }
.m-links a { color: var(--white); text-decoration: none; font-size: 30px; font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -.02em; line-height: 1.2; padding: 18px 0; border-bottom: 1px solid var(--line-l); }
.m-links a[aria-current="page"] { color: var(--sun); }
.m-langs > span { display: block; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 12px; }
.m-langs > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-langs a { text-align: center; padding: 13px 6px; border: 1px solid var(--line-l); border-radius: 3px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; }
.m-langs a[aria-current="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.m-langs a[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
html.menu-open { overflow: hidden; }
html.menu-open header { position: fixed; z-index: 60; inset: 0 0 auto; }
html.menu-open header.on-light .logo img { filter: brightness(0) invert(1); }
html.menu-open header.on-light .burger { border-color: rgba(255,253,248,.35); }
html.menu-open header.on-light .burger span { background: var(--white); }
html[lang="ar"] .m-links a, html[lang="ar"] .m-langs > span { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; font-variation-settings: normal; text-transform: none; }

/* =========================================================
   Version mobile
   ========================================================= */
@media (max-width: 760px) {
  /* en-tête : logo + burger */
  .h-nav { display: none; }
  .burger { display: block; }
  header .wrap { height: 76px; }
  .logo img { height: 36px; }

  /* haut de page */
  .hero { min-height: 0; }
  .hero .wrap, .hero-sm .wrap { padding-top: 116px; padding-bottom: 64px; }
  .hero h1, .hero-sm h1 { font-size: clamp(36px, 10.5vw, 50px); max-width: none; }
  .hero p.lead { margin-top: 20px; font-size: 17px; line-height: 1.6; }
  .hero-ctas { flex-direction: column; margin-top: 30px; }
  .hero-ctas .btn { width: 100%; }
  .hero::after { width: 64vw; right: -20vw; left: auto; top: auto; bottom: -8%; height: 75%; opacity: .3; }
  [dir="rtl"] .hero::after { left: -20vw; right: auto; }

  /* rythme des sections */
  .about, .fields, .solutions, .jobs-sec { padding: 72px 0; }
  .pledge { padding: 64px 0; }
  .contact, .apply { padding-top: 72px; }
  .c-grid, .apply-grid { gap: 40px; padding-bottom: 64px; }
  .label { margin-bottom: 16px; }
  .about h2, .fields h2, .solutions h2, .jobs-sec h2, .contact h2, .apply h2 { font-size: clamp(28px, 8vw, 36px); }
  .fields h2, .solutions h2, .jobs-sec h2 { margin-bottom: 32px; }
  .about-grid { gap: 32px; }
  .about-text p[style] { margin-top: 20px !important; }
  .about-text p { font-size: 16.5px; }

  /* domaines : liste compacte numérotée */
  .f-grid { grid-template-columns: 1fr; }
  .f-grid article, .f-grid article + article { display: grid; grid-template-columns: 38px 1fr; column-gap: 6px; padding: 18px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
  .f-grid article::before { display: none; }
  .fields .f-grid article:nth-child(n) { margin: 0; border-top: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0; }
  .f-grid .f-n { grid-row: 1 / span 2; padding-top: 4px; color: var(--sun-deep, #c79e00); font-weight: 500; }
  .f-grid h3 { margin: 0 0 2px; font-size: 19px; }
  .f-grid p { font-size: 15.5px; }

  /* solutions */
  .s-grid { gap: 14px; }
  .s-card { padding: 24px 22px; min-height: 0; }
  .s-card h3 { font-size: 26px; margin: 14px 0 8px; }
  .s-link { padding-top: 22px; }

  .pledge p.big { font-size: 26px; }

  /* contact */
  .c-lead { margin: 16px 0 26px; font-size: 16.5px; }
  .c-list li { padding: 14px 0; }
  .c-list a, .c-list p { font-size: 16px; }

  /* formulaires */
  .form-card { padding: 24px 20px; gap: 16px; box-shadow: 6px 6px 0 var(--sun); }
  [dir="rtl"] .form-card { box-shadow: -6px 6px 0 var(--sun); }
  .form-title { font-size: 22px; }
  .row { grid-template-columns: 1fr; gap: 16px; }

  /* offres */
  .job summary { padding: 22px 20px; grid-template-columns: 1fr; }
  .job-toggle { display: none; }
  .job h3 { font-size: 21px; margin: 8px 0 12px; }
  .job-meta li { font-size: 12.5px; padding: 4px 10px; }
  .job-body { grid-template-columns: 1fr; margin: 0 20px; padding: 22px 0 24px; gap: 22px; }
  .job-body li { font-size: 15.5px; }
  .job-cta { width: 100%; }
  .apply-steps { margin-top: 24px; }

  .legal { padding: 110px 0 64px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; font-size: 12.5px; line-height: 1.7; }
}
