/* SkyMedia — feuille de styles (toutes langues, y compris l'arabe de droite à gauche) */
:root {
  --navy: #0a1322;
  --navy-2: #0e1a2e;
  --ink: #081120;
  --sky: #4cb8f0;
  --blue: #2f8fe8;
  --teal: #6fd9cc;
  --grad: linear-gradient(110deg, #2f8fe8, #4cb8f0 45%, #6fd9cc);

  --bg: var(--navy);
  --text: #eef3fb;
  --muted: #9aa9c2;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.035);
  --accent: var(--sky);

  --r: 20px;
  --max: 1240px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
[dir="rtl"] { --font: "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }

.light {
  --bg: #f3f6fb;
  --text: #0a1322;
  --muted: #55637f;
  --line: rgba(10, 19, 34, 0.1);
  --card: #ffffff;
  --accent: #1f7fd6;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { line-height: 1.85; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: rgba(76, 184, 240, 0.4); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.045em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-inline-end: 0.03em;
}
.light h2 em { background: linear-gradient(110deg, #1565c0, #1f9bd6 55%, #17a398); -webkit-background-clip: text; background-clip: text; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] h1 em, [dir="rtl"] h2 em { font-family: inherit; font-style: normal; font-weight: 700; letter-spacing: 0; }
p { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 0.92rem; }

.progress { position: fixed; top: 0; inset-inline-start: 0; z-index: 60; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--grad); background-size: 180% 100%;
  color: var(--ink); font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer; white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(76, 184, 240, 0.75);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-position 0.5s;
}
.btn svg, .more-link svg, .arrow svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 40px -14px rgba(76, 184, 240, 0.9); }
.btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn svg, [dir="rtl"] .more-link svg, [dir="rtl"] .arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -16px rgba(10, 19, 34, 0.7); }
.btn-dark:hover { box-shadow: 0 20px 36px -16px rgba(10, 19, 34, 0.8); }
.btn-small { padding: 11px 20px; font-size: 0.9rem; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 16px 0 auto 0; z-index: 50; padding: 0 16px; }
.nav-inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 9px 10px; padding-inline-start: 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid transparent; transition: border-color 0.3s;
}
.nav-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.3s;
  background: rgba(10, 19, 34, 0.8); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.85);
}
.nav.scrolled .nav-inner { border-color: rgba(255, 255, 255, 0.1); }
.nav.scrolled .nav-inner::before { opacity: 1; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #13233c url("images/logo-icon.png") center / cover no-repeat; }
.logo-text { font-family: "Manrope", "Segoe UI", sans-serif; font-size: 1.16rem; font-weight: 500; letter-spacing: 0.03em; }
.logo-text b { font-weight: 800; color: var(--sky); }

.menu { display: flex; align-items: center; gap: 4px; font-size: 0.93rem; font-weight: 600; }
.menu > a:not(.btn) { padding: 9px 14px; border-radius: 999px; color: #b9c5da; transition: color 0.2s, background 0.2s; }
.menu > a:not(.btn):hover { color: #fff; }
.menu > a.active:not(.btn) { color: #fff; background: rgba(255, 255, 255, 0.08); }
.menu .btn { margin-inline-start: 8px; }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: 10px; position: relative; z-index: 2; }
.menu { margin-inline-start: auto; }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; cursor: pointer; color: #b9c5da; font-size: 0.86rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.14); transition: color 0.2s, border-color 0.2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.lang summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 170px; padding: 8px; display: grid; gap: 2px; border-radius: 16px; background: #0f1c33; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9); }
.lang-menu a { padding: 9px 12px; border-radius: 10px; color: #cfd9ea; font-weight: 600; }
.lang-menu a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.lang-menu a[aria-current] { color: var(--sky); }

.burger { display: none; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 5px auto; background: #fff; border-radius: 2px; transition: transform 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero (accueil) ---------- */
.hero { position: relative; padding: clamp(140px, 19vh, 200px) 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.aurora {
  position: absolute; inset: -20% -10% 30% -10%;
  background:
    radial-gradient(42% 46% at 22% 28%, rgba(47, 143, 232, 0.42), transparent 70%),
    radial-gradient(36% 40% at 78% 18%, rgba(111, 217, 204, 0.22), transparent 70%),
    radial-gradient(40% 40% at 55% 70%, rgba(76, 184, 240, 0.16), transparent 70%);
  filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 10%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 10%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px 16px; padding-inline-start: 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #dbe5f5;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.06); } }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.24rem); max-width: 60ch; margin: 26px 0 36px; color: #b4c1d8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Visuel statique : deux réalisations superposées */
.hero-visual { position: relative; aspect-ratio: 1 / 0.86; }
.frame { position: absolute; border-radius: 14px; overflow: hidden; background: #0f1b30; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame-back { top: 0; inset-inline-end: 0; width: 82%; opacity: 0.85; }
.frame-front { bottom: 0; inset-inline-start: 0; width: 86%; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(76, 184, 240, 0.5); }

.chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.08); direction: ltr; }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.chrome span { margin-left: 10px; font-family: "Manrope", sans-serif; font-size: 0.7rem; font-weight: 500; color: #8fa0bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(52px, 7vw, 88px); border-top: 1px solid var(--line); }
.facts li { padding: 26px 0 clamp(40px, 6vw, 70px); padding-inline-end: 28px; }
.facts li + li { padding-inline-start: 28px; border-inline-start: 1px solid var(--line); }
.facts strong { display: block; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-bottom: 4px; }
[dir="rtl"] .facts strong { letter-spacing: 0; }
.facts span { font-size: 0.93rem; color: var(--muted); }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { position: relative; padding: clamp(140px, 18vh, 190px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); max-width: 20ch; }
.page-hero .lead { margin-bottom: 0; max-width: 68ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.breadcrumb a:hover { color: var(--sky); }
.breadcrumb [aria-current] { color: #dbe5f5; }
.meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin-top: 40px; border-top: 1px solid var(--line); }
.meta div { padding: 20px 0 0; padding-inline-end: 24px; }
.meta div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.meta dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
[dir="rtl"] .meta dt { letter-spacing: 0; font-size: 0.82rem; }
.meta dd { font-weight: 700; overflow-wrap: anywhere; }
.meta dd a { color: var(--sky); }
[dir="rtl"] .meta dd a { display: inline-block; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 84px) 0; }
#services { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head .sub { font-size: 1.08rem; max-width: 46ch; }
.section-head.split .sub { justify-self: end; }
.h-small { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; line-height: 1.4; }
.h-small:not(:first-child) { margin-top: 44px; }
[dir="rtl"] .h-small { letter-spacing: 0; font-size: 0.95rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.service { position: relative; display: flex; flex-direction: column; padding: 40px 36px 34px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; color: inherit; }
.service:nth-child(3n) { border-inline-end: 0; }
.service:nth-last-child(-n+3) { border-bottom: 0; }
.service::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(76, 184, 240, 0.16), transparent 65%); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service-num { position: absolute; top: 34px; inset-inline-end: 36px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: rgba(255, 255, 255, 0.28); transition: color 0.3s; }
.service:hover .service-num { color: var(--sky); }
.icon { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 28px; display: grid; place-items: center; background: rgba(76, 184, 240, 0.1); border: 1px solid rgba(76, 184, 240, 0.25); transition: background 0.3s, transform 0.4s var(--ease); }
.icon svg { width: 25px; height: 25px; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.service:hover .icon { background: var(--grad); transform: translateY(-3px); }
.service:hover .icon svg { stroke: var(--ink); }
.service h3 { margin-bottom: 12px; }
.service p { font-size: 0.98rem; margin-bottom: 24px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 0.9rem; font-weight: 700; color: var(--sky); }
.service:hover .more-link svg { transform: translateX(4px); }
[dir="rtl"] .service:hover .more-link svg { transform: scaleX(-1) translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.chip:hover { color: var(--text); border-color: rgba(10, 19, 34, 0.3); }
.chip.active { color: #fff; background: var(--navy); border-color: var(--navy); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  display: flex; flex-direction: column; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 19, 34, 0.04);
}
.project.hidden { display: none; }
.project:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(10, 19, 34, 0.35); border-color: rgba(10, 19, 34, 0.18); }
.shot { margin: 14px 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(10, 19, 34, 0.1); background: #e9eef6; }
.shot .chrome { background: #eef2f8; border-bottom-color: rgba(10, 19, 34, 0.08); height: 28px; }
.shot .chrome i { background: #cbd5e3; }
.shot .chrome span { color: #7a879f; }
.shot-img { aspect-ratio: 16 / 10; overflow: hidden; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.project:hover .shot-img img { transform: scale(1.045); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .project-cat { letter-spacing: 0; font-size: 0.84rem; }
.arrow { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background 0.3s, border-color 0.3s; }
.arrow svg { width: 15px; height: 15px; }
.project:hover .arrow { background: var(--navy); border-color: var(--navy); color: #fff; }
.project h3 { font-size: 1.35rem; margin-bottom: 8px; }
.project p { font-size: 0.95rem; margin-bottom: 20px; }
.project .tags { margin-top: auto; }
.more { margin-top: 48px; text-align: center; }

/* ---------- Fiche projet / page de service ---------- */
.big-shot { margin-bottom: clamp(44px, 6vw, 80px); border-radius: 18px; overflow: hidden; background: #0f1b30; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 60px 120px -50px rgba(76, 184, 240, 0.4); }
.big-shot .chrome { height: 38px; }
.big-shot img { width: 100%; }
.two-col { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 16px; }
.prose p + h2 { margin-top: 44px; }
.prose p { font-size: 1.08rem; color: #b9c5da; margin-bottom: 16px; }
.prose-actions { margin-top: 32px; }
.checklist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.check { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--grad); position: relative; }
.check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid var(--ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { padding: 10px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: #dbe5f5; border: 1px solid rgba(255, 255, 255, 0.16); transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip-link:hover { background: rgba(76, 184, 240, 0.12); border-color: var(--sky); color: #fff; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager-link { display: grid; gap: 4px; padding: 26px 30px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.pager-link:hover { border-color: rgba(76, 184, 240, 0.5); background: rgba(76, 184, 240, 0.06); }
.pager-link span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .pager-link span { letter-spacing: 0; font-size: 0.86rem; }
.pager-link strong { font-size: 1.3rem; letter-spacing: -0.02em; }
.pager-next { text-align: end; }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 36px 0 0; padding-inline-end: 32px; }
.steps li + li { padding-inline-start: 32px; border-inline-start: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 0; height: 2px; background: var(--grad); transition: width 1s var(--ease) 0.2s; }
.steps li.visible::before { width: 72px; }
.steps li + li::before { inset-inline-start: 32px; }
.num { display: block; margin-bottom: 22px; font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.97rem; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-logo { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; justify-self: end; border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 50px 90px -50px rgba(76, 184, 240, 0.45); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.values li { padding: 30px 32px; }
.values li + li { border-inline-start: 1px solid var(--line); }
.values strong { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.values span { color: var(--muted); font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 1.2rem; font-weight: 500; color: var(--sky); transition: transform 0.3s var(--ease), background 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: rgba(76, 184, 240, 0.12); }
.faq-item p { padding: 0 0 26px; max-width: 70ch; font-size: 1.03rem; color: #b9c5da; }

/* ---------- Appel à l'action / contact ---------- */
.cta-box, .contact-box {
  position: relative; overflow: hidden; border-radius: 36px; border: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(28px, 5vw, 68px);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(47, 143, 232, 0.3), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(111, 217, 204, 0.18), transparent 60%),
    #0f1c33;
}
.cta-box { display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { font-size: 1.08rem; max-width: 48ch; }
.cta-actions { display: grid; gap: 12px; }
.contact-box { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: 3px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; overflow-wrap: anywhere; }
.contact-list span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .contact-list span { letter-spacing: 0; font-size: 0.84rem; }
.contact-list a:hover { color: var(--sky); }

.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: rgba(8, 17, 32, 0.6); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
label { font-size: 0.84rem; font-weight: 600; color: #cfd9ea; }
input, select, textarea { width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 0.97rem; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
select option { background: #0f1c33; color: var(--text); }
textarea { resize: vertical; min-height: 130px; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); background: rgba(76, 184, 240, 0.06); box-shadow: 0 0 0 4px rgba(76, 184, 240, 0.16); }
.field.invalid input, .field.invalid textarea { border-color: #fb7185; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-status { min-height: 1.4em; font-size: 0.9rem; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fda4af; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink); padding: clamp(56px, 7vw, 84px) 0 28px; margin-top: clamp(40px, 5vw, 70px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 0.7fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.footer h4 { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
[dir="rtl"] .footer h4 { letter-spacing: 0; font-size: 0.9rem; }
.footer ul { display: grid; gap: 11px; font-size: 0.95rem; color: #cfd9ea; overflow-wrap: anywhere; }
.footer a { transition: color 0.2s; }
.footer ul a:hover, .footer-langs a:hover { color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.footer-bottom p { color: inherit; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-langs a[aria-current] { color: #fff; }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, background 0.3s; }
.reveal.visible { opacity: 1; transform: none; }
.project.reveal.visible:hover { transform: translateY(-6px); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n) { border-inline-end: 1px solid var(--line); }
  .service:nth-child(2n) { border-inline-end: 0; }
  .service:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .service:nth-last-child(-n+2) { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .steps li:nth-child(3)::before { inset-inline-start: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 14px; font-size: 1.35rem; background: rgba(8, 17, 32, 0.98); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .menu.open { opacity: 1; visibility: visible; }
  .menu .btn { margin: 10px 0 0; font-size: 1.05rem; padding: 15px 28px; }
  .lang summary { height: 44px; padding: 0 14px; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .section-head.split { grid-template-columns: 1fr; gap: 18px; }
  .section-head.split .sub { justify-self: start; }
  .two-col, .about, .contact-box, .cta-box { grid-template-columns: 1fr; }
  .about-logo { justify-self: start; max-width: 340px; }
  .cta-actions { grid-auto-flow: column; justify-content: start; }
  .values { grid-template-columns: 1fr; }
  .values li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 20px 0; border-inline-start: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .facts li:last-child { padding-bottom: 50px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .projects, .services, .steps, .pager { grid-template-columns: 1fr; }
  .service, .service:nth-child(3n), .service:nth-child(2n) { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 32px 26px; }
  .service:last-child { border-bottom: 0; }
  .service-num { top: 28px; inset-inline-end: 26px; }
  .steps { row-gap: 0; }
  .steps li, .steps li + li { padding: 30px 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .steps li::before, .steps li + li::before { inset-inline-start: 0; }
  .meta { grid-template-columns: 1fr; }
  .meta div, .meta div + div { padding: 16px 0; border-inline-start: 0; }
  .meta div + div { border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .cta-actions { grid-auto-flow: row; justify-content: stretch; }
  .cta-box, .contact-box { border-radius: 26px; }
  .pager-next { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .steps li::before { width: 72px; }
}
