/*
Theme Name: 5abir.ma 2026
Theme URI: https://5abir.ma
Description: Theme dyal 5abir.ma - design 2026, FR + AR (RTL), sari3 w khfif. Les articles w les liens dyalhom ma kaytbdlouch.
Author: 5abir.ma
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: b5
Tags: rtl-language-support, translation-ready, blog
*/
    /* Maquette 5abir.ma — version claire, premium. Identité : bleu nuit + indigo/azur/cyan */
    :root {
      --bg: #f6f8fc; --surface: #ffffff; --soft: #eef2fb;
      --ink: #0c1533; --text: #1c2544; --text-2: #4b5575; --muted: #7b84a3;
      --line: #e5e9f2; --line-2: #d4dbea;
      --brand: #3345d6; --azur: #1c8ee8; --cyan: #12b5cb;
      --grad: linear-gradient(135deg, #3345d6 0%, #1c8ee8 55%, #12b5cb 100%);
      --ok: #15a34a; --warn: #d97706; --bad: #dc2626;
      --shadow: 0 1px 2px rgba(16, 24, 64, .04), 0 12px 32px -14px rgba(16, 24, 64, .16);
      --shadow-lg: 0 2px 4px rgba(16, 24, 64, .04), 0 30px 70px -28px rgba(30, 50, 140, .35);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
    .ar { font-family: 'Cairo', sans-serif; direction: rtl; }
    h1, h2, h3 { color: var(--ink); }

    /* Fond: aurores douces + grille fine */
    .bg-fx { position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none; overflow: hidden; }
    .bg-fx::before { content: ''; position: absolute; inset: 0;
      background:
        radial-gradient(700px 420px at 18% 8%, rgba(51, 69, 214, .13), transparent 65%),
        radial-gradient(640px 420px at 85% 4%, rgba(18, 181, 203, .14), transparent 65%),
        radial-gradient(900px 500px at 50% 60%, rgba(28, 142, 232, .07), transparent 70%); }
    .bg-fx::after { content: ''; position: absolute; inset: 0;
      background-image: linear-gradient(rgba(12, 21, 51, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 21, 51, .045) 1px, transparent 1px);
      background-size: 48px 48px;
      -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); }

    /* Boutons */
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 15px;
      border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,64,.05); }
    .btn:hover { transform: translateY(-2px); border-color: #b9c3dc; box-shadow: var(--shadow); }
    .btn.primary { border: 0; color: #fff; background: var(--grad); box-shadow: 0 12px 28px -12px rgba(51, 69, 214, .7); }
    .btn.primary:hover { box-shadow: 0 16px 36px -12px rgba(51, 69, 214, .85); }
    .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    /* Navigation */
    header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(16px); background: rgba(246, 248, 252, .78); border-bottom: 1px solid rgba(12, 21, 51, .06); }
    .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
    .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .4px; color: var(--ink); }
    .logo img { width: 38px; height: 38px; background: #fff; border-radius: 11px; padding: 4px; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px rgba(16,24,64,.2); }
    .logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
    .links a:hover { color: var(--brand); }
    .nav-cta { display: flex; align-items: center; gap: 10px; }
    .lang { font-size: 14px; font-weight: 700; color: var(--text-2); padding: 8px 12px; border-radius: 10px; }
    .lang:hover { background: var(--soft); }
    .nav .btn { padding: 10px 18px; font-size: 14px; border-radius: 12px; }

    /* Hero */
    .hero { padding: 76px 0 40px; text-align: center; }
    .kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--brand); }
    .kicker em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; letter-spacing: .5px; }
    h1 { font-family: 'Sora', sans-serif; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -2px; margin: 24px auto 18px; max-width: 900px; }
    h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .lead { font-size: 19px; color: var(--text-2); max-width: 620px; margin: 0 auto 32px; }
    .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
    .proof { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
    .proof span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
    .proof b { color: var(--ink); font-family: 'Sora', sans-serif; }
    .proof i { width: 18px; height: 18px; border-radius: 50%; background: rgba(21, 163, 74, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2315a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

    /* Scanner: photo réelle (2:1) + scan en négatif bleu + points sur les pièces */
    .scanner-frame { padding: 10px; border-radius: 34px; background: rgba(255,255,255,.7); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
    .scanner { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden;
      background: radial-gradient(ellipse at 50% 60%, #ffffff 40%, #eef2f9 100%); }
    /* Tswira mrbba'a (cutaway): kanwerriw ghir l'bande dyal tomobil */
    .scanner .photo, .scanner .xray { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; mix-blend-mode: multiply; }
    /* L'bande dyal scan katlwwen tomobil b bleu (style plan technique) */
    .scanner .xray { filter: grayscale(1) contrast(1.25) sepia(1) hue-rotate(185deg) saturate(5) brightness(.95); animation: xray 5s cubic-bezier(.45, 0, .55, 1) infinite; }
    .scanner::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
      background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 36px 36px;
      -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 60%, transparent); opacity: .5; }
    .beam { position: absolute; top: 0; bottom: 0; left: -12%; width: 12%; z-index: 2; pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(28, 142, 232, .08)); border-right: 2px solid var(--azur); box-shadow: 6px 0 24px -4px rgba(28, 142, 232, .7);
      animation: beam 5s cubic-bezier(.45, 0, .55, 1) infinite; }
    .scan-top { position: absolute; top: 5%; left: 3.5%; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px;
      background: rgba(255,255,255,.88); backdrop-filter: blur(10px); box-shadow: var(--shadow); text-align: left; }
    .scan-top b { font-family: 'Sora', sans-serif; font-size: 11.5px; letter-spacing: 2px; color: var(--brand); display: flex; align-items: center; gap: 8px; }
    .scan-top b i { width: 8px; height: 8px; border-radius: 50%; background: var(--azur); box-shadow: 0 0 0 4px rgba(28,142,232,.18); animation: pulse 1.2s infinite; }
    .bar { width: 150px; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; }
    .bar i { display: block; height: 100%; width: 0; background: var(--grad); animation: fill 5s cubic-bezier(.45, 0, .55, 1) infinite; }
    .score { position: absolute; top: 5%; right: 3.5%; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 18px;
      background: rgba(255,255,255,.9); backdrop-filter: blur(10px); box-shadow: var(--shadow); text-align: left; }
    .score svg { width: 58px; height: 58px; }
    .score b { display: block; font-family: 'Sora', sans-serif; font-size: 15px; color: var(--ink); }
    .score small { font-size: 12px; font-weight: 600; color: var(--muted); }
    /* Points */
    .pin { position: absolute; z-index: 3; width: 0; height: 0; }
    .pin .dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    .pin .dot::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--c); animation: ping 2s ease-out infinite; }
    .pin .tag { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; padding: 8px 12px 8px 10px; border-radius: 12px; display: flex; align-items: center; gap: 8px;
      font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 8px 24px -8px rgba(16,24,64,.35); }
    .pin .tag i { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); }
    .pin .tag small { display: block; font-size: 11.5px; font-weight: 700; color: var(--c); }
    .pin .tag::before { content: ''; position: absolute; left: 50%; width: 1.5px; background: #fff; }
    .pin.up .tag { bottom: 28px; } .pin.up .tag::before { top: 100%; height: 20px; }
    .pin.down .tag { top: 28px; } .pin.down .tag::before { bottom: 100%; height: 20px; }
    .ok { --c: var(--ok); } .warn { --c: var(--warn); } .bad { --c: var(--bad); }
    .scan-legend { display: none; }

    /* Logos / confiance */
    .trust { display: grid; grid-template-columns: repeat(4, 1fr); margin: 34px 0 110px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
    .trust > div { padding: 24px; display: flex; gap: 14px; align-items: center; }
    .trust > div + div { border-left: 1px solid var(--line); }
    .trust b { font-family: 'Sora', sans-serif; font-size: 20px; display: block; color: var(--ink); line-height: 1.2; }
    .trust span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
    .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(51,69,214,.1), rgba(18,181,203,.12)); }
    .ico svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

    /* Sections */
    section { padding: 0 0 110px; }
    section[id] { scroll-margin-top: 96px; } /* bach l'titre ma ytkhbbach ta7t menu sticky */
    .sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
    .eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    h2 { font-family: 'Sora', sans-serif; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -1.2px; line-height: 1.1; margin: 12px 0 14px; }
    .sec-head p { color: var(--text-2); margin: 0; font-size: 17.5px; }
    .card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
    .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

    /* Étapes */
    /* Schéma dyal les étapes: cercles mrbotin b ligne m7rrka (flux men 1 l 5) */
    .flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding: 30px 26px 34px; border-radius: 28px;
      background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
    .flow::before { content: ''; position: absolute; top: 76px; left: 10%; right: 10%; height: 3px; border-radius: 2px;
      background: repeating-linear-gradient(90deg, var(--azur) 0 12px, transparent 12px 22px); background-size: 22px 3px; opacity: .55; animation: flow 1s linear infinite; }
    .node { position: relative; text-align: center; padding: 0 12px; }
    .node .c { position: relative; z-index: 1; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
      background: #fff; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line), 0 14px 30px -12px rgba(30, 50, 140, .35); }
    .node .c svg { width: 36px; height: 36px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .node .n { position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
      color: #fff; background: var(--grad); box-shadow: 0 0 0 3px #fff; }
    .node.last .c { background: var(--grad); box-shadow: 0 0 0 8px #fff, 0 0 0 9px rgba(51,69,214,.35), 0 18px 36px -12px rgba(51, 69, 214, .7); }
    .node.last .c svg { stroke: #fff; }
    .node.last .n { background: var(--ok); }
    .node:not(:last-child)::after { content: ''; position: absolute; z-index: 2; top: 40px; right: -9px; width: 12px; height: 12px;
      border-top: 3px solid var(--azur); border-right: 3px solid var(--azur); transform: rotate(45deg); background: transparent; }
    .node h3 { font-size: 17px; margin: 0 0 6px; }
    .node p { font-size: 14.5px; color: var(--text-2); margin: 0; }
    .node .t { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--soft); padding: 4px 10px; border-radius: 999px; }
    @keyframes flow { to { background-position: 22px 0; } }

    /* Grilles */
    .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .feat h3 { font-size: 18px; margin: 20px 0 8px; }
    .feat p { color: var(--text-2); font-size: 15px; margin: 0; }

    /* Points de contrôle: schéma technique interactif (catégories | tomobil blueprint | la liste) */
    .insp { display: grid; grid-template-columns: 262px minmax(0, 1fr) 390px; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden; }
    .insp-tabs { padding: 18px; border-right: 1px solid var(--line); background: #fbfcff; display: flex; flex-direction: column; gap: 6px; }
    .insp-tabs .k { font-size: 11.5px; font-weight: 800; letter-spacing: 2px; color: var(--muted); padding: 6px 10px 8px; }
    .insp-tabs button { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 14px;
      border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: var(--text); transition: background .15s, border-color .15s, box-shadow .15s; }
    .insp-tabs button:hover { background: #fff; }
    .insp-tabs button.on { background: #fff; border-color: rgba(51, 69, 214, .25); box-shadow: var(--shadow); }
    .insp-tabs .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--soft); transition: background .2s; }
    .insp-tabs .ic svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .insp-tabs .on .ic { background: var(--grad); } .insp-tabs .on .ic svg { stroke: #fff; }
    .insp-tabs b { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
    .insp-tabs small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
    .insp-tabs .pb { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
    .insp.auto .insp-tabs .on .pb { animation: prog 5s linear forwards; }
    @keyframes prog { to { width: 100%; } }

    .insp-car { position: relative; min-height: 950px; /* tol thabet (catégorie Carrosserie hiya ltwila) bach l'carte ma tnggezch */ display: grid; place-items: center; padding: 30px 20px;
      background:
        linear-gradient(rgba(51, 69, 214, .07) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(51, 69, 214, .07) 1px, transparent 1px) 0 0 / 24px 24px,
        radial-gradient(ellipse at 50% 45%, #ffffff, #eef3fd); overflow: hidden; }
    .insp-car .tagv { position: absolute; top: 16px; left: 18px; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--brand); display: flex; align-items: center; gap: 8px; }
    .insp-car .tagv i { width: 8px; height: 8px; border-radius: 50%; background: var(--azur); box-shadow: 0 0 0 4px rgba(28,142,232,.18); animation: pulse 1.4s infinite; }
    .insp-car .count { position: absolute; right: 18px; bottom: 16px; text-align: right; }
    .insp-car .count b { display: block; font-family: 'Sora', sans-serif; font-size: 34px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .insp-car .count span { font-size: 12px; font-weight: 700; color: var(--muted); }
    .insp-scan { position: absolute; left: 12%; right: 12%; height: 2px; top: 8%; background: linear-gradient(90deg, transparent, var(--azur), transparent); box-shadow: 0 0 16px rgba(28,142,232,.8); animation: vscan 4s ease-in-out infinite alternate; pointer-events: none; }
    @keyframes vscan { from { top: 8%; } to { top: 92%; } }
    .bp { height: 720px; max-width: 100%; overflow: visible; }
    .bp .part { fill: #fff; stroke: #a7b3da; stroke-width: 1.4; stroke-linejoin: round; transition: fill .35s, stroke .35s; }
    .bp .glass { fill: #eaf0fb; stroke: #bdc8e6; stroke-width: 1.1; transition: fill .35s, stroke .35s; }
    .bp .wheel { fill: #cfd7ec; transition: fill .35s; }
    .bp .comp { fill: #f1f4fb; stroke: #bcc6e3; stroke-width: 1.2; transition: fill .35s, stroke .35s; }
    .bp .line { fill: none; stroke: #bcc6e3; stroke-width: 1.2; transition: stroke .35s; }
    .bp .hl { fill: rgba(28, 142, 232, .18); stroke: var(--azur); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(28, 142, 232, .55)); }
    .bp .wheel.hl { fill: var(--brand); stroke: none; }
    .bp .line.hl { fill: none; stroke: var(--azur); }
    .bp .axis text { font-size: 9px; font-weight: 800; letter-spacing: 2px; fill: #9aa6cc; text-anchor: middle; }

    .insp-panels { padding: 30px 28px; display: flex; flex-direction: column; }
    .ip .ip-k { font-size: 11.5px; font-weight: 800; letter-spacing: 2px; color: var(--muted); }
    .ip h3 { font-family: 'Sora', sans-serif; font-size: 23px; letter-spacing: -.4px; margin: 8px 0 8px; }
    .ip p { color: var(--text-2); font-size: 15px; margin: 0 0 18px; }
    .ip ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
    .ip li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; font-weight: 600; color: var(--ink);
      animation: itemIn .4s both; }
    .ip li::before { content: ''; width: 20px; height: 20px; flex-shrink: 0; border-radius: 7px; background: rgba(21,163,74,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2315a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
    .ip ul.cols { grid-template-columns: 1fr 1fr; }
    .ip li:nth-child(2) { animation-delay: .04s; } .ip li:nth-child(3) { animation-delay: .08s; } .ip li:nth-child(4) { animation-delay: .12s; }
    .ip li:nth-child(5) { animation-delay: .16s; } .ip li:nth-child(6) { animation-delay: .2s; } .ip li:nth-child(n+7) { animation-delay: .24s; }
    @keyframes itemIn { from { opacity: 0; transform: translateY(8px); } }
    .ip-sub { margin: 16px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 10px; }
    .ip-sub::after { content: ''; flex: 1; height: 1px; background: var(--line); }
    .ip li.sev { white-space: normal; flex-wrap: wrap; row-gap: 6px; }
    .ip ul.cols li.w { grid-column: 1 / -1; }
    /* Essai routier: conditionnel */
    .cond { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 4px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #92560a; background: #fff7e6; border: 1px solid #f6d58f; }
    .cond::before { content: 'i'; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--warn); font-family: 'Sora', sans-serif; }
    /* Listes compactes (151 points) */
    .ip ul { gap: 5px; }
    .ip li { padding: 6px 9px; font-size: 13px; }
    .ip-sub { margin: 12px 0 6px; }
    .ip p { margin-bottom: 12px; }
    .ip-sub:first-of-type { margin-top: 4px; }
    /* Modules électroniques: sigle + fonction */
    .ip ul.mods li b { font-family: 'Sora', sans-serif; font-size: 11.5px; color: var(--brand); background: rgba(51,69,214,.08); padding: 2px 6px; border-radius: 6px; margin-right: 2px; }
    .ip ul.mods li { gap: 7px; }
    .ip ul.cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ip ul.cols li { white-space: normal; line-height: 1.3; } /* smiya twila → str tani blast ma tt9t3 */
    .ip ul.cols.mods { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .ip ul.mods li { padding: 6px 10px; }
    .ip ul.mods li b { min-width: 46px; text-align: center; }
    .lv { margin-left: auto; display: flex; gap: 4px; }
    .lv i { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
    .lv .l1 { background: #e3f6ea; color: var(--ok); } .lv .l2 { background: #fdf0d5; color: var(--warn); } .lv .l3 { background: #fde3e3; color: var(--bad); }
    .insp-note { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: var(--muted); }

    /* Rapport */
    .report { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .report > div > p { color: var(--text-2); margin: 0; font-size: 17px; }
    .checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
    .checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-weight: 500; }
    .checks li::before { content: ''; width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; background: rgba(21,163,74,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2315a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
    .paper-wrap { position: relative; padding: 30px; border-radius: 30px; background: linear-gradient(135deg, rgba(51,69,214,.08), rgba(18,181,203,.1)); }
    .paper { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
    .paper .top { padding: 22px 24px; color: #fff; background: radial-gradient(circle at 95% 0, rgba(18,181,203,.55), transparent 55%), linear-gradient(135deg, #0c1533, #1d2a6b); }
    .paper .top small { font-size: 10.5px; letter-spacing: 2px; color: #7fe3f0; font-weight: 700; }
    .paper .top h4 { font-family: 'Sora', sans-serif; font-size: 26px; margin: 4px 0 0; color: #fff; }
    .paper .body { padding: 20px; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
    .paper .rows { display: grid; gap: 8px; }
    .paper .row { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
    .pill { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
    .pill.ok { background: #e3f6ea; color: var(--ok); } .pill.warn { background: #fdf0d5; color: var(--warn); } .pill.bad { background: #fde3e3; color: var(--bad); }
    .float-badge { position: absolute; right: -10px; bottom: 26px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14px; color: var(--ink); }
    .float-badge span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #25d366; }
    .float-badge svg { width: 18px; height: 18px; fill: #fff; }
    .float-badge small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }

    /* Tarif */
    .price-wrap { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 780px; margin: 0 auto; }
    .price { position: relative; overflow: hidden; padding: 38px; border-radius: 28px; color: #fff; background: radial-gradient(circle at 100% 0, rgba(18,181,203,.45), transparent 50%), linear-gradient(135deg, #0c1533, #22318a 60%, #2a44c9); box-shadow: var(--shadow-lg); }
    .price h3 { color: #fff; }
    .price .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #7fe3f0; }
    .price .amount { font-family: 'Sora', sans-serif; font-size: 68px; font-weight: 700; letter-spacing: -2.5px; margin: 8px 0 0; line-height: 1; }
    .price .amount small { font-size: 18px; color: rgba(255,255,255,.7); letter-spacing: 0; font-weight: 600; }
    .price ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
    .price li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: rgba(255,255,255,.88); }
    .price li::before { content: ''; width: 20px; height: 20px; flex-shrink: 0; border-radius: 7px; background: rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%237fe3f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
    .price .btn { background: #fff; color: var(--brand); border: 0; }
    .cities h3 { margin: 0 0 6px; font-size: 21px; }
    .cities p { color: var(--text-2); font-size: 15px; margin: 0 0 20px; }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .chips span { padding: 9px 15px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); }
    .chips span.on { background: rgba(51,69,214,.08); border-color: rgba(51,69,214,.3); color: var(--brand); }

    /* Zones d'intervention: kharita Maroc (m3a Sa7ra) + pins */
    .zones { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
    .zones .intro p { color: var(--text-2); font-size: 17px; margin: 0 0 26px; }
    .zlist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
    .zlist li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,64,.04); cursor: default; transition: transform .15s, box-shadow .15s, border-color .15s; }
    .zlist li:hover, .zlist li.on { transform: translateX(6px); border-color: rgba(51,69,214,.35); box-shadow: var(--shadow); }
    .zlist .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: #fff; background: var(--grad); }
    .zlist b { display: block; color: var(--ink); font-size: 16px; }
    .zlist small { color: var(--muted); font-size: 13px; font-weight: 600; }
    .zlist .live { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ok); display: flex; align-items: center; gap: 6px; }
    .zlist .live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(21,163,74,.15); }
    .znote { font-size: 14.5px; color: var(--text-2); }
    .znote a { color: var(--brand); font-weight: 700; }

    .map-card { position: relative; padding: 18px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
    .map-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 400px at 70% 20%, rgba(28,142,232,.10), transparent 70%); pointer-events: none; }
    .map { position: relative; aspect-ratio: 720 / 660; }
    .map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .map .grat { stroke: rgba(51, 69, 214, .10); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
    .map .side { fill: #9fb2ea; }
    .map .land { fill: url(#land); stroke: #3345d6; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 18px 24px rgba(30, 50, 140, .22)); }
    .map .dots { fill: url(#dots); pointer-events: none; }
    .map .halo { fill: rgba(51, 69, 214, .14); transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
    .map .halo.b { animation-delay: -1.3s; }
    .map .core { fill: #fff; stroke: var(--brand); stroke-width: 3; }
    .map .core.on { fill: var(--brand); }
    /* Étiquettes (HTML fou9 l'kharita) */
    .zp { position: absolute; width: 0; height: 0; z-index: 2; }
    .zp .zl { position: absolute; top: calc(-17px + var(--dy, 0px)); white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 11px;
      background: rgba(255,255,255,.95); border: 1px solid var(--line); box-shadow: 0 8px 22px -10px rgba(16,24,64,.4); font-size: 13.5px; font-weight: 700; color: var(--ink); transition: transform .15s, background .15s, color .15s; }
    .zp .zl i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11.5px; color: #fff; background: var(--grad); font-family: 'Sora', sans-serif; }
    .zp .zl::after { content: ''; position: absolute; top: calc(50% - var(--dy, 0px)); height: 1.5px; width: var(--lx, 28px); background: linear-gradient(90deg, rgba(51,69,214,.2), var(--brand)); }
    .zp.left .zl { right: var(--lx, 28px); } .zp.left .zl::after { left: 100%; }
    .zp.right .zl { left: var(--lx, 28px); } .zp.right .zl::after { right: 100%; background: linear-gradient(90deg, var(--brand), rgba(51,69,214,.2)); }
    .zp.on .zl { background: var(--brand); color: #fff; transform: scale(1.06); }
    .zp.on .zl i { background: #fff; color: var(--brand); }
    .map-legend { position: absolute; right: 22px; bottom: 20px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--text-2); }
    .map-legend b { font-family: 'Sora', sans-serif; font-size: 20px; color: var(--ink); }
    @keyframes halo { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

    /* Chiffres */
    .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
    .stat { text-align: center; padding: 32px 16px; }
    .stat b { font-family: 'Sora', sans-serif; font-size: 46px; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .stat span { display: block; color: var(--text-2); font-weight: 600; font-size: 14.5px; }

    /* FAQ */
    .faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
    details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 0 24px; box-shadow: 0 1px 2px rgba(16,24,64,.04); }
    details[open] { box-shadow: var(--shadow); }
    summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 21px 0; font-weight: 700; font-size: 16.5px; color: var(--ink); }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: '+'; flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; color: var(--brand); background: var(--soft); transition: transform .2s; }
    details[open] summary::after { transform: rotate(45deg); }
    details p { margin: 0 0 22px; color: var(--text-2); }

    /* CTA final */
    .final { position: relative; overflow: hidden; text-align: center; padding: 70px 24px; border-radius: 32px; color: #fff; background: radial-gradient(600px 300px at 50% -10%, rgba(127,227,240,.5), transparent 70%), var(--grad); box-shadow: var(--shadow-lg); }
    .final h2 { color: #fff; margin-top: 8px; }
    .final .eyebrow { background: none; -webkit-background-clip: initial; background-clip: initial; color: rgba(255,255,255,.85); }
    .final p { color: rgba(255,255,255,.85); margin: 0 auto 30px; max-width: 560px; font-size: 17px; }
    .final .btn { border: 0; }
    .final .btn.white { background: #fff; color: var(--brand); }
    .final .btn.glass { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
    .final .btn.wa { background: #25d366; color: #fff; }

    footer { border-top: 1px solid var(--line); padding: 44px 0 30px; color: var(--text-2); font-size: 14.5px; background: var(--surface); }
    .foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
    .foot a:hover { color: var(--brand); }
    .foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
    .copy { margin-top: 28px; font-size: 12.5px; color: var(--muted); }

    .mock-note { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fff7e6; color: #92560a; border: 1px solid #f6d58f; box-shadow: var(--shadow); white-space: nowrap; }

    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
    .reveal.in { opacity: 1; transform: none; }

    /* Scan: l'bande katdouz men lisr l limen; nskha "négatif" bleu katban ghir dakhel l'bande */
    @keyframes beam { 0% { left: -12%; } 85%, 100% { left: 100%; } }
    @keyframes xray { 0% { clip-path: inset(0 100% 0 -12%); } 85%, 100% { clip-path: inset(0 -12% 0 100%); } }
    @keyframes fill { 0% { width: 0; } 85%, 100% { width: 100%; } }
    @keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
    @media (prefers-reduced-motion: reduce) { .beam, .xray { display: none; } .bar i, .pin .dot::after, .scan-top b i { animation: none; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

    /* Responsive */
    @media (max-width: 1000px) {
      .links { display: none; }
      .report, .price-wrap, .zones { grid-template-columns: 1fr; }
      /* Points de contrôle: catégories f str (scroll), tomobil, la liste ta7t */
      .insp { grid-template-columns: 1fr; }
      .insp-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; scrollbar-width: none; }
      .insp-tabs::-webkit-scrollbar { display: none; }
      .insp-tabs .k { display: none; }
      .insp-tabs button { flex: 0 0 auto; width: auto; padding: 8px 12px 8px 8px; }
      .insp-tabs .ic { width: 34px; height: 34px; }
      .insp-car { min-height: 400px; }
      .bp { height: 360px; }
      .trust, .grid4, .stats { grid-template-columns: 1fr 1fr; }
      .trust > div:nth-child(3) { border-left: 0; }
      .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
      /* Tablette/telephone: schéma 3moudi (men lfo9 l ta7t) */
      .flow { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; }
      .flow::before { top: 60px; bottom: 60px; left: 67px; right: auto; width: 3px; height: auto;
        background: repeating-linear-gradient(180deg, var(--azur) 0 12px, transparent 12px 22px); background-size: 3px 22px; animation: flow-v 1s linear infinite; }
      .node { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: center; text-align: left; padding: 0; }
      .node .c { margin: 0; }
      .node:not(:last-child)::after { display: none; }
      @keyframes flow-v { to { background-position: 0 22px; } }
      .grid3 { grid-template-columns: 1fr 1fr; }
      .float-badge { right: 10px; }
    }
    @media (max-width: 760px) {
      .pin .tag, .scan-top .bar { display: none; }
      .scanner-frame { padding: 6px; border-radius: 24px; }
      .scanner { border-radius: 19px; }
      .scan-top { padding: 7px 10px; top: 6%; }
      .scan-top b { font-size: 9.5px; letter-spacing: 1.5px; }
      .score { padding: 4px 10px 4px 4px; gap: 6px; }
      .score svg { width: 34px; height: 34px; }
      .score b { font-size: 12px; } .score small { display: none; }
      .pin .dot { width: 12px; height: 12px; left: -6px; top: -6px; border-width: 2px; }
      .pin.tyre { display: none; }
      .zp .zl span { display: none; } /* telephone: ghir ar9am f l'kharita, smiyat f la liste */
      .zp .zl { padding: 4px; border-radius: 9px; }
      .map-card { padding: 10px; border-radius: 22px; }
      .map-legend { right: 12px; bottom: 12px; padding: 8px 10px; font-size: 12px; }
      .map-legend .long { display: none; }
      .scan-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
      .scan-legend span { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink); }
      .scan-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
    }
    @media (max-width: 600px) {
      .nav { height: 64px; }
      .lang, .nav .btn.primary { display: none; }
      .hero { padding-top: 44px; }
      .trust, .grid3, .grid4 { grid-template-columns: 1fr; }
      .node { grid-template-columns: 72px 1fr; gap: 16px; }
      .node .c { width: 72px; height: 72px; }
      .node .c svg { width: 28px; height: 28px; }
      .flow::before { left: 57px; }
      .trust > div + div { border-left: 0; border-top: 1px solid var(--line); }
      .price ul { grid-template-columns: 1fr; }
      .insp-car { min-height: 330px; padding: 20px 10px; }
      .bp { height: 290px; }
      .insp-panels { padding: 22px 18px; }
      .ip ul.cols { grid-template-columns: 1fr; }
      .price { padding: 28px; }
      .price .amount { font-size: 54px; }
      .cta-row .btn { flex: 1 1 100%; }
      .paper-wrap { padding: 14px; }
      .paper .body { grid-template-columns: 1fr; justify-items: center; }
      .float-badge { position: static; margin-top: 14px; }
      .mock-note { font-size: 11px; }
    }

/* ==========================================================================
   Pages dyal WordPress: les articles (Conseils auto), les pages Elementor
   ========================================================================== */
.page-hero { padding: 54px 0 10px; }
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 12px; }
.page-hero p.lead { max-width: 640px; margin-inline: 0; text-align: start; }

/* Liste dyal les articles */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 26px 0 10px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(20, 30, 60, .04); transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(20, 30, 60, .4); }
.post-card .thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef2ff, #e6f6fb); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card .date { font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.post-card h2, .post-card h3 { font-family: 'Sora', sans-serif; font-size: 18px; line-height: 1.35; margin: 0; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.post-card .more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--indigo); }

.pager { display: flex; justify-content: center; gap: 8px; padding: 26px 0 10px; }
.pager .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; color: var(--ink); text-decoration: none;
}
.pager .page-numbers.current { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* Article wa7ed */
.single-wrap { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 780px; margin: 0 auto; padding: 46px 0 20px; }
.single-wrap .meta { font-size: 13px; font-weight: 700; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.single-wrap h1 { font-family: 'Sora', sans-serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.8px; margin: 10px 0 18px; }
.single-wrap .cover { border-radius: 18px; overflow: hidden; margin-bottom: 26px; }
.single-wrap .cover img { width: 100%; height: auto; display: block; }
.entry { font-size: 17px; line-height: 1.75; color: #27304d; }
.entry > * + * { margin-top: 18px; }
.entry h2 { font-family: 'Sora', sans-serif; font-size: 25px; line-height: 1.25; margin-top: 34px; }
.entry h3 { font-family: 'Sora', sans-serif; font-size: 20px; margin-top: 26px; }
.entry img { max-width: 100%; height: auto; border-radius: 14px; }
.entry ul, .entry ol { padding-inline-start: 22px; }
.entry li + li { margin-top: 8px; }
.entry a { color: var(--indigo); }
.entry blockquote { margin: 0; padding: 14px 20px; border-inline-start: 3px solid var(--indigo); background: #f6f8ff; border-radius: 0 14px 14px 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { border: 1px solid var(--line); padding: 9px 12px; }

.single-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 30px 0 0; border-top: 1px solid var(--line); margin-top: 34px; }

/* CTA f lkher dyal l'article */
.post-cta {
  margin: 40px auto 0; max-width: 780px; border-radius: 22px; padding: 30px; color: #fff; text-align: center;
  background: linear-gradient(135deg, #10204d, #1b2d6b 60%, #1f4f8f);
}
.post-cta h2 { font-family: 'Sora', sans-serif; font-size: 26px; margin: 0 0 8px; }
.post-cta p { margin: 0 auto 18px; max-width: 460px; color: rgba(255, 255, 255, .8); }

/* Pages 9dam (Elementor wla éditeur dyal WordPress) */
.page-content { max-width: 900px; margin: 0 auto; padding: 30px 0 10px; }
.page-content .elementor { margin-inline: calc(50% - 50vw); }

.empty-note { padding: 40px 0; color: var(--muted); }

/* ==========================================================================
   Version 3arbiya (RTL)
   ========================================================================== */
.b5-ar { font-family: 'Cairo', 'Inter', sans-serif; }
.b5-ar h1, .b5-ar h2, .b5-ar h3, .b5-ar .kicker, .b5-ar .logo span, .b5-ar .price .amount { font-family: 'Cairo', sans-serif; letter-spacing: 0; }
.b5-ar .lead, .b5-ar p { letter-spacing: 0; }
.b5-ar .nav-cta .lang { font-family: 'Inter', sans-serif; }
/* L'éléments li kayn fihom chi chi3ar b l'latin (plaques, chiffres) kayb9aw LTR */
.b5-ar .ltr, .b5-ar .price .amount, .b5-ar .stat b { direction: ltr; unicode-bidi: isolate; }
.b5-ar .entry { text-align: right; }
.b5-ar .post-card .more::after { content: ' ←'; }

/* ==========================================================================
   Menu dyal telephone (burger)
   ========================================================================== */
.burger {
  display: none; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.m-nav { display: none; padding: 10px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
.m-nav[hidden] { display: none; }
.m-nav a { display: block; padding: 13px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.m-nav .m-nav-cta { display: flex; gap: 10px; margin-top: 14px; }
.m-nav .m-nav-cta a { flex: 1; border-bottom: 0; text-align: center; }

@media (max-width: 1000px) {
  .burger { display: flex; }
  .m-nav.open { display: block; }
  /* Bouton dyal l'logha khasso yb9a dima f lfo9 (machi ghir f menu) */
  .nav .lang { display: inline-flex !important; align-items: center; padding: 8px 10px; font-size: 13.5px; }

  /* Points de contrôle f telephone: les catégories kaydouzo wa7edhom (kol 5 thawani).
     La liste kamla katban (bla scroll dakhel scroll), w la barre katzle9 wa7edha 3la
     l'catégorie li khddama. Rotation kat7bes mnin l'client yklikí wla ykhrej mn section. */
  .insp-tabs { scroll-behavior: smooth; }
  .insp-tabs button.on { box-shadow: 0 6px 18px -8px rgba(51, 69, 214, .5); }
}

/* ==========================================================================
   Formulaire dyal l7jz (#reserver)
   ========================================================================== */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; margin: 22px auto 0; text-align: start; }
.book label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.book label em { font-style: normal; font-weight: 600; color: rgba(255, 255, 255, .5); }
.book input, .book select {
  width: 100%; padding: 13px 14px; border-radius: 14px; font: inherit; font-size: 15px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.book select option { color: #111; }
.book input::placeholder { color: rgba(255, 255, 255, .45); }
.book input:focus, .book select:focus { border-color: #fff; background: rgba(255, 255, 255, .16); }
.book input[type="date"] { color-scheme: dark; }
.book-send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.book-send .or { font-size: 13px; color: rgba(255, 255, 255, .6); }
.book-send .btn.white { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.b5-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-err { display: inline-block; margin-top: 10px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 90, 80, .18); border: 1px solid rgba(255, 140, 130, .5); font-weight: 600; }
.book-ok { max-width: 620px; margin: 18px auto 0; }
.book-ok strong { display: block; font-family: 'Sora', sans-serif; font-size: 22px; margin-bottom: 6px; }
.book-ok p { margin: 0 0 16px; color: rgba(255, 255, 255, .8); }
@media (max-width: 640px) {
  .book { grid-template-columns: 1fr; }
}
/* L'numéro f l'en-tête khasso yb9a f str wa7ed dima */
.nav-cta .btn { white-space: nowrap; }
.nav-cta .btn bdi { white-space: nowrap; }

/* Telephone sghir: numéro kayb9a b l'icône bo7dha bach l'logha w l'menu ysse3o */
@media (max-width: 500px) {
  .nav-cta .btn[href^="tel:"] bdi { display: none; }
  .nav-cta .btn[href^="tel:"] { padding: 10px; }
  .nav-cta { gap: 6px; }
}

/* Schéma dyal les étapes: f l3arbiya l'flèches khass ychofo l lisr */
.b5-ar .node:not(:last-child)::after { right: auto; left: -9px; transform: rotate(-135deg); }
.b5-ar .flow::before { animation-direction: reverse; }
/* Numéro dyal l'étape kaywlli f lisr dyal l'cercle */
.b5-ar .node .n { right: auto; left: -4px; }

@media (max-width: 1000px) {
  /* Telephone: l'ligne 3moudiya w les textes kaydouzo l jiha limna */
  .b5-ar .flow::before { left: auto; right: 67px; }
  .b5-ar .node { text-align: right; }
}
@media (max-width: 560px) {
  .b5-ar .flow::before { left: auto; right: 57px; }
}
