/* =====================================================
   Autres services (Gravure, Abonnement, GoDigital, …)
   Navy base + powder blue, each service brings its own accent
   through --x (set inline from the service's colour).
   ===================================================== */
:root { --x: #13294B; --x-soft: #EEF3FA; --xs-ink: var(--ipb-ink, #0B1F3A); --xs-muted: var(--ipb-muted, #5B6B85);
    --xs-line: var(--ipb-border, #E2E8F0); --xs-surface: var(--ipb-surface, #fff); --xs-page: #F5F8FC; --xs-shadow: 0 10px 28px rgba(11,31,58,.08);
    --xs-font: 'Plus Jakarta Sans', 'Noto Kufi Arabic', 'Segoe UI', sans-serif; }
html[data-theme="dark"] { --xs-page: #08121F; --x-soft: #12213A; --xs-shadow: 0 10px 28px rgba(0,0,0,.35); }
body.xs { font-family: var(--xs-font); background: var(--xs-page); color: var(--xs-ink); }
.xs [hidden] { display: none !important; }
.xs h1, .xs h2, .xs h3 { font-family: var(--xs-font); letter-spacing: -.015em; }
.xs .btn { border-radius: 12px; font-weight: 700; }
.btn-x { background: var(--x); color: #fff; }
.btn-x:hover { filter: brightness(1.08); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-x-line { border: 1.5px solid var(--xs-line); background: var(--xs-surface); color: var(--xs-ink); }
.btn-x-line:hover { border-color: var(--x); }
.btn-wa { background: #25D366; color: #fff; }
.xs .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* list of services */
.xs-hero { background: radial-gradient(120% 140% at 90% 0%, #1B3358, #0B1F3A 60%, #060F1C); color: #fff; }
.xs-hero .container { padding-top: 46px; padding-bottom: 50px; }
.xs-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin: 10px 0; }
.xs-hero p { color: #C9D7EA; max-width: 620px; }
.xs-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(176,212,240,.14); color: #B0D4F0; font-weight: 700; font-size: .82rem; }
.xs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.xs-card { position: relative; background: var(--xs-surface); border-radius: 22px; padding: 22px; box-shadow: var(--xs-shadow); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .2s; border-top: 4px solid var(--x); }
.xs-card:hover { transform: translateY(-3px); }
.xs-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--x); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; overflow: hidden; }
.xs-ic img { width: 100%; height: 100%; object-fit: cover; }
.xs-card h3 { font-size: 1.25rem; font-weight: 800; }
.xs-card p { color: var(--xs-muted); font-size: .94rem; }
.xs-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.xs-chips span { background: var(--x-soft); color: var(--xs-ink); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; }
.xs-card .go { margin-top: auto; color: var(--x); font-weight: 800; }
html[data-theme="dark"] .xs-card .go { color: #B0D4F0; }

/* service page hero */
.xs-shero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0B1F3A 0%, #13294B 55%, var(--x) 160%); }
.xs-shero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--x) 55%, transparent), transparent 70%); }
.xs-shero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding-top: 44px; padding-bottom: 48px; }
@media (max-width: 860px) { .xs-shero .container { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 34px; } .xs-shero .art { display: none; } }
.xs-shero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.08; margin: 14px 0 10px; }
.xs-shero p { color: #D6E2F0; font-size: 1.04rem; max-width: 560px; }
.xs-shero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.xs-shero .ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.xs-shero .ghost:hover { background: rgba(255,255,255,.1); }
.xs-hl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.xs-hl span { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.xs-hl i { color: #B0D4F0; }
.xs-shero .art { display: flex; justify-content: center; }
.xs-bigic { width: 190px; height: 190px; border-radius: 48px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); overflow: hidden; }
.xs-bigic img { width: 100%; height: 100%; object-fit: cover; }

.xs-section { padding: 44px 0; }
.xs-h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 6px; }
.xs-sub { color: var(--xs-muted); margin-bottom: 20px; }
.xs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
@media (max-width: 760px) { .xs-steps { grid-template-columns: 1fr; } }
.xs-steps div { background: var(--xs-surface); border-radius: 18px; padding: 18px; box-shadow: var(--xs-shadow); counter-increment: s; }
.xs-steps div::before { content: counter(s); width: 34px; height: 34px; border-radius: 11px; background: var(--x); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.xs-steps b { display: block; font-size: 1.02rem; }
.xs-steps span { color: var(--xs-muted); font-size: .9rem; }

/* offers */
.xs-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.xs-offer { position: relative; text-align: start; background: var(--xs-surface); border: 2px solid var(--xs-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: .15s; }
.xs-offer:hover { border-color: color-mix(in srgb, var(--x) 60%, transparent); }
.xs-offer.on { border-color: var(--x); box-shadow: 0 0 0 3px color-mix(in srgb, var(--x) 22%, transparent); }
.xs-offer.featured { background: linear-gradient(160deg, var(--xs-surface), var(--x-soft)); }
.xs-offer .badge { position: absolute; top: -11px; inset-inline-end: 14px; background: var(--x); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.xs-offer .nm { font-weight: 800; font-size: 1.05rem; padding-inline-end: 30px; }
.xs-offer .ds { color: var(--xs-muted); font-size: .9rem; }
.xs-offer ul { list-style: none; display: grid; gap: 5px; font-size: .88rem; }
.xs-offer li i { color: var(--x); margin-inline-end: 6px; }
html[data-theme="dark"] .xs-offer li i { color: #B0D4F0; }
.xs-offer .pr { margin-top: auto; font-weight: 800; font-size: 1.25rem; }
.xs-offer .pr small { font-size: .8rem; color: var(--xs-muted); font-weight: 600; }
.xs-offer .tick { position: absolute; top: 14px; inset-inline-end: 14px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--xs-line); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: #fff; }
.xs-offer.on .tick { background: var(--x); border-color: var(--x); }
.xs-offer img.ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.xs-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.xs-tabs button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--xs-line); background: var(--xs-surface); font-weight: 700; flex: 0 0 auto; }
.xs-tabs button.on { background: var(--x); border-color: var(--x); color: #fff; }

/* order panel */
.xs-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.xs-layout > * { min-width: 0; }
@media (max-width: 900px) { .xs-layout { grid-template-columns: 1fr; } }
.xs-panel { background: var(--xs-surface); border-radius: 20px; padding: 22px; box-shadow: var(--xs-shadow); }
.xs-panel h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.xs-panel h3 i { color: var(--x); }
html[data-theme="dark"] .xs-panel h3 i { color: #B0D4F0; }
.xs-sticky { position: sticky; top: 84px; }
.xs .field input, .xs .field select, .xs .field textarea { border-radius: 12px; }
.xs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.xs-seg button { padding: 14px 10px; border-radius: 14px; border: 1.5px solid var(--xs-line); background: var(--xs-surface); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.xs-seg button i { font-size: 1.3rem; color: var(--x); }
.xs-seg button.on { border-color: var(--x); background: var(--x-soft); }
.xs-sum { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .94rem; }
.xs-sum.total { border-top: 1px dashed var(--xs-line); margin-top: 8px; padding-top: 12px; font-size: 1.2rem; font-weight: 800; }
.xs-pay { display: grid; gap: 8px; margin-bottom: 12px; }
.xs-pay label { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1.5px solid var(--xs-line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.xs-pay label:has(input:checked) { border-color: var(--x); background: var(--x-soft); }
.xs-pay input { accent-color: var(--x); }
.xs-note { background: var(--x-soft); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin: 8px 0; }
.xs-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.xs-thumbs div { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--x-soft); }
.xs-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.xs-thumbs button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(11,31,58,.75); color: #fff; font-size: .7rem; }
.xs-contact { display: flex; gap: 10px; flex-wrap: wrap; }

/* GoDigital: Google profile mock-up (illustration) */
.gd-mock { width: min(360px, 100%); background: #fff; color: #202124; border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); overflow: hidden; font-family: Arial, sans-serif; text-align: start; }
.gd-mock .map { height: 120px; position: relative; background:
    linear-gradient(90deg, transparent 48%, #fff 48%, #fff 52%, transparent 52%),
    linear-gradient(0deg, transparent 58%, #fff 58%, #fff 62%, transparent 62%),
    linear-gradient(35deg, transparent 70%, #f8e7a8 70%, #f8e7a8 74%, transparent 74%), #e5efe3; }
.gd-mock .pin { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); color: #EA4335; font-size: 2.2rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.gd-mock .bd { padding: 14px 16px 16px; }
.gd-mock .nm { font-size: 1.2rem; font-weight: 700; }
.gd-mock .rt { color: #70757a; font-size: .85rem; margin: 2px 0; }
.gd-mock .rt b { color: #202124; }
.gd-mock .rt i { color: #FBBC04; font-size: .78rem; }
.gd-mock .open { color: #188038; font-weight: 700; font-size: .85rem; }
.gd-mock .acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; text-align: center; font-size: .72rem; color: #1a73e8; }
.gd-mock .acts i { display: flex; width: 38px; height: 38px; margin: 0 auto 4px; border-radius: 50%; border: 1px solid #dadce0; align-items: center; justify-content: center; font-size: .95rem; }
.gd-mock .ln { display: flex; gap: 10px; font-size: .82rem; padding: 6px 0; border-top: 1px solid #ebebeb; color: #3c4043; }
.gd-mock .ln i { color: #70757a; width: 16px; text-align: center; margin-top: 2px; }
.gd-mock .tag { background: #e8f0fe; color: #1967d2; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; display: inline-block; margin-bottom: 6px; }
.gd-problem { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .gd-problem { grid-template-columns: 1fr; } }
.gd-problem > div { background: var(--xs-surface); border-radius: 18px; padding: 18px; box-shadow: var(--xs-shadow); display: flex; gap: 12px; }
.gd-problem > div > div { display: block; }
.gd-problem b { display: block; margin-bottom: 4px; }
.gd-problem i { color: var(--x); font-size: 1.4rem; margin-top: 2px; }
html[data-theme="dark"] .gd-problem > div > div { display: block; }
.gd-problem b { display: block; margin-bottom: 4px; }
.gd-problem i { color: #6FD3C3; }
.gd-flags { display: flex; gap: 10px; flex-wrap: wrap; }
.gd-flags span { background: var(--xs-surface); border: 1.5px solid var(--xs-line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; }

/* my requests */
.xs-req { background: var(--xs-surface); border-radius: 18px; padding: 18px; box-shadow: var(--xs-shadow); margin-bottom: 12px; border-inline-start: 5px solid var(--x); }
.xs-req .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.xs-req .meta { color: var(--xs-muted); font-size: .88rem; margin: 6px 0; }
.xs-status { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #EEF2F8; color: #2A4A7A; }
.xs-status.quoted { background: #FFF4DE; color: #A15C00; }
.xs-status.accepted, .xs-status.in_progress { background: #E6F1FB; color: #1B5FA8; }
.xs-status.completed, .xs-status.active { background: #E7F4E8; color: #2E7D32; }
.xs-status.cancelled, .xs-status.rejected, .xs-status.expired { background: #FDECEC; color: #C62828; }
html[data-theme="dark"] .xs-status { background: #172A48; color: #AFC6E6; }
html[data-theme="dark"] .xs-status.quoted { background: #3A2A10; color: #F3C266; }
html[data-theme="dark"] .xs-status.completed, html[data-theme="dark"] .xs-status.active { background: #13301A; color: #8BD18F; }
html[data-theme="dark"] .xs-status.cancelled, html[data-theme="dark"] .xs-status.rejected, html[data-theme="dark"] .xs-status.expired { background: #3A1515; color: #F28B8B; }
.xs-quote { background: #FFF8EA; border: 1.5px solid #F3C266; border-radius: 14px; padding: 14px; margin-top: 10px; }
html[data-theme="dark"] .xs-quote { background: #2A2112; border-color: #6B5320; }
.xs-empty { text-align: center; padding: 50px 18px; }
.xs-empty .ic { width: 78px; height: 78px; border-radius: 24px; margin: 0 auto 14px; background: var(--x-soft); color: var(--x); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
html[data-theme="dark"] .xs-empty .ic { color: #B0D4F0; }
.xs-empty h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.xs-empty p { color: var(--xs-muted); margin-bottom: 16px; }
.xs .spinner { border-top-color: var(--x); }
.xs-fade { animation: xsfade .4s ease both; }
@keyframes xsfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xs-fade { animation: none; } .xs-card { transition: none; } }

/* .field / .btn display rules must not beat the hidden attribute */
.xs [hidden], .adm [hidden], .ipb-modal [hidden] { display: none !important; }
