/* Site palettes (22 Nov 2026). The default «المخمل الأحمر» lives in base.css :root; each palette below repaints the
   same tokens. Chosen in Appearance › Customize › «ألوان الموقع» → <html data-mct-palette="…">.
   Each palette has its own accent (--mct-orange-* tokens: buttons, links, highlighted words); stage, curtains,
   gold, paper and footer change too. Only the logo image stays orange.
   Visitors switch with the floating corner button (.mct-pal, markup in inc/palettes.php, js/palettes.js). */

/* ---- the corner button: orange circle at the end-side bottom corner; the dots slide out toward the middle ---- */
.mct-pal{position:fixed;z-index:58;bottom:calc(20px + env(safe-area-inset-bottom,0px));inset-inline-end:20px;display:flex;align-items:center;gap:10px;font-family:var(--mct-font)}
.mct-pal__main{width:52px;height:52px;border-radius:50%;border:0;padding:0;cursor:pointer;display:grid;place-items:center;background:var(--mct-orange);color:var(--mct-on-orange);
  box-shadow:0 14px 26px -10px rgb(0 0 0 / .6), inset 0 0 0 2px rgb(255 255 255 / .25);transition:scale .25s, rotate .45s cubic-bezier(.2,.8,.2,1), background-color .25s}
.mct-pal__main svg{width:24px;height:24px}
.mct-pal__main:hover{scale:1.07;background:var(--mct-orange-hi)}
.mct-pal.is-open .mct-pal__main{rotate:-35deg}
.mct-pal__row{display:flex;gap:8px;padding:9px 12px;border-radius:999px;background:var(--mct-card);box-shadow:0 16px 34px -14px rgb(0 0 0 / .55), 0 0 0 1px var(--mct-line);
  transform-origin:right center;scale:.3 1;opacity:0;pointer-events:none;transition:scale .35s cubic-bezier(.2,.8,.2,1), opacity .25s}
[dir="ltr"] .mct-pal__row{transform-origin:right center}
[dir="rtl"] .mct-pal__row{transform-origin:left center}
.mct-pal.is-open .mct-pal__row{scale:1;opacity:1;pointer-events:auto}
.mct-pal__row[hidden]{display:none}
.mct-pal__dot{width:28px;height:28px;border-radius:50%;border:0;padding:0;cursor:pointer;background:conic-gradient(var(--a) 0 40%, var(--c, var(--a)) 0 70%, var(--b) 0 100%);
  box-shadow:0 0 0 2px var(--mct-card), 0 0 0 3px var(--mct-line);transition:scale .2s, box-shadow .2s}
.mct-pal__dot:hover{scale:1.14}
.mct-pal__dot[aria-pressed="true"]{box-shadow:0 0 0 2px var(--mct-card), 0 0 0 4px var(--mct-orange)}
.mct-pal :focus-visible{outline:2px solid var(--mct-orange);outline-offset:3px}
/* Hello Elementor paints [type=button]:hover/:focus pink — keep ours */
.mct-pal .mct-pal__main:is(:hover,:focus,:active){background:var(--mct-orange-hi);color:var(--mct-on-orange);border:0}
.mct-pal .mct-pal__dot:is(:hover,:focus,:active){background:conic-gradient(var(--a) 0 40%, var(--c, var(--a)) 0 70%, var(--b) 0 100%);border:0}
@media (max-width:640px){
  .mct-pal{bottom:calc(14px + env(safe-area-inset-bottom,0px));inset-inline-end:14px;gap:8px}
  .mct-pal__main{width:46px;height:46px}
  .mct-pal__row{gap:6px;padding:8px 10px}
  .mct-pal__dot{width:25px;height:25px}
}
/* a short fade while the colours change */
html.mct-repaint body,html.mct-repaint body *{transition:background-color .5s, color .5s, border-color .5s, fill .5s !important}
@media (prefers-reduced-motion: reduce){.mct-pal__main,.mct-pal__row,.mct-pal__dot{transition:none}html.mct-repaint body *{transition:none !important}}

