/* =========================================================================
   Landing — أوتو-إيكول لابيل في
   Vraie landing premium : sections séparées, hero pleine largeur (photo+dégradé),
   timeline parcours, navy #0B3A67 + orange #F97316, RTL arabe, responsive.
   ========================================================================= */
:root {
  --navy: #0B3A67;
  --navy-700: #0d4176;
  --navy-600: #155189;
  --navy-900: #062B4F;
  --orange: #F97316;
  --orange-600: #ea6a0c;
  --orange-bg: #FFF1E6;
  --wa: #25b35a;

  --ink: #1F2937;
  --muted: #64748B;
  --white: #ffffff;
  --bg: #F8FAFC;
  --bg-2: #f1f5f9;
  --line: #E5E7EB;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 3px rgba(11,58,103,.05);
  --shadow-sm: 0 6px 18px -10px rgba(11,58,103,.18);
  --shadow: 0 18px 40px -22px rgba(11,58,103,.30);
  --shadow-lg: 0 36px 80px -34px rgba(11,58,103,.42);

  --font-title: 'Noto Kufi Arabic', 'Cairo', sans-serif;
  --font-body: 'Tajawal', 'Cairo', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.8; direction: rtl; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 800; line-height: 1.3; color: var(--navy); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
svg { display: block; }
img { max-width: 100%; }
.container { width: min(1280px, 92%); margin-inline: auto; }
.container-hero { width: min(1560px, 96%); margin-inline: auto; }

/* ---------- Icônes sprite ---------- */
.lbv-ic { width: 22px; height: 22px; display: block; color: inherit; }

/* ---------- Marque : logo officiel + emblème de repli ---------- */
.brand-mark { position: relative; display: block; flex: none; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 14px; z-index: 1; }
.brand-mark .brand-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; justify-content: center; white-space: nowrap;
  font-family: var(--font-title); font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 12px;
  border: 1.5px solid transparent; cursor: pointer; background: var(--white); color: var(--navy);
  transition: transform .16s ease, box-shadow .2s ease, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn .lbv-ic { width: 19px; height: 19px; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 12px 22px -14px rgba(11,58,103,.9); }
.btn-dark:hover { background: var(--navy-700); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 12px 24px -12px rgba(249,115,22,.8); }
.btn-accent:hover { background: var(--orange-600); }
.btn-white { background: #fff; color: var(--navy); border-color: transparent; }
.btn-white:hover { background: #eef3f9; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-call { font-size: 14.5px; padding: 11px 18px; }
.btn-call .ic { display: inline-grid; place-items: center; }
.chev { font-size: 18px; opacity: .85; }

/* ---------- Sections génériques ---------- */
.section { padding: 88px 0; background: #fff; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag { display: inline-block; background: var(--orange-bg); color: var(--orange-600); font-weight: 700; font-size: 13px;
  padding: 7px 18px; border-radius: 30px; margin-bottom: 16px; font-family: var(--font-title); }
.section-title { font-size: clamp(24px, 3.4vw, 38px); color: var(--navy); margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 17px; }

/* Reveal au scroll */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ============ NAVBAR ============ */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 78px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo-img { width: 60px; height: 60px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; font-family: var(--font-title); font-weight: 600; font-size: 14.5px;
  padding: 9px 13px; border-radius: 10px; color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--orange-600); }
.nav-links a.active { color: var(--orange-600); }
.nav-links a.active::after { content: ''; position: absolute; inset-inline: 13px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; color: var(--navy); cursor: pointer; }

/* ============ HERO ============ */
.hero { padding: 40px 0 60px; background: var(--white); }
.hero-card { position: relative; display: grid; grid-template-columns: 54% 46%; direction: ltr;
  min-height: 540px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); }
.hero-photo-col { position: relative; background: var(--bg-2); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-col::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0) 48%, #ffffff 94%); }
.hero-photo-col.noimg { background: linear-gradient(160deg, var(--navy-600), var(--navy-900)); }
.hero-text { direction: rtl; position: relative; z-index: 1; padding: 52px 50px; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; }
.hero-logo { position: absolute; top: 24px; inset-inline-end: 40px; width: 82px; height: 82px; }
.hero-welcome { color: var(--orange-600); font-family: var(--font-title); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.hero-title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.2; color: var(--navy); margin-bottom: 18px; }
.hero-title .hl { display: block; color: var(--orange); margin-top: 4px; }
.hero-desc { color: var(--muted); font-size: 16.5px; max-width: 460px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; padding-top: 26px; border-top: 1px solid var(--line); }
.mini-item { display: flex; align-items: center; gap: 11px; }
.mini-item .mi-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--orange-bg); color: var(--orange-600); display: grid; place-items: center; }
.mini-item .mi-ic .lbv-ic { width: 23px; height: 23px; }
.mini-item b { display: block; font-family: var(--font-title); font-size: 14.5px; color: var(--navy); line-height: 1.3; }
.mini-item span { font-size: 12.5px; color: var(--muted); }

