/* ==========================================================================
   osouk.ma — feuille de style
   Charte : vert zellige, safran, crème. Motif : l'arc outrepassé des portes
   de médina, repris du logo. Logique : propriétés logiques (RTL natif).
   ========================================================================== */

:root {
  --zellige: #0B6B4F;
  --deep: #0B5A43;
  --deeper: #08402F;
  --safran: #F5B301;
  --safran-soft: #FDF0C4;
  --ocre: #A87200;
  --creme: #FBF7EC;
  --sable: #EFE7D2;
  --sable-2: #E6DBBF;
  --encre: #14231D;
  --muted: #55645C;
  --line: #E2D8BF;
  --white: #FFFFFF;
  --danger: #B3261E;
  --danger-soft: #FBE9E7;
  --ok-soft: #E3F1EA;

  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow: 0 1px 2px rgb(20 35 29 / .06), 0 8px 24px -12px rgb(20 35 29 / .18);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  /* hauteur réelle de l'en-tête collant (ligne de recherche + barre des rubriques), mesurée par osouk.js */
  --header-total: calc(var(--header-h) + 46px);
  color-scheme: light;
}

:lang(ar) {
  --f-display: "IBM Plex Sans Arabic", "Instrument Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-total) + 12px); }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 400 16px/1.55 var(--f-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:lang(ar) body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--zellige); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
:lang(ar) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--safran); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--encre); color: #fff; padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--zellige); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.15em;
  border: 1.5px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { --bg: var(--deep); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-safran { --bg: var(--safran); --fg: var(--encre); }
.btn-safran:hover { --bg: #E3A600; }
.btn-ghost { --bg: transparent; --fg: var(--encre); --bd: var(--line); }
.btn-ghost:hover { --bg: var(--sable); --fg: var(--encre); }
.btn-light { --bg: #fff; --fg: var(--encre); --bd: var(--line); }
.btn-light:hover { --bg: var(--sable); --fg: var(--encre); }
.btn-wa { --bg: #1F8F4E; }
.btn-wa:hover { --bg: #17733E; }
.btn-danger { --bg: transparent; --fg: var(--danger); --bd: #E8C4C0; }
.btn-danger:hover { --bg: var(--danger-soft); --fg: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 .9em; font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--zellige); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(251 247 236 / .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { display: block; flex: none; margin-inline-start: -10px; }
.brand img { height: 50px; width: auto; }
.header-search {
  flex: 1; display: flex; align-items: center;
  max-width: 620px; height: 46px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
}
.header-search:focus-within { border-color: var(--zellige); }
.header-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 18px; height: 100%; outline: none; }
.header-search select { border: 0; border-inline-start: 1px solid var(--line); background: none; height: 60%; padding: 0 12px; max-width: 150px; color: var(--muted); outline: none; }
.header-search > button { flex: none; width: 42px; height: 38px; margin-inline-end: 3px; border: 0; border-radius: 999px; background: var(--zellige); color: #fff; display: grid; place-items: center; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.hdr-link { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--r-s); color: var(--encre); text-decoration: none; font-size: .78rem; font-weight: 500; }
.hdr-link:hover { background: var(--sable); color: var(--encre); }
.badge-dot { position: absolute; top: 2px; inset-inline-end: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--safran); color: var(--encre); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.lang-switch { font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: var(--r-s); text-decoration: none; color: var(--encre); }
.lang-switch:hover { background: var(--sable); color: var(--encre); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }

/* Barre des rubriques et méga-menu */
.cat-strip { position: relative; border-top: 1px solid var(--line); }
/* margin-block seulement : .wrap centre la barre avec margin-inline:auto ; padding:0 retire le retrait par défaut des listes */
.cat-menu { display: flex; justify-content: space-evenly; list-style: none; margin-block: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.cat-menu::-webkit-scrollbar { display: none; }
.cm-link { display: flex; align-items: center; gap: 5px; padding: 11px 5px; white-space: nowrap; font-size: .86rem; font-weight: 500; color: var(--encre); text-decoration: none; border-bottom: 2.5px solid transparent; }
.cm-link .icon { color: var(--zellige); opacity: .8; }
.cm-link:hover, .cm-link[aria-current], .cm-item.is-open > .cm-link { border-bottom-color: var(--safran); color: var(--deep); }
.mega {
  position: absolute; inset-inline: 0; top: 100%; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgb(20 35 29 / .35); visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.cm-item.is-open > .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 32px; padding-block: 24px 28px; }
.mega-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-inline-end: 24px; border-inline-end: 1px solid var(--line); }
.mega-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--zellige); }
.mega-head strong { font: 800 1.3rem/1.15 var(--f-display); }
.mega-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.mega-head .btn { margin-top: auto; }
.mega-links { list-style: none; margin: 0; padding: 0; columns: 3 170px; column-gap: 24px; }
.mega-links li { break-inside: avoid; }
.mega-links a { display: flex; align-items: center; gap: 10px; padding: 5px 10px; margin-inline: -10px; border-radius: 10px; color: var(--encre); text-decoration: none; font-size: .95rem; }
.mega-links a:hover { background: var(--creme); color: var(--deep); }
/* Pictogramme de sous-rubrique (méga-menu, page Toutes les catégories) */
.ml-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-soft); color: var(--zellige); transition: background .15s, color .15s; }
a:hover > .ml-icon { background: var(--safran); color: var(--encre); }
.mega-cities { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.mega-cities span { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
:lang(ar) .mega-cities span { letter-spacing: 0; }
.mega-cities a { padding: 5px 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.mega-cities a:hover { color: var(--zellige); }
@media (max-width: 1299px) { .cm-link .icon { display: none; } }
@media (max-width: 1180px) { .cm-link { padding-inline: 4px; font-size: .84rem; } }
@media (max-width: 1100px) { .mega-cities { display: none; } .mega-inner { grid-template-columns: 210px minmax(0, 1fr); } }

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .header-row { gap: 10px; }
  .brand img { height: 44px; }
  .header-search { display: none; }
  .header-actions .hide-m { display: none; }
  .cat-strip { display: none; }
}

/* Barre d'onglets mobile */
.tabbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .7rem; font-weight: 500; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current] { color: var(--zellige); }
  .tabbar .tab-post span.plus { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--safran); color: var(--encre); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgb(168 114 0 / .7); }
  .tabbar .badge-dot { inset-inline-end: calc(50% - 22px); }
}

/* Recherche mobile (sous l'en-tête) */
.m-search { display: none; }
@media (max-width: 860px) {
  .m-search { display: block; padding: 10px 0 12px; border-bottom: 1px solid var(--line); background: var(--creme); }
  .m-search form { display: flex; height: 46px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
  .m-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; outline: none; background: none; }
  .m-search button { border: 0; background: none; padding: 0 14px; color: var(--zellige); }
}

/* ---------- Messages flash ---------- */
.flash { margin: 16px auto 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--ok-soft); border: 1px solid #BFDCCD; display: flex; gap: 10px; align-items: flex-start; }
.flash-warn { background: var(--safran-soft); border-color: #F0D98A; }
.flash-error { background: var(--danger-soft); border-color: #EBC1BC; color: #7A1B15; }

/* ---------- Accueil ---------- */
.hero { position: relative; z-index: 3; overflow-x: clip; background: var(--deep); color: var(--creme); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 32px; padding-block: clamp(36px, 6vw, 72px); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 14ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--safran); }
.hero-lead { color: #D5E5DC; font-size: 1.08rem; max-width: 46ch; margin-bottom: 1.4em; }
.hero-search { display: grid; grid-template-columns: 1fr auto auto; background: #fff; border-radius: var(--r-l); padding: 6px; gap: 6px; box-shadow: 0 18px 40px -20px rgb(0 0 0 / .5); max-width: 640px; }
.hero-search input, .hero-search select { border: 0; background: none; padding: 0 14px; height: 50px; min-width: 0; color: var(--encre); outline: none; }
.hero-search select { border-inline-start: 1px solid var(--line); max-width: 170px; }
.hero-search .btn { min-height: 50px; border-radius: 16px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(251 247 236 / .28); color: var(--creme); text-decoration: none; font-size: .88rem; }
.hero-chips a:hover { background: rgb(251 247 236 / .1); color: #fff; }
/* Porte de médina : les battants s'ouvrent sur les rubriques */
.hero-door { --leaf: #0E6A50; justify-self: end; position: relative; width: 320px; height: 430px; flex: none; }
.door-frame { position: absolute; inset: 0 0 30px; width: 320px; height: 400px; overflow: visible; }
.door-frame .draw { fill: none; stroke: var(--safran); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: door-draw 1.6s cubic-bezier(.6, 0, .2, 1) forwards; }
.door-frame .d1 { opacity: .35; animation-delay: .25s; }
.door-frame .d2 { opacity: .7; }
.door-star { fill: var(--safran); animation: door-spin 24s linear infinite; transform-box: fill-box; transform-origin: center; }
.door-star circle { fill: var(--deep); }
@keyframes door-draw { to { stroke-dashoffset: 0; } }
@keyframes door-spin { to { rotate: 360deg; } }
.door-arch {
  position: absolute; left: 40px; top: 70px; width: 240px; height: 330px;
  clip-path: path('M12 330 V165 A118 118 0 1 1 228 165 V330 Z');
  perspective: 900px; background: var(--deeper);
}
.door-scene { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 72%, #FFD866 0%, var(--safran) 38%, #D99A00 100%); }
.door-scene::after { content: ""; position: absolute; inset: auto 0 0; height: 46px; background: linear-gradient(transparent, rgb(8 64 47 / .22)); }
.door-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px; padding: 0 22px 42px; text-align: center; color: var(--deeper); text-decoration: none;
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .55s ease, transform .55s ease; pointer-events: none;
}
.door-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.door-slide:hover { color: var(--deeper); }
.door-icon { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--deeper); color: var(--safran); margin-bottom: 8px; box-shadow: 0 12px 26px -10px rgb(8 64 47 / .55); }
.door-icon .icon { width: 46px; height: 46px; }
.door-slide.is-active .door-icon { animation: door-pop .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes door-pop { from { transform: scale(.6) rotate(-8deg); } }
.door-slide strong { font: 800 1.5rem/1.1 var(--f-display); }
.door-slide small { font-size: .82rem; line-height: 1.35; color: rgb(8 64 47 / .78); max-width: 20ch; }
.door-slide em { margin-top: 6px; font-style: normal; font-weight: 700; font-size: .8rem; background: var(--deeper); color: #fff; padding: 4px 12px; border-radius: 999px; }
.door-leaf {
  position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; backface-visibility: hidden;
  transition: transform 1.5s cubic-bezier(.65, 0, .25, 1); will-change: transform;
  background:
    radial-gradient(circle at 50% 50%, rgb(245 179 1 / .9) 0 2px, transparent 2.5px) 0 0 / 30px 30px,
    repeating-conic-gradient(from 45deg, var(--leaf) 0 25%, var(--deep) 0 50%) 0 0 / 30px 30px;
  box-shadow: inset 0 0 0 6px var(--deeper), inset 0 0 0 8px rgb(245 179 1 / .55);
}
.door-leaf-l { left: 0; transform-origin: left center; }
.door-leaf-r { right: 0; transform-origin: right center; }
.door-leaf i { position: absolute; top: 58%; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--safran); box-shadow: 0 2px 4px rgb(0 0 0 / .3); }
.door-leaf-l i { right: 12px; }
.door-leaf-r i { left: 12px; }
.hero-door.is-open .door-leaf-l { transform: rotateY(-108deg); }
.hero-door.is-open .door-leaf-r { transform: rotateY(108deg); }
.hero-door.is-knock .door-leaf-l { transform: rotateY(-96deg); transition-duration: .35s; }
.hero-door.is-knock .door-leaf-r { transform: rotateY(96deg); transition-duration: .35s; }
.door-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; }
.door-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgb(251 247 236 / .35); cursor: pointer; transition: width .3s, background .3s; }
.door-dots button[aria-selected="true"] { width: 26px; background: var(--safran); }
.door-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1080px) { .hero-door { transform: scale(.86); transform-origin: right center; } }
/* ---------- Encart partenaire radios.ma ---------- */
.ad-radios { --rad: #6B0A14; position: relative; }
.ad-radios a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 26px; border-radius: var(--r-l); text-decoration: none; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(120% 160% at 100% 0%, #9B1424 0%, var(--rad) 45%, #3E050C 100%); box-shadow: 0 18px 40px -24px rgb(62 5 12 / .7); }
.ad-radios a::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background: repeating-radial-gradient(circle at 92% 50%, transparent 0 14px, #fff 14px 15px); mask: linear-gradient(90deg, transparent 35%, #000); }
.ad-radios a:hover { color: #fff; }
.ad-radios a:hover .ad-radios-cta { transform: translateX(3px); }
:dir(rtl) .ad-radios a:hover .ad-radios-cta { transform: translateX(-3px); }
.ad-label { position: absolute; z-index: 2; top: 8px; inset-inline-end: 14px; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.ad-radios-logo { position: relative; width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; flex: none; }
.ad-radios-logo img { width: 46px; height: 46px; border-radius: 10px; }
.ad-radios .eq { position: absolute; inset-inline-end: -10px; bottom: -6px; display: flex; align-items: flex-end; gap: 2px; height: 22px; padding: 3px 5px; border-radius: 8px; background: var(--safran); }
.ad-radios .eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--rad); transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate; }
.ad-radios .eq i:nth-child(2) { animation-delay: -.4s; } .ad-radios .eq i:nth-child(3) { animation-delay: -.8s; }
.ad-radios .eq i:nth-child(4) { animation-delay: -.2s; } .ad-radios .eq i:nth-child(5) { animation-delay: -.6s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.ad-radios-text { display: grid; gap: 2px; position: relative; }
.ad-radios-text strong { font: 800 1.25rem/1.2 var(--f-display); }
.ad-radios-text > span:last-child { color: rgb(255 255 255 / .78); font-size: .92rem; }
.ad-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #FFC9CF; }
.ad-live b { width: 8px; height: 8px; border-radius: 50%; background: #FF4D5E; box-shadow: 0 0 0 0 rgb(255 77 94 / .7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgb(255 77 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 77 94 / 0); } }
.ad-radios-cta { position: relative; background: #fff; color: var(--rad); white-space: nowrap; transition: transform .2s; flex-direction: row-reverse; }
.ad-radios-cta:hover { background: #fff; color: var(--rad); }
:dir(rtl) .ad-radios-cta .icon { transform: scaleX(-1); }
.ad-radios-tile { margin-top: 16px; }
.ad-radios-tile a { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; }
.ad-radios-tile .ad-radios-text strong { font-size: 1.02rem; }
.ad-radios-tile .ad-radios-text > span:last-child { font-size: .84rem; }
.ad-radios-tile .ad-radios-cta { grid-column: 1 / -1; justify-content: center; }
.ad-radios-tile .ad-radios-logo { width: 54px; height: 54px; }
.ad-radios-tile .ad-radios-logo img { width: 38px; height: 38px; }
@media (max-width: 720px) {
  .ad-radios a { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; }
  .ad-radios-cta { grid-column: 1 / -1; justify-content: center; }
  .ad-radios-text strong { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .door-frame .draw { stroke-dashoffset: 0; }
  .hero-door .door-leaf { display: none; }
}
/* Bandeau de confiance sous la recherche */
.hero-trust { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid rgb(255 255 255 / .14); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; color: #CFE1D7; font-size: .93rem; max-width: 640px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--safran); }
.hero-trust .ht-free a { display: inline-flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none; }
.hero-trust .ht-free b { font: 800 1.6rem/1 var(--f-display); color: var(--safran); letter-spacing: -.01em; }
.hero-trust .ht-free span { font-weight: 600; }
.hero-trust .ht-free a:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .hero-trust { gap: 8px 18px; font-size: .88rem; } .hero-trust .ht-free { flex-basis: 100%; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-door { display: none; }
  .hero-search { grid-template-columns: 1fr auto; }
  .hero-search input { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .hero-search .cp { border-inline-start: 0; width: auto; }
}

.section { padding-block: clamp(32px, 5vw, 56px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ocre); margin-bottom: 6px; }
:lang(ar) .kicker { letter-spacing: 0; }

/* Rubriques */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 6px 14px; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: var(--encre); height: 100%; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--zellige); color: var(--encre); transform: translateY(-2px); }
.cat-arch { width: 58px; height: 66px; display: grid; place-items: center; padding-top: 10px; background: var(--sable); color: var(--zellige); -webkit-mask: url(/brand/arc.svg) center / 100% 100% no-repeat; mask: url(/brand/arc.svg) center / 100% 100% no-repeat; }
.cat-tile:hover .cat-arch { background: var(--safran); color: var(--encre); }
.cat-arch .icon { width: 28px; height: 28px; }
/* Page Toutes les catégories */
.allcats-page { padding-block: 20px 56px; }
.allcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.allcat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 20px 14px; }
.allcat h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.15rem; }
.allcat h2 .cat-arch { width: 44px; height: 50px; padding-top: 7px; }
.allcat h2 .cat-arch .icon { width: 22px; height: 22px; }
.allcat h2 a { color: inherit; text-decoration: none; }
.allcat h2 a:hover { color: var(--zellige); }
.allcat ul { list-style: none; margin: 0; padding: 0; }
.allcat li a { display: flex; align-items: center; gap: 10px; padding: 5px 8px; margin-inline: -8px; border-radius: 10px; color: var(--encre); text-decoration: none; }
.allcat li a:hover { background: var(--creme); color: var(--deep); }
.allcat-name { flex: 1; min-width: 0; }
.cat-tile strong { font-weight: 600; line-height: 1.25; }
.cat-tile small { color: var(--muted); font-size: .8rem; }

/* Cartes d'annonce */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 18px 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } }
.card { position: relative; display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--sable); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sable-2); }
.card-ph svg { width: 34%; height: auto; }
.card-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 9px; border-radius: 999px; background: var(--safran); color: var(--encre); font-size: .72rem; font-weight: 700; }
.card-badge.sold { background: var(--encre); color: #fff; }
.card-count { position: absolute; bottom: 8px; inset-inline-end: 8px; display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; background: rgb(20 35 29 / .62); color: #fff; font-size: .72rem; }
.card-count .icon { width: 13px; height: 13px; }
.fav-btn { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--encre); display: grid; place-items: center; cursor: pointer; }
.fav-btn:hover { color: var(--danger); }
.fav-btn[aria-pressed="true"] { color: var(--danger); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.card-price { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; color: var(--encre); }
.card-price.soft { color: var(--zellige); }
.card-title { margin: 0; font: 500 .96rem/1.35 var(--f-body); }
.card-title a { color: var(--encre); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .82rem; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; color: var(--muted); }
.card-tags span + span::before { content: "·"; margin-inline-end: 8px; }

/* Bandeau confiance */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.trust > div { padding: 22px 24px; }
.trust > div + div { border-inline-start: 1px solid var(--line); }
.trust h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.trust h3 .icon { color: var(--zellige); }
.trust p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } .trust > div + div { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* Villes */
.city-cols { columns: 4 180px; column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.city-cols li { break-inside: avoid; padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.city-cols a { color: var(--encre); text-decoration: none; font-weight: 500; }
.city-cols a:hover { color: var(--zellige); text-decoration: underline; }
.city-cols small { color: var(--muted); }

/* Bloc vendre */
.sell-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-l); background: var(--safran); color: var(--encre); }
.sell-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.sell-band ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.sell-band li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.sell-band li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: var(--safran); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
@media (max-width: 760px) { .sell-band { grid-template-columns: 1fr; } }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "›"; margin-inline-start: 6px; color: var(--sable-2); }
[dir="rtl"] .crumbs li:not(:last-child)::after { content: "‹"; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--zellige); text-decoration: underline; }
.crumbs [aria-current] { color: var(--encre); }

/* ---------- Recherche ---------- */
.search-head { padding: 10px 0 18px; }
.search-head h1 { margin-bottom: 4px; }
.search-head p { color: var(--muted); margin: 0; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--encre); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.chip:hover { border-color: var(--zellige); color: var(--zellige); }
.chip[aria-current] { background: var(--encre); color: #fff; border-color: var(--encre); }
.chip small { color: var(--muted); }
.search-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 48px; }
/* Colonne des filtres : défile avec la page, sans barre de défilement propre */
.filters { background: #fff; align-self: start; border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.filters h2 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.filters fieldset { border: 0; padding: 14px 0; margin: 0; border-top: 1px solid var(--line); }
.filters legend { font-weight: 600; font-size: .9rem; padding: 0 0 8px; float: left; width: 100%; }
.filters legend + * { clear: both; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar .count { color: var(--muted); font-size: .92rem; }
.toolbar-actions { display: flex; gap: 8px; align-items: center; }
.toolbar select { height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 12px; }
.filters-toggle { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--sable); color: var(--encre); font-size: .85rem; text-decoration: none; }
.active-filters a:hover { background: var(--sable-2); }
.featured-row { background: var(--safran-soft); border-radius: var(--r-m); padding: 14px; margin-bottom: 22px; }
.featured-row h2 { font-size: .95rem; margin-bottom: 10px; color: var(--ocre); }
.empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed var(--sable-2); border-radius: var(--r-l); }
.empty svg { width: 64px; margin: 0 auto 14px; color: var(--sable-2); }
.seo-text { color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 32px; }
.seo-text h2 { font-size: 1.05rem; color: var(--encre); }
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0; z-index: 60; max-height: none; overflow: auto; border-radius: 0; padding-bottom: 90px; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .filters-apply { position: fixed; bottom: 0; inset-inline: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
}
@media (min-width: 961px) { .filters-close, .filters-apply-m { display: none; } }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--encre); text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--zellige); color: var(--zellige); }
.pager [aria-current] { background: var(--zellige); color: #fff; border-color: var(--zellige); }
.pager .gap { border: 0; background: none; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 600; font-size: .93rem; }
.field .hint { color: var(--muted); font-size: .84rem; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: #fff; outline: none; transition: border-color .15s;
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355645C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 38px; }
[dir="rtl"] .select { background-position: left 14px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--zellige); }
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.input-sm { min-height: 38px; padding: 6px 10px; }
.input-affix { position: relative; }
.input-affix .input { padding-inline-end: 48px; }
.input-affix span { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.error { color: var(--danger); font-size: .86rem; }
.is-invalid { border-color: var(--danger) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--zellige); flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: .92rem; font-weight: 500; }
.seg input:checked + span { background: var(--encre); border-color: var(--encre); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--safran); outline-offset: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-bottom: 16px; }
.row-2 > .field { margin-bottom: 0; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; inset-inline-start: -9999px; }

/* Panneaux */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--safran); color: var(--encre); display: grid; place-items: center; font-size: .85rem; font-weight: 700; font-family: var(--f-body); flex: none; }

