/* NOURFOCUS — feuille de style du site.
   Extraite d'index.php pour être partagée par toutes les pages. */

/* ===== DESIGN TOKENS ===== */
:root {
  --navy:      #0F2A3D;
  --navy-800:  #162f42;
  --navy-700:  #1e3f56;
  --navy-600:  #2a5470;
  --gold:      #F4C430;
  --gold-light:#fad46a;
  --gold-dark: #c9a020;
  --white:     #ffffff;
  --gray-50:   #f8f9fb;
  --gray-100:  #eef0f4;
  --gray-200:  #dde1e9;
  --gray-400:  #9aa3b0;
  --gray-600:  #5a6474;
  --gray-800:  #2c3340;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(15,42,61,.08);
  --shadow:    0 4px 24px rgba(15,42,61,.12);
  --shadow-lg: 0 12px 48px rgba(15,42,61,.18);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-arabic:  'Noto Kufi Arabic', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.65;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-arabic); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ===== TYPOGRAPHY ===== */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-dark);
  background: rgba(244,196,48,.12); border: 1px solid rgba(244,196,48,.3);
  padding: 5px 14px; border-radius: 100px;
}
.label::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--navy); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { font-family: var(--font-arabic); }
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.section-sub { font-size: 1.1rem; color: var(--gray-600); max-width: 580px; margin-top: 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
  transition: all var(--transition); cursor: pointer;
  border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 4px 16px rgba(244,196,48,.35);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,196,48,.4); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-outline-navy {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: var(--gray-100); color: var(--navy); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #20bf5b; transform: translateY(-2px); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 0;
  transition: all var(--transition);
}
#navbar.scrolled {
  background: rgba(15,42,61,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.2);
  padding: 10px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
}
.nav-logo:hover { background: rgba(255,255,255,.98); }
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--gold); background: rgba(255,255,255,.07); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.1); border-radius: var(--radius-sm);
  padding: 4px;
}
.lang-btn {
  padding: 5px 10px; font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.7); border-radius: 5px;
  transition: all var(--transition); cursor: pointer;
  border: none; background: none;
}
.lang-btn.active, .lang-btn:hover { background: var(--gold); color: var(--navy); }
.nav-cta { padding: 9px 20px !important; font-size: .85rem !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: all var(--transition);
}
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy); z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--white); font-size: 1.3rem; font-weight: 600; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px; background: none;
  border: none; color: var(--white); font-size: 2rem; cursor: pointer;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, #163a52 100%);
  display: flex; flex-direction: column; align-items: stretch;
  padding-top: 80px; position: relative; overflow: hidden;
}
.hero-main {
  flex: 1 0 auto; width: 100%;
  display: flex; align-items: center;
  position: relative; z-index: 1;
  padding: 32px 0;
}

/* ===== BANDEAU DE CONFIANCE (bas du hero) ===== */
.hero-trust {
  position: relative; z-index: 2; width: 100%;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(to top, rgba(15,42,61,.94), rgba(15,42,61,.46));
}
.trust-lead {
  text-align: center; margin-bottom: 16px;
  font-size: .74rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.52);
  padding: 0 24px;
}
html[lang="ar"] .trust-lead { letter-spacing: 0; font-size: .82rem; text-transform: none; }
.trust-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.trust-track {
  --trust-gap: 56px;
  display: flex; align-items: center; gap: var(--trust-gap);
  width: max-content;
  animation: trust-scroll 64s linear infinite;
}
.trust-group { display: flex; align-items: center; gap: var(--trust-gap); }
.trust-marquee:hover .trust-track,
.trust-marquee:focus-within .trust-track { animation-play-state: paused; }
/* En RTL la piste déborde vers la gauche : le défilement doit aller
   vers la droite, pas simplement être joué à l'envers. */