/* ١ · زليج تلمسان — emerald stage, green curtains, brass gold, ivory paper */
:root[data-mct-palette="zellige"]{
  --mct-stage:#0b1c1a; --mct-stage-2:#102522; --mct-cinema:#081513;
  --mct-on-dark:#f1ecdf; --mct-on-dark-mute:#b9c6bd; --mct-on-dark-faint:#7d8d84;
  --mct-paper:#f5f1e6; --mct-paper-2:#ebe6d5; --mct-light:#fbfaf5; --mct-warm:#f7f4ea; --mct-card:#ffffff;
  --mct-ink:#14231f; --mct-text:#3d4a44; --mct-mute:#76837c; --mct-line:#dcdccb;
  --mct-gold:#c4a456; --mct-gold-lt:#d8bb72; --mct-gold-deep:#9c8040;
  --mct-velvet-a:#0d3b33; --mct-velvet-b:#16594c; --mct-velvet-c:#1f6e5e; --mct-velvet-d:#082a24; --mct-velvet-ink:#06201b;
  --mct-cream:#efe7d2; --mct-cream-ink:#18241f;
  --mct-stage-rgb:11 28 26; --mct-cinema-rgb:8 21 19; --mct-ink-rgb:20 35 31; --mct-velvet-rgb:22 89 76; --mct-velvet-d-rgb:8 42 36;
  --mct-orange:#14877d; --mct-orange-hi:#1c9d91; --mct-orange-txt:#0c675f; --mct-orange-soft:#dcefec; --mct-orange-lt:#8fe0d6; --mct-on-orange:#ffffff;
  --mct-orange-rgb:20 135 125; --mct-on-dark-rgb:241 236 223;
}

/* ٢ · ليل أزرق — indigo stage, royal-blue curtains, bright brass, cool white paper */
:root[data-mct-palette="night"]{
  --mct-stage:#0d1124; --mct-stage-2:#131a33; --mct-cinema:#0a0d1c;
  --mct-on-dark:#eef0f7; --mct-on-dark-mute:#b4bad0; --mct-on-dark-faint:#7a809a;
  --mct-paper:#f3f2ee; --mct-paper-2:#e8e7e2; --mct-light:#fbfbf9; --mct-warm:#f6f5f1; --mct-card:#ffffff;
  --mct-ink:#141a2e; --mct-text:#3e4458; --mct-mute:#7a8094; --mct-line:#dfdfe6;
  --mct-gold:#c8a356; --mct-gold-lt:#dcbb76; --mct-gold-deep:#9e7f3e;
  --mct-velvet-a:#142158; --mct-velvet-b:#1f3384; --mct-velvet-c:#2a43a0; --mct-velvet-d:#0d1640; --mct-velvet-ink:#0a1030;
  --mct-cream:#f1ead9; --mct-cream-ink:#161a2a;
  --mct-stage-rgb:13 17 36; --mct-cinema-rgb:10 13 28; --mct-ink-rgb:20 26 46; --mct-velvet-rgb:31 51 132; --mct-velvet-d-rgb:13 22 64;
  --mct-orange:#2f7fd0; --mct-orange-hi:#4a96e0; --mct-orange-txt:#1c5fa3; --mct-orange-soft:#dfeaf8; --mct-orange-lt:#a9d0fb; --mct-on-orange:#ffffff;
  --mct-orange-rgb:47 127 208; --mct-on-dark-rgb:238 240 247;
}

/* ٣ · طين وحنّاء — coffee stage, henna curtains, sand gold, sand paper */
:root[data-mct-palette="henna"]{
  --mct-stage:#1a110c; --mct-stage-2:#231711; --mct-cinema:#140d09;
  --mct-on-dark:#f6ece0; --mct-on-dark-mute:#d1bfab; --mct-on-dark-faint:#938170;
  --mct-paper:#f4ece0; --mct-paper-2:#ebe0d0; --mct-light:#fcf8f2; --mct-warm:#f8f1e7; --mct-card:#fffdf9;
  --mct-ink:#2a1b13; --mct-text:#55433a; --mct-mute:#8b7769; --mct-line:#e6d6c3;
  --mct-gold:#c89d5c; --mct-gold-lt:#dbb47a; --mct-gold-deep:#a37b42;
  --mct-velvet-a:#6b2414; --mct-velvet-b:#93381f; --mct-velvet-c:#ad4a2a; --mct-velvet-d:#4e190d; --mct-velvet-ink:#3a1309;
  --mct-cream:#f2e3cb; --mct-cream-ink:#2a1a10;
  --mct-stage-rgb:26 17 12; --mct-cinema-rgb:20 13 9; --mct-ink-rgb:42 27 19; --mct-velvet-rgb:147 56 31; --mct-velvet-d-rgb:78 25 13;
  --mct-orange:#c1502c; --mct-orange-hi:#d26842; --mct-orange-txt:#9f3c1c; --mct-orange-soft:#f8e2d8; --mct-orange-lt:#ffb894; --mct-on-orange:#ffffff;
  --mct-orange-rgb:193 80 44; --mct-on-dark-rgb:246 236 224;
}