/* Authentification */
.auth { display: grid; place-items: center; padding: clamp(24px, 6vw, 64px) 0; }
.auth .panel { width: min(100%, 460px); }
.auth h1 { font-size: 1.7rem; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); }

/* ---------- Dépôt ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding: 20px 0 56px; }
.post-aside { position: sticky; top: calc(var(--header-total) + 20px); display: grid; gap: 14px; }
.tip { background: var(--sable); border-radius: var(--r-m); padding: 16px; font-size: .92rem; }
.tip h3 { font-size: .98rem; }
.tip ul { margin: 0; padding-inline-start: 18px; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; order: 2; } }
.dropzone { display: block; border: 2px dashed var(--sable-2); border-radius: var(--r-m); padding: 22px; text-align: center; background: var(--creme); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--zellige); background: var(--ok-soft); }
.dropzone .icon { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--zellige); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--sable); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button, .thumb label.rm { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(20 35 29 / .75); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 16px; line-height: 1; }
.thumb .cover-tag { position: absolute; bottom: 4px; inset-inline-start: 4px; padding: 1px 6px; border-radius: 4px; background: var(--safran); font-size: .68rem; font-weight: 700; }
.thumb.removed { opacity: .35; }
.ai-box { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border-radius: var(--r-m); background: var(--deep); color: var(--creme); }
.ai-box p { margin: 0; font-size: .92rem; color: #D5E5DC; }
.ai-box strong { color: #fff; }
.ai-box .btn { flex: none; }
@media (max-width: 560px) { .ai-box { flex-direction: column; align-items: stretch; } }
.counter { font-size: .8rem; color: var(--muted); text-align: end; }

/* ---------- Fiche annonce ---------- */
.ad { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 14px 0 48px; align-items: start; }
.gallery { position: relative; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-l); background: var(--encre); aspect-ratio: 4 / 3; scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.gallery-main img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); display: grid; place-items: center; cursor: pointer; }
.gallery-nav.prev { inset-inline-start: 12px; }
.gallery-nav.next { inset-inline-end: 12px; }
.gallery-count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgb(20 35 29 / .7); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .82rem; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 78px; height: 60px; border-radius: var(--r-s); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--sable); }
.gallery-thumbs button[aria-current] { border-color: var(--zellige); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 16 / 7; border-radius: var(--r-l); overflow: hidden; }
.ad-title { margin: 22px 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ad-price { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--zellige); margin-bottom: 4px; }
.ad-price small { font: 500 .9rem var(--f-body); color: var(--muted); margin-inline-start: 6px; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.ad-meta span { display: inline-flex; align-items: center; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin: 0 0 24px; }
.facts div { background: #fff; padding: 12px 14px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.ad-desc { white-space: pre-line; overflow-wrap: anywhere; font-size: 1.02rem; }
.ad-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.ad-aside { position: sticky; top: calc(var(--header-total) + 16px); display: grid; gap: 14px; }
.seller { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--zellige); color: var(--safran); display: grid; place-items: center; font: 800 1.3rem var(--f-display); flex: none; }
.seller a { font-weight: 700; color: var(--encre); text-decoration: none; }
.seller small { display: block; color: var(--muted); }
.pro-tag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 4px; background: var(--encre); color: var(--safran); font-size: .7rem; font-weight: 700; vertical-align: middle; }
.contact-stack { display: grid; gap: 8px; }
.safety { background: var(--sable); border-radius: var(--r-m); padding: 16px; font-size: .9rem; }
.safety h3 { display: flex; align-items: center; gap: 8px; font-size: .98rem; }
.safety ul { margin: 0; padding-inline-start: 18px; }
.status-banner { padding: 12px 16px; border-radius: var(--r-m); background: var(--encre); color: #fff; margin: 16px 0 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.sticky-contact { display: none; }
@media (max-width: 960px) {
  .ad { grid-template-columns: 1fr; }
  .ad-aside { position: static; }
  .gallery-main { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); }
  .sticky-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset-inline: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 45; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); }
  .has-sticky { padding-bottom: 70px; }
}
dialog { border: 0; border-radius: var(--r-l); padding: 24px; width: min(100% - 32px, 480px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(20 35 29 / .5); }

/* ---------- Espace membre ---------- */
.account { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 24px 0 56px; align-items: start; }
.account-nav { display: grid; gap: 2px; position: sticky; top: calc(var(--header-total) + 20px); }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); color: var(--encre); text-decoration: none; font-weight: 500; }
.account-nav a:hover { background: var(--sable); }
.account-nav a[aria-current] { background: var(--encre); color: #fff; }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .account-nav a { white-space: nowrap; border: 1px solid var(--line); background: #fff; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; }
.stat b { display: block; font: 800 1.5rem var(--f-display); }
.stat span { color: var(--muted); font-size: .85rem; }
.my-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.my-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; }
.my-item img, .my-item .ph { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); background: var(--sable); }
.my-item h3 { font: 600 1rem var(--f-body); margin: 0 0 2px; }
.my-item h3 a { color: var(--encre); text-decoration: none; }
.my-item .meta { color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.my-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill-published { background: var(--ok-soft); color: var(--deep); }
.pill-pending { background: var(--safran-soft); color: var(--ocre); }
.pill-rejected { background: var(--danger-soft); color: var(--danger); }
.pill-sold, .pill-expired { background: var(--sable); color: var(--muted); }
@media (max-width: 640px) {
  .my-item { grid-template-columns: 84px minmax(0, 1fr); }
  .my-item img, .my-item .ph { width: 84px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Messagerie ---------- */
.convs { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.convs li + li { border-top: 1px solid var(--line); }
.convs a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px; align-items: center; color: var(--encre); text-decoration: none; }
.convs a:hover { background: var(--creme); }
.convs img, .convs .ph { width: 64px; height: 52px; border-radius: var(--r-s); object-fit: cover; background: var(--sable); }
.convs strong { display: block; }
.convs .last { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convs .unread .last { color: var(--encre); font-weight: 600; }
.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(72vh, 720px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head img, .chat-head .ph { width: 56px; height: 44px; object-fit: cover; border-radius: var(--r-s); background: var(--sable); }
.chat-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--creme); }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: flex-start; white-space: pre-line; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--zellige); color: #fff; border-color: var(--zellige); }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; text-align: end; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; }

/* ---------- Pages éditoriales ---------- */
.prose { max-width: 72ch; padding: 20px 0 56px; }
.prose h1 { margin-bottom: .6em; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: .4em; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--deep); color: #CFE1D7; margin-top: 40px; }
.site-footer a { color: #E7F0EA; text-decoration: none; }
.site-footer a:hover { color: var(--safran); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; padding: 44px 0 30px; }
.footer-top h2 { font: 700 .82rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--safran); margin-bottom: 12px; }
:lang(ar) .footer-top h2 { letter-spacing: 0; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .93rem; }
.footer-top .brand-col img { height: 56px; margin-inline-start: -12px; margin-bottom: 8px; }
.footer-top .brand-col p { font-size: .93rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgb(251 247 236 / .14); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top .brand-col { grid-column: 1 / -1; } }

/* ---------- Administration ---------- */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--sable); font-weight: 600; }
.mod-card { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px; }
.mod-card + .mod-card { margin-top: 12px; }
.mod-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mod-photos img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
@media (max-width: 860px) { .mod-card { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.stack { display: grid; gap: 10px; }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ---------- Sélecteur de ville ---------- */
.cp-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.cp { position: relative; min-width: 0; }
.cp-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 100%; min-height: 40px; padding: 0 14px; border: 0; background: none; color: var(--encre); cursor: pointer; font-weight: 500; text-align: start; white-space: nowrap; }
.cp-btn .icon { color: var(--zellige); flex: none; }
.cp-val { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.cp-chev { flex: none; color: var(--muted); transition: transform .18s; }
.cp.is-open .cp-chev { transform: rotate(180deg); }
.cp-field .cp-btn { height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: #fff; }
.cp-field.cp-sm .cp-btn { height: 40px; min-height: 40px; border-radius: 999px; }
.cp-field .cp-btn:hover, .cp-field.is-open .cp-btn { border-color: var(--zellige); }
.cp-field.is-invalid .cp-btn { border-color: var(--danger); }
.cp-field.is-empty .cp-val { color: var(--muted); }
.cp-pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-start: 0; width: 320px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(20 35 29 / .06), 0 24px 48px -16px rgb(20 35 29 / .35);
  animation: cp-in .16s ease-out;
}
.cp.cp-flip .cp-pop { inset-inline-start: auto; inset-inline-end: 0; }
@keyframes cp-in { from { opacity: 0; transform: translateY(-6px); } }
.cp-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cp-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; height: 34px; font-size: 1rem; color: var(--encre); }
.cp-list { list-style: none; margin: 0; padding: 6px; max-height: min(360px, 55vh); overflow-y: auto; overscroll-behavior: contain; scroll-padding: 6px; }
.cp-list [role="option"] { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--encre); }
.cp-list [role="option"] small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.cp-list [role="option"].is-active { background: var(--creme); }
.cp-list [role="option"][aria-selected="true"] { font-weight: 700; color: var(--deep); }
.cp-list [role="option"][aria-selected="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--safran); align-self: center; flex: none; }
.cp-list [role="option"][aria-selected="true"] small { display: none; }
.cp-list .cp-near { justify-content: flex-start; align-items: center; color: var(--zellige); font-weight: 600; }
.cp-list .cp-near.is-busy { opacity: .55; }
.cp-group { padding: 12px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .cp-group { letter-spacing: 0; }
.cp-empty { padding: 18px 10px; text-align: center; color: var(--muted); }
.header-search .cp { flex: none; width: 170px; height: 100%; display: flex; align-items: center; }
.header-search .cp::before { content: ""; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; border-inline-start: 1px solid var(--line); }
.header-search .cp-btn { height: 100%; min-height: 0; color: var(--muted); font-size: .92rem; line-height: 1; padding: 0 12px; }
.header-search .cp .cp-pop { top: calc(100% + 8px); }
.hero-search .cp { border-inline-start: 1px solid var(--line); width: 190px; }
.hero-search .cp-btn { height: 50px; }

/* ---------- Visuel « pas de photo » ---------- */
.no-photo {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--zellige); text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgb(11 107 79 / .07) 0 1.5px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(160deg, #F6F0DF, var(--sable));
}
.no-photo::before { content: ""; position: absolute; left: 50%; bottom: -8%; width: 58%; aspect-ratio: 3 / 4; translate: -50% 0;
  border: 2px solid rgb(11 107 79 / .12); border-radius: 999px 999px 0 0; }
.np-icon { position: relative; width: 26%; max-width: 72px; min-width: 30px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 16px -8px rgb(20 35 29 / .35); }
.np-icon .icon { width: 50%; height: 50%; }
.np-text { position: relative; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.no-photo-lg .np-icon { max-width: 96px; width: 96px; }
.no-photo-lg .np-text { font-size: .95rem; }
.no-photo-sm { gap: 0; }
.no-photo-sm .np-icon { width: 52%; min-width: 0; box-shadow: none; }
.no-photo-sm::before { display: none; }
.ph { overflow: hidden; display: block; }

/* ---------- Case d'accord CGU et diffusion partenaires ---------- */
.share-consent { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--creme); font-size: .9rem; line-height: 1.45; }
.share-consent input { margin-top: 3px; flex: none; }
.share-consent.is-invalid { border-color: var(--danger); background: var(--danger-soft); }

/* ---------- Visuel généré des offres d'emploi sans photo ---------- */
.jv {
  --bg: var(--zellige); --fg: #fff; --ac: var(--safran); --mo: rgb(255 255 255 / .09);
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 36px clamp(10px, 7%, 18px) 34px; background: var(--bg); color: var(--fg); position: relative; overflow: hidden; container-type: inline-size;
}
/* motif : arc et étoile à huit branches, discrets, dans le coin */
.jv::before { content: ""; position: absolute; inset-inline-end: -14%; top: -22%; width: 62%; aspect-ratio: 1;
  background: conic-gradient(from 22.5deg, var(--mo) 0 12.5%, transparent 0 25%, var(--mo) 0 37.5%, transparent 0 50%, var(--mo) 0 62.5%, transparent 0 75%, var(--mo) 0 87.5%, transparent 0);
  border-radius: 50%; }
.jv::after { content: ""; position: absolute; inset-inline-end: 8%; bottom: -30%; width: 34%; aspect-ratio: 3 / 4; border: 2px solid var(--mo); border-radius: 999px 999px 0 0; }
.jv > * { position: relative; z-index: 1; }
.jv-eyebrow { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ac); }
[dir="rtl"] .jv-eyebrow { letter-spacing: 0; }
.jv-title { font: 800 clamp(1rem, 9cqi, 1.45rem)/1.12 var(--f-display); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 92%; }
.jv-meta { display: flex; }
.jv-meta b { background: var(--ac); color: var(--encre); padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.jv-1 { --bg: var(--encre); --ac: var(--safran); }
.jv-2 { --bg: var(--safran); --fg: var(--encre); --ac: var(--deeper); --mo: rgb(20 35 29 / .08); }
.jv-2 .jv-meta b { color: #fff; }
.jv-3 { --bg: var(--deeper); --ac: #9FE0C4; }
.jv-4 { --bg: var(--ocre); --ac: var(--safran-soft); }
/* petites cartes (mobile, deux colonnes) : l'essentiel seulement */
@container (max-width: 220px) {
  .jv-eyebrow, .jv-meta { display: none; } /* le contrat figure déjà sous la carte */
  .jv-title { font-size: clamp(.9rem, 10cqi, 1.1rem); -webkit-line-clamp: 3; max-width: 100%; }
}
.card:hover .jv-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Espace membre : navigation ---------- */
.an-user { display: flex; align-items: center; gap: 10px; padding: 4px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.an-user img, .an-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.an-avatar { display: grid; place-items: center; background: var(--zellige); color: #fff; font-weight: 700; }
.an-user strong { display: block; line-height: 1.2; }
.an-user small { color: var(--muted); font-size: .78rem; }
.an-group { padding: 14px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
:lang(ar) .an-group { letter-spacing: 0; }
.an-count { margin-inline-start: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--safran); color: var(--encre); font-size: .72rem; text-align: center; }
.an-count.an-soft { background: var(--sable); color: var(--muted); }
.account-nav a[aria-current] .an-count.an-soft { background: rgb(255 255 255 / .18); color: #fff; }
.an-logout { padding: 10px 12px; margin-top: 6px; color: var(--muted); text-align: start; }

/* ---------- Tableau de bord ---------- */
.dash { min-width: 0; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.dash-head h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2rem); }
.dash-head p { margin: 0; }
.dash-switch { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.dash-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.dash-switch a[aria-current] { background: var(--deeper); color: #fff; }
.dash-switch b { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--safran); color: var(--encre); font-size: .72rem; text-align: center; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dk { display: grid; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); color: inherit; text-decoration: none; }
a.dk:hover { border-color: var(--zellige); color: inherit; }
.dk span { color: var(--muted); font-size: .84rem; }
.dk b { font: 800 1.8rem/1.1 var(--f-display); }
.dk small { color: var(--muted); font-size: .76rem; }
.dk-alert { border-color: #EBCB73; background: linear-gradient(#FFFBEE, #fff); }
.dk-alert b { color: var(--ocre); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-panel { padding: 18px 20px; min-width: 0; }
.dash-panel > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dash-panel h2 { font-size: 1.05rem; margin: 0; }
.dash-panel > header a { font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dash-panel > header .muted { font-size: .82rem; }
.dchart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 140px; border-bottom: 1px solid var(--line); }
.dchart-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; align-items: end; height: 100%; }
.dchart-col span { border-radius: 3px 3px 0 0; min-height: 2px; }
.dchart .v { background: var(--zellige); }
.dchart .c { background: var(--safran); }
.dchart-legend { display: flex; gap: 16px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.dchart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.dchart-legend i.v { background: var(--zellige); } .dchart-legend i.c { background: var(--safran); }
.dash-tip { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--creme); font-size: .86rem; color: var(--muted); }
.dash-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dash-todo li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; padding: 9px 12px; border-radius: 10px; background: var(--creme); font-size: .9rem; border-inline-start: 3px solid var(--line); }
.dash-todo li a { color: var(--encre); font-weight: 600; text-decoration: none; }
.dash-todo li a:hover { color: var(--zellige); }
.dash-todo li small { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.dash-todo .t-warn { border-inline-start-color: var(--safran); }
.dash-todo .t-info { border-inline-start-color: var(--zellige); }
.dash-todo .t-danger { border-inline-start-color: var(--danger); }
.dash-todo .t-ok { border-inline-start-color: #1E9E6A; color: var(--deep); font-weight: 600; }
.dash-profile { margin-top: 14px; display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }
.dash-profile .bar { height: 6px; border-radius: 99px; background: var(--sable); overflow: hidden; }
.dash-profile .bar span { display: block; height: 100%; background: var(--zellige); border-radius: 99px; }
.dash-rows { list-style: none; margin: 0; padding: 0; }
.dash-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #F0E9D8; }
.dash-rows li:first-child { border-top: 0; }
.dash-rows .thumb, .conv-thumb { width: 56px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; background: var(--sable); display: block; }
.dash-rows .thumb img, .conv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-rows .grow { min-width: 0; flex: 1; }
.dash-rows .grow a { display: block; color: var(--encre); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-rows .grow small { color: var(--muted); }
.dash-stats { display: flex; gap: 12px; color: var(--muted); font-size: .84rem; }
.dash-stats span { display: inline-flex; align-items: center; gap: 4px; }
.dash-empty { padding: 18px; text-align: center; color: var(--muted); }
.dash-empty p { margin: 0 0 12px; }
.dash-credits { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--deeper); color: #fff; text-decoration: none; font-size: .9rem; }
.dash-credits .icon { color: var(--safran); }
.dash-credits strong { margin-inline-start: auto; color: var(--safran); }
.dash-credits:hover { color: #fff; background: var(--deep); }
.dash-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dash-alerts a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--creme); color: var(--encre); text-decoration: none; font-weight: 500; }
.dash-alerts a .icon { color: var(--zellige); flex: none; }
.dash-alerts a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-alerts b { padding: 2px 9px; border-radius: 999px; background: var(--safran); font-size: .74rem; white-space: nowrap; }
.dash-section { margin-top: 26px; }
.grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Conversations ---------- */
.conv-list { list-style: none; margin: 0; padding: 0; }
.conv-list li + li { border-top: 1px solid #F0E9D8; }
.conv-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--encre); text-decoration: none; }
.conv-list a:hover { background: #FDFBF5; }
.conv-list .is-current a { background: var(--creme); box-shadow: inset 3px 0 0 var(--zellige); }
.conv-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.conv-top { display: flex; align-items: center; gap: 8px; }
.conv-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-role { flex: none; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; }
.r-sell { background: var(--ok-soft); color: var(--deep); }
.r-buy { background: #E8F0FB; color: #1F4E8C; }
.conv-title, .conv-last { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-title { color: var(--encre); }
.is-unread .conv-last { color: var(--encre); font-weight: 600; }
.conv-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.conv-side small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.conv-side b { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--safran); font-size: .72rem; text-align: center; }
.panel-flush { padding: 0; overflow: hidden; }
.msg-tabs { display: flex; gap: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.msg-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.msg-tabs a[aria-current] { background: var(--encre); border-color: var(--encre); color: #fff; }
.msg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.msg-inbox .panel { max-height: min(72vh, 760px); overflow-y: auto; }
.msg-inbox .conv-thumb { width: 44px; height: 36px; }
.msg-layout .chat { height: min(78vh, 800px); grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.chat-back { display: none; color: var(--encre); }
.chat-person { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.chat-person img, .chat-person .an-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.chat-person strong { display: block; }
.chat-person small { color: var(--muted); font-size: .78rem; }
.chat-actions { display: flex; gap: 6px; }
.chat-listing { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #FDFBF5; border-bottom: 1px solid var(--line); color: var(--encre); text-decoration: none; }
.chat-listing .grow { flex: 1; min-width: 0; display: grid; }
.chat-listing strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.chat-listing small { color: var(--muted); font-size: .8rem; }
.chat-safety { display: flex; gap: 8px; align-items: center; align-self: center; max-width: 520px; margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px dashed var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
.chat-safety .icon { color: var(--zellige); flex: none; }
.chat-day { align-self: center; margin: 8px 0 2px; }
.chat-day span { padding: 3px 12px; border-radius: 999px; background: var(--sable); color: var(--muted); font-size: .74rem; font-weight: 600; }
.bubble .tick { display: inline-block; width: 16px; height: 9px; margin-inline-start: 5px; vertical-align: 0; opacity: .75;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M1 5l3 3 6-7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M1 5l3 3 6-7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.bubble.is-read .tick { opacity: 1; color: var(--safran);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M1 5l3 3 6-7M6 8l6-7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9'%3E%3Cpath d='M1 5l3 3 6-7M6 8l6-7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E"); }
.chat-quick { display: flex; gap: 6px; padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.chat-quick .chip { white-space: nowrap; cursor: pointer; font-size: .82rem; }
.msg-layout .chat-form { border-top: 0; }

@media (max-width: 1100px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .grid.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-inbox { display: none; }
  .chat-back { display: grid; }
}
@media (max-width: 640px) {
  .grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-switch { width: 100%; } .dash-switch a { flex: 1; justify-content: center; }
  .dk b { font-size: 1.45rem; }
  .an-user, .an-group { display: none; }
  .msg-layout .chat { height: calc(100dvh - 190px); }
}

/* ---------- Options de visibilité ---------- */
.card.is-highlight { background: #FFF8DE; box-shadow: 0 0 0 2px var(--safran); border-radius: var(--r-m); }
.card-badge.urgent { background: #D92D20; color: #fff; }
.boost-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.boost-head .conv-thumb { width: 92px; height: 70px; border-radius: 12px; }
.boost-head .grow { flex: 1; min-width: 0; }
.boost-head h1 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.boost-head .muted { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.wallet-chip { flex: none; display: grid; justify-items: end; padding: 10px 14px; border-radius: 12px; background: var(--deeper); color: #CFE0D7; text-decoration: none; font-size: .78rem; }
.wallet-chip b { color: #fff; font: 800 1.3rem var(--f-display); }
.wallet-chip:hover { color: #fff; }
.boost-promise { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--deep); font-weight: 600; font-size: .92rem; }
.boost-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.boost-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }
.boost-card h2 { font-size: 1.08rem; margin: 0; }
.boost-card p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.boost-card.is-best { border: 2px solid var(--safran); background: linear-gradient(#FFFBEE, #fff 60%); }
.boost-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-soft); color: var(--zellige); }
.boost-urgent .boost-icon { background: #FDE7E5; color: #D92D20; }
.boost-highlight .boost-icon, .boost-pack .boost-icon { background: var(--safran-soft); color: var(--ocre); }
.boost-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.boost-price b { font: 800 1.9rem var(--f-display); color: var(--deeper); }
.boost-price s { color: var(--muted); font-size: .86rem; }
.boost-ribbon { position: absolute; top: -11px; inset-inline-end: 16px; padding: 3px 10px; border-radius: 999px; background: var(--safran); color: var(--encre); font-size: .72rem; font-weight: 800; }
.boost-topup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; padding: 18px 20px; }
.boost-topup h2 { margin: 0 0 4px; font-size: 1.05rem; }
.boost-topup p { margin: 0; }
.topup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.topup { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.topup:hover { border-color: var(--zellige); }
.topup b { font: 800 1.15rem var(--f-display); color: var(--deeper); }
.topup small { color: var(--zellige); font-size: .72rem; font-weight: 700; }
.wallet-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--r-l); color: #CFE0D7;
  background: radial-gradient(120% 140% at 100% 0%, #0F7A5A, var(--deeper)); }
.wallet-hero .kicker { color: var(--safran); margin: 0; }
.wallet-hero b { display: block; font: 800 2.6rem/1.1 var(--f-display); color: #fff; }
.wallet-hero p { margin: 4px 0 0; }
.wallet-tx { list-style: none; margin: 0; padding: 0; }
.wallet-tx li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid #F0E9D8; }
.wallet-tx .grow { flex: 1; min-width: 0; display: grid; }
.wallet-tx .grow a { color: var(--encre); text-decoration: none; }
.wallet-tx small { color: var(--muted); font-size: .8rem; }
.wallet-tx .plus { color: var(--zellige); } .wallet-tx .minus { color: var(--encre); }
.panel-pad { padding: 16px 20px 6px; }

/* ---------- Boutiques ---------- */
.shop-hero { position: relative; background: var(--deeper); color: #fff; }
.shop-hero.has-banner { background: linear-gradient(180deg, rgb(8 64 47 / .25), rgb(8 64 47 / .92)), var(--banner) center / cover; }
.shop-hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 22px; padding-block: clamp(70px, 10vw, 130px) 26px; }
.shop-logo { width: 112px; height: 112px; flex: none; border-radius: 24px; background: #fff; color: var(--zellige); display: grid; place-items: center; overflow: hidden;
  font: 800 2.6rem var(--f-display); box-shadow: 0 14px 30px -14px rgb(0 0 0 / .5); border: 4px solid #fff; }
.shop-logo img { width: 100%; height: 100%; object-fit: contain; }
.shop-logo.sm { width: 56px; height: 56px; border-radius: 14px; font-size: 1.4rem; border-width: 2px; box-shadow: none; border-color: var(--line); }
.shop-id { flex: 1; min-width: 220px; }
.shop-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--safran); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.shop-verified { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #E3F1EA; color: var(--deep); font-size: .72rem; letter-spacing: 0; text-transform: none; }
.shop-id h1 { color: #fff; margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.shop-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: #D5E5DC; font-size: .9rem; }
.shop-meta span { display: inline-flex; align-items: center; gap: 5px; }
.shop-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding-block: 24px 56px; align-items: start; }
.shop-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-total) + 16px); }
.shop-side .panel { padding: 16px 18px; }
.shop-side h2 { font-size: 1rem; margin: 0 0 8px; }
.shop-desc { white-space: pre-line; margin: 0; color: var(--muted); font-size: .92rem; }
.shop-facts { margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.shop-facts dt { color: var(--muted); font-size: .78rem; }
.shop-facts dd { margin: 0; }
.shop-cats { display: grid; gap: 2px; }
.shop-cats a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--encre); text-decoration: none; font-size: .92rem; }
.shop-cats a small { color: var(--muted); }
.shop-cats a[aria-current] { background: var(--encre); color: #fff; }
.shop-cats a[aria-current] small { color: #CFE0D7; }
.shop-tools { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 8px; margin-bottom: 16px; }
.grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.shop-list a { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--encre); text-decoration: none; }
.shop-list a:hover { border-color: var(--zellige); }
.shop-list .grow { flex: 1; min-width: 0; display: grid; }
.shop-list small { color: var(--muted); }
.shop-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.shop-plan { position: relative; padding: 20px; }
.shop-plan h2 { font-size: 1.1rem; margin: 0; }
.shop-plan.is-best { border: 2px solid var(--safran); }
.checks { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.checks li { padding-inline-start: 22px; position: relative; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 10px; height: 6px; border-inline-start: 2px solid var(--zellige); border-bottom: 2px solid var(--zellige); transform: rotate(-45deg); }
.shop-form { padding: 20px; }
.shop-form h2 { font-size: 1.1rem; }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-m); background: #fff; overflow: hidden; }
.input-prefix span { display: grid; place-items: center; padding: 0 10px; background: var(--creme); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.input-prefix .input { border: 0; border-radius: 0; min-width: 0; }
.shop-preview { display: block; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.shop-preview.logo { width: 72px; height: 72px; object-fit: contain; }
.shop-preview.banner { width: 100%; max-height: 90px; object-fit: cover; }

/* ---------- Import en masse ---------- */
.import-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.import-steps div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.import-steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--deeper); color: var(--safran); font-size: .85rem; }
.import-form { display: grid; gap: 14px; padding: 20px; }
.dropzone { display: grid; justify-items: center; gap: 4px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: var(--r-l); background: var(--creme); text-align: center; cursor: pointer; color: var(--zellige); }
.dropzone:hover, .dropzone.is-over { border-color: var(--zellige); background: #F3EEDC; }
.dropzone strong { color: var(--encre); }
.dropzone small { color: var(--muted); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-help { margin-top: 14px; padding: 16px 20px; }
.import-help summary { cursor: pointer; font-weight: 700; }
.import-help .admin-table { margin-top: 12px; }
.import-launch { display: grid; gap: 12px; padding: 18px 20px; margin-bottom: 16px; }
.import-launch fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.import-launch legend { font-weight: 700; margin-bottom: 6px; }
.import-launch .radio { display: flex; gap: 8px; align-items: baseline; }
.import-progress { display: grid; gap: 8px; padding: 18px 20px; margin-bottom: 16px; }
.import-progress .bar { height: 8px; border-radius: 99px; background: var(--sable); overflow: hidden; }
.import-progress .bar span { display: block; height: 100%; background: var(--zellige); transition: width .4s; }
.import-table td { vertical-align: top; }
.import-table .row-error td { background: #FFF6F5; }
.err-line, .warn-line { display: block; font-size: .8rem; line-height: 1.35; }
.err-line { color: var(--danger); font-weight: 600; }
.warn-line { color: var(--ocre); }
.err-line + .err-line, .warn-line { margin-top: 2px; }

@media (max-width: 1000px) {
  .boost-grid, .grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
}
@media (max-width: 640px) {
  .boost-grid, .shop-plans, .import-steps { grid-template-columns: 1fr; }
  .boost-head { flex-wrap: wrap; }
  .shop-tools { grid-template-columns: 1fr; }
  .shop-logo { width: 84px; height: 84px; }
}

/* ---------- Tarifs ---------- */
.pricing { padding-block: 28px 64px; }
.pricing-head { max-width: 760px; margin-bottom: 20px; }
.pricing-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.pricing-free { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; margin-bottom: 28px; background: linear-gradient(120deg, #fff, var(--ok-soft)); }
.pricing-free h2 { margin: 0; font-size: 1.2rem; }
.pricing-title { margin: 28px 0 14px; font-size: 1.35rem; }
.boost-card h3, .shop-plan h3 { font-size: 1.08rem; margin: 0; }
.pricing-wallet { margin-top: 24px; padding: 20px; }
.pricing-wallet h2 { font-size: 1.1rem; margin: 0 0 12px; }
.pricing-note { margin-top: 20px; color: var(--muted); font-size: .8rem; max-width: 820px; }

/* ---------- Pages de règles ---------- */
.prose .updated { color: var(--muted); font-size: .85rem; margin: -.4em 0 1.2em; }
.prose h2 span { display: inline-grid; place-items: center; min-width: 34px; height: 26px; margin-inline-end: 10px; padding: 0 6px; border-radius: 8px; background: var(--ok-soft); color: var(--zellige); font-size: .8rem; vertical-align: 3px; }
.prose h3 { margin: 1.3em 0 .4em; font-size: 1.05rem; }
.complaint-form { margin-top: 32px; padding: 22px; scroll-margin-top: calc(var(--header-total) + 16px); }
.footer-bottom nav { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .tabbar, .site-footer, .ad-aside, .sticky-contact { display: none !important; } }

/* ---------- Partenaires ---------- */
.card-logo { width: 100%; height: 100%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.card-logo img { width: 52%; height: 52%; object-fit: contain; }
.card:hover .card-logo img { transform: none; }
.card-initial { width: 64px; height: 64px; border-radius: 16px; background: var(--sable); color: var(--zellige); display: grid; place-items: center; font: 800 1.8rem var(--f-display); }
.card-company { font-size: .84rem; font-weight: 600; color: var(--encre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-chip { position: absolute; bottom: 8px; inset-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pc); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .01em; }
.partner-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); background: color-mix(in srgb, var(--pc) 9%, #fff); color: var(--encre); text-decoration: none; font-size: .85rem; font-weight: 600; }
.partner-badge img { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; }
.partner-badge.is-small { font-size: .78rem; margin-top: 3px; }
.partner-badge:hover { border-color: var(--pc); color: var(--encre); }
.company-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; flex: none; }
.ad-company { margin: -2px 0 8px; font-weight: 600; font-size: 1.05rem; color: var(--muted); }
.partner-card { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-s); border: 1px dashed var(--line); color: var(--muted); text-decoration: none; font-size: .8rem; line-height: 1.4; }
.partner-card:hover { color: var(--encre); border-color: var(--sable-2); }
.partner-card img { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; flex: none; margin-top: 1px; }
.partner-card strong { color: var(--encre); font-weight: 600; }
.partner-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; margin-bottom: 14px; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.partners a { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-decoration: none; font-size: .76rem; font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s; }
.partners a:hover { color: var(--encre); border-color: var(--sable-2); }
.partners img { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; }
.partners .partner-wordmark { width: auto; height: 14px; border-radius: 0; }
.partners.on-dark a { background: transparent; border-color: rgb(251 247 236 / .16); color: #BCD3C6; }
.partners.on-dark a:hover { color: #fff; border-color: rgb(251 247 236 / .35); text-decoration: none; }
.partners-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
:lang(ar) .partners-label { letter-spacing: 0; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 0 28px; }
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 0 18px; }
.footer-partners .partners-label { color: #8FB3A1; }

/* ---------- Connexion Google ---------- */
.google-btn { gap: 10px; margin-bottom: 4px; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: .85rem; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Packs IA ---------- */
.credit-balance { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: var(--sable); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.pack.is-popular { border: 2px solid var(--safran); }
.pack h2 { font-size: 1.1rem; margin: 0; }
.pack-price { font: 800 1.8rem var(--f-display); color: var(--zellige); margin: 6px 0 0; }
.pack .muted { font-size: .86rem; flex: 1; }
.pack-flag { position: absolute; top: -11px; inset-inline-start: 16px; padding: 2px 10px; border-radius: 999px; background: var(--safran); font-size: .72rem; font-weight: 700; }

/* ---------- Publier : trois façons ---------- */
.publish-choose { padding: 28px 0 56px; }
.publish-choose header { max-width: 640px; margin-bottom: 22px; }
.publish-choose header .lede { margin-bottom: 4px; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
.way { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.ways > .way:first-child { border: 2px solid var(--zellige); } /* l’option gratuite mise en avant */
.way h2 { font-size: 1.25rem; margin: 6px 0 0; }
.way p { margin: 0; color: var(--muted); }
.way .way-note { font-size: .88rem; }
.way-head { display: flex; align-items: center; gap: 6px; }
.way-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--sable); color: var(--zellige); font-size: 1.3rem; margin-inline-end: 4px; }
.way-tag { padding: 2px 8px; border-radius: 999px; background: var(--deep); color: #fff; font-size: .7rem; font-weight: 700; }
.way-tag.is-paid { background: var(--safran); color: var(--encre); }
.way-tag.is-free { background: var(--ok-soft); color: var(--deep); }
.way-prices { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.way-prices li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--r-s); background: var(--creme); }
.way-prices li b { color: var(--zellige); }
.way-input { margin-top: 10px; }
.way-cta { margin-top: auto; }
.way .way-input + .way-cta { margin-top: 10px; }
.ai-assist { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; border-radius: var(--r-l); background: var(--deep); color: var(--creme); margin-bottom: 16px; }
.ai-assist label { flex-basis: 100%; font-weight: 600; }
.ai-assist .input { flex: 1; min-width: 220px; }
.ai-assist p { flex-basis: 100%; margin: 0; color: #D5E5DC; font-size: .9rem; }

/* ---------- Boutons complémentaires ---------- */
.btn-lg { min-height: 52px; padding: 0 1.5em; font-size: 1.02rem; }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .45); }
.btn-ghost-light:hover { --bg: rgb(255 255 255 / .12); --fg: #fff; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Favoris ---------- */
.hdr-fav .badge-dot[hidden] { display: none; }
@media (max-width: 860px) {
  .hdr-fav { padding: 8px; }
  .hdr-fav > span:not(.badge-dot) { display: none; }
  .hdr-fav .badge-dot { top: 0; inset-inline-end: -2px; }
}
.fav-btn { transition: transform .15s, color .15s; }
.fav-btn.fav-pop { animation: favPop .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes favPop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fav-btn.fav-pop { animation: none; } }
.btn[data-fav][aria-pressed="true"] { color: var(--danger); border-color: #E8C4C0; background: var(--danger-soft); }
.btn[data-fav][aria-pressed="true"] .icon { fill: currentColor; }
.card-gone { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: var(--encre); color: #fff; font-size: .72rem; font-weight: 700; }
.card-was { margin-inline-start: 6px; color: var(--muted); font-size: .82rem; font-weight: 500; }
.card-drop { display: inline-block; margin-inline-start: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--zellige); font-size: .74rem; font-weight: 700; vertical-align: 2px; }

.fav-guest { padding: 24px 0 56px; }
.fav-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fav-head h1 { margin: 0 0 4px; }
.fav-head p { margin: 0; }
.fav-drop-note { color: var(--zellige); }
.fav-sync { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; border-radius: var(--r-m); background: var(--safran-soft); border: 1px solid #F3DB8A; }
.fav-sync > .icon { flex: none; width: 26px; height: 26px; color: var(--danger); fill: currentColor; }
.fav-sync p { margin: 0; flex: 1; font-size: .94rem; }
.fav-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip b { font-weight: 700; font-size: .8rem; opacity: .7; }
.chip-drop { border-color: #B7DCC9; color: var(--zellige); }
.fav-sort { display: flex; gap: 8px; }
.fav-sort .select { width: auto; min-width: 170px; }
.fav-grid li { transition: opacity .3s; }
.fav-grid li.is-gone .card-media img { filter: grayscale(.85); opacity: .7; }
.fav-grid li.is-removed { opacity: .35; }
.fav-empty .fav-empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); }
.fav-empty .fav-empty-icon .icon { width: 34px; height: 34px; fill: currentColor; }
.fav-empty .btn { margin-top: 10px; }
@media (max-width: 600px) { .fav-sort { width: 100%; } .fav-sort .select { flex: 1; min-width: 0; } }

/* ---------- osouk bonus : progression ---------- */
.bonus-progress { margin: 0 0 24px; padding: 22px clamp(18px, 3vw, 28px); border-radius: var(--r-l); background: linear-gradient(135deg, var(--deep), var(--zellige)); color: #fff; box-shadow: var(--shadow); }
.bp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bp-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--safran); }
.bonus-progress h2 { margin: 6px 0 0; color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
.bp-stock { flex: none; text-align: center; padding: 8px 14px; border-radius: var(--r-m); background: rgb(255 255 255 / .1); }
.bp-stock b { display: block; font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--safran); }
.bp-stock span { font-size: .76rem; opacity: .85; }
.bp-bar { position: relative; height: 12px; margin: 34px 0 30px; border-radius: 999px; background: rgb(255 255 255 / .16); }
.bp-fill { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, #FFD54F, var(--safran)); transition: width .6s ease; }
.bp-tick { position: absolute; top: 50%; width: 26px; height: 26px; margin-inline-start: -13px; transform: translateY(-50%); border-radius: 50%; background: var(--deep); border: 2px solid rgb(255 255 255 / .5); display: grid; place-items: center; }
.bp-tick.is-done { background: var(--safran); border-color: var(--safran); }
.bp-tick i { position: absolute; bottom: calc(100% + 4px); font-style: normal; font-weight: 700; font-size: .78rem; color: var(--safran); white-space: nowrap; }
.bp-tick small { position: absolute; top: calc(100% + 4px); font-size: .72rem; opacity: .8; white-space: nowrap; }
.bp-tick:last-of-type { margin-inline-start: -26px; }
.bp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.bp-foot > span:first-child { opacity: .85; }
.bp-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bp-more { color: #fff; font-size: .88rem; }
.bonus-progress .btn-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .45); }
.bonus-progress .btn-light:hover { --bg: rgb(255 255 255 / .12); }
.bonus-progress.is-compact { margin-top: 18px; }
@media (max-width: 560px) { .bp-top { flex-direction: column; } .bp-stock { display: flex; align-items: baseline; gap: 8px; } .bp-stock b { display: inline; font-size: 1.5rem; } }

/* Utiliser un boost (page Booster) */
.bonus-use { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 20px; border-radius: var(--r-l); border: 1px dashed var(--sable-2); background: #fff; }
.bonus-use.has-boosts { border: 2px solid var(--safran); background: linear-gradient(90deg, #FFFBEE, #fff); }
.bonus-use-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--safran-soft); color: var(--ocre); }
.bonus-use h2 { margin: 0 0 2px; font-size: 1.05rem; }
.bonus-use p { margin: 0; font-size: .9rem; }
@media (max-width: 640px) { .bonus-use { flex-wrap: wrap; } .bonus-use form, .bonus-use > .btn { width: 100%; } .bonus-use .btn { width: 100%; } }

/* ---------- osouk bonus : page ---------- */
.bonus-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgb(245 179 1 / .28), transparent 60%), linear-gradient(160deg, var(--deeper), var(--deep) 55%, var(--zellige)); color: #fff; }
.bonus-hero::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 34 22 52 28 34 34 28 52 22 34 4 28 22 22Z' fill='none' stroke='%23ffffff' stroke-opacity='.06'/%3E%3C/svg%3E"); pointer-events: none; }
.bonus-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 84px); }
.bh-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--safran); font-size: .82rem; font-weight: 700; }
.bonus-hero h1 { margin: 16px 0 12px; color: #fff; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .95; letter-spacing: -.02em; }
.bonus-hero h1 span { color: var(--safran); }
.bh-lede { max-width: 34em; font-size: clamp(1.02rem, 1.8vw, 1.2rem); opacity: .92; }
.bh-points { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 8px; }
.bh-points li { display: flex; gap: 10px; align-items: center; }
.bh-points .icon { color: var(--safran); flex: none; }
.bh-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.bh-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center; }
.bh-big { position: absolute; inset: 14%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #FFE08A, var(--safran) 55%, #D99A00); color: var(--encre); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5), inset 0 -10px 30px rgb(168 114 0 / .35); }
.bh-big b { font-family: var(--f-display); font-size: clamp(4rem, 10vw, 6.2rem); line-height: .9; }
.bh-big span { font-weight: 700; font-size: 1.1rem; }
.bh-big small { opacity: .75; }
.bh-coin { position: absolute; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--zellige); font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; box-shadow: 0 14px 30px -12px rgb(0 0 0 / .5); animation: coinFloat 5s ease-in-out infinite; }
.bh-c1 { top: 4%; inset-inline-start: 2%; }
.bh-c2 { top: 40%; inset-inline-end: -4%; animation-delay: -1.6s; }
.bh-c3 { bottom: 0; inset-inline-start: 14%; width: 88px; height: 88px; background: var(--creme); animation-delay: -3.2s; }
@keyframes coinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .bh-coin { animation: none; } }
@media (max-width: 860px) { .bonus-hero-in { grid-template-columns: 1fr; } .bh-visual { max-width: 260px; order: -1; } }

.bonus-body { padding-block: clamp(28px, 5vw, 56px); }
.bonus-section { margin-bottom: clamp(44px, 7vw, 80px); }
.bs-head { max-width: 760px; margin-bottom: 24px; }
.bs-head h2, .bonus-split h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.bonus-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.bstep { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.bstep-at { font-weight: 700; color: var(--muted); font-size: .9rem; }
.bstep-gain { font-family: var(--f-display); font-size: 3rem; line-height: 1.05; color: var(--zellige); }
.bstep small { margin-top: 6px; color: var(--muted); }
.bstep-welcome { background: var(--creme); border-style: dashed; }
.bstep-welcome .bstep-gain { color: var(--ocre); }
.bstep.is-top { background: linear-gradient(160deg, var(--deep), var(--zellige)); border-color: transparent; color: #fff; }
.bstep.is-top .bstep-at, .bstep.is-top small { color: rgb(255 255 255 / .8); }
.bstep.is-top .bstep-gain { color: var(--safran); }
.bonus-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-m); background: var(--safran-soft); font-weight: 600; }
.bonus-note .icon { color: var(--ocre); flex: none; }
@media (max-width: 900px) { .bonus-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bonus-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.bonus-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.bonus-list li { display: flex; gap: 12px; align-items: flex-start; }
.bonus-list .icon { flex: none; margin-top: 3px; color: var(--zellige); }
.bonus-mock { position: relative; min-height: 300px; }
.bm-card { position: absolute; width: 62%; top: 8%; inset-inline-start: 6%; z-index: 2; padding: 10px; border-radius: var(--r-m); background: #fff; border: 2px solid var(--safran); box-shadow: 0 24px 50px -20px rgb(20 35 29 / .45); transform: rotate(-3deg); }
.bm-back { top: 22%; inset-inline-start: auto; inset-inline-end: 4%; z-index: 1; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(4deg); opacity: .7; }
.bm-img { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, var(--sable), var(--sable-2)); }
.bm-lines { display: grid; gap: 7px; padding: 10px 2px 4px; }
.bm-lines b { display: block; height: 12px; width: 45%; border-radius: 6px; background: var(--encre); }
.bm-lines i { display: block; height: 9px; border-radius: 6px; background: var(--sable); }
.bm-lines i.short { width: 60%; }
.bm-badge { position: absolute; top: 18px; inset-inline-start: 18px; padding: 3px 10px; border-radius: 999px; background: var(--safran); font-size: .74rem; font-weight: 700; }
.bm-arrow { position: absolute; bottom: 4%; inset-inline-start: 40%; z-index: 3; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--zellige); color: var(--safran); box-shadow: 0 12px 24px -10px rgb(11 107 79 / .7); }
@media (max-width: 860px) { .bonus-split { grid-template-columns: 1fr; } .bonus-mock { min-height: 260px; max-width: 420px; } }

.bonus-table { width: 100%; max-width: 760px; border-collapse: collapse; background: #fff; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
.bonus-table th, .bonus-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.bonus-table th { background: var(--creme); font-size: .86rem; color: var(--muted); }
.bonus-table tr:last-child td { border-bottom: 0; }
.bonus-table td b { color: var(--zellige); font-size: 1.05rem; }

.idea-grid { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.idea-grid li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); font-weight: 600; }
.idea-grid .icon { flex: none; color: var(--zellige); }
.bonus-cta-inline { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.rules-grid article { padding: 20px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); }
.rules-grid h3 { margin: 0 0 6px; font-size: 1.02rem; }
.rules-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .rules-grid { grid-template-columns: 1fr; } }

.bonus-faq details { max-width: 820px; border-bottom: 1px solid var(--line); }
.bonus-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bonus-faq summary::-webkit-details-marker { display: none; }
.bonus-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--zellige); }
.bonus-faq details[open] summary::after { content: "−"; }
.bonus-faq details p { margin: 0 0 16px; color: var(--muted); }

.bonus-final { padding-block: clamp(44px, 7vw, 76px); text-align: center; background: var(--sable); }
.bonus-final h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.bonus-final p { margin: 0 0 20px; color: var(--muted); }

/* ---------- Page fraude ---------- */
.fraud-keys { margin: 24px 0; padding: 20px 24px; border-radius: var(--r-l); background: var(--danger-soft); border: 1px solid #F0C9C4; }
.fraud-keys h2 { margin-top: 0; color: var(--danger); }
.fraud-keys ul { margin-bottom: 0; }
.fraud-keys li { margin-bottom: 6px; }
.fraud-reflexes { margin: 36px 0 20px; padding: 24px; border-radius: var(--r-l); background: linear-gradient(160deg, var(--deep), var(--zellige)); color: #fff; }
.fraud-reflexes h2 { margin-top: 0; color: #fff; }
.fraud-reflexes ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.fraud-reflexes li::marker { color: var(--safran); font-weight: 700; }
.bh-coin { z-index: 2; }
.bh-coin, .bstep-gain, .bp-tick i, .card-drop, .bh-big b { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 860px) {
  .bh-coin { width: 56px; height: 56px; font-size: 1.1rem; }
  .bh-c3 { width: 64px; height: 64px; bottom: -2%; inset-inline-start: 4%; }
  .bh-c2 { inset-inline-end: -2%; }
}

/* ---------- Dépôt : rubriques suggérées, formulaire par rubrique, ISBN ---------- */
.cat-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.cat-suggest[hidden] { display: none; }
.cs-label { font-size: .84rem; color: var(--muted); font-weight: 600; }
.cs-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--encre); cursor: pointer; text-align: start; line-height: 1.25; }
.cs-chip strong { font-size: .9rem; }
.cs-chip small { font-size: .74rem; color: var(--muted); }
.cs-chip:hover { border-color: var(--zellige); }
.cs-chip.is-on { border-color: var(--zellige); background: var(--ok-soft); }
.cs-chip.is-on strong::before { content: "✓ "; color: var(--zellige); }
.way .cat-suggest { margin: 0 0 10px; }
.attr-box[hidden] { display: none; }
.attr-head { margin: 18px 0 10px; font-size: .95rem; color: var(--zellige); text-transform: uppercase; letter-spacing: .05em; }
.attr-grid { margin-bottom: 4px; }
.req { color: var(--danger); font-weight: 700; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.equip-check { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; margin: 0; }
.equip-check:has(input:checked) { border-color: var(--zellige); background: var(--ok-soft); }
.equip-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.equip-list li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--zellige); font-size: .88rem; font-weight: 600; }
.check-list { display: grid; gap: 6px; }
.isbn-box { margin: 0 0 16px; padding: 16px; border-radius: var(--r-m); background: var(--creme); border: 1px dashed var(--sable-2); }
.isbn-box[hidden] { display: none; }
.isbn-box > label { display: block; font-weight: 700; margin-bottom: 8px; }
.isbn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.isbn-row .input { flex: 1; min-width: 160px; }
.isbn-box .hint { margin: 8px 0 0; }
.scan-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgb(20 35 29 / .85); }
.scan-box { position: relative; width: min(480px, 100%); padding: 12px; border-radius: var(--r-l); background: #000; color: #fff; text-align: center; }
.scan-box video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-m); background: #111; }
.scan-frame { position: absolute; top: 34%; inset-inline: 18%; height: 22%; border: 3px solid var(--safran); border-radius: 10px; box-shadow: 0 0 0 999px rgb(0 0 0 / .25); pointer-events: none; }
.scan-box p { margin: 10px 0; font-size: .9rem; }

/* Formulaire d'annonce : traduction et offres de prix */
.translate-box { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r-m, 12px); background: var(--creme); }
.translate-box details { margin-top: 10px; }
.translate-box summary { cursor: pointer; font-weight: 600; color: var(--zellige); }
.translate-box .field:last-child { margin-bottom: 0; }
.offer-check { margin-top: 12px; }
.ad-translated { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.offer-dialog .input-affix { max-width: 220px; }

/* Espace professionnels : page de présentation et inscription */
.pro-hero { background: var(--deep); color: var(--creme); }
.pro-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.pro-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 18ch; margin: .2em 0 .4em; }
.pro-hero p { color: #D5E5DC; font-size: 1.05rem; max-width: 52ch; margin-bottom: 1.4em; }
.pro-kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--safran); font-weight: 700; font-size: .82rem; }
.pro-hero-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pro-hero-stats li { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; border-radius: var(--r-l); background: rgb(255 255 255 / .07); }
.pro-hero-stats b { font: 800 1.7rem/1 var(--f-display); color: var(--safran); }
.pro-hero-stats span { color: #D5E5DC; }
.pro-page { padding-block: 40px 64px; display: grid; gap: 48px; }
.pro-h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 18px; }
.pro-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pro-features li { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }
.pro-features h3 { font-size: 1.02rem; margin: 2px 0 6px; }
.pro-features p { margin: 0; color: var(--muted); font-size: .93rem; }
.pro-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pro-steps li { display: flex; gap: 12px; }
.pro-steps li > b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--safran); color: var(--encre); font-weight: 800; }
.pro-steps p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.pro-signup { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; scroll-margin-top: calc(var(--header-total) + 16px); }
.pro-signup form h3 { font-size: 1.05rem; margin: 0 0 12px; }
.pro-signup form h3:not(:first-of-type) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .pro-hero .wrap, .pro-signup { grid-template-columns: 1fr; } }

/* Tableau de bord pro */
.pro-dash-head { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
.pro-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.pro-badges .pill { display: inline-flex; align-items: center; gap: 4px; }
.pill-pro { background: var(--deep); color: var(--safran); }
.pill-ok { background: var(--ok-soft); color: var(--deep); }
.pro-kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pro-progress { height: 8px; border-radius: 99px; background: var(--sable); overflow: hidden; margin-bottom: 12px; }
.pro-progress span { display: block; height: 100%; background: var(--zellige); }
.pro-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pro-checklist li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pro-checklist li.is-done { color: var(--encre); }
.pro-checklist li.is-done .icon { color: var(--zellige); }
.pro-table-panel { margin-block: 16px; }
.pro-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pro-table th { text-align: start; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
:lang(ar) .pro-table th { letter-spacing: 0; }
.pro-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pro-table td.num, .pro-table th.num { text-align: end; }
.pro-table-ad { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; min-width: 240px; }
.pro-table-ad .thumb { flex: none; width: 52px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--sable); }
.pro-table-ad .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pro-table-ad small { display: block; color: var(--muted); }
.pro-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pro-cats li { display: flex; align-items: center; gap: 10px; }
.pro-cats small { display: block; color: var(--muted); }
.pro-cats .num { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.pro-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.pro-tools a { display: grid; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: var(--encre); }
.pro-tools a .icon { color: var(--zellige); }
.pro-tools a span { color: var(--muted); font-size: .88rem; }
.pro-tools a:hover { border-color: var(--zellige); }

/* Annuaire des boutiques */
.shops-hero { background: var(--creme); border-bottom: 1px solid var(--line); }
.shops-hero .wrap { padding-block: 32px; display: grid; gap: 18px; }
.shops-hero h1 { margin: 0 0 6px; }
.shops-hero p { margin: 0; color: var(--muted); max-width: 64ch; }
.shops-search { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); max-width: 960px; }
.shops-search input, .shops-search select { border: 0; background: none; height: 46px; padding: 0 12px; min-width: 0; color: var(--encre); outline: none; }
.shops-search select { border-inline-start: 1px solid var(--line); }
@media (max-width: 760px) { .shops-search { grid-template-columns: 1fr; } .shops-search select { border-inline-start: 0; border-top: 1px solid var(--line); } }
.shops-page { padding-block: 28px 64px; display: grid; gap: 36px; }
.shop-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.shop-cards a { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; color: var(--encre); text-decoration: none; height: 100%; }
.shop-cards a:hover { border-color: var(--zellige); box-shadow: 0 16px 30px -24px rgb(20 35 29 / .5); }
.shop-card-banner { display: block; height: 92px; background: linear-gradient(120deg, var(--deep), var(--zellige)) center / cover; }
.shop-cards .shop-logo { position: absolute; top: 60px; inset-inline-start: 16px; border: 3px solid #fff; }
.shop-card-body { display: grid; gap: 4px; padding: 36px 16px 16px; }
.shop-card-desc { color: var(--muted); font-size: .9rem; }
.shop-card-body small { color: var(--muted); }
.shop-card-count { color: var(--zellige) !important; font-weight: 600; }
.shops-cta { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-l); background: var(--deep); color: var(--creme); }
.shops-cta h2 { color: #fff; margin: 0 0 8px; }
.shops-cta p { color: #D5E5DC; margin: 0 0 12px; }
.shops-cta .checks li { color: #fff; }
@media (max-width: 760px) { .shops-cta { grid-template-columns: 1fr; } }

/* Résultats : bascule grille / liste */
.view-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.view-toggle button { width: 34px; height: 30px; border: 0; border-radius: 999px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--deep); color: #fff; }
.card-excerpt { display: none; }
.grid.is-list { grid-template-columns: 1fr; gap: 12px; }
.grid.is-list .card { flex-direction: row; gap: 16px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.grid.is-list .card:hover { border-color: var(--zellige); }
.grid.is-list .card-media { flex: none; width: 240px; align-self: flex-start; }
.grid.is-list .card-body { flex: 1; min-width: 0; padding-block: 2px; padding-inline: 0 44px; gap: 5px; }
.grid.is-list .card-title { font-size: 1.05rem; font-weight: 600; }
.grid.is-list .card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted); font-size: .9rem; }
.grid.is-list .card-meta { margin-top: auto; }
.grid.is-list .fav-btn { top: 14px; inset-inline-end: 14px; }
@media (max-width: 640px) {
  .grid.is-list .card { gap: 10px; padding: 8px; }
  .grid.is-list .card-media { width: 118px; }
  .grid.is-list .card-excerpt { display: none; }
  .grid.is-list .card-body { padding-inline-end: 34px; }
  .grid.is-list .fav-btn { width: 30px; height: 30px; top: 10px; inset-inline-end: 10px; }
}


/* Accueil : options professionnelles */
.home-pro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-l); background: var(--deep); color: var(--creme); }
.home-pro-head h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin: 12px 0 10px; }
.home-pro-head p { color: #D5E5DC; margin: 0 0 18px; }
.home-pro-head small { display: block; margin-top: 10px; color: #A9C7B8; }
.home-pro-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-pro-grid li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; padding: 14px; border-radius: var(--r-m); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .08); }
.home-pro-grid .ml-icon { grid-row: span 2; background: rgb(255 255 255 / .1); color: var(--safran); }
.home-pro-grid strong { color: #fff; font-size: .98rem; }
.home-pro-grid span:not(.ml-icon) { color: #CFE1D7; font-size: .86rem; }
@media (max-width: 900px) { .home-pro { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .home-pro-grid { grid-template-columns: 1fr; } }
.home-pro .pill-pro { background: var(--safran); color: var(--encre); }

/* Centre d'aide : vidéos et FAQ */
.help-page { padding-block: 28px 64px; display: grid; gap: 40px; }
.help-head h1 { margin: 0 0 8px; }
.help-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.help-h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 16px; }
.help-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.help-videos li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; scroll-margin-top: calc(var(--header-total) + 16px); }
.help-videos video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--deep); }
.help-videos div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; }
.help-videos span { color: var(--muted); font-size: .85rem; }
.help-faq { display: grid; gap: 22px; max-width: 860px; }
.help-group h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--zellige); }
.help-group details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 16px; margin-bottom: 8px; }
.help-group summary { cursor: pointer; padding: 13px 0; font-weight: 600; list-style-position: outside; }
.help-group details[open] summary { border-bottom: 1px solid var(--line); }
.help-group details p { margin: 12px 0 14px; color: var(--encre); line-height: 1.6; }
.help-more { color: var(--muted); }

/* Publicités haqia.ma : un modèle de document présenté comme une annonce */
.ad-media { display: grid; place-items: center; padding: 14px 18px 0; background: #EAF3EE; }
.ad-media.ad-v1 { background: #F6EEDC; }
.ad-media.ad-v2 { background: #E6EEF6; }
.ad-media.ad-v3 { background: #F3E7E2; }
.ad-paper { position: relative; align-self: end; width: min(78%, 230px); height: 92%; padding: 14px 14px 0; display: flex; flex-direction: column; gap: 7px; background: #fff; border-radius: 6px 6px 0 0; box-shadow: 0 8px 24px rgb(20 35 29 / .12); transition: transform .3s; }
.card:hover .ad-paper { transform: translateY(-4px); }
.ad-paper-kicker { font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0B5D4B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-v1 .ad-paper-kicker { color: #8A5A00; }
.ad-v2 .ad-paper-kicker { color: #1F4E79; }
.ad-v3 .ad-paper-kicker { color: #8C2F1B; }
.ad-paper-title { font: 700 .86rem/1.25 var(--f-display); color: var(--encre); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad-paper i { display: block; height: 5px; border-radius: 3px; background: #E7E2D6; }
.ad-paper i.short { width: 60%; }
.ad-paper-seal { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #0B5D4B; color: #fff; }
.ad-v1 .ad-paper-seal { background: #B07A12; }
.ad-v2 .ad-paper-seal { background: #1F4E79; }
.ad-v3 .ad-paper-seal { background: #A23B23; }
.ad-paper-seal .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-badge.ad-badge { background: rgb(255 255 255 / .92); color: var(--muted); font-weight: 600; border: 1px solid var(--line); }
.ad-site { font-weight: 700; color: #0B5D4B; }
.grid.is-list .ad-media { padding: 10px 14px 0; }