html[dir="rtl"] .trust-track { animation-name: trust-scroll-rtl; }
.trust-item {
  display: flex; align-items: center; justify-content: center;
  height: 30px; flex: none;
}
.trust-item img {
  max-height: 32px; max-width: 160px; width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .58;
  transition: opacity var(--transition);
}
.trust-item img:hover { opacity: 1; }
/* Un groupe plus un espacement : le second groupe arrive exactement
   là où le premier commençait, donc la boucle est invisible. */
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--trust-gap) / 2)); }
}
@keyframes trust-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(50% + var(--trust-gap) / 2)); }
}
@media (max-width: 768px) {
  .hero-trust { padding: 16px 0 20px; }
  .trust-track { --trust-gap: 38px; animation-duration: 46s; }
  .trust-item img { max-height: 26px; max-width: 120px; }
  .trust-lead { font-size: .68rem; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee { -webkit-mask-image: none; mask-image: none; }
  .trust-track {
    animation: none; width: 100%;
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
  }
  .trust-group { flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
  .trust-track [data-trust-clone] { display: none; }
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute; border-radius: 50%; opacity: .07;
  background: var(--gold);
}
.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -100px; left: 10%; }
.hero-shape-3 { width: 150px; height: 150px; top: 30%; left: 5%; opacity: .05; }

/* Photo d'ambiance du hero (facultative : clé hero.image dans site.config.json).
   Le voile navy est le plus dense du côté du texte pour garder le contraste. */
.hero-photo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-photo picture { display: block; width: 100%; height: 100%; }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 50%;
}
.hero-photo img { filter: saturate(.88) contrast(1.04); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,42,61,.96) 0%, rgba(15,42,61,.88) 26%, rgba(15,42,61,.46) 58%, rgba(15,42,61,.60) 100%),
    linear-gradient(to top, var(--navy) 0%, rgba(15,42,61,.12) 34%);
}
html[dir="rtl"] .hero-photo img { object-position: 38% 50%; }
html[dir="rtl"] .hero-photo::after {
  background:
    linear-gradient(260deg, rgba(15,42,61,.96) 0%, rgba(15,42,61,.88) 26%, rgba(15,42,61,.46) 58%, rgba(15,42,61,.60) 100%),
    linear-gradient(to top, var(--navy) 0%, rgba(15,42,61,.12) 34%);
}
#hero.has-photo { background: var(--navy); }
#hero.has-photo .hero-shape { opacity: .04; }

