/* =====================================================
   Boutouga Express — Home (Pro refinement)
   Same markup, same content, same brand colours.
   Drop-in replacement for the previous <style> / .css
===================================================== */
/* Polices (Inter + Cairo) déjà chargées par includes/header.php : pas de second téléchargement ici (plus rapide). */

:root {
    --dir: 1;
    --primary: #1fb45f;
    --primary-dark: #14803f;
    --primary-light: #e9f8ef;
    --primary-gradient: linear-gradient(135deg, #2dbe6c 0%, #159a4f 100%);
    --secondary: #2563eb;
    --secondary-light: #dbeafe;
    --dark: #08122a;
    --dark-soft: #101a33;
    --text: #3b475a;
    --text-light: #66758a;
    --bg: #f6f8fb;
    --white: #fff;
    --border: #e6eaf0;

    /* layered shadows: tight contact + soft ambient */
    --shadow-sm: 0 1px 2px rgba(8,18,42,.05), 0 2px 6px rgba(8,18,42,.04);
    --shadow-md: 0 2px 4px rgba(8,18,42,.04), 0 12px 28px -6px rgba(8,18,42,.10);
    --shadow-lg: 0 4px 8px rgba(8,18,42,.04), 0 28px 56px -12px rgba(8,18,42,.18);
    --shadow-green: 0 10px 28px -8px rgba(31,180,95,.55);

    /* radius hierarchy: small -> controls, mid -> cards, large -> frames */
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --ease: cubic-bezier(.22,1,.36,1);
    --transition: .45s var(--ease);
    --section-y: clamp(56px, 7vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-wrap: break-word;
}
body.lang-ar, html[dir="rtl"] body { --dir: -1; font-family: 'Cairo', 'Inter', sans-serif; line-height: 1.75; }

img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 90px; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3 { overflow-wrap: anywhere; }
::selection { background: rgba(31,180,95,.22); color: var(--dark); }

:focus-visible { outline: 3px solid rgba(37,99,235,.55); outline-offset: 3px; border-radius: 8px; }

.container {
    max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px);
    padding-left: max(clamp(16px, 3vw, 28px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 3vw, 28px), env(safe-area-inset-right));
}
.text-green { color: var(--primary); }
.text-blue  { color: var(--secondary); }

/* =====================================================
   HERO
===================================================== */
.hero-section {
    position: relative;
    background: #08122a; /* خلفية داكنة احتياطية */
    padding: clamp(40px, 6vw, 80px) 0 !important;
    margin-top: 0 !important;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    min-height: 80vh;
}

/* الفيديو في الخلفية */
.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* طبقة تعتيم شفافة جداً (تحافظ على وضوح الفيديو وتبرز النص) */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,18,42,0.7) 0%, rgba(8,18,42,0.4) 50%, rgba(8,18,42,0.1) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 3;
    display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero-bg-shapes { display: none !important; }

.hero-content { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    /* إزالة الصندوق الأبيض - التصميم الأصلي */
}

.hero-image { display: flex; justify-content: center; align-items: center; width: 100%; position: relative; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px 7px 8px; margin-bottom: 22px; width: fit-content;
    background: rgba(255,255,255,.9); 
    border: 1px solid rgba(31,180,95,.28) !important; border-radius: 100px;
    font-size: 12.5px; font-weight: 700 !important; color: var(--dark); letter-spacing: .1px;
    box-shadow: 0 6px 20px -8px rgba(31,180,95,.35) !important;
}
html[dir="rtl"] body .hero-tag { padding: 7px 8px 7px 16px; }
.hero-tag-dot {
    width: 9px; height: 9px; border-radius: 50%; margin-inline-start: 8px; background: var(--primary);
    box-shadow: 0 0 0 0 rgba(31,180,95,.5); animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(31,180,95,.5); }
    70%,100% { box-shadow: 0 0 0 10px rgba(31,180,95,0); }
}

/* تعديل الألوان لتظهر فوق الفيديو (أبيض مع ظل) */
.hero-title {
    font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; color: #fff;
    line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}
