@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080d17;
  --panel: #0d1523;
  --text: #f3f6fb;
  --muted: #9ba8ba;
  --line: rgba(255,255,255,.11);
  --accent: #79d8cf;
  --blue: #7ba9ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.header {
  height: 82px; padding: 0 7%; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
  position: absolute; inset: 0 0 auto; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; font: 800 15px Manrope,sans-serif; letter-spacing: 2px; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 10px;
}
.brand-light { font-weight: 400; color: #aab5c4; }
.nav { display: flex; align-items: center; gap: 35px; font-size: 13px; color: #c4cedb; }
.nav a:hover, .text-link:hover { color: var(--accent); }
.nav-cta { padding: 11px 17px; border: 1px solid var(--line); border-radius: 3px; }
.nav-cta span { color: var(--accent); margin-left: 8px; }
.menu-toggle { display: none; }
.hero {
  min-height: 760px; height: 100svh; max-height: 1000px; position: relative;
  overflow: hidden; display: flex; align-items: center; padding: 130px 10% 100px;
}
.hero-grid {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size: 72px 72px; mask-image: linear-gradient(to right,black,transparent 85%);
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; right: 8%; top: 15%;
  background: radial-gradient(circle,rgba(37,139,151,.16),rgba(31,73,130,.08) 40%,transparent 70%);
  filter: blur(15px);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.eyebrow, .section-kicker {
  color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
}
.pulse { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 9px; box-shadow: 0 0 13px var(--accent); }
h1,h2,h3 { font-family: Manrope,sans-serif; }
h1 { font-size: clamp(48px,6.2vw,82px); line-height: 1.09; letter-spacing: -4px; margin: 28px 0; font-weight: 600; }
h1 span, h2 span { color: #8293a9; }
.hero-text { color: var(--muted); font-size: 16px; max-width: 520px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; gap: 22px; padding: 15px 20px; font-size: 12px; font-weight: 700; }
.button-primary { color: #07131b; background: var(--accent); }
.button-primary:hover { background: #a0eee5; transform: translateY(-2px); }
.text-link { font-size: 12px; color: #c4cedb; }
.text-link span { margin-left: 8px; color: var(--accent); }
.hero-visual { position: absolute; right: 8%; top: 19%; width: min(42vw,510px); aspect-ratio: 1; display: grid; place-items: center; }
.core { width: 36%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%,#b2fff0,#398f9c 28%,#122b48 65%,#080d17 75%); box-shadow: 0 0 75px rgba(65,191,184,.24),inset -15px -15px 35px #07101b; animation: float 7s ease-in-out infinite; }
.core-inner { width: 55%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 0 35px rgba(121,216,207,.5); }
.orbit { position: absolute; border: 1px solid rgba(121,216,207,.24); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 72%; height: 35%; }
.orbit-two { width: 95%; height: 48%; transform: rotate(55deg); border-color: rgba(123,169,255,.2); }
.orbit-three { width: 84%; height: 84%; border-style: dashed; border-color: rgba(255,255,255,.12); }
.visual-label { position: absolute; font-size: 9px; letter-spacing: 2px; color: #a8bacb; }
.label-top { top: 5%; right: 5%; }
.label-bottom { bottom: 6%; left: 2%; }
.hero-bottom { position: absolute; bottom: 30px; left: 10%; right: 10%; display: flex; justify-content: space-between; color: #657489; font-size: 9px; letter-spacing: 2px; }
.section { padding: 125px 10%; border-top: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: 8%; }
.intro h2, .section-heading h2, .vision h2, .contact h2 { font-size: clamp(34px,4vw,53px); line-height: 1.2; letter-spacing: -2px; margin: 18px 0; }
.intro-content { max-width: 750px; }
.intro-content p, .section-heading > p, .vision-content > p:last-child, .contact > p { color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 620px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 55px; }
.section-heading > p { max-width: 340px; }
.expertise-grid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.expertise-card { position: relative; min-height: 280px; padding: 35px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg,rgba(255,255,255,.025),transparent 70%); transition: background .3s,transform .3s; }
.expertise-card:hover { background: rgba(121,216,207,.055); transform: translateY(-3px); }
.card-number { position: absolute; right: 30px; top: 28px; font-size: 10px; color: #657489; letter-spacing: 2px; }
.card-symbol { color: var(--accent); font-size: 30px; margin-bottom: 25px; }
.expertise-card h3 { font-size: 21px; margin: 0 0 12px; }
.expertise-card p { color: var(--muted); font-size: 13px; max-width: 440px; line-height: 1.8; }
.card-arrow { position: absolute; right: 30px; bottom: 25px; color: var(--accent); }
.vision { position: relative; overflow: hidden; background: linear-gradient(110deg,#0c1725,#0a111d 70%); }
.vision-content { padding: 45px 0 20px 15%; max-width: 900px; }
.vision h2 { font-size: clamp(38px,5vw,65px); }
.vision-line { position: absolute; width: 2px; height: 180px; left: 10%; top: 38%; background: linear-gradient(transparent,var(--accent),transparent); }
.contact { padding-top: 130px; padding-bottom: 140px; }
.contact h2 { margin-top: 28px; font-size: clamp(40px,5vw,65px); }
.contact-note { margin-top: 35px; font-size: 11px !important; color: #6d7b8f !important; }
.footer { min-height: 100px; border-top: 1px solid var(--line); padding: 25px 7%; display: flex; align-items: center; justify-content: space-between; color: #78879b; font-size: 11px; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s,transform .7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media(max-width:850px) {
  .header { padding: 0 6%; }
  .menu-toggle { display: block; color: white; background: none; border: 0; font-size: 23px; }
  .nav { display: none; position: absolute; top: 81px; left: 0; right: 0; padding: 25px 7%; background: #0b1320; flex-direction: column; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .hero { min-height: 850px; height: auto; padding: 170px 7% 340px; }
  .hero-visual { width: 330px; max-width: 85vw; right: 5%; top: auto; bottom: 55px; opacity: .8; }
  .hero-bottom { left: 7%; right: 7%; }
  .section { padding: 85px 7%; }
  .intro { grid-template-columns: 1fr; gap: 25px; }
  .section-heading { display: block; }
  .expertise-grid { grid-template-columns: 1fr; }
  .vision-content { padding-left: 0; }
  .vision-line { left: auto; right: 7%; opacity: .5; }
  .footer { padding: 25px 7%; flex-wrap: wrap; gap: 20px; }
}
@media(max-width:480px) {
  h1 { letter-spacing: -2.5px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero { padding-bottom: 310px; }
  .expertise-card { padding: 28px 24px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* EXPERIENCE 3D */
.hero-visual { isolation: isolate; }
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  outline: none;
}
.hero-visual.webgl-ready .orbit,
.hero-visual.webgl-ready .core,
.hero-visual.webgl-ready .visual-label {
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-visual .orbit,
.hero-visual .core,
.hero-visual .visual-label {
  transition: opacity .8s ease;
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { opacity: .85; }
}



/* SOKONSULTING V2 — PREMIUM IDENTITY */
:root {
  --accent: #83e1d5;
  --blue: #8eafff;
  --line: rgba(169, 205, 222, .13);
}

body {
  background:
    radial-gradient(ellipse at 75% 12%, rgba(25, 82, 106, .12), transparent 34%),
    #080d17;
}

.header {
  background: rgba(8, 13, 23, .62);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,.08);
}

.brand {
  letter-spacing: 2.4px;
  transition: opacity .25s ease;
}
.brand:hover { opacity: .78; }

.brand-mark {
  box-shadow: 0 0 22px rgba(131,225,213,.10);
  font-size: 17px;
}

.nav a {
  transition: color .25s ease, border-color .25s ease,
              background .25s ease;
}

.nav-cta {
  border-color: rgba(131,225,213,.32);
  background: rgba(131,225,213,.035);
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(131,225,213,.09);
}

.hero {
  background:
    radial-gradient(ellipse at 78% 48%, rgba(23, 93, 112, .12), transparent 38%),
    linear-gradient(115deg, #080d17 20%, #0a1220 100%);
}

.hero-content { max-width: 710px; }

.hero h1 {
  font-weight: 600;
  text-shadow: 0 8px 45px rgba(0,0,0,.25);
}
.hero h1 span {
  background: linear-gradient(100deg, #a6b6c9, #83e1d5 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 540px;
  font-size: 15px;
  color: #aab8c9;
}

.button-primary {
  border: 1px solid rgba(190,255,246,.55);
  box-shadow: 0 8px 30px rgba(75,190,178,.12);
  transition: transform .25s ease, box-shadow .25s ease,
              background .25s ease;
}
.button-primary:hover {
  box-shadow: 0 12px 38px rgba(75,190,178,.22);
}

.hero-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 17px;
}

.section {
  position: relative;
}
.section-kicker {
  color: var(--accent);
  font-size: 9px;
}

.intro {
  background: linear-gradient(180deg, #0a111d, #080d17);
}
.intro h2, .section-heading h2 {
  font-weight: 600;
}
.intro-content p {
  max-width: 680px;
}

.expertise {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(29,67,91,.10), transparent 65%),
    #080d17;
}

.expertise-card {
  min-height: 300px;
  background: linear-gradient(145deg,
    rgba(19,34,52,.72), rgba(10,17,29,.55));
  transition: transform .35s ease, border-color .35s ease,
              background .35s ease;
}
.expertise-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg,
    rgba(27,55,72,.78), rgba(10,20,33,.8));
}
.expertise-card h3 {
  font-size: 20px;
  letter-spacing: -.5px;
}
.expertise-card p {
  color: #a4b2c3;
}
.card-symbol {
  text-shadow: 0 0 24px rgba(131,225,213,.35);
}
.card-arrow {
  font-size: 19px;
  transition: transform .25s ease;
}
.expertise-card:hover .card-arrow {
  transform: translate(3px,-3px);
}

.vision {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(35,103,112,.15), transparent 55%),
    #0b1421;
}
.vision h2 span,
.contact h2 span {
  color: #8da5bb;
}

.contact {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(35,103,112,.10), transparent 50%),
    #080d17;
}
.contact h2 {
  font-weight: 600;
}
.contact > p {
  max-width: 570px;
}

.footer {
  background: #070b13;
  border-top-color: rgba(255,255,255,.09);
}

@media(max-width:850px) {
  .header {
    background: rgba(8,13,23,.88);
  }
  .hero {
    background:
      radial-gradient(ellipse at 70% 75%, rgba(23,93,112,.13), transparent 45%),
      #080d17;
  }
  .expertise-card { min-height: 260px; }
}

@media(prefers-reduced-motion:reduce) {
  .expertise-card,
  .button-primary,
  .card-arrow {
    transition: none !important;
  }
}

/* LANGUAGE SWITCHER */
.language-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.language-switch a {
  min-width: 29px;
  padding: 5px 6px;
  text-align: center;
  font-size: 10px;
  color: #9ba8ba;
  border-radius: 3px;
}
.language-switch a[aria-current="page"] {
  color: var(--accent);
  background: rgba(131,225,213,.09);
}

/* ARABIC RTL */
html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Tahoma", sans-serif;
}
html[dir="rtl"] .header,
html[dir="rtl"] .nav,
html[dir="rtl"] .brand,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .footer {
  direction: rtl;
}
html[dir="rtl"] .hero-content,
html[dir="rtl"] .intro-content,
html[dir="rtl"] .section-heading,
html[dir="rtl"] .vision-content,
html[dir="rtl"] .contact {
  text-align: right;
}
html[dir="rtl"] .hero-visual {
  left: 8%;
  right: auto;
}
html[dir="rtl"] .hero-grid {
  mask-image: linear-gradient(to left, black, transparent 85%);
}
html[dir="rtl"] .hero-bottom {
  direction: ltr;
}
html[dir="rtl"] .section-heading {
  flex-direction: row;
}
html[dir="rtl"] .vision-content {
  padding-left: 0;
  padding-right: 15%;
}
html[dir="rtl"] .vision-line {
  left: auto;
  right: 10%;
}
html[dir="rtl"] .card-number {
  right: auto;
  left: 30px;
}
html[dir="rtl"] .card-arrow {
  right: auto;
  left: 30px;
}
html[dir="rtl"] .language-switch {
  padding-left: 0;
  padding-right: 12px;
  border-left: 0;
  border-right: 1px solid var(--line);
}
html[dir="rtl"] .nav-cta span {
  margin-left: 0;
  margin-right: 8px;
}
html[dir="rtl"] .pulse {
  margin-right: 0;
  margin-left: 9px;
}
@media(max-width:850px) {
  html[dir="rtl"] .nav {
    align-items: flex-start;
  }
  html[dir="rtl"] .hero-visual {
    left: 5%;
    right: auto;
  }
  html[dir="rtl"] .vision-content {
    padding-right: 0;
  }
}

/* ==================================================
   SOKONSULTING V2 — RESPONSIVE HEADER & HERO
   ================================================== */

/* Écrans larges */
@media (min-width: 1101px) {
  .header {
    padding-left: 5%;
    padding-right: 5%;
  }

  .nav {
    gap: clamp(12px, 1.5vw, 22px);
    font-size: clamp(11px, .95vw, 13px);
    white-space: nowrap;
  }

  .nav-cta {
    padding: 10px 12px;
  }
}

/* Tablettes et écrans intermédiaires */
@media (max-width: 1100px) {
  .header {
    height: 76px;
    padding: 0 5%;
    background: rgba(8,13,23,.94);
    backdrop-filter: blur(16px);
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(131,225,213,.35);
    border-radius: 5px;
    background: rgba(131,225,213,.06);
    color: var(--accent);
    font-size: 25px;
    cursor: pointer;
    z-index: 12;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 5%;
    right: 5%;
    width: auto;
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #0c1523;
    border: 1px solid rgba(131,225,213,.2);
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    font-size: 14px;
  }

  .nav.open {
    display: flex;
  }

  .nav > a {
    display: block;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .nav > .nav-cta {
    margin-top: 10px;
    text-align: center;
    border: 1px solid rgba(131,225,213,.35);
  }

  .language-switch {
    justify-content: center;
    padding: 14px 0 5px;
    border: 0;
  }

  .hero-content {
    max-width: 62%;
  }

  .hero h1 {
    font-size: clamp(44px, 5.7vw, 68px);
    letter-spacing: -2.5px;
  }

  .hero-visual {
    width: min(45vw, 450px);
    right: 2%;
    opacity: .72;
  }
}

/* Tablettes et mobiles */
@media (max-width: 850px) {
  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    width: min(330px, 80vw);
    max-width: 100%;
    right: 5%;
    opacity: .65;
  }

  html[dir="rtl"] .nav {
    align-items: stretch;
  }

  html[dir="rtl"] .nav > a {
    text-align: right;
  }
}

/* Petits mobiles */
@media (max-width: 480px) {
  .header {
    padding: 0 5%;
  }

  .brand {
    gap: 8px;
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 48px);
    letter-spacing: -2px;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-visual {
    right: 5%;
    width: min(290px, 78vw);
  }
}

/* Prévention des débordements horizontaux */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
canvas,
video {
  max-width: 100%;
}