/* Trait de voyage : une route pointillée qui traverse le hero */
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-route .route-line {
  fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-dasharray: 6 9; opacity: .32;
  animation: route-dash 30s linear infinite;
}
.hero-route .route-stop { fill: var(--gold); opacity: .55; }
.hero-route .route-halo {
  fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .3;
  transform-origin: center; animation: route-pulse 3.5s ease-out infinite;
}
.hero-route .route-halo--late { animation-delay: 1.75s; }
@keyframes route-dash { to { stroke-dashoffset: -300; } }
@keyframes route-pulse {
  0%   { r: 7;  opacity: .45; }
  70%  { r: 20; opacity: 0; }
  100% { r: 20; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-route .route-line, .hero-route .route-halo { animation: none; }
  .hero-visual { animation: none; }
}
@media (max-width: 900px) {
  .hero-route { display: none; }
  .hero-photo::after {
    background:
      linear-gradient(180deg, rgba(15,42,61,.93) 0%, rgba(15,42,61,.86) 34%, rgba(15,42,61,.62) 70%, rgba(15,42,61,.93) 100%);
  }
  .hero-photo img { object-position: 55% 50%; }
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-content .label { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(2.05rem, 3.6vw, 3.1rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  margin-bottom: 36px; max-width: 520px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold); }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.hero-visual {
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.hero-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.hero-card-dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-card-title { color: var(--white); font-weight: 600; font-size: .9rem; }
.hero-metric {
  background: rgba(255,255,255,.05); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-metric-label { font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-metric-val { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.hero-metric-badge {
  font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 100px;
  background: rgba(74,222,128,.2); color: #4ade80;
}
.badge-down { background: rgba(248,113,113,.2) !important; color: #f87171 !important; }
.badge-flat { background: rgba(148,163,184,.22) !important; color: rgba(226,232,240,.92) !important; }
.hero-bar-row { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.hero-bar-label { display: flex; justify-content: space-between; font-size: .75rem; color: rgba(255,255,255,.6); }
.hero-bar-track { height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; }
.hero-bar-fill { height: 100%; border-radius: 3px; transition: width 1.5s ease; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===== PROBLEMS & SOLUTIONS ===== */
#problems { background: var(--gray-50); }
.prob-sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.prob-col-title {
  font-size: 1rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 10px 0; margin-bottom: 24px;
  border-bottom: 2px solid;
}
.prob-col-title.red { color: #e53e3e; border-color: #e53e3e; }
.prob-col-title.green { color: #38a169; border-color: #38a169; }
.prob-item {
  display: flex; gap: 16px; padding: 20px;
  border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
  transition: transform var(--transition);
}
.prob-item:hover { transform: translateX(4px); }
html[dir="rtl"] .prob-item:hover { transform: translateX(-4px); }
.prob-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.prob-icon.red { background: rgba(229,62,62,.1); }
.prob-icon.green { background: rgba(56,161,105,.1); }
.prob-item-title { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.prob-item-desc { font-size: .85rem; color: var(--gray-600); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
.service-card {
  padding: 32px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200); background: var(--white);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; background: rgba(15,42,61,.07);
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-desc { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* ===== BOOKASFAR PRODUCT ===== */
#product {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  position: relative; overflow: hidden;
}
#product::before {
  content: 'BOOKASFAR'; position: absolute;
  font-family: var(--font-display); font-size: 18vw; font-weight: 900;
  color: rgba(255,255,255,.03); top: 50%; left: 50%;
  transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
}
.product-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.product-label { color: var(--gold); }
.product-title {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  color: var(--white); margin: 8px 0 4px;
}
.product-sub { font-size: 1.2rem; color: var(--gold); font-weight: 500; margin-bottom: 20px; }
.product-desc { color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.7; margin-bottom: 32px; }
.product-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.product-feature {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.85); font-size: .95rem;
}
.product-feature-check {
  width: 22px; height: 22px; background: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--navy); flex-shrink: 0;
}
.product-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); padding: 24px;
  backdrop-filter: blur(20px);
}
.product-mockup-bar {
  background: rgba(255,255,255,.08); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.product-mockup-icon { font-size: 1.1rem; }
.product-mockup-info { flex: 1; }
.product-mockup-name { font-size: .85rem; color: var(--white); font-weight: 600; }
.product-mockup-sub { font-size: .75rem; color: rgba(255,255,255,.5); }
.product-mockup-val { font-size: .9rem; font-weight: 700; color: var(--gold); }
.product-mini-chart {
  background: rgba(255,255,255,.05); border-radius: var(--radius-sm);
  padding: 16px; margin-top: 16px;
}
.mini-chart-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 8px;
}
.mini-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  transition: height 1s ease;
}

/* ===== WHY US ===== */
#why { background: var(--gray-50); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.why-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 1.5px solid var(--gray-200);
  display: flex; gap: 20px; transition: all var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); transform: translateY(-4px); }
.why-num {
  font-family: var(--font-display); font-size: 2.5rem;
  font-weight: 900; color: rgba(244,196,48,.2); flex-shrink: 0;
  line-height: 1;
}
.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.why-desc { font-size: .88rem; color: var(--gray-600); }
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
.stat-card {
  text-align: center; padding: 36px 24px;
  background: var(--navy); border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 80px; height: 80px; background: var(--gold);
  border-radius: 50%; opacity: .1;
}
.stat-num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; color: var(--gold); }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.testimonial-card {
  padding: 28px; background: var(--white);
  border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200);
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gray-100); }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.testimonial-text { font-size: .9rem; color: var(--gray-600); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; color: var(--gold); font-size: .9rem;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-company { font-size: .78rem; color: var(--gray-400); }

/* ===== CLIENTS ===== */
#clients {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 42%, var(--gray-50) 100%);
  position: relative;
}
#clients::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 86%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,196,48,.5), transparent);
  pointer-events: none;
}
.section#partners, #partners { background: var(--gray-50); }

.clients-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.clients-section-head .section-title { text-wrap: balance; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  align-items: stretch;
}
.client-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(15,42,61,.09);
  box-shadow:
    0 1px 2px rgba(15,42,61,.04),
    0 10px 28px rgba(15,42,61,.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.client-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  pointer-events: none;
}
.client-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244,196,48,.38);
  box-shadow:
    0 4px 12px rgba(15,42,61,.07),
    0 20px 44px rgba(15,42,61,.11);
}
.client-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin: -24px -28px;
  padding: 24px 28px;
  outline: none;
}
.client-card-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 4px rgba(255,255,255,.9);
  border-radius: calc(var(--radius-lg) - 2px);
}
.client-logo {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition), opacity var(--transition);
}
.client-card:hover .client-logo { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .client-card,
  .client-logo { transition: none; }
  .client-card:hover { transform: none; }
  .client-card:hover .client-logo { transform: none; }
}
.client-logo.client-logo--dark-well {
  background-color: #165797;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  max-height: 60px;
  box-sizing: content-box;
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about-text .section-title { margin-bottom: 20px; }
.about-text p { color: var(--gray-600); margin-bottom: 16px; line-height: 1.75; }
.about-vision {
  padding: 20px 24px; background: rgba(244,196,48,.08);
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0; font-style: italic; color: var(--navy-600);
}
html[dir="rtl"] .about-vision { border-left: none; border-right: 3px solid var(--gold); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.founder-card {
  background: var(--gray-50); border-radius: var(--radius-xl);
  padding: 36px; border: 1.5px solid var(--gray-200);
}
.founder-avatar {
  width: 80px; height: 80px; background: var(--navy);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 900; color: var(--gold); margin-bottom: 20px;
}
.founder-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.founder-title-text { font-size: .85rem; color: var(--gray-400); margin-bottom: 20px; }
.founder-bio { font-size: .9rem; color: var(--gray-600); line-height: 1.7; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.founder-tag {
  padding: 5px 12px; background: var(--navy); color: var(--gold);
  border-radius: 100px; font-size: .75rem; font-weight: 600;
}

/* ===== CTA SECTION ===== */
#cta-section {
  background: var(--gold);
  text-align: center; padding: 80px 24px;
}
#cta-section h2 { color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
#cta-section p { color: rgba(15,42,61,.7); font-size: 1.05rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }

/* ===== CONTACT ===== */
#contact { background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 24px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px; padding: 16px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-item-icon {
  width: 40px; height: 40px; background: rgba(15,42,61,.07);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-label { font-size: .75rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-item-val { font-size: .9rem; color: var(--navy); font-weight: 500; }
.form-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; color: var(--navy);
  background: var(--white); transition: border-color var(--transition);
  outline: none;
}
html[lang="ar"] .form-group input,
html[lang="ar"] .form-group textarea { font-family: var(--font-arabic); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,42,61,.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); }
.form-check label { font-size: .88rem; color: var(--gray-600); }
.form-limit-notice {
  font-size: .88rem; line-height: 1.45; color: #9b2c2c; background: rgba(229,62,62,.1);
  border: 1px solid rgba(229,62,62,.25); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 16px;
}
.form-card form.is-locked { opacity: .95; }
.form-debug {
  font-size: .75rem; line-height: 1.45; margin: 0 0 16px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: #1e293b; color: #e2e8f0;
  white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Contact AJAX modal */
.contact-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(15, 42, 61, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.contact-modal-overlay.is-open { opacity: 1; visibility: visible; }
.contact-modal-overlay[hidden] { display: none !important; }
.contact-modal-overlay.is-open:not([hidden]) { display: flex !important; }
.contact-modal {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(15, 42, 61, 0.2);
  max-width: 420px; width: 100%; padding: 28px 24px 24px;
  position: relative; text-align: center;
  transform: scale(0.96); transition: transform .2s;
}
.contact-modal-overlay.is-open .contact-modal { transform: scale(1); }
html[lang="ar"] .contact-modal { font-family: var(--font-arabic), var(--font-sans); }
.contact-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border: none; background: var(--gray-100);
  border-radius: 50%; font-size: 1.25rem; line-height: 1; cursor: pointer;
  color: var(--gray-600); transition: background .15s;
}
.contact-modal-close:hover { background: var(--gray-200); }
html[dir="rtl"] .contact-modal-close { right: auto; left: 12px; }
.contact-modal-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 12px; }
.contact-modal-title {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin: 0 0 10px; line-height: 1.35;
}
.contact-modal-detail {
  font-size: .8rem; color: var(--gray-600); margin: 0 0 20px;
  text-align: left; white-space: pre-wrap; word-break: break-word;
  max-height: 160px; overflow-y: auto;
  padding: 10px 12px; background: var(--gray-50); border-radius: var(--radius-sm);
  font-family: ui-monospace, Menlo, monospace;
}
.contact-modal--success .contact-modal-title { color: #276749; }
.contact-modal--error .contact-modal-title { color: #c53030; }
.contact-modal-ok { width: 100%; justify-content: center; margin-top: 4px; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.15);
}
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .85rem; margin-bottom: 10px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; flex-wrap: wrap; gap: 12px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: .85rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== SCROLL TOP ===== */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 46px; height: 46px; background: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: var(--shadow); cursor: pointer;
  transition: all var(--transition); opacity: 0; pointer-events: none;
  border: none; font-size: 1rem;
}
html[dir="rtl"] #scroll-top { right: auto; left: 28px; }
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero-grid, .prob-sol-grid, .product-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual, .product-visual { display: none; }
  .services-grid, .why-grid, .testimonials-grid, .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero mobile resserré : le bandeau partenaires doit tenir dans le premier
   écran, sans rien retirer du contenu. */
@media (max-width: 768px) {
  #hero { padding-top: 72px; }
  .hero-main { padding: 16px 0; }
  .hero-content .label { margin-bottom: 16px; }
  .hero-title { margin-bottom: 14px; }
  .hero-subtitle { margin-bottom: 26px; }
  .hero-stats { margin-top: 28px; padding-top: 22px; }
  .hero-stat-num { font-size: 1.7rem; }
  .hero-trust { padding: 14px 0 14px; }
}

/* Téléphones courts : les chiffres du hero sont repris à l'identique dans la
   section « Pourquoi nous », on les retire ici pour laisser entrer le bandeau. */
@media (max-width: 768px) and (max-height: 740px) {
  .hero-stats { display: none; }
  /* L'étiquette répète le logo juste au-dessus : superflue sur un écran court. */
  .hero-content .label { display: none; }
  .hero-subtitle { margin-bottom: 22px; }
  .hero-main { padding: 10px 0; }
  .hero-trust { padding: 12px 0; }
  .trust-lead { margin-bottom: 9px; }
}

/* ===== PAGES INTÉRIEURES =====
   Sans hero derrière lui, le navbar fixe doit être opaque dès le chargement,
   et le contenu doit démarrer sous sa hauteur. */
body.page-inner #navbar {
  background: rgba(15,42,61,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.2);
}
body.page-inner .page-body { padding-top: 78px; }
body.page-inner .page-body > .section:first-child { padding-top: 64px; }
.nav-links a.is-active { color: var(--gold); background: rgba(255,255,255,.07); }
.mobile-nav a.is-active { color: var(--gold); }
@media (max-width: 768px) {
  body.page-inner .page-body { padding-top: 68px; }
  body.page-inner .page-body > .section:first-child { padding-top: 40px; }
}

