/* =========================================================
   Digital Pole · digitalpole.ma
   Palette : bleu Majorelle + safran, encre profonde
   ========================================================= */
:root {
  --majorelle: #3A3FD8;
  --majorelle-deep: #2A2DA8;
  --ink: #141A3D;
  --ink-soft: #4A5175;
  --paper: #FFFFFF;
  --mist: #F3F4FA;
  --line: #E1E3EF;
  --saffron: #F4B23E;
  --mint: #1E9E6A;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; max-width: 18ch; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--body);
  padding: 16px 24px; border-radius: 999px; border: 2px solid var(--saffron);
  background: var(--saffron); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #FFC45C; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--small { padding: 10px 18px; font-size: .95rem; }
.btn--full { width: 100%; }
.link { font-weight: 600; color: var(--majorelle); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link--light { color: #fff; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); color: var(--ink); }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(20,26,61,.25); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { height: 32px; width: auto; }
.nav__list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .9; }
.nav__list a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--majorelle); color: #fff; padding: 56px 0 120px; overflow: hidden; position: relative; }
.hero::after { /* bande zellige discrète en bas */
  content: ""; position: absolute; inset: auto 0 0 0; height: 14px;
  background:
    conic-gradient(from 45deg at 50% 50%, var(--saffron) 0 25%, transparent 0 50%, var(--saffron) 0 75%, transparent 0) 0 0 / 14px 14px;
  opacity: .9;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__kicker { font-weight: 500; color: #D9DBFF; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.hero__lead { font-size: 1.15rem; color: #E6E7FF; max-width: 52ch; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; color: #D9DBFF; font-size: .98rem; }
.hero__proof li { padding-left: 28px; position: relative; }
.hero__proof li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--saffron) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23141A3D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero__proof strong { color: #fff; font-weight: 600; }

/* Vitrine de démonstration */
.shop { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(10, 12, 60, .55); }
.shop__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.shop__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shop__bar em { font-style: normal; font-size: .82rem; color: var(--ink-soft); background: var(--mist); border-radius: 999px; padding: 4px 14px; margin-left: 12px; }
.shop__body { padding: 16px; }
.shop__banner { position: relative; }
.shop__promo { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.shop__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.prod p { font-size: .85rem; margin-top: 8px; color: var(--ink-soft); }
.prod b { font-size: .92rem; }
.shop__sales {
  position: absolute; z-index: 3; top: 64px; left: -38px; background: var(--ink); color: #fff; border-radius: var(--r-md);
  padding: 12px 16px; display: grid; gap: 2px;
}
.shop__sales span { font-size: .78rem; color: #B9BCDF; }
.shop__sales strong { font: 700 1.35rem/1.1 var(--display); color: var(--saffron); font-variant-numeric: tabular-nums; }

/* Notifications de commandes */
.orders { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 3; right: -24px; top: calc(100% - 20px); width: 290px; display: grid; gap: 8px; }
.order {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--r-md); padding: 10px 14px;
  box-shadow: 0 14px 30px -12px rgba(20, 26, 61, .35); border: 1px solid var(--line);
  font-size: .85rem; line-height: 1.3;
  animation: orderIn .5s cubic-bezier(.2,.9,.3,1.2) both;
}
.order__icon { width: 34px; height: 34px; border-radius: 50%; background: #E3F5EC; display: grid; place-items: center; color: var(--mint); }
.order b { display: block; }
.order small { color: var(--ink-soft); }
.order__amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.order.is-out { animation: orderOut .35s ease forwards; }
@keyframes orderIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes orderOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Emplacements d'images ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(58,63,216,.06) 12px 24px),
    var(--mist);
  border: 1.5px dashed #C4C7E6;
}
.ph::before {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 8px; font-size: .78rem; font-weight: 600; color: #7378A6;
}
.ph img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img) { border-style: solid; border-color: transparent; background: none; }
.ph:has(img)::before { content: none; }
.ph--hero { aspect-ratio: 2 / 1; }
.ph--sq { aspect-ratio: 1; border-radius: var(--r-sm); }
.ph--sq img, .ph--hero img { position: absolute; inset: 0; }
.ph--tall { aspect-ratio: 9 / 7; height: 100%; }
.ph--work { aspect-ratio: 3 / 2; }
.ph--logo { height: 56px; border-radius: var(--r-sm); }
.ph--logo img { object-fit: contain; padding: 8px; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.ph--logo:has(img) { background: none; }
.ph--logo:has(img)::before { content: none; }
.ph--logo:hover img { filter: none; opacity: 1; }
.ph--avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }

/* ---------- Clients ---------- */
.clients { padding: 40px 0; border-bottom: 1px solid var(--line); }
.clients__title { color: var(--ink-soft); font-weight: 500; margin-bottom: 18px; }
.clients__row { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 880px; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; margin-top: 16px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.ticks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--majorelle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Services : l'e-commerce prend la place qu'il mérite */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.svc { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); }
.svc p { color: var(--ink-soft); margin-top: 10px; }
.svc--main {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch;
  padding: 40px; background: var(--mist); border: none; border-radius: var(--r-lg);
}
.svc--main h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.svc--main p { font-size: 1.08rem; max-width: 46ch; }

/* Maroc */
.maroc { background: var(--mist); }
.maroc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 32px; }
.facts dt { font: 700 1.2rem/1.2 var(--display); }
.facts dd { margin: 8px 0 0; color: var(--ink-soft); }

/* Méthode : vraie séquence, donc numérotée */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: 22px; left: 52px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps__n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--majorelle); color: #fff; font: 700 1.2rem/1 var(--display); margin-bottom: 20px; position: relative;
}
.steps p { color: var(--ink-soft); margin-top: 8px; }
.steps small { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--majorelle); }

