/* Solen Digital — charte tirée du logo */
:root {
  --navy: #0b2239;
  --navy-2: #13304f;
  --navy-3: #1c3d63;
  --gold: #d4a548;
  --gold-light: #e8c77f;
  --cream: #fefbf4;
  --sand: #f6efe0;
  --text: #1b2a3a;
  --muted: #5b6b7c;
  --line: #e6dcc6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 34, 57, .08);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Montserrat", "Inter", sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #d5deea; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.section--navy .lead { color: #b9c6d6; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s; cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); }

/* En-tête */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(254, 251, 244, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11,34,57,.05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 96px; gap: 24px; }
.header__logo img { height: 64px; width: auto; transition: height .3s; }
.header.scrolled .header__logo img { height: 54px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 1.05rem; color: var(--navy); position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .25s;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav .btn { padding: 13px 26px; font-size: .98rem; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 14px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--navy); cursor: pointer;
}
.lang__btn svg { width: 16px; height: 16px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; min-width: 170px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .92rem; }
.lang__menu a:hover { background: var(--sand); }
.lang__menu a[aria-current="true"] { color: var(--gold); font-weight: 600; }
.lang__menu small { color: var(--muted); font-weight: 600; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: var(--navy); color: #cfd9e6; padding: 120px 0 130px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(212,165,72,.22), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(28,61,99,.9), transparent 50%);
}
.hero__swirl {
  position: absolute; right: -120px; top: 50%; transform: translateY(-50%); width: 620px; opacity: .13;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.hero .container { position: relative; }
.hero__content { max-width: 760px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.2rem; max-width: 620px; color: #b9c6d6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.hero__tags span {
  font-size: .82rem; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); color: #dce4ee;
}

.page-hero { background: var(--navy); color: #b9c6d6; padding: 90px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(212,165,72,.2), transparent 45%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero p { font-size: 1.15rem; max-width: 680px; margin: 0; }

/* Grilles et cartes */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(6, 1fr); }
.grid--5 > :nth-child(-n+3) { grid-column: span 2; }
.grid--5 > :nth-child(n+4) { grid-column: span 3; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__link { display: inline-flex; gap: 6px; margin-top: 18px; font-weight: 600; color: var(--navy); text-decoration: none; font-size: .95rem; }
.card__link:hover { color: var(--gold); }

.feature { display: flex; gap: 18px; }
.feature__num {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-weight: 700; font-family: "Montserrat", sans-serif;
}
.feature p { color: var(--muted); margin: 0; }
.section--navy .feature p { color: #b9c6d6; }

.steps { counter-reset: step; }
.step { border-top: 2px solid rgba(212,165,72,.4); padding-top: 22px; }
.step__n { color: var(--gold); font-weight: 700; font-family: "Montserrat", sans-serif; font-size: .9rem; letter-spacing: .1em; }
.step h3 { margin-top: 8px; }
.step p { margin: 0; }

/* Page services */
.service {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; padding: 64px 0;
  border-bottom: 1px solid var(--line); scroll-margin-top: 100px;
}
.service:last-child { border-bottom: 0; }
.service .card__icon { width: 64px; height: 64px; }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.service li {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 14px 46px; position: relative;
}
.service li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--gold); box-shadow: inset 0 0 0 4px var(--white);
}

/* Langues */
.langs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.langs span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }

/* Références */
.case__tag { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 10px; }
.case dl { margin: 18px 0 0; display: grid; gap: 12px; }
.case dt { font-weight: 600; color: var(--navy); font-size: .9rem; }
.case dd { margin: 0; color: var(--muted); }
.sectors { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sectors span { padding: 12px 22px; border-radius: 999px; background: var(--navy-2); color: var(--white); font-weight: 500; }

/* Bandeau CTA */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); border-radius: 24px; padding: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #b9c6d6; position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(212,165,72,.15); }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; max-width: 560px; }
.cta .btn { position: relative; z-index: 1; flex: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
  color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,165,72,.18); }