/* ===== PAGE BOOKASFAR ===== */
.bk-benefits-band { background: var(--navy-800); }
.bk-benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.bk-benefit {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.88); font-weight: 600; font-size: .95rem;
  padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
}
.bk-benefit-icon { font-size: 1.5rem; line-height: 1; flex: none; }

.bk-modules {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 48px;
}
.bk-module {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.bk-module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow); border-color: var(--gold);
}
.bk-module-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bk-module-icon {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; border-radius: 11px;
  background: var(--gray-50); border: 1px solid var(--gray-200);
}
.bk-module-title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.bk-module-list { margin: 0; padding: 0; }
.bk-module-list li {
  position: relative; padding-inline-start: 18px; margin-bottom: 8px;
  font-size: .87rem; color: var(--gray-600); line-height: 1.55;
}
.bk-module-list li:last-child { margin-bottom: 0; }
.bk-module-list li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

.bk-ai { background: var(--gray-50); }
.bk-ai-card {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg); padding: 44px 48px;
  box-shadow: var(--shadow-lg);
}
.bk-ai-title {
  color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800; margin: 14px 0 14px; line-height: 1.2;
}
.bk-ai-desc { color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.75; }
.bk-ai-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.bk-ai-tool {
  padding: 7px 16px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: .82rem; font-weight: 600;
}
.bk-ai-tool--proto { background: rgba(244,196,48,.16); border-color: rgba(244,196,48,.4); color: var(--gold); }
.bk-ai-demo { display: flex; flex-direction: column; gap: 12px; }
.bk-ai-bubble {
  padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; line-height: 1.5;
}
.bk-ai-bubble--ask {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85); align-self: flex-start; border-end-start-radius: 4px;
}
.bk-ai-bubble--answer {
  background: var(--gold); color: var(--navy); align-self: flex-end;
  border-end-end-radius: 4px; display: flex; flex-direction: column; gap: 2px;
}
.bk-ai-bubble--answer strong { font-size: 1.3rem; font-weight: 800; }
.bk-ai-bubble--answer span { font-size: .78rem; opacity: .75; }