/* ============ CARTES GÉNÉRIQUES ============ */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-xs); transition: transform .18s ease, box-shadow .22s ease, border-color .2s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d5dfec; }
.card-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--orange-bg); color: var(--orange-600);
  display: grid; place-items: center; margin-bottom: 18px; }
.card-icon .lbv-ic { width: 30px; height: 30px; }
.card h3 { font-size: 19px; margin-bottom: 9px; color: var(--navy); }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Permis ---------- */
.permis-card { text-align: center; padding: 26px 16px; }
.permis-badge { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 18px;
  background: linear-gradient(155deg, var(--navy-600), var(--navy)); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 22px -12px rgba(11,58,103,.7); }
.permis-badge .lbv-ic { width: 34px; height: 34px; }
.permis-card h3 { font-size: 18px; margin-bottom: 4px; }
.permis-card p { font-size: 13.5px; color: var(--muted); }

/* ============ PLATEFORME ============ */
.platform-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: center; }
.platform-copy .section-tag { margin-bottom: 14px; }
.platform-copy .section-title { text-align: start; margin-bottom: 12px; }
.platform-copy .section-lead { margin-bottom: 24px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-bottom: 28px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.feature-list .tick { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--orange-bg); color: var(--orange-600); display: grid; place-items: center; }
.feature-list .tick .lbv-ic { width: 20px; height: 20px; }
.platform-visual { display: grid; place-items: center; }
.laptop { width: 100%; max-width: 380px; }
.laptop-screen { background: linear-gradient(160deg, var(--navy-600), var(--navy-900)); border-radius: 14px 14px 0 0; padding: 20px; border: 3px solid var(--navy-900); }
.ls-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ls-logo { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.ls-logo .lbv-ic { width: 22px; height: 22px; }
.ls-live { color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 14px; }
.ls-ring { position: relative; width: 128px; height: 128px; margin: 6px auto 18px; }
.ls-ring svg { width: 128px; height: 128px; transform: rotate(-90deg); }
.ls-ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ls-ring .bg { stroke: rgba(255,255,255,.14); }
.ls-ring .fg { stroke: var(--orange); stroke-dasharray: 314; stroke-dashoffset: 100; }
.ls-ring b { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--font-title); font-size: 28px; color: #fff; }
.ls-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ls-tiles b { height: 34px; border-radius: 9px; background: rgba(255,255,255,.1); }
.ls-tiles b:first-child { background: rgba(249,115,22,.6); }
.laptop-base { height: 14px; background: linear-gradient(#cdd8e6, #a9b8cd); border-radius: 0 0 16px 16px; box-shadow: 0 14px 24px -14px rgba(11,58,103,.6); margin: 0 -22px; }

/* ============ TIMELINE PARCOURS ============ */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 38px; inset-inline: 8%; border-top: 2px dashed #cfd8e6; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step-ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: var(--orange-600); display: grid; place-items: center; position: relative; }
.step-ic .lbv-ic { width: 32px; height: 32px; }
.step-num { position: absolute; top: -9px; inset-inline-start: -9px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 13px;
  display: grid; place-items: center; border: 3px solid #fff; }
.step h3 { font-size: 15.5px; margin-bottom: 6px; color: var(--navy); }
.step p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ============ CTA WHATSAPP ============ */
.cta-wa { position: relative; overflow: hidden; padding: 76px 0; color: #fff;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.cta-wa::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 380px at 80% 0%, rgba(249,115,22,.28), transparent 60%); }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-bubble { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 18px; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 28px -10px rgba(37,179,90,.7); }
.cta-bubble svg { width: 34px; height: 34px; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.cta-inner p { color: #cdd8ea; font-size: 17px; margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ============ LOCALISATION ============ */
.loc-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: stretch; }
.loc-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-xs); }
.loc-info h3 { color: var(--navy); margin-bottom: 8px; font-size: 20px; }
.loc-info .row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.loc-info .row:last-of-type { border-bottom: none; }
.loc-info .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--orange-bg); color: var(--orange-600); display: grid; place-items: center; }
.loc-info .ic .lbv-ic { width: 21px; height: 21px; }
.loc-info .row b { font-family: var(--font-title); color: var(--navy); display: block; margin-bottom: 1px; font-size: 14.5px; }
.loc-info .row span { color: var(--muted); font-size: 14px; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; box-shadow: var(--shadow-xs); background: var(--bg-2); }
.map-box iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-900); color: #aebbd2; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; }
.footer-logo { width: 84px; height: 84px; margin-bottom: 14px; }
.footer-about p { font-size: 14px; color: #9fb0cb; line-height: 1.85; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: var(--orange); }
.footer-list li { margin-bottom: 11px; font-size: 14px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .fi { width: 32px; height: 32px; flex: none; border-radius: 9px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.contact-list .fi .lbv-ic { width: 16px; height: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.soc { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cdd8ea; transition: background .15s, color .15s, transform .15s; }
.soc svg { width: 19px; height: 19px; }
.soc:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; text-align: center; font-size: 13px; color: #7c8aa6; }

/* ============ WhatsApp flottant ============ */
.wa-float { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 70; width: 58px; height: 58px;
  border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37,179,90,.7); transition: transform .15s; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .platform-grid { grid-template-columns: 1fr; gap: 40px; }
  .platform-visual { order: -1; }
  .loc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  /* hero : photo en haut, texte dessous */
  .hero-card { grid-template-columns: 1fr; direction: rtl; min-height: 0; }
  .hero-photo-col { min-height: 300px; }
  .hero-photo-col::after { background: linear-gradient(to bottom, rgba(255,255,255,0) 70%, #ffffff 100%); }
  .hero-text { padding: 34px 30px 40px; }
  .hero-logo { top: 18px; inset-inline-end: 24px; width: 62px; height: 62px; }
  /* Le socle décoratif du laptop déborde de 22px de chaque côté : neutralisé
     sur petit écran pour éviter tout défilement horizontal. */
  .laptop-base { margin-inline: 0; }
}
@media (max-width: 860px) {
  .nav-links, .btn-call span:not(.ic) { display: none; }
  .btn-call { padding: 11px; }
  .burger { display: grid; place-items: center; }
  .nav-bar { height: 66px; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; top: 66px; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 5%; }
  .nav-links.open a { padding: 13px; border-radius: 10px; }
  .nav-links.open a.active::after { display: none; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  /* timeline verticale */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { inset-inline: auto; inset-inline-start: 37px; top: 10px; bottom: 10px; border-top: none; border-inline-start: 2px dashed #cfd8e6; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 18px; text-align: start; align-items: start; padding: 12px 0; }
  .step-ic { margin: 0; }
  .step h3 { margin-top: 6px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .hero-benefits { grid-template-columns: 1fr; gap: 14px; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { text-align: center; }
  .footer-about p { margin-inline: auto; }
  .footer-logo { margin-inline: auto; }
}
