/* ===========================================================
   Cap Chine — styles
   Palette : bleu nuit + or (inspiré de l'exemple) + rouge Chine
   =========================================================== */
:root {
  --navy-900: #071630;
  --navy-800: #0B1F3A;
  --navy-700: #13305A;
  --navy-600: #1E4378;
  --gold: #E9A93A;
  --gold-600: #D4922118;
  --gold-dark: #C98A1C;
  --red: #C8102E;
  --ink: #0E1A2B;
  --muted: #5B6779;
  --line: #E4E8EF;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 58, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap;
  font-family: inherit;
}
.btn--sm { padding: .55em 1.1em; font-size: .88rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #F2B954; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(233,169,58,.6); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline-gold { border-color: var(--gold); color: #fff; }
.btn--outline-gold:hover { background: var(--gold); color: var(--navy-900); }
.arrow { font-style: normal; transition: transform .2s; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--red); margin-bottom: .9em;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.eyebrow--gold { color: var(--gold); }
.hl { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(7, 22, 48, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08); transition: background .3s;
}
.header.is-scrolled { background: rgba(7, 22, 48, .95); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo__mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo__text { font-size: 1.35rem; font-weight: 800; line-height: 1; display: flex; flex-direction: column; font-family: var(--font); }
.logo__text b { color: var(--gold); display: contents; }
.logo__text small { font-size: .68rem; font-weight: 500; opacity: .7; margin-top: 4px; letter-spacing: .02em; }
html[lang="ar"] .logo__text small { font-family: var(--font-ar); }

.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 14px; }

.lang { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.lang__btn {
  border: 0; background: transparent; color: rgba(255,255,255,.8); font-weight: 700; font-size: .82rem;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-family: var(--font), var(--font-ar);
}
.lang__btn.is-active { background: #fff; color: var(--navy-800); }

.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding-top: 72px; }
.hero__bg {
  position: absolute; inset: 0 0 90px 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7,22,48,.96) 0%, rgba(11,31,58,.85) 42%, rgba(11,31,58,.35) 100%),
    url("https://images.unsplash.com/photo-1474181487882-5abf3f0ba6c2?auto=format&fit=crop&w=2000&q=75") center/cover no-repeat,
    var(--navy-800);
}
[dir="rtl"] .hero__bg {
  background:
    linear-gradient(-100deg, rgba(7,22,48,.96) 0%, rgba(11,31,58,.85) 42%, rgba(11,31,58,.35) 100%),
    url("https://images.unsplash.com/photo-1474181487882-5abf3f0ba6c2?auto=format&fit=crop&w=2000&q=75") center/cover no-repeat,
    var(--navy-800);
}
.hero__inner { min-height: 620px; display: flex; align-items: center; padding-block: 80px 140px; }
.hero__content { max-width: 680px; }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 580px; margin-bottom: 2em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.hero__trust li { display: flex; flex-direction: column; font-size: .88rem; color: rgba(255,255,255,.7); }
.hero__trust b { color: #fff; font-size: 1.1rem; }

.quickbar {
  position: relative; margin-top: -90px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; color: var(--navy-800); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px;
}
.quickbar__item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 22px 12px; font-weight: 700; font-size: .92rem; border-radius: var(--radius-sm); transition: background .2s;
}
.quickbar__item:hover { background: var(--bg-alt); }
.quickbar__item + .quickbar__item { border-inline-start: 1px solid var(--line); }
.quickbar .ico { font-size: 1.8rem; line-height: 1; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: radial-gradient(circle at 80% 0%, var(--navy-600), var(--navy-800) 55%); color: #fff; }
.section--dark .section__lead { color: rgba(255,255,255,.75); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.section__head--row > div { max-width: 680px; }
.section__lead { font-size: 1.1rem; color: var(--muted); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px;
}
.stat { padding: 32px 28px; background: #fff; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--navy-800); line-height: 1.1; font-family: var(--font); }
.stat span { color: var(--muted); font-size: .95rem; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.why-card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow); }
.why-card__num { font-weight: 800; color: var(--gold-dark); font-size: .9rem; margin-bottom: 18px; font-family: var(--font); }
.why-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Split / services */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: 28px; aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); background: var(--navy-700); }
.float-card {
  position: absolute; bottom: 28px; inset-inline-start: -24px;
  background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; animation: floaty 4s ease-in-out infinite;
}
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); }
.float-card__dot { width: 12px; height: 12px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 5px rgba(34,197,94,.2); }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.service:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.service__ico { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.service h3 { font-size: 1rem; margin-bottom: .3em; }
.service p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Fairs */
.fairs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.fair {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  background: var(--navy-700); display: flex; align-items: flex-end; isolation: isolate;
}
.fair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.fair::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(7,22,48,.92) 100%); }
.fair:hover img { transform: scale(1.06); }
.fair--feature { grid-row: span 2; min-height: 540px; }
.fair__body { padding: 26px; }
.fair__body p { color: rgba(255,255,255,.8); font-size: .92rem; margin: 0; }
.fair__body h3 { font-size: 1.35rem; margin: 12px 0 2px; }
.fair--feature h3 { font-size: 2rem; }
.fair__city { color: var(--gold) !important; font-weight: 600; margin-bottom: 8px !important; }
.fairs .fair:nth-child(4) { grid-column: span 2; }
.tag { display: inline-block; background: var(--gold); color: var(--navy-900); font-weight: 700; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }

.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.sectors__label { font-weight: 700; margin-inline-end: 6px; }
.chip { border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 999px; font-size: .88rem; color: rgba(255,255,255,.9); transition: .2s; }
.chip:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; inset-inline: 12% 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; padding: 0 8px; }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold); font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 8px #fff;
  font-family: var(--font);
}
.step p { color: var(--muted); font-size: .95rem; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst { margin: 0; background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tst blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.tst figcaption { display: flex; align-items: center; gap: 12px; }
.tst figcaption small { display: block; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--gold-dark); transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA / Form */
.cta { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,169,58,.25), transparent 70%); top: -180px; inset-inline-end: -120px;
}
.cta__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; position: relative; }
.cta__text > p { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.cta__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 1.05rem; }
.cta__list a:hover { color: var(--gold); }
.form { background: #fff; color: var(--ink); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink); width: 100%; transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form__note { margin: 0; text-align: center; color: var(--muted); font-size: .82rem; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__inner > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer__brand p { max-width: 340px; margin-top: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: .88rem; }

.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px -5px rgba(37,211,102,.6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: var(--navy-900); transform: translateY(-120%); transition: transform .35s ease; margin: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 16px; border-bottom: 0 !important; }
  .header__actions { margin-inline-start: auto; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .quickbar { grid-template-columns: repeat(3, 1fr); }
  .quickbar__item:nth-child(4) { border-inline-start: 0; }
  .quickbar__item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .split, .faq-wrap, .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .split__media img { aspect-ratio: 16/10; }
  .float-card { inset-inline-start: 16px; }
  .fairs { grid-template-columns: 1fr 1fr; }
  .fair--feature { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .fairs .fair:nth-child(4) { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .logo__text small { display: none; }
  .hero__inner { min-height: auto; padding-block: 56px 130px; }
  .hero__ctas .btn { width: 100%; }
  .quickbar { grid-template-columns: 1fr 1fr; }
  .quickbar__item { padding: 16px 8px; font-size: .85rem; }
  .quickbar__item:nth-child(n) { border-inline-start: 0; border-top: 0; }
  .quickbar__item:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .quickbar__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quickbar__item:last-child { grid-column: span 2; border-inline-start: 0; }
  .stats, .why-grid, .services, .form__row { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .fairs { grid-template-columns: 1fr; }
  .fair--feature, .fairs .fair:nth-child(4) { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
}