.bk-guarantees-band { background: var(--white); border-top: 1px solid var(--gray-100); }
.bk-guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bk-guarantee { display: flex; gap: 14px; align-items: flex-start; }
.bk-guarantee-icon { font-size: 1.6rem; line-height: 1.2; flex: none; }
.bk-guarantee-title { font-size: .98rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.bk-guarantee-desc { font-size: .86rem; color: var(--gray-600); line-height: 1.6; }

@media (max-width: 1024px) {
  .bk-benefits { grid-template-columns: repeat(2, 1fr); }
  .bk-modules  { grid-template-columns: repeat(2, 1fr); }
  .bk-ai-card  { grid-template-columns: 1fr; gap: 32px; padding: 36px 32px; }
  .bk-guarantees { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .bk-benefits { grid-template-columns: 1fr; gap: 12px; }
  .bk-modules  { grid-template-columns: 1fr; margin-top: 32px; }
  .bk-ai-card  { padding: 28px 22px; border-radius: var(--radius); }
}

/* ===== BOOKASFAR : logo et capture d'interface ===== */
.product-title { margin: 14px 0 18px; }
.product-logo {
  display: block; height: auto;
  width: clamp(236px, 25vw, 320px);
  padding: 15px 22px; border-radius: 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 16px 44px rgba(0,0,0,.30);
}

.product-showcase { position: relative; margin: 0; }
.product-showcase::before {
  content: ""; position: absolute; inset: -12% -6% -16%;
  background: radial-gradient(58% 58% at 50% 45%, rgba(244,196,48,.20), transparent 72%);
  filter: blur(16px); pointer-events: none;
}
.app-frame {
  position: relative;
  border-radius: 14px; overflow: hidden;
  background: #0b1f2e;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 64px rgba(0,0,0,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.app-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 36px 80px rgba(0,0,0,.5);
}
.app-frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.app-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.app-dot:nth-child(1) { background: #ff5f57; }
.app-dot:nth-child(2) { background: #febc2e; }
.app-dot:nth-child(3) { background: #28c840; }
.app-url {
  flex: 1; margin-inline-start: 10px; text-align: center;
  font-size: .72rem; letter-spacing: .02em;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  border-radius: 100px; padding: 4px 12px;
}
.app-frame img { display: block; width: 100%; height: auto; }
.app-caption {
  position: relative;
  margin-top: 16px; text-align: center;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
@media (prefers-reduced-motion: reduce) {
  .app-frame { transition: none; }
  .app-frame:hover { transform: none; }
}
@media (max-width: 768px) {
  /* la capture reste visible en mobile, contrairement à l'ancien mockup */
  .product-showcase { display: block; margin-top: 36px; }
  .product-logo { width: min(260px, 72vw); padding: 13px 18px; }
  .app-caption { font-size: .75rem; }
}