/* ٤ · برقوق وزعفران — aubergine stage, plum curtains, saffron gold, rosy paper */
:root[data-mct-palette="plum"]{
  --mct-stage:#170d1b; --mct-stage-2:#201325; --mct-cinema:#120a15;
  --mct-on-dark:#f5ecf0; --mct-on-dark-mute:#cbb8c6; --mct-on-dark-faint:#8f7d8b;
  --mct-paper:#f7f0ee; --mct-paper-2:#eee3e1; --mct-light:#fdfafa; --mct-warm:#faf4f2; --mct-card:#ffffff;
  --mct-ink:#241726; --mct-text:#4d3f4c; --mct-mute:#857683; --mct-line:#e7d9dc;
  --mct-gold:#d0a24a; --mct-gold-lt:#e2bb6a; --mct-gold-deep:#a98035;
  --mct-velvet-a:#3e0f45; --mct-velvet-b:#5e1a66; --mct-velvet-c:#76257f; --mct-velvet-d:#2b0a31; --mct-velvet-ink:#200725;
  --mct-cream:#f4e6d4; --mct-cream-ink:#241726;
  --mct-stage-rgb:23 13 27; --mct-cinema-rgb:18 10 21; --mct-ink-rgb:36 23 38; --mct-velvet-rgb:94 26 102; --mct-velvet-d-rgb:43 10 49;
  --mct-orange:#e3a114; --mct-orange-hi:#efb63c; --mct-orange-txt:#8f6206; --mct-orange-soft:#fbefd3; --mct-orange-lt:#ffe08a; --mct-on-orange:#21140a;
  --mct-orange-rgb:227 161 20; --mct-on-dark-rgb:245 236 240;
}

/* ٥ · حبر وذهب — neutral charcoal stage, black curtains with a gold edge, ivory-white paper */
:root[data-mct-palette="ink"]{
  --mct-stage:#111113; --mct-stage-2:#18181b; --mct-cinema:#0b0b0c;
  --mct-on-dark:#f3f1ec; --mct-on-dark-mute:#bdbab3; --mct-on-dark-faint:#85827c;
  --mct-paper:#f5f3ee; --mct-paper-2:#ebe8e1; --mct-light:#fcfbf8; --mct-warm:#f8f6f1; --mct-card:#ffffff;
  --mct-ink:#17171a; --mct-text:#45444a; --mct-mute:#7c7a80; --mct-line:#e2dfd8;
  --mct-gold:#bfa063; --mct-gold-lt:#d4b97f; --mct-gold-deep:#977c48;
  --mct-velvet-a:#161618; --mct-velvet-b:#26262a; --mct-velvet-c:#323237; --mct-velvet-d:#0e0e10; --mct-velvet-ink:#0a0a0b;
  --mct-cream:#efe9dc; --mct-cream-ink:#17171a;
  --mct-stage-rgb:17 17 19; --mct-cinema-rgb:11 11 12; --mct-ink-rgb:23 23 26; --mct-velvet-rgb:38 38 42; --mct-velvet-d-rgb:14 14 16;
  --mct-orange:#c6a15a; --mct-orange-hi:#d6b676; --mct-orange-txt:#86672a; --mct-orange-soft:#f3ead7; --mct-orange-lt:#f3dca8; --mct-on-orange:#17171a;
  --mct-orange-rgb:198 161 90; --mct-on-dark-rgb:243 241 236;
}