/* Réalisations */
.works { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 24px; margin-top: 40px; }
.work { text-decoration: none; display: grid; gap: 14px; align-content: start; }
.work--big { grid-row: span 3; }
.work--big .ph--work { aspect-ratio: 4 / 3.4; }
.work__meta p { color: var(--ink-soft); margin-top: 4px; font-size: .95rem; }
.work:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.works .work:not(.work--big) .ph--work { aspect-ratio: 16 / 7; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.plan .ticks { flex: 1; color: var(--ink-soft); }
.plan__price { font: 800 2.4rem/1 var(--display); margin-top: 16px; letter-spacing: -0.03em; }
.plan__price small { display: block; font: 500 .9rem/1.4 var(--body); color: var(--ink-soft); letter-spacing: 0; margin-bottom: 4px; }
.plan__price span { font-size: 1.1rem; }
.plan .btn--ghost { color: var(--majorelle); }
.plan .btn--ghost:hover { background: var(--mist); }
.plan--featured { background: var(--majorelle); color: #fff; border-color: var(--majorelle); transform: translateY(-12px); }
.plan--featured .ticks, .plan--featured .plan__price small { color: #E6E7FF; }
.plan--featured .ticks li::before { background-color: var(--saffron); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23141A3D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.plan__tag { align-self: flex-start; background: var(--saffron); color: var(--ink); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.plans__note { margin-top: 28px; color: var(--ink-soft); }

/* Témoignages */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.quote { margin: 0; }
.quote blockquote { margin: 0; font: 500 1.4rem/1.4 var(--display); letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: #B9BCDF; font-size: .95rem; line-height: 1.4; }
.quote figcaption b { color: #fff; }
.quotes__google { margin-top: 48px; }
.quotes__score { margin-top: 16px; color: #B9BCDF; font-size: 1.05rem; }
.quotes__score b { color: #fff; }
.quotes__stars { color: var(--saffron, #F4B23E); letter-spacing: 2px; }
.quotes__note { margin-top: 32px; color: #B9BCDF; font-size: .9rem; }
.quotes__note + .quotes__google { margin-top: 12px; }
.quote__ini { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .9rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font: 600 1.12rem/1.35 var(--body);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--majorelle); border-bottom: 2px solid var(--majorelle); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* Contact */
.contact { background: var(--majorelle); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__intro p { color: #E6E7FF; margin-top: 16px; font-size: 1.12rem; max-width: 42ch; }
.contact__ways { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact__ways li { display: grid; gap: 2px; }
.contact__ways span { font-size: .88rem; color: #B9BCF5; }
.contact__ways a { font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.contact__ways a:hover { text-decoration: underline; }

.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 18px; }
.form > label, .form legend { font-weight: 600; font-size: .95rem; display: grid; gap: 8px; }
.form input:not([type=radio]), .form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink); width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--majorelle); box-shadow: 0 0 0 3px rgba(58,63,216,.18); }
.form input[aria-invalid="true"] { border-color: #C8372D; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 500; }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.form__error { color: #C8372D; font-weight: 600; font-size: .95rem; }
.form__note { font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* Pied de page */
.foot { background: var(--ink); color: #B9BCDF; padding: 72px 0 32px; font-size: .95rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h3 { font: 600 1rem/1.3 var(--body); color: #fff; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { margin-bottom: 18px; }
.foot__cities { grid-template-columns: 1fr 1fr; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; font-size: .88rem; }

/* WhatsApp flottant */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.35);
}
.wa:hover { transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .maroc__grid, .faq, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-bottom: 140px; }
  .shop { max-width: 560px; }
  .shop__sales { left: auto; right: 16px; top: -26px; }
  .orders { right: 12px; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps li:nth-child(2)::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan--featured { transform: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .nav__toggle {
    display: inline-flex; font: 600 .95rem/1 var(--body); color: var(--ink); background: transparent;
    border: 2px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer;
  }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); padding: 8px 16px 20px; border-top: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(20,26,61,.3);
  }
  .nav__list.is-open { display: flex; }
  .nav__list li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__list .btn { margin-top: 16px; width: 100%; }
  .hero { padding-top: 40px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero { padding-bottom: 72px; }
  .orders { position: static; width: auto; margin: 0 16px; padding-bottom: 16px; min-height: 160px; align-content: start; }
  .clients__row { grid-template-columns: repeat(2, 1fr); }
  .services, .facts, .steps, .quotes, .foot__grid { grid-template-columns: 1fr; }
  .svc--main { grid-template-columns: 1fr; padding: 28px; }
  .facts > div:nth-child(odd) { padding-right: 0; }
  .steps li::before { display: none; }
  .works { grid-template-columns: 1fr; }
  .works .ph--work img { height: auto; }
  .work--big { grid-row: auto; }
  .work--big .ph--work, .works .work:not(.work--big) .ph--work { aspect-ratio: auto; }
  .form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Pages intérieures (services, villes)
   ========================================================= */
.page-hero { background: var(--majorelle); color: #fff; padding: 40px 0 72px; position: relative; }
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: conic-gradient(from 45deg at 50% 50%, var(--saffron) 0 25%, transparent 0 50%, var(--saffron) 0 75%, transparent 0) 0 0 / 10px 10px;
}
.crumbs { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: #C9CBFF; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero__lead { font-size: 1.15rem; color: #E6E7FF; max-width: 60ch; margin-top: 20px; }
.page-hero .hero__cta { margin-top: 28px; }
.page-hero .hero__proof { margin-top: 28px; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 28px; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding: 80px 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); max-width: 24ch; margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: #2E3560; max-width: 68ch; }
.prose ul:not(.ticks), .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose .ph { margin: 32px 0; aspect-ratio: 16 / 8; }
.prose .ticks { margin: 16px 0; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; margin-top: 20px; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: #2E3560; }

.aside { position: sticky; top: 100px; background: var(--mist); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.aside h2 { font-size: 1.4rem; }
.aside p { color: var(--ink-soft); font-size: .97rem; }
.aside .plan__price { font-size: 2rem; margin: 0; }
.aside .btn { width: 100%; }
.aside .btn--ghost { color: var(--majorelle); }
.aside ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-soft); }

.page-faq { padding: 0 0 88px; }
.page-faq .faq__list { max-width: 820px; margin-top: 28px; }

.related { background: var(--mist); padding: 72px 0; }
.related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.related h2 { font-size: 1.6rem; }
.related ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.related a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.related a span { font-weight: 400; color: var(--ink-soft); font-size: .92rem; text-align: right; }
.related a:hover { color: var(--majorelle); }

.cta-band { background: var(--ink); color: #fff; padding: 72px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: #B9BCDF; margin-top: 12px; }
.cta-band .hero__cta { margin-top: 0; }

.svc__more { display: inline-block; margin-top: 14px; }

@media (max-width: 1020px) {
  .page { grid-template-columns: 1fr; gap: 48px; }
  .aside { position: static; }
}
@media (max-width: 760px) {
  .page-hero .hero__proof { grid-template-columns: 1fr; }
  .page { padding: 56px 0; }
  .related__grid { grid-template-columns: 1fr; }
  .related a { flex-direction: column; gap: 2px; }
  .related a span { text-align: left; }
}

/* =========================================================
   Blog
   ========================================================= */
.page-hero--post h1 { max-width: 26ch; font-size: clamp(2rem, 4vw, 3.1rem); }
.post-meta { color: #D9DBFF; margin-top: 18px; font-size: .97rem; }
.lead-answer { background: var(--mist); border-left: 4px solid var(--saffron); padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 1.08rem; }
.prose .faq__list { margin-top: 8px; }
.sources { font-size: .93rem; }
.sources a { color: var(--majorelle); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.posts--3 { margin-top: 32px; }
.post-card a { text-decoration: none; display: grid; gap: 12px; }
.post-card .ph { aspect-ratio: 16 / 9; }
.post-card__meta { font-size: .88rem; color: var(--majorelle); font-weight: 600; }
.post-card h3 { font-size: 1.25rem; line-height: 1.2; }
.post-card p:last-child { color: var(--ink-soft); font-size: .97rem; }
.post-card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.blog-list .posts .post-card:first-child { grid-column: span 2; }
.blog-list .posts .post-card:first-child h3 { font-size: 1.7rem; }

@media (max-width: 1020px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .blog-list .posts .post-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .posts { grid-template-columns: 1fr; }
}

/* =========================================================
   Sélecteur de langue
   ========================================================= */
.lang-switch { font-weight: 600 !important; opacity: 1 !important; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.lang-switch:hover { border-color: var(--majorelle); text-decoration: none !important; }
.lang-switch--solo { text-decoration: none; color: var(--ink); }

/* =========================================================
   Version arabe : polices et lecture de droite à gauche
   ========================================================= */
html[lang^="ar"] {
  --display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[lang^="ar"] body { line-height: 1.8; }
html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3,
html[lang^="ar"] .plan__price, html[lang^="ar"] .brand { letter-spacing: 0; }
html[lang^="ar"] h1, html[lang^="ar"] h2 { line-height: 1.35; }
html[lang^="ar"] h3 { line-height: 1.45; }
html[lang^="ar"] .hero h1 { font-weight: 700; font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
html[lang^="ar"] .page-hero h1 { font-weight: 700; }
html[lang^="ar"] .quote blockquote { line-height: 1.7; }
html[lang^="ar"] .faq__list summary { line-height: 1.6; }

[dir="rtl"] .hero__proof li,
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .hero__proof li::before,
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .shop__sales { left: auto; right: -38px; }
[dir="rtl"] .orders { right: auto; left: -24px; }
[dir="rtl"] .shop__promo { left: auto; right: 14px; }
[dir="rtl"] .shop__bar em { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .faq__list summary { padding: 22px 0 22px 40px; }
[dir="rtl"] .faq__list summary::after { right: auto; left: 6px; }
[dir="rtl"] .facts > div { padding: 24px 0 28px 24px; }
[dir="rtl"] .facts > div:nth-child(odd) { padding-right: 0; padding-left: 32px; }
[dir="rtl"] .steps li { padding: 0 0 0 28px; }
[dir="rtl"] .steps li::before { left: 0; right: 52px; }
[dir="rtl"] .lead-answer { border-left: 0; border-right: 4px solid var(--saffron); border-radius: var(--r-md) 0 0 var(--r-md); }
[dir="rtl"] .prose ul:not(.ticks), [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; padding: 12px 0 12px 14px; }
[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .related a span { text-align: left; }
[dir="rtl"] .wa { right: auto; left: 20px; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .lang-switch--solo { margin-right: auto; }
.lang-switch--solo { margin-left: auto; }

@media (max-width: 1020px) {
  [dir="rtl"] .shop__sales { right: auto; left: 16px; }
  [dir="rtl"] .orders { left: 12px; }
}
@media (max-width: 760px) {
  [dir="rtl"] .facts > div:nth-child(odd) { padding-left: 0; }
  [dir="rtl"] .related a span { text-align: right; }
  [dir="rtl"] .orders { left: auto; }
  .nav__list li a.lang-switch { display: inline-block; margin-top: 12px; padding: 8px 16px; border-bottom: 1.5px solid var(--line); }
}
html[lang^="ar"] h2 { max-width: 26ch; }
html[lang^="ar"] .hero h1 { max-width: 16ch; }

/* Page FAQ */
.faq-page { display: grid; gap: 56px; }
.faq-group h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.faq-group .faq__list p .link { white-space: nowrap; }
.faq-toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.faq-toc a { color: var(--ink); text-decoration: none; }
.faq-toc a:hover { color: var(--majorelle); text-decoration: underline; }
.faq__all { margin-top: 24px; }

/* Crédits photos */
.credits { list-style: none; padding: 0; display: grid; gap: 18px; }
.credits li { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; font-size: .95rem; }
.credits img { width: 160px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
@media (max-width: 560px) { .credits li { grid-template-columns: 1fr; } }

/* Tableaux larges : défilement horizontal sur mobile */
.page > .prose { min-width: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 20px; }
.table-scroll table { margin-top: 0; min-width: 560px; }

/* Liens secondaires (accueil, articles) */
.svc__more + .svc__more { display: block; margin-top: 6px; }
.svc__links { margin-top: 12px; font-size: .95rem; }
.post-links { margin-top: 32px; padding: 16px 20px; border-radius: var(--r-md); background: var(--mist); font-size: .97rem; }

/* Page À propos */
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--majorelle); margin-bottom: 12px; }
.section--ink .kicker { color: var(--saffron); }
.about-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.about-split .prose { min-width: 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: sticky; top: 100px; }
.stats li { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 20px; }
.stats b { display: block; font: 700 2.2rem/1 var(--display); color: var(--majorelle); letter-spacing: -0.02em; }
.stats span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .95rem; line-height: 1.4; }
.values { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 24px; }
.values__n { font: 700 .95rem/1 var(--display); color: var(--majorelle); }
.values h3 { margin-top: 14px; }
.values p { color: var(--ink-soft); margin-top: 8px; }
.trio { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio li { border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); padding: 28px 24px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 10px; }
.trio p { color: #B9BCDF; flex: 1; }
.refs { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.refs li { padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.about-works { margin-top: 48px; max-width: 72ch; }
.about-info { max-width: 80ch; }
@media (max-width: 1020px) {
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .stats { position: static; }
  .values, .trio { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .values, .trio { grid-template-columns: 1fr; }
  .stats b { font-size: 1.8rem; }
}

/* Page « toutes les villes » */
.page--wide { grid-template-columns: minmax(0, 1fr); }
.page--wide .prose { max-width: none; }
.hub-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0 8px; }
.hub-region { border: 1px solid var(--line, #E3E4EE); border-radius: 14px; padding: 20px 22px; background: #fff; }
.prose .hub-region h3 { margin: 0 0 10px; font-size: 1.1rem; }
.prose .hub-region ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.prose .hub-region ul li { margin: 0; }
.hub-region__also { font-size: .92rem; color: var(--muted, #5B5F77); margin: 0 0 8px; }
.hub-region p:last-child { margin-bottom: 0; }