/* Confirmation après l'envoi du formulaire */
.form-done {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 56px 40px; text-align: center; animation: pop .4s ease both;
}
.form-done:focus { outline: none; }
.form-done__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 1.9rem; font-weight: 700;
}
.form-done__title { margin-bottom: .5em; }
.form-done__text { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
.form[hidden], .form-done[hidden] { display: none; }
/* champ piège invisible : seuls les robots le remplissent (anti-spam FormSubmit) */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.form__status { padding: 14px 18px; border-radius: 10px; display: none; margin: 0; }
.form__status.ok { display: block; background: #e8f5ec; color: #1f6b3a; }
.form__status.err { display: block; background: #fbeaea; color: #8a2323; }
.info { display: grid; gap: 20px; }
.info .card { padding: 26px; }
.info h3 { font-size: 1rem; margin-bottom: .3em; }
.info a { color: var(--navy); font-weight: 600; text-decoration: none; }
.info a:hover { color: var(--gold); }

/* Pied de page */
.footer { background: var(--navy); color: #9fb0c4; padding: 72px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 44px; height: 44px; }
.footer__brand strong { font-family: "Montserrat", sans-serif; font-size: 1.35rem; color: var(--white); line-height: 1; }
.footer__brand small { display: block; color: var(--gold); letter-spacing: .3em; font-size: .7rem; margin-top: 4px; }
.footer h4 { color: var(--white); font-size: .95rem; margin: 0 0 16px; font-family: "Montserrat", sans-serif; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .85rem;
}

/* Animations d'apparition */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__swirl { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 > * { grid-column: auto !important; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .header__inner { height: 80px; }
  .header__logo img, .header.scrolled .header__logo img { height: 50px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav__links { flex-direction: column; gap: 4px; }
  .nav__links a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav .btn { justify-content: center; }
  .lang__menu { left: 0; right: auto; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 120px 0 90px; }
  .hero__swirl { width: 380px; right: -160px; }
  .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .header__logo img, .header.scrolled .header__logo img { height: 46px; }
}

/* ===================== Hero 3D (globe) ===================== */
.hero { min-height: clamp(620px, 100vh, 1100px); padding: 150px 0 120px; display: flex; align-items: center; }
.hero__globe { position: absolute; inset: 0; z-index: 0; transition: opacity 1.2s ease; }
.hero__globe canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.hero__globe .hero__swirl {
  position: absolute; right: 6%; top: 50%; width: min(42vw, 560px); margin-top: calc(min(42vw, 560px) / -2);
  transform: none; opacity: .14; animation: spin-flat 60s linear infinite;
}
.hero__globe.ready .hero__swirl { display: none; }
@keyframes spin-flat { to { transform: rotate(360deg); } }
.hero .container { z-index: 1; pointer-events: none; }
.hero .container a, .hero .container button { pointer-events: auto; }
.hero__content { max-width: 640px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; z-index: 1;
  border: 2px solid rgba(255,255,255,.3); border-radius: 14px; transition: opacity .8s ease 1s;
}
.hero__scroll::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold); animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* En-tête transparent au-dessus du globe (page d'accueil) */
.header--overlay { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header--overlay.scrolled { background: rgba(254, 251, 244, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__logo .logo-light { display: none; }
.header--overlay:not(.scrolled) .logo-dark { display: none; }
.header--overlay:not(.scrolled) .logo-light { display: block; }
.header--overlay:not(.scrolled) .burger span { background: var(--white); }
@media (min-width: 901px) {
  .header--overlay:not(.scrolled) .nav__links a { color: var(--white); }
  .header--overlay:not(.scrolled) .lang__btn { color: var(--white); border-color: rgba(255,255,255,.3); }
  .header--overlay:not(.scrolled) .nav .btn { background: var(--gold); color: var(--navy); }
  .header--overlay:not(.scrolled) .nav .btn:hover { background: var(--gold-light); }
}

/* ===================== Intro cinématique ===================== */
.intro-logo {
  position: absolute; left: 50%; top: 50%; width: min(70vw, 440px); z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0; visibility: hidden;
}
.intro .intro-logo { visibility: visible; animation: intro-logo 2.4s cubic-bezier(.3,.1,.2,1) .2s both; }
@keyframes intro-logo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.82); filter: blur(8px); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); filter: blur(10px); }
}
.header { transition: border-color .3s, box-shadow .3s, background .3s, opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.intro .header { opacity: 0; transform: translateY(-100%); }
.hero__content > * { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.intro .hero__content > * { opacity: 0; transform: translateY(34px); }
.intro .hero__scroll { opacity: 0; }
.hero__content > :nth-child(2) { transition-delay: .12s; }
.hero__content > :nth-child(3) { transition-delay: .24s; }
.hero__content > :nth-child(4) { transition-delay: .36s; }
.hero__content > :nth-child(5) { transition-delay: .48s; }
.intro .hero__content > * { transition-delay: 0s; }

/* ===================== Bandeau technologies ===================== */
.tech { background: var(--navy-2); padding: 34px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.tech__title { text-align: center; color: #9fb0c4; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 20px; font-weight: 600; }
.tech__viewport { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech__track { display: flex; gap: 14px; width: max-content; animation: marquee 45s linear infinite; }
.tech__track:hover { animation-play-state: paused; }
.tech__track span {
  white-space: nowrap; padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  color: #e3eaf3; font-weight: 500; font-size: .95rem; background: rgba(255,255,255,.03);
}
.tech__track span::before { content: "◆"; color: var(--gold); margin-right: 10px; font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== Vidéos animées ===================== */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.video {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; transform-style: preserve-3d;
}
.video:hover { box-shadow: 0 24px 50px rgba(11,34,57,.16); }
.video__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; color: #dce4ee;
  background: radial-gradient(circle at 80% 0%, rgba(212,165,72,.18), transparent 50%), linear-gradient(160deg, #0f2a48, #081a2c);
}
.video__bar {
  position: absolute; top: 0; left: 0; right: 0; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); z-index: 2;
}
.video__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.video__bar i:first-child { background: #e86a5b; } .video__bar i:nth-child(2) { background: #e8c35b; } .video__bar i:nth-child(3) { background: #5bc27a; }
.video__live { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: #ff8a7a; display: flex; align-items: center; gap: 6px; }
.video__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5f4a; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.video__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); z-index: 2; }
.video__body { padding: 24px 28px 28px; }
.video__body h3 { display: flex; align-items: center; gap: 10px; }
.video__body h3 svg { width: 22px; height: 22px; color: var(--gold); }
.video__body p { color: var(--muted); margin: 0; }

.scene { position: absolute; inset: 34px 0 3px 0; padding: 18px 22px; display: flex; flex-direction: column; font-size: .86rem; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* Chat IA */
.scene--chat { justify-content: flex-end; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; margin-top: 10px; animation: pop .35s ease both; }
.msg--user { align-self: flex-end; background: var(--gold); color: var(--navy); border-bottom-right-radius: 4px; font-weight: 500; }
.msg--ai { align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-bottom-left-radius: 4px; }
.msg__who { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: var(--gold); letter-spacing: .06em; margin-bottom: 4px; }
.msg__who::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--gold), #6f93bf, var(--gold)); animation: spin-flat 3s linear infinite; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing b { width: 6px; height: 6px; border-radius: 50%; background: #b9c6d6; animation: bounce 1s infinite; }
.typing b:nth-child(2) { animation-delay: .15s; } .typing b:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.caret::after { content: "▍"; color: var(--gold); animation: blink .8s infinite; margin-left: 1px; }

/* Terminal cloud */
.scene--terminal { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; gap: 5px; }
.line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: pop .25s ease both; }
.line--cmd { color: #e6edf5; } .line--cmd::first-letter { color: var(--gold); }
.line--ok { color: #7fd49b; }
.line--live { color: var(--gold); font-weight: 700; margin-top: 4px; }
.meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin: 2px 0 4px; width: 70%; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 1.1s ease; }

/* Tableau de bord data */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 9px 12px; }
.kpi small { display: block; font-size: .66rem; color: #9fb0c4; text-transform: uppercase; letter-spacing: .1em; }
.kpi b { font-family: "Montserrat", sans-serif; font-size: 1.15rem; color: var(--white); }
.kpi em { font-style: normal; font-size: .7rem; color: #7fd49b; margin-left: 4px; }
.dash { flex: 1; display: grid; grid-template-columns: 1fr minmax(0, 34%); gap: 12px; margin-top: 12px; min-height: 0; }
.chart { position: relative; min-height: 0; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.chart svg { position: absolute; inset: 0; display: block; }
.chart__grid { stroke: rgba(255,255,255,.07); stroke-dasharray: 3 5; }
.chart__line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(212,165,72,.55)); }
.chart__dot { fill: var(--white); stroke: var(--gold); stroke-width: 2.5; }
.chart__pulse { fill: var(--gold); transform-box: fill-box; transform-origin: center; animation: chart-pulse 1.6s ease-out infinite; }
@keyframes chart-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.ring { display: grid; place-items: center; min-height: 0; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); padding: 8px; }
.ring svg { width: 100%; height: 100%; max-height: 100%; display: block; }
.donut { transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }

/* Marketing */
.scene--growth { padding-bottom: 0; }
.growth__head small { display: block; font-size: .66rem; color: #9fb0c4; text-transform: uppercase; letter-spacing: .1em; }
.growth__head b { font-family: "Montserrat", sans-serif; font-size: 1.6rem; color: var(--white); }
.growth__head em { font-style: normal; color: #7fd49b; font-size: .8rem; margin-left: 6px; }
.growth__chart { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; }
.growth__chart svg { width: 100%; height: 100%; display: block; }
.growth__line { fill: none; stroke: var(--gold); stroke-width: 3; }
.notifs { position: absolute; right: 16px; top: 16px; display: grid; gap: 8px; width: 52%; z-index: 1; }
.notif {
  display: flex; align-items: center; gap: 9px; background: var(--white); color: var(--navy); border-radius: 12px; padding: 8px 12px;
  font-size: .74rem; font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,.25); animation: slide-in .45s cubic-bezier(.2,.8,.2,1) both;
}
.notif::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: .7rem; }
@keyframes slide-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* Effet 3D au survol */
[data-tilt] { transition: transform .2s ease-out, box-shadow .25s, border-color .25s; will-change: transform; }

@media (max-width: 1024px) {
}
@media (max-width: 900px) {
  html:not(.intro) .hero__globe { opacity: .45; }
  .videos { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 120px 0 90px; min-height: 100svh; }
  .scene { padding: 14px 16px; font-size: .8rem; }
  .scene--terminal { font-size: .7rem; }
  .kpi b { font-size: .95rem; }
  .growth__head b { font-size: 1.25rem; }
  .notif { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tech__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .tech__track span[aria-hidden] { display: none; }
}

/* ===================== Pays clients ===================== */
.flag { display: inline-block; flex: none; width: 34px; height: 23px; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 6px rgba(11,34,57,.18); }
.flag svg { width: 100%; height: 100%; display: block; }
.flag--ch { width: 23px; }
.country { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.clients { padding: 36px 0; border-bottom: 1px solid var(--line); }
.clients__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 40px; }
.clients__label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.countries { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.countries--center { justify-content: center; margin-top: 0; }
.country--card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 26px; font-size: 1.1rem; }
.country--card .flag { width: 48px; height: 32px; }
.country--card .flag--ch { width: 32px; }
.section--navy .country--card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: var(--white); }
.mini-countries { display: grid; gap: 10px; }
.mini-countries .country { font-size: .98rem; font-weight: 500; }
.mini-countries .flag { width: 26px; height: 17px; }
.mini-countries .flag--ch { width: 17px; }

/* Équipe (page À propos) */
.section--navy .team .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--navy .team .card h3 { color: var(--white); }
.section--navy .team .card p { color: #b9c6d6; }
.section--navy .team .card__icon { background: var(--gold); color: var(--navy); }
.section--navy .team .card:hover { border-color: var(--gold); }

/* LinkedIn */
.social {
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-top: 8px; border-radius: 10px;
  background: rgba(255,255,255,.07); color: var(--white); transition: background .2s, color .2s, transform .2s;
}
.social:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.info__social { display: inline-flex; align-items: center; gap: 10px; }
.info__social svg { width: 20px; height: 20px; color: #0a66c2; flex: none; }

/* ===================== Fenêtre de choix de la langue ===================== */
.langpop {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(11, 34, 57, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.langpop[hidden] { display: none; }
.langpop.show { opacity: 1; }
.langpop-open { overflow: hidden; }
.langpop__box {
  position: relative; width: min(100%, 460px); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--cream); border-radius: 22px; padding: 36px 32px 28px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); border-top: 4px solid var(--gold);
  transform: translateY(16px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.langpop.show .langpop__box { transform: none; }
.langpop__close {
  position: absolute; top: 12px; inset-inline-end: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.langpop__close:hover { background: var(--sand); color: var(--navy); }
.langpop__logo { width: 56px; margin: 0 auto 14px; }
.langpop h2 { font-size: 1.35rem; margin-bottom: .4em; }
.langpop p { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.langpop__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.langpop__list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-decoration: none;
  font-weight: 600; color: var(--navy); transition: border-color .2s, background .2s, transform .2s;
}
.langpop__list a:hover, .langpop__list a:focus-visible { border-color: var(--gold); background: var(--sand); transform: translateY(-2px); outline: none; }
.langpop__list a[aria-current="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.langpop__list .flag { width: 30px; height: 20px; }
.langpop__name { flex: 1; text-align: start; }
.langpop__list small { color: var(--muted); font-size: .75rem; }
.langpop__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.langpop__list a[lang="ar"], .lang__menu a[lang="ar"] { font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
@media (max-width: 400px) { .langpop__box { padding: 32px 18px 22px; } }

/* ===================== Arabe : lecture de droite à gauche ===================== */
html[dir="rtl"] body, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .btn, html[dir="rtl"] .kpi b, html[dir="rtl"] .growth__head b {
  font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[dir="rtl"] h1 { line-height: 1.35; }
html[dir="rtl"] body * { letter-spacing: 0; } /* l'espacement casse la liaison des lettres arabes */
html[dir="rtl"] .nav__links a::after { left: auto; right: 0; }
html[dir="rtl"] .lang__menu { right: auto; left: 0; }
html[dir="rtl"] .hero::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(212,165,72,.22), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(28,61,99,.9), transparent 50%);
}
html[dir="rtl"] .hero__swirl { right: auto; left: -120px; }
html[dir="rtl"] .hero__globe .hero__swirl { right: auto; left: 6%; }
html[dir="rtl"] .service li { padding: 14px 46px 14px 18px; }
html[dir="rtl"] .service li::before { left: auto; right: 18px; }
html[dir="rtl"] .cta::after { right: auto; left: -80px; }
html[dir="rtl"] .tech__viewport, html[dir="rtl"] .scene--terminal { direction: ltr; }
html[dir="rtl"] .tech__track span::before { margin-right: 10px; }
html[dir="rtl"] .video__live { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .msg--user { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
html[dir="rtl"] .msg--ai { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
html[dir="rtl"] .caret::after { margin-left: 0; margin-right: 1px; }
html[dir="rtl"] .kpi em, html[dir="rtl"] .growth__head em { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .notifs { right: auto; left: 16px; }
@media (max-width: 900px) { html[dir="rtl"] .lang__menu { left: auto; right: 0; } }
@media (max-width: 600px) { html[dir="rtl"] .hero__swirl { left: -160px; } }

/* ===================== Assistant (chatbot) ===================== */
.chatbot { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; transition: opacity .6s ease; }
.intro .chatbot { opacity: 0; pointer-events: none; }
.chatbot__toggle {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--navy); display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(11,34,57,.3); transition: transform .2s, background .2s;
}
.chatbot__toggle:hover { transform: translateY(-2px) scale(1.04); background: var(--gold-light); }
.chatbot__toggle svg { width: 28px; height: 28px; }
.chatbot__toggle::after { /* halo qui attire l'œil tant que le chat est fermé */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: chat-ring 2.4s ease-out infinite;
}
.chatbot.open .chatbot__toggle::after { display: none; }
@keyframes chat-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.chatbot.open .chatbot__toggle svg { display: none; }
.chatbot.open .chatbot__toggle::before { content: "×"; font-size: 2rem; line-height: 1; }

.chatbot__panel {
  width: 370px; height: min(560px, calc(100vh - 130px)); display: flex; flex-direction: column;
  background: var(--cream); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(11,34,57,.3);
  border: 1px solid var(--line); animation: chat-in .3s cubic-bezier(.2,.8,.2,1);
}
.chatbot__panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.chatbot__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: var(--white); border-bottom: 3px solid var(--gold); }
.chatbot__head img { width: 38px; height: 38px; border-radius: 50%; background: var(--white); padding: 4px; }
.chatbot__head div { flex: 1; min-width: 0; }
.chatbot__head strong { display: block; font-family: "Montserrat", sans-serif; font-size: .98rem; }
.chatbot__head small { display: flex; align-items: center; gap: 6px; color: #b9c6d6; font-size: .76rem; }
.chatbot__head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4cd07d; box-shadow: 0 0 0 3px rgba(76,208,125,.25); }
.chatbot__close { background: none; border: 0; color: #b9c6d6; font-size: 1.6rem; line-height: 1; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; }
.chatbot__close:hover { background: rgba(255,255,255,.1); color: var(--white); }

.chatbot__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chatbot__msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: pop .3s ease both; overflow-wrap: anywhere; }
.chatbot__msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-end-start-radius: 4px; color: var(--text); }
.chatbot__msg--user { align-self: flex-end; background: var(--navy); color: var(--white); border-end-end-radius: 4px; }
.chatbot__link { display: block; width: fit-content; margin-top: 8px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
.chatbot__link::after { content: " →"; }
html[dir="rtl"] .chatbot__link::after { content: " ←"; }
.chatbot__typing { display: flex; gap: 4px; padding: 14px; }
.chatbot__typing b { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.chatbot__typing b:nth-child(2) { animation-delay: .15s; } .chatbot__typing b:nth-child(3) { animation-delay: .3s; }

.chatbot__chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.chatbot__chips button {
  flex: none; font: inherit; font-size: .8rem; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--navy); border: 1px solid var(--gold); transition: background .2s;
}
.chatbot__chips button:hover { background: var(--sand); }
.chatbot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chatbot__form input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--text); }
.chatbot__form input:focus { outline: none; border-color: var(--gold); }
.chatbot__form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.chatbot__form button svg { width: 20px; height: 20px; }
html[dir="rtl"] .chatbot__form button svg { transform: scaleX(-1); }
html[dir="rtl"] .chatbot, html[dir="rtl"] .chatbot__panel { font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
html[dir="rtl"] .chatbot__head strong { font-family: inherit; }

@media (max-width: 600px) {
  .chatbot { bottom: 16px; inset-inline-end: 16px; }
  .chatbot.open { inset: 0; gap: 0; }
  .chatbot.open .chatbot__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .chatbot.open .chatbot__toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chatbot__toggle::after { animation: none; display: none; } }

/* ===================== Avis clients ===================== */
.reviews__score { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.reviews__score b { color: var(--navy); font-size: 1.1rem; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.reviews__grid--few { grid-template-columns: repeat(auto-fit, minmax(290px, 420px)); justify-content: center; }
.review {
  margin: 0; display: flex; flex-direction: column; gap: 18px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow); position: relative;
}
.review::before { /* grand guillemet décoratif */
  content: "\201C"; position: absolute; top: 6px; inset-inline-end: 22px; font: 700 5.5rem/1 Georgia, serif; color: var(--gold); opacity: .18;
}
.review__stars { display: inline-flex; gap: 3px; }
.star svg { width: 19px; height: 19px; display: block; fill: var(--gold); }
.star--off svg { fill: var(--line); }
.review blockquote { margin: 0; flex: 1; color: var(--text); font-size: 1.02rem; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.review figcaption > span:nth-child(2) { flex: 1; min-width: 0; }
.review strong { display: block; color: var(--navy); font-size: .98rem; }
.review small { display: block; color: var(--muted); font-size: .84rem; }
.review__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font: 700 .95rem "Montserrat", sans-serif;
}
.review .flag { width: 28px; height: 19px; }
.review .flag--ch { width: 19px; }

/* ===================== Équipe (photos) ===================== */
.member { text-align: center; padding-top: 34px; }
.member__photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold); }
.member h3 { margin-bottom: 12px; }
.member__title { color: var(--muted); margin-bottom: 14px; }
.member__domains { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.member__domains span { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--sand); border-radius: 999px; padding: 5px 11px; }
.member__domains svg { width: 14px; height: 14px; color: var(--gold); }
.address { font-style: normal; line-height: 1.6; }
.footer .address { color: #b9c6d6; font-size: .92rem; margin-top: 4px; }
.info .card h3 svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--gold); }