.hero-separator { display: none !important; }
.hero-title .text-green { display: block; font-size: 1.14em; letter-spacing: -.035em; margin-bottom: 6px; color: #4ade80; }
.hero-title .text-blue  { display: block; font-size: .8em; font-weight: 800; letter-spacing: -.02em; color: #60a5fa; }
html[dir="rtl"] body .hero-title, body.lang-ar .hero-title { letter-spacing: 0; line-height: 1.3; }

.hero-description { margin-bottom: 8px; max-width: 58ch; }
.hero-text { color: #f1f5f9 !important; font-weight: 500 !important; font-size: clamp(15.5px, 1.4vw, 17.5px) !important; line-height: 1.75; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero-text strong { color: #4ade80; font-weight: 700; }
.hero-sub { font-size: 14.5px; color: #e2e8f0 !important; line-height: 1.7; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.hero-sub strong { color: #4ade80; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* image: framed, with an offset brand-colour plate behind it */
.hero-image::before {
    content: ''; position: absolute; inset-block: 24px -18px; inset-inline: 24px -18px; z-index: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(31,180,95,.9), rgba(37,99,235,.85));
    opacity: .14; transition: transform var(--transition), opacity var(--transition);
}
.hero-image:hover::before { transform: translate(calc(6px * var(--dir)), 6px); opacity: .22; }
.hero-image-frame {
    position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--white); border: 6px solid #fff;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(8,18,42,.06);
}
.hero-img { background: #eef2f7; width: 100%; height: auto; display: block; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-image-frame:hover .hero-img { transform: scale(1.035); }

/* single orchestrated page-load entrance (hero only) */
/* Entrée douce SANS opacité 0 : le texte et l'image sont visibles immédiatement (meilleur score LCP) */
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    .hero-content > * { transform: translateY(12px); animation: rise .7s var(--ease) forwards; }
    .hero-content > :nth-child(2) { animation-delay: .05s; }
    .hero-content > :nth-child(3) { animation-delay: .1s; }
    .hero-content > :nth-child(4) { animation-delay: .15s; }
    @keyframes rise { to { transform: none; } }
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; padding: 13px 26px; border: 0; border-radius: 100px; cursor: pointer; white-space: nowrap;
    font-family: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.2; text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:active { transform: translateY(0) scale(.98) !important; }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
html[dir="rtl"] body .btn:hover .btn-arrow { transform: translateX(-4px); }

.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: var(--shadow-green), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(31,180,95,.7), inset 0 1px 0 rgba(255,255,255,.25); }

.btn-secondary { background: #fff; color: var(--dark); box-shadow: inset 0 0 0 2px #dfe5ee, var(--shadow-sm); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--dark), var(--shadow-md); }

.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-dark); transform: translateY(-2px); box-shadow: inset 0 0 0 2px #fff, var(--shadow-md); }
.hero-section .btn-outline { color: #fff; }
.hero-section .btn-outline:hover { color: var(--primary-dark); }

/* buttons used in the markup that previously had no style */
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn-outline-light:hover { background: #fff; color: var(--dark); transform: translateY(-2px); box-shadow: inset 0 0 0 2px #fff; }
.cta-buttons .btn-outline-light:first-child { background: var(--primary-gradient); box-shadow: var(--shadow-green); }
.cta-buttons .btn-outline-light:first-child:hover { color: #fff; }
.btn-google, .btn-map, .btn-reviews { background: #fff; color: var(--dark); box-shadow: inset 0 0 0 2px #dfe5ee, var(--shadow-sm); }
.btn-google:hover, .btn-map:hover, .btn-reviews:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--primary), var(--shadow-md); color: var(--primary-dark); }

/* =====================================================
   STATS
===================================================== */
.stats-section { padding: var(--section-y) 0; background: var(--bg); position: relative; }
.stats-header { text-align: center; margin-bottom: 52px; }
.stats-title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; color: var(--dark); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; }
.stats-subtitle { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.stats-grid-premium { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1200px; margin: 0 auto; }
.stat-card-premium {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 34px 22px 30px; overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.stat-card-premium::before {
    content: ''; display: block !important; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--accent, var(--primary)); opacity: .9;
}
.stat-card-green  { --accent: #1fb45f; }
.stat-card-yellow { --accent: #f59e0b; }
.stat-card-blue   { --accent: #2563eb; }
.stat-card-purple { --accent: #8b5cf6; }
.stat-card-premium:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.stat-icon-wrap { width: 68px; height: 68px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: transform .5s var(--ease); }
.stat-card-premium:hover .stat-icon-wrap { transform: scale(1.08) rotate(4deg); }
.stat-card-green  .stat-icon-wrap { background: linear-gradient(135deg,#e9f8ef,#c9eed8); box-shadow: 0 10px 22px -8px rgba(31,180,95,.45); }
.stat-card-yellow .stat-icon-wrap { background: linear-gradient(135deg,#fef3c7,#fde68a); box-shadow: 0 10px 22px -8px rgba(245,158,11,.45); }
.stat-card-blue   .stat-icon-wrap { background: linear-gradient(135deg,#dbeafe,#bfdbfe); box-shadow: 0 10px 22px -8px rgba(37,99,235,.40); }
.stat-card-purple .stat-icon-wrap { background: linear-gradient(135deg,#ede9fe,#ddd6fe); box-shadow: 0 10px 22px -8px rgba(139,92,246,.40); }
.stat-icon-premium { font-size: 32px; line-height: 1; }

.stat-card-premium .stat-number {
    font-size: clamp(2.6rem, 4vw, 3.3rem); font-weight: 900; line-height: 1; margin-bottom: 10px;
    letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--dark);
    background: linear-gradient(135deg, var(--dark) 35%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card-premium .stat-label { font-size: .88rem; color: var(--text-light); font-weight: 600; letter-spacing: .02em; }
.stat-progress { display: none; }

/* =====================================================
   SECTIONS (shared)
===================================================== */
.section-header { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.section-badge {
    display: inline-flex; align-items: center; padding: 7px 18px; margin-bottom: 14px;
    border-radius: 100px; font-size: 13px; font-weight: 700; letter-spacing: .2px;
    background: var(--primary-light); color: var(--primary-dark); border: 1px solid rgba(31,180,95,.18);
}
.section-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; color: var(--dark); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; text-wrap: balance; }
html[dir="rtl"] body .section-title { letter-spacing: 0; line-height: 1.35; }
.section-sub { color: var(--text-light); font-size: 15.5px; margin: 0 auto; max-width: 680px; line-height: 1.75; text-wrap: pretty; }

.how-section, .services-section, .zones-section, .tarifs-section, .testimonials-section, .local-section { padding: var(--section-y) 0; }
.services-section, .zones-section, .testimonials-section { background: var(--bg); }
.how-section, .tarifs-section, .local-section { background: #fff; }

/* HOW */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.how-card {
    position: relative; background: #fff; text-align: center; padding: 38px 22px 28px;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.how-card:hover { transform: translateY(-6px); border-color: rgba(31,180,95,.5); box-shadow: var(--shadow-lg); }
.how-number {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    min-width: 46px; text-align: center; padding: 5px 14px; border-radius: 100px; border: 3px solid #fff;
    font-size: 12px; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--primary-gradient);
    box-shadow: 0 6px 14px -4px rgba(31,180,95,.55);
}
.how-icon { display: block; font-size: 38px; margin: 6px 0 16px; }
.how-card h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.35; }
.how-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.7; }
.how-card p strong { color: var(--dark); }

/* SERVICES */
.services-grid-modern { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.service-card-modern {
    display: flex; flex-direction: column; overflow: hidden; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card-modern:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(31,180,95,.45); }
.service-card-img-wrapper {
    position: relative; width: 100%; height: 210px; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #f4ede5, #ebe1d4);
}
.service-card-img-wrapper::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(8,18,42,.08)); pointer-events: none; }
.service-card-img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; padding: 8px; transition: transform .7s var(--ease); }
.service-card-modern:hover .service-card-img { transform: scale(1.06); }
.service-card-placeholder { font-size: 70px; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.service-card-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 14px; border-radius: 100px;
    font-size: 11.5px; font-weight: 700; color: #fff; background: var(--primary-gradient);
    box-shadow: 0 8px 18px -6px rgba(8,18,42,.35);
}
html[dir="rtl"] body .service-card-badge { left: auto; right: 14px; }
.service-card-badge.pink   { background: linear-gradient(135deg,#ec407a,#ad1457); }
.service-card-badge.blue   { background: linear-gradient(135deg,#2f8cf0,#0d47a1); }
.service-card-badge.purple { background: linear-gradient(135deg,#8e33b8,#4a148c); }
.service-card-badge.orange { background: linear-gradient(135deg,#f57c1f,#bf360c); }
.service-card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 24px 22px 26px; }
.service-card-title { font-size: 18px; font-weight: 800; color: var(--dark); line-height: 1.35; margin-bottom: 10px; }
.service-card-desc { font-size: 13.5px; color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.service-card-features { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.service-card-features li { padding: 5px 12px; border-radius: 100px; font-size: 11.5px; font-weight: 600; background: var(--primary-light); color: var(--primary-dark); border: 1px solid rgba(31,180,95,.18); }
.service-card-conclusion { font-size: 12.5px; color: var(--text-light); line-height: 1.7; font-style: italic; margin-bottom: 20px; flex-grow: 1; padding-inline-start: 12px; border-inline-start: 3px solid rgba(31,180,95,.35); }
.service-card-btn { align-self: flex-start; padding: 11px 22px; font-size: 13.5px; }

/* EXTRA SERVICES */
.extra-services-section { padding: var(--section-y) 0; background: #fff; }
.extra-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.extra-service-card {
    display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s;
}
.extra-service-card:hover { background: #fff; border-color: rgba(31,180,95,.5); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.extra-service-icon { flex-shrink: 0; width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: #fff; border: 1px solid rgba(31,180,95,.2); box-shadow: var(--shadow-sm); }
.extra-service-content h3 { font-size: 1.05rem; color: var(--dark); font-weight: 800; margin-bottom: 6px; line-height: 1.35; }
.extra-service-content p { font-size: .9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.extra-service-content a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-dark); font-weight: 700; font-size: .9rem; text-decoration: none; transition: gap .3s var(--ease), color .2s; }
.extra-service-content a:hover { gap: 11px; color: var(--primary); }

/* BRANDS */
.brands-section { padding: var(--section-y) 0; background: var(--bg); }
.brands-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 14px; margin-bottom: 36px; }
.brand-home-card {
    display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
    padding: 20px 14px; background: #fff; color: var(--dark); font-weight: 700; font-size: .98rem;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, color .3s;
}
.brand-home-card:hover { transform: translateY(-5px); border-color: var(--primary); color: var(--primary-dark); box-shadow: 0 14px 30px -12px rgba(31,180,95,.4); }

/* MENUS banner */
.menus-section {
    position: relative; overflow: hidden; text-align: center; margin: 0 clamp(12px, 2vw, 24px) clamp(48px, 6vw, 80px);
    padding: clamp(44px, 6vw, 72px) 20px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #08122a 0%, #0f2144 100%);
    box-shadow: var(--shadow-lg);
}
.menus-section::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(520px 260px at 20% 0%, rgba(31,180,95,.28), transparent 70%),
        radial-gradient(520px 260px at 90% 100%, rgba(37,99,235,.28), transparent 70%);
}
.menus-section .container { position: relative; z-index: 2; }
.menus-section h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 14px; }
.menus-section h2 .text-green { color: #4ade80; }
.menus-section p { color: #c4cfdf; font-size: 1.05rem; max-width: 620px; margin: 0 auto 30px; line-height: 1.75; }
.menus-section .btn { padding: 15px 38px; font-size: 1.02rem; }

/* ZONES */
.zones-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.zone-tag {
    padding: 10px 20px; border-radius: 100px; background: #fff; color: var(--text); text-decoration: none;
    font-size: 13.5px; font-weight: 600; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .3s;
}
.zone-tag:hover { transform: translateY(-3px); background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); box-shadow: var(--shadow-md); }
.zones-actions { text-align: center; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto 44px; align-items: stretch; }
.pricing-card {
    position: relative; display: flex; flex-direction: column; text-align: center; background: #fff;
    padding: 40px 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pricing-card:hover { transform: translateY(-8px); border-color: rgba(31,180,95,.5); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
    border: 2px solid var(--primary); transform: scale(1.035);
    background: linear-gradient(180deg, #fff 0%, #effaf3 100%);
    box-shadow: 0 4px 8px rgba(31,180,95,.06), 0 30px 60px -16px rgba(31,180,95,.35);
}
.pricing-card.popular:hover { transform: scale(1.035) translateY(-8px); }
.pricing-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    padding: 7px 20px; border-radius: 100px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .4px;
    background: var(--primary-gradient); box-shadow: 0 10px 22px -6px rgba(31,180,95,.6);
}
.pricing-title { font-size: 22px; font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 8px; }
.pricing-price { font-size: 19px; font-weight: 800; color: var(--primary-dark); line-height: 1.3; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.pricing-desc { font-size: 13.5px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; min-height: 46px; }
.pricing-formule { padding: 12px 16px; margin-bottom: 18px; background: var(--bg); border: 1px dashed #cfd7e3; border-radius: var(--radius-sm); }
.pricing-formule-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.pricing-tags { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex-grow: 1; }
.pricing-tags li { padding: 9px 14px; text-align: start; font-size: 12.5px; font-weight: 600; color: var(--primary-dark); background: var(--primary-light); border: 1px solid rgba(31,180,95,.16); border-radius: var(--radius-sm); }
.pricing-btn { width: 100%; padding: 14px 24px; font-size: 14.5px; }
.tarifs-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* TESTIMONIALS */
.google-rating-summary { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 18px 8px 8px; background: #fff; border: 1px solid var(--border); border-radius: 100px; box-shadow: var(--shadow-sm); }
.rating-badge { padding: 5px 14px; border-radius: 100px; font-size: 14px; font-weight: 800; color: #92400e; background: #fef3c7; }
.rating-text { font-size: 14px; color: var(--text); }
.rating-text strong { color: var(--dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 38px; }
.testimonial-card {
    position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card::before { content: '”'; position: absolute; bottom: -14px; inset-inline-start: 18px; font-family: Georgia, serif; font-size: 90px; line-height: 1; color: var(--primary); opacity: .12; pointer-events: none; }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(31,180,95,.45); }
.testimonial-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.testimonial-stars { color: #fbbc04; font-size: 15px; letter-spacing: 2px; }
.source-badge { padding: 4px 12px; border-radius: 100px; font-size: 10.5px; font-weight: 700; color: #2e7d32; background: #e8f5e9; border: 1px solid #b7dfba; }
.testimonial-text { flex-grow: 1; margin-bottom: 20px; font-size: 15px; line-height: 1.85; color: var(--dark-soft); font-style: normal; text-align: start; font-family: 'Cairo', 'Inter', sans-serif; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.author-avatar { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 20px; color: #fff; background: var(--primary-gradient); box-shadow: 0 6px 14px -4px rgba(31,180,95,.5); }
.author-info { display: flex; flex-direction: column; line-height: 1.35; }
.author-name { font-weight: 700; color: var(--dark); font-size: 14px; }
.author-meta { font-size: 11.5px; color: #8493a8; }
.testimonials-actions { text-align: center; }

/* FAQ */
.faq-section { padding: var(--section-y) 0; background: #fff; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: rgba(31,180,95,.5); box-shadow: var(--shadow-md); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
    padding: 19px 22px; font-weight: 700; font-size: 15.5px; color: var(--dark); line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    font-size: 20px; font-weight: 500; line-height: 1; color: var(--primary-dark); background: var(--primary-light);
    transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: #3b475a; line-height: 1.8; font-size: 15px; }

/* CTA */
.cta-section { padding: clamp(52px, 6vw, 84px) 0; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 85% 10%, rgba(31,180,95,.22), transparent 70%), radial-gradient(500px 300px at 5% 100%, rgba(37,99,235,.2), transparent 70%); }
.cta-box {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px;
    padding: clamp(32px, 5vw, 54px) clamp(24px, 5vw, 58px);
    background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.cta-content { position: relative; z-index: 1; }
.cta-tag { display: inline-block; padding: 5px 14px; margin-bottom: 14px; border-radius: 100px; font-size: 12.5px; font-weight: 700; color: #4ade80; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.25); }
.cta-content h2 { font-size: clamp(22px, 2.9vw, 36px); font-weight: 800; color: #fff; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 10px; }
.cta-content h2 .text-green { color: #4ade80; }
.cta-sep { color: #7d8aa3; font-weight: 300; padding: 0 8px; }
.cta-content h2 span:last-child { color: #d3dbe8; }
.cta-content p { font-size: 15.5px; color: #a3b0c5; margin-bottom: 24px; }
.cta-content p strong { color: #4ade80; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-decoration { font-size: clamp(64px, 8vw, 96px); opacity: .18; animation: floatItem 6s ease-in-out infinite; }
@keyframes floatItem { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* LOCAL */
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: stretch; }
.local-content { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.local-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--dark); line-height: 1.25; letter-spacing: -.02em; margin-bottom: 14px; }
.local-title .text-green { color: var(--primary); }
.local-sep { color: var(--text-light); font-weight: 300; padding: 0 8px; }
.local-sub { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; max-width: 56ch; }
.local-sub strong { color: var(--primary-dark); }
.local-actions { margin-bottom: 24px; }
.local-reviews { width: 100%; padding: 22px 26px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.reviews-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.reviews-stars { font-size: 18px; }
.reviews-header h3 { font-size: 17px; font-weight: 700; color: var(--dark); }
.local-reviews p { font-size: 13.5px; color: var(--text-light); line-height: 1.65; margin-bottom: 16px; }
.local-map-wrapper { min-height: 380px; }
.local-map { width: 100%; height: 100%; min-height: 380px; overflow: hidden; border-radius: var(--radius-lg); border: 6px solid #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(8,18,42,.06); }
.local-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
    .hero-content { align-items: center; }
    .hero-description { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-tag { margin-inline: auto; }
    .hero-image { max-width: 640px; margin: 0 auto; }
    .hero-image::before { inset-block: 16px -10px; inset-inline: 16px -10px; }
    .how-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-premium { grid-template-columns: repeat(2, 1fr); }
    .local-grid { grid-template-columns: 1fr; }
    .local-content { align-items: center; text-align: center; }
    .cta-box { flex-direction: column; text-align: center; }
    .cta-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-tag-dot { animation: none; }
    .hero-title { font-size: 28px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn, .cta-buttons .btn { width: 100%; }
    .services-grid-modern, .testimonials-grid { grid-template-columns: 1fr; }
    .service-card-img-wrapper { height: 190px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .local-map-wrapper, .local-map, .local-map iframe { min-height: 300px; }
    .stat-card-premium { padding: 28px 16px 24px; }
    .faq-item summary { font-size: 15px; padding: 17px 18px; }
    .faq-item p { padding: 0 18px 18px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 25px; }
    .hero-tag { font-size: 11.5px; }
    .stats-grid-premium { gap: 12px; }
    .stat-card-premium { padding: 24px 12px 20px; border-radius: 20px; }
    .stat-icon-wrap { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 14px; }
    .stat-icon-premium { font-size: 26px; }
    .stat-card-premium .stat-label { font-size: .78rem; }
    .service-card-body { padding: 20px 18px 22px; }
    .zone-tag { font-size: 12px; padding: 8px 14px; }
    .google-rating-summary { padding-inline-end: 12px; flex-wrap: wrap; justify-content: center; }
}

@media (hover: none) {
    .btn:hover, .how-card:hover, .zone-tag:hover, .testimonial-card:hover, .service-card-modern:hover,
    .pricing-card:hover, .stat-card-premium:hover, .extra-service-card:hover, .brand-home-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .hero-content > *, .hero-image-frame { opacity: 1 !important; transform: none !important; }
}

/* =====================================================
   DEVICE COVERAGE (appended: phones, tablets, laptops, TV/4K)
===================================================== */

/* Tablets portrait & small laptops */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; gap: 40px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-8px); }
    .menus-section { border-radius: 22px; }
}

/* Large phones */
@media (max-width: 600px) {
    .how-grid { grid-template-columns: 1fr; gap: 32px; }
    .brands-home-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brand-home-card { padding: 16px 10px; font-size: .92rem; }
    .extra-service-card { padding: 20px; gap: 14px; }
    .cta-decoration { display: none; }
    .menus-section { padding: 40px 18px; }
    .menus-section .btn { width: 100%; padding: 15px 20px; }
    .tarifs-actions { flex-direction: column; align-items: stretch; }
    .tarifs-actions .btn, .local-actions .btn, .testimonials-actions .btn, .zones-actions .btn { width: 100%; }
    .local-reviews { padding: 20px; }
    .local-reviews .btn { width: 100%; }
}

/* Phones: allow button text to wrap instead of overflowing (long Arabic labels) */
@media (max-width: 480px) {
    .btn { white-space: normal; text-align: center; padding: 13px 20px; }
    .section-badge { font-size: 12px; padding: 6px 14px; text-align: center; }
    .section-title { font-size: 23px; }
    .section-sub { font-size: 14px; }
    .pricing-card { padding: 34px 20px 26px; }
    .pricing-title { font-size: 20px; }
    .service-card-img-wrapper { height: 170px; }
    .how-card { padding: 36px 18px 24px; }
    .testimonial-card { padding: 24px 20px; }
    .cta-content h2 { font-size: 22px; }
    .cta-sep { display: none; }
    .cta-content h2 span:last-child { display: block; }
}

/* Very small phones (320–380px) */
@media (max-width: 380px) {
    .hero-title { font-size: 23px; }
    .hero-text { font-size: 15px !important; }
    .stat-card-premium .stat-number { font-size: 2.2rem; }
    .stat-card-premium .stat-label { font-size: .72rem; }
    .zone-tag { font-size: 11.5px; padding: 7px 12px; }
    .faq-item summary { font-size: 14.5px; gap: 10px; }
    .faq-item summary::after { width: 26px; height: 26px; }
}
@media (max-width: 340px) {
    .stats-grid-premium { grid-template-columns: 1fr; }
}

/* Phones in landscape: shorter vertical rhythm */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-section { padding: 24px 0 40px !important; }
    .hero-actions { margin-top: 18px; }
    :root { --section-y: 44px; }
}

/* Laptops / desktops 1440+ */
@media (min-width: 1440px) {
    .container { max-width: 1320px; }
    .hero-title { font-size: 56px; }
    .hero-text { font-size: 18px !important; }
}

/* Large monitors / TV / 4K */
@media (min-width: 1920px) {
    html { font-size: 112.5%; }
    .container { max-width: 1480px; }
}

/* Keep scaling comfortable on high-density displays */
@media (min-resolution: 2dppx) {
    .stat-card-premium, .how-card, .service-card-modern, .pricing-card, .testimonial-card, .faq-item, .extra-service-card { border-width: .5px; }
}

/* Print */
@media print {
    .hero-section::before, .cta-section, .menus-section, .local-map-wrapper, .hero-actions, .cta-decoration { display: none !important; }
    * { box-shadow: none !important; animation: none !important; }
    .hero-content > *, .hero-image-frame { opacity: 1 !important; transform: none !important; }
    body { color: #000; }
}

/* =====================================================
   (déplacé depuis index.php) — divers
===================================================== */
.testimonial-note { font-size: 11px; color: #94a3b8; font-style: italic; margin-top: -4px; }
.local-map iframe { border-radius: 16px; }

/* =====================================================
   (déplacé depuis index.php) — APPLICATION MOBILE
===================================================== */
.bx-app{padding:70px 0}
.bx-app-box{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;background:linear-gradient(135deg,#0a1628 0%,#12284a 100%);border-radius:28px;padding:56px;color:#fff;position:relative;overflow:hidden;box-shadow:0 30px 60px -20px rgba(10,22,40,.45)}
.bx-app-box::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(45,190,108,.28),transparent 70%);top:-160px;inset-inline-end:-120px;pointer-events:none}
.bx-app-content{position:relative;z-index:1}
.bx-app-badge{display:inline-block;background:rgba(45,190,108,.15);color:#5ee09a;border:1px solid rgba(45,190,108,.35);padding:6px 14px;border-radius:50px;font-size:13px;font-weight:700;margin-bottom:16px}
.bx-app-title{font-size:clamp(26px,3.2vw,38px);line-height:1.2;font-weight:800;margin:0 0 14px;color:#fff}
.bx-app-sub{font-size:17px;line-height:1.65;color:#cbd5e1;margin:0 0 28px;max-width:520px}
.bx-app-features{list-style:none;padding:0;margin:0 0 32px;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.bx-app-features li{display:flex;gap:12px;align-items:flex-start}
.bx-app-ficon{flex:0 0 42px;height:42px;border-radius:12px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:20px}
.bx-app-features strong{display:block;font-size:15px;color:#fff;margin-bottom:2px}
.bx-app-features small{display:block;font-size:13px;color:#94a3b8;line-height:1.45}
.bx-app-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.bx-play-btn{display:inline-flex;align-items:center;gap:12px;background:#000;color:#fff;border:1.5px solid rgba(255,255,255,.25);border-radius:14px;padding:11px 22px 11px 18px;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;direction:ltr}
.bx-play-btn:hover{transform:translateY(-2px);border-color:#2DBE6C;box-shadow:0 12px 28px -8px rgba(45,190,108,.55);color:#fff}
.bx-play-ico{width:26px;height:26px;color:#2DBE6C}
.bx-play-txt{display:flex;flex-direction:column;line-height:1.1;text-align:left}
.bx-play-txt small{font-size:11px;opacity:.85;letter-spacing:.3px}
.bx-play-txt strong{font-size:20px;font-weight:700}
.bx-app-free{font-size:14px;color:#5ee09a;font-weight:600}
.bx-app-iphone{font-size:14px;color:#94a3b8;margin:0}
.bx-app-iphone a{color:#5ee09a;font-weight:700;text-decoration:none;margin-inline-start:6px;white-space:nowrap}
.bx-app-iphone a:hover{text-decoration:underline}
.bx-app-visual{display:flex;justify-content:center;position:relative;z-index:1}
.bx-phone{width:250px;height:500px;background:#0b0f19;border-radius:40px;padding:12px;box-shadow:0 0 0 2px #2a3550,0 40px 80px -20px rgba(0,0,0,.6);position:relative;transform:rotate(-4deg);animation:bxFloat 6s ease-in-out infinite}
html[dir="rtl"] .bx-phone{transform:rotate(4deg)}
.bx-phone-notch{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:90px;height:22px;background:#0b0f19;border-radius:0 0 14px 14px;z-index:3}
.bx-phone-screen{width:100%;height:100%;border-radius:30px;overflow:hidden;background:#eef2f6;position:relative}
.bx-map{position:absolute;inset:0;background-color:#e8eef3;background-image:linear-gradient(#fff 3px,transparent 3px),linear-gradient(90deg,#fff 3px,transparent 3px),linear-gradient(#dfe7ee 1px,transparent 1px),linear-gradient(90deg,#dfe7ee 1px,transparent 1px);background-size:80px 80px,80px 80px,20px 20px,20px 20px}
.bx-route{position:absolute;top:0;left:0;width:200px;height:260px}
.bx-pin{position:absolute;font-size:24px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
.bx-pin-home{top:16px;left:152px}
.bx-rider{position:absolute;font-size:26px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.3));offset-path:path("M30 230 C 60 190, 40 150, 95 130 S 150 80, 165 35");offset-anchor:center;offset-rotate:0deg;animation:bxRide 7s ease-in-out infinite alternate;top:0;left:0}
.bx-card{position:absolute;left:10px;right:10px;bottom:10px;background:#fff;border-radius:20px;padding:14px;box-shadow:0 -6px 24px rgba(10,22,40,.12)}
.bx-card-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}
.bx-card-status{font-size:13px;font-weight:700;color:#0a1628}
.bx-card-eta{background:#2DBE6C;color:#fff;font-size:12px;font-weight:800;padding:4px 10px;border-radius:50px;white-space:nowrap}
.bx-bubble{background:#f1f5f9;color:#334155;font-size:12px;padding:8px 12px;border-radius:14px 14px 14px 4px;margin-bottom:10px;line-height:1.4}
.bx-card-btn{background:#0a1628;color:#fff;text-align:center;font-size:12px;font-weight:700;padding:9px;border-radius:12px}
@keyframes bxFloat{0%,100%{translate:0 0}50%{translate:0 -10px}}
@keyframes bxRide{from{offset-distance:0%}to{offset-distance:92%}}
@supports not (offset-path:path("M0 0")){.bx-rider{top:48%;left:40%;animation:none}}
@media (prefers-reduced-motion:reduce){.bx-phone,.bx-rider{animation:none}}
@media (max-width:900px){
  .bx-app{padding:50px 0}
  .bx-app-box{grid-template-columns:1fr;padding:36px 24px;gap:36px;text-align:center}
  .bx-app-sub{margin-inline:auto}
  .bx-app-features{text-align:start}
  .bx-app-actions{justify-content:center}
  .bx-phone{width:220px;height:440px;animation:none}
  .bx-rider{animation:none}
}
@media (max-width:520px){
  .bx-app-features{grid-template-columns:1fr}
  .bx-app-title{font-size:26px}
}