/* =====================================================================
   Al Andalus — couche « prestige »
   Intro animée, rosace andalouse, poussière d'or, titres révélés mot à mot,
   cartes en relief, images dévoilées, bandeau défilant, transitions de pages.
   Tout reste lisible sans JavaScript et respecte « réduire les animations ».
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gold-1: #F6DE9C;
  --gold-2: var(--c-accent);
  --gold-3: #A8740F;
  --gold-grad: linear-gradient(100deg, var(--gold-3), var(--gold-2) 30%, var(--gold-1) 50%, var(--gold-2) 70%, var(--gold-3));
}
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: color-mix(in srgb, var(--c-accent) 45%, #fff); color: var(--c-navy); }

/* ---------------------------------------------------------- transitions de pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .32s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .7s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; filter: blur(6px); transform: translateY(-10px) scale(.995); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------------------------------------------------------- intro (une fois par session) */
.intro-veil { display: none; }
.has-intro .intro-veil {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; cursor: pointer;
  background:
    radial-gradient(900px 600px at 50% 42%, #fff 0, #FBF6EA 55%, #F2E6CC 100%);
  clip-path: inset(0 0 0 0 round 0 0 50% 50% / 0 0 0 0);
  animation: veilOut 1.05s var(--ease-io) 2.35s forwards;
}
.intro-veil::before { content: ""; position: absolute; inset: -40%; background-image: var(--zellige); background-size: 72px; opacity: .22;
  animation: veilPattern 14s linear infinite; mask-image: radial-gradient(closest-side, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 75%); }
.intro-veil::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: var(--gold-grad); background-size: 200% 100%; animation: sheen 2.4s linear infinite; }
.intro-veil.is-skip { animation: veilOut .75s var(--ease-io) forwards; }
@keyframes veilOut {
  60% { opacity: 1; }
  to { clip-path: inset(0 0 100% 0 round 0 0 50% 50% / 0 0 160px 160px); visibility: hidden; pointer-events: none; }
}
@keyframes veilPattern { to { transform: rotate(8deg) scale(1.08); } }
.iv { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 24px; animation: ivLift 1s var(--ease-io) 2.2s forwards; }
@keyframes ivLift { to { transform: translateY(-36px) scale(.96); opacity: 0; filter: blur(4px); } }
.iv__logo { width: min(300px, 64vw); height: auto; overflow: visible; }
.iv__wing { transform-box: view-box; transform-origin: 100px 100px; animation: ivWing 1.25s var(--ease-out) .12s both; }
.iv__wing--r { animation-delay: .2s; }
@keyframes ivWing { from { transform: scaleX(0) skewY(-6deg); opacity: 0; } 25% { opacity: 1; } }
.iv__star { transform-box: fill-box; transform-origin: center; animation: ivStar .9s var(--ease-out) both; animation-delay: calc(.6s + var(--d) * .13s); }
.iv__star--top { filter: drop-shadow(0 0 6px rgba(204, 6, 27, .55)); animation: ivStar .9s var(--ease-out) 1s both, ivTwinkle 1.6s ease-in-out 1.9s infinite; }
@keyframes ivStar { from { transform: scale(0) rotate(-200deg); opacity: 0; } 60% { transform: scale(1.35) rotate(10deg); opacity: 1; } }
@keyframes ivTwinkle { 50% { transform: scale(1.18); } }
.iv__name { display: flex; align-items: center; gap: 16px; margin: 6px 0 0; font-family: 'Montserrat', var(--f-head); font-weight: 800; font-size: clamp(1.6rem, 1rem + 3vw, 2.5rem); letter-spacing: .05em; color: var(--c-navy); line-height: 1.1; }
.iv__lat, .iv__ar { display: inline-block; overflow: hidden; padding-block: .12em; }
.iv__lat > span, .iv__ar > span { display: inline-block; animation: ivRise 1s var(--ease-out) 1.05s both; }
.iv__ar > span { font-family: 'Tajawal', 'El Messiri', sans-serif; letter-spacing: 0; animation-delay: 1.15s; }
@keyframes ivRise { from { transform: translateY(110%); } }
.iv__sep { width: 3px; height: 1.1em; border-radius: 3px; background: var(--c-accent); transform: scaleY(0); animation: ivSep .7s var(--ease-out) 1s forwards; }
@keyframes ivSep { to { transform: none; } }
.iv__tag { display: grid; gap: 4px; margin: 0; color: var(--c-primary); font-weight: 650; font-size: clamp(.85rem, .8rem + .3vw, 1rem); opacity: 0; animation: ivFade .9s ease 1.4s forwards; }
.iv__tag span { font-weight: 700; color: var(--c-navy); }
.iv__tag-alt--ar, [dir="rtl"] .iv__tag { font-family: 'Tajawal', sans-serif; }
[dir="rtl"] .iv__tag-alt--fr { font-family: var(--f-body); }
.iv__name { direction: ltr; }
@keyframes ivFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- titres révélés mot à mot */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .16em; margin: -.08em -.03em -.16em; }
.sw > span { display: inline-block; will-change: transform; }
.js .is-split .sw > span { transform: translate3d(0, 112%, 0) rotate(5deg); transform-origin: 0 100%; opacity: 0;
  transition: transform 1.15s var(--ease-out), opacity .9s ease; transition-delay: calc(var(--i) * 60ms + var(--sd, 0ms)); }
[dir="rtl"] .js .is-split .sw > span { transform-origin: 100% 100%; transform: translate3d(0, 112%, 0) rotate(-5deg); }
.js .is-split.is-in .sw > span, .js .is-in .is-split .sw > span { transform: none; opacity: 1; }

/* Soulignement doré qui se dessine sous le mot mis en valeur */
.hl::after { background: var(--gold-grad); background-size: 220% 100%; opacity: .55; transform-origin: 0 50%; animation: sheen 5s linear infinite; }
[dir="rtl"] .hl::after { transform-origin: 100% 50%; }
.js .hero .hl::after { transform: skewX(-12deg) scaleX(0); transition: transform 1.2s var(--ease-out) .75s; }
.js .hero .is-in .hl::after, .js .hero .hl.is-in::after, .js .hero__title.is-in .hl::after { transform: skewX(-12deg) scaleX(1); }
@keyframes sheen { to { background-position: -220% 0; } }

/* Petit trait des sur-titres qui s'étire */
.js .shead.reveal .eyebrow::before { width: 0; transition: width 1s var(--ease-out) .25s; }
.js .shead.reveal.is-in .eyebrow::before { width: 28px; }
.shead--center .eyebrow::after { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--c-accent); transition: width 1s var(--ease-out) .25s; }
.shead--center.is-in .eyebrow::after { width: 28px; }
.no-js .shead--center .eyebrow::after, .is-print .shead--center .eyebrow::after { width: 28px; }

/* ---------------------------------------------------------- hero */
.hero--showcase, .hero--centered { isolation: isolate; }
.hero__rosette { position: absolute; z-index: 0; top: 50%; inset-inline-end: -14%; width: min(82vw, 1040px); aspect-ratio: 1; translate: 0 -50%; pointer-events: none; color: var(--c-accent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  rotate: calc(var(--hs, 0) * .04deg); }
.hero--centered .hero__rosette { inset-inline: 0; margin-inline: auto; width: min(120vw, 1100px); }
.hero__rosette svg { width: 100%; height: 100%; overflow: visible; animation: spin 180s linear infinite; }
[dir="rtl"] .hero__rosette svg { animation-direction: reverse; }
.hero__rosette :is(path, circle) { fill: none; stroke: currentColor; stroke-width: .32; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: var(--o, .4);
  animation: draw 3.4s var(--ease-io) forwards; animation-delay: calc(var(--d) * 110ms + var(--hd, 0ms)); }
.hero__rosette .r-teal { color: var(--c-primary); stroke: var(--c-primary); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { rotate: 360deg; } }
.hero__dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s;
  background: radial-gradient(560px circle at var(--hx, 70%) var(--hy, 30%), color-mix(in srgb, var(--c-accent) 22%, transparent), transparent 60%); }
.hero:hover .hero__glow { opacity: 1; }

/* Séquence d'entrée */
.js .hero-seq [data-seq] { opacity: 0; transform: translateY(26px); filter: blur(8px);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: var(--sd, 0ms); }
.js .hero-seq.is-go [data-seq] { opacity: 1; transform: none; filter: none; }
.js .hero-seq .hero__visual[data-seq] { transform: translateY(40px) scale(.96); }
.js .hero-seq.is-go .hero__visual[data-seq] { transform: none; }
.js .hero-seq .collage__item { opacity: 0; scale: .82; transition: opacity 1.1s var(--ease-out), scale 1.6s var(--ease-out), translate .6s var(--ease-out); }
.js .hero-seq .collage__item:nth-child(2) { transition-delay: .18s; } .js .hero-seq .collage__item:nth-child(3) { transition-delay: .32s; }
.js .hero-seq.is-go .collage__item { opacity: 1; scale: 1; }
.js .hero-seq .collage__item :is(img, video) { scale: 1.3; transition: scale 2.4s var(--ease-out) .1s; }
.js .hero-seq.is-go .collage__item :is(img, video) { scale: 1; }
.js .hero-seq .collage__logo-card, .js .hero-seq .collage__badge { opacity: 0; scale: .6; transition: opacity .8s var(--ease-out) .9s, scale 1s cubic-bezier(.34, 1.56, .64, 1) .9s, translate .6s var(--ease-out); }
.js .hero-seq .collage__badge { transition-delay: 1.1s; }
.js .hero-seq.is-go :is(.collage__logo-card, .collage__badge) { opacity: 1; scale: 1; }

/* Relief du collage et défilement */
.hero__visual .collage { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 1s var(--ease-out); }
.hero-seq.is-go .hero__content { translate: 0 calc(var(--hs, 0) * .16px); opacity: calc(1 - var(--hs, 0) / 1100); }
.hero-seq.is-go .hero__visual { translate: 0 calc(var(--hs, 0) * -.06px); }
.collage__badge { overflow: visible; }
.collage__badge::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--c-accent); opacity: 0; animation: ring 2.8s ease-out 3s infinite; pointer-events: none; }
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.14, 1.4); } }
.collage__item { box-shadow: 0 40px 80px -36px rgba(var(--c-navy-rgb), .6), 0 0 0 1px color-mix(in srgb, var(--c-accent) 30%, transparent); }

/* ---------------------------------------------------------- en-tête des pages intérieures (même scène que l'accueil) */
.phead { isolation: isolate; }
.phead__grid { z-index: 2; }
.phead .hero__rosette { width: min(70vw, 820px); inset-inline-end: -10%; }
.phead--simple .hero__rosette, .phead:not(.phead--media) .hero__rosette { width: min(90vw, 760px); inset-inline-end: -18%; }
.stage:hover .hero__glow { opacity: 1; }
.hero-seq.is-go :is(.phead__text, .sp-hero__text, .mbr-hero__text) { translate: 0 calc(var(--hs, 0) * .14px); opacity: calc(1 - var(--hs, 0) / 700); }
.stage .tilt3d { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 1s var(--ease-out), opacity 1.1s var(--ease-out), filter 1.1s var(--ease-out); }
.phead .phead__media.tilt3d { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(1.5deg); }
/* L'entrée passe par translate/scale pour laisser transform au relief */
.js .hero-seq .tilt3d[data-seq], .js .hero-seq.is-go .tilt3d[data-seq] { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .hero-seq .phead__media.tilt3d[data-seq], .js .hero-seq.is-go .phead__media.tilt3d[data-seq] { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(1.5deg); }
.js .hero-seq .tilt3d[data-seq] { translate: 0 34px; scale: .92;
  transition: transform 1s var(--ease-out), opacity 1.1s var(--ease-out) var(--sd), filter 1.1s var(--ease-out) var(--sd), translate 1.3s var(--ease-out) var(--sd), scale 1.5s var(--ease-out) var(--sd); }
.js .hero-seq.is-go .tilt3d[data-seq] { translate: none; scale: 1; }
.phead__wall { background: var(--gold-grad); background-size: 220% 100%; animation: sheen 8s linear infinite; height: 4px; }
.phead__wall::before { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 12px; background: var(--zellige) repeat-x 0 0 / 24px 12px; opacity: .55; }
.crumbs a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); text-decoration: none; }
.crumbs a:hover { background-size: 100% 1px; }

/* ---------------------------------------------------------- boutique et espace membres */
.sp-hero, .mbr-hero, .mbr-auth { isolation: isolate; }
.mbr-auth { overflow: clip; }
:is(.sp-hero__grid, .mbr-hero__in, .mbr-auth__grid) { position: relative; z-index: 2; }
.sp-hero .hero__rosette { width: min(76vw, 900px); }
.mbr-hero .hero__rosette { width: min(64vw, 680px); inset-inline-end: -8%; }
.mbr-auth .hero__rosette { width: min(90vw, 1000px); inset-inline-start: -30%; inset-inline-end: auto; opacity: .8; }
.sp-hero__bg span { animation: spDrift 14s ease-in-out infinite alternate; }
.sp-hero__bg span:nth-child(2) { animation-duration: 18s; } .sp-hero__bg span:nth-child(3) { animation-duration: 9s; }
@keyframes spDrift { to { translate: 0 18px; rotate: 14deg; } }
.sp-hero__card--main { box-shadow: 0 50px 90px -40px rgba(var(--c-navy-rgb), .65), 0 0 0 1px color-mix(in srgb, var(--c-accent) 35%, transparent); }
/* La séquence d'entrée ne doit pas écraser l'animation flottante des puces */
.js .hero-seq .sp-hero__chip { opacity: 0; scale: .6; transition: opacity .8s var(--ease-out) 1s, scale 1s cubic-bezier(.34, 1.56, .64, 1) 1s; }
.js .hero-seq .sp-hero__chip--b { transition-delay: 1.2s; }
.js .hero-seq.is-go .sp-hero__chip { opacity: 1; scale: 1; }
.mbr-auth__card { position: relative; box-shadow: 0 40px 90px -50px rgba(var(--c-navy-rgb), .6), 0 0 0 1px color-mix(in srgb, var(--c-accent) 22%, transparent); }
.mbr-auth__card::before { content: ""; position: absolute; inset-inline: 22%; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold-grad); background-size: 220% 100%; animation: sheen 6s linear infinite; }
.mbr-auth__card :is(input, select, textarea):focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 22%, transparent); border-color: var(--c-accent); transition: box-shadow .3s, border-color .3s; }
.mbr-hero__in > :first-child:not(.mbr-hero__text) { box-shadow: 0 0 0 4px #fff, 0 0 0 6px color-mix(in srgb, var(--c-accent) 70%, transparent), 0 24px 50px -24px rgba(var(--c-navy-rgb), .6); border-radius: 50%; }
.mbr-side__link { transition: background .3s, color .3s, translate .4s var(--ease-out); }
.mbr-side__link:hover { translate: 6px 0; }
[dir="rtl"] .mbr-side__link:hover { translate: -6px 0; }
.mbr-side__link.is-active { box-shadow: inset 3px 0 0 var(--c-accent); }
[dir="rtl"] .mbr-side__link.is-active { box-shadow: inset -3px 0 0 var(--c-accent); }
.mbr-stats > * { position: relative; transition: rotate .6s var(--ease-out), transform .6s var(--ease-out), box-shadow .4s; }
.sp-phead { position: relative; overflow: hidden; }
.sp-phead::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold-grad); background-size: 220% 100%; animation: sheen 8s linear infinite; opacity: .7; }
.sp-card__img { overflow: hidden; }
.sp-card { transition: translate .6s var(--ease-out); }
.sp-card:hover { translate: 0 -6px; }
.sp-totals__grand, .sp-pdp__price { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
.sp-steps .is-current span, .sp-step.is-current .sp-step__n { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 30%, transparent); }
.sp-paycard, .sp-option, .sp-summary, .sp-card-box, .mbr-panel { transition: box-shadow .4s var(--ease-out), border-color .3s; }
.sp-paycard:hover, .sp-option:hover, .sp-card-box:hover, .mbr-panel:hover { box-shadow: 0 30px 60px -44px rgba(var(--c-navy-rgb), .55); }
.sp-paycard:has(input:checked), .sp-option:has(input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 25%, transparent); }

/* ---------------------------------------------------------- cartes en relief */
.feats, .levels, .campuses, .fees, .docs, .values, .x-counters, .extras, .grid, .ccards, .infos, .goals, .contact__info,
.sp-cats, .sp-grid, .mbr-cards, .mbr-stats, .x-products, .x-shopcats, .x-pricing, .x-team, .x-ib, .x-tl { perspective: 1600px; }
.feat, .level, .campus, .fee, .doc, .value, .extra, .album, .pcard, .testi, .ccard, .info, .goal, .letter,
.sp-cat, .mbr-card, .mbr-teaser, .x-product, .x-shopcat, .x-plan, .x-member, .x-ib__item, .x-tl__card, .x-quote {
  transition: opacity .9s var(--ease-out), transform .8s var(--ease-out), rotate .6s var(--ease-out), box-shadow .5s var(--ease-out), border-color .35s, background .35s;
  will-change: transform; }
.js .feat.reveal:not(.is-in), .js .level.reveal:not(.is-in), .js .campus.reveal:not(.is-in), .js .fee.reveal:not(.is-in), .js .doc.reveal:not(.is-in) { transform: translateY(46px) scale(.97); }
.reveal { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal--d1 { transition-delay: .1s; } .reveal--d2 { transition-delay: .2s; } .reveal--d3 { transition-delay: .3s; }
.js :is(.album, .pcard, .testi, .info, .goal).reveal:not(.is-in) { transform: translateY(40px) scale(.97); }
.album, .pcard, .testi, .ccard, .info, .goal, .letter { position: relative; }
.pcard, .album, .testi { box-shadow: 0 22px 50px -34px rgba(var(--c-navy-rgb), .55), 0 0 0 1px color-mix(in srgb, var(--c-accent) 18%, transparent); }
.pcard:hover, .album:hover, .testi:hover { box-shadow: 0 40px 80px -40px rgba(var(--c-navy-rgb), .6), 0 0 0 1px color-mix(in srgb, var(--c-accent) 45%, transparent); }
.testi::before { content: "\201C"; position: absolute; inset-inline-end: 22px; top: 4px; font: 800 5rem/1 Georgia, serif; color: var(--c-accent); opacity: .18; pointer-events: none; }
.faq__item[open] { box-shadow: 0 24px 50px -36px rgba(var(--c-navy-rgb), .5); border-color: color-mix(in srgb, var(--c-accent) 55%, var(--c-line)); }
.faq__item summary::marker { content: ""; }
.prose blockquote { border-inline-start: 3px solid var(--c-accent); background: linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 10%, transparent), transparent); }
.is-tilt { z-index: 2; }
.glare { position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.42), rgba(255,255,255,0) 42%); mix-blend-mode: soft-light; }
.is-tilt > .glare { opacity: 1; }
.value { position: relative; overflow: hidden; }
.value::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); translate: -120% 0; transition: translate 1s var(--ease-out); pointer-events: none; }
.value:hover::after { translate: 120% 0; }
.value__icon { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.value:hover .value__icon { transform: rotate(-8deg) scale(1.12); }

/* ---------------------------------------------------------- images dévoilées */
.js .curtain { clip-path: inset(14% 10% 14% 10% round 28px); scale: 1.22; transition: clip-path 1.5s var(--ease-out), scale 2s var(--ease-out); }
.js .curtain.is-in { clip-path: inset(0 0 0 0 round 0); scale: 1; }

/* ---------------------------------------------------------- tarifs */
.fee__amount { font-variant-numeric: tabular-nums; }
.fee__total { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }
.fee__total small { -webkit-text-fill-color: var(--c-muted); }
.fee tbody tr { transition: background .3s; }
.fee tbody tr:hover { background: color-mix(in srgb, var(--c-accent) 9%, transparent); }

/* ---------------------------------------------------------- boutons */
.btn, .campus__tel, .phone { transition: transform .25s var(--ease-out), translate .45s var(--ease-out), box-shadow .3s, background .25s, color .25s; }
.btn--primary::before, .btn--secondary::before, .btn--gold::before { transition: transform .9s var(--ease-out); }
.btn > *, .btn > .ic { position: relative; }

/* ---------------------------------------------------------- curseur doré (souris uniquement) */
.cursor { position: fixed; z-index: 9999; top: 0; left: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; pointer-events: none;
  border: 1.5px solid color-mix(in srgb, var(--c-accent) 85%, transparent); opacity: 0; transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s, border-color .35s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--c-accent) 14%, transparent); border-color: transparent; }
.cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-text { width: 4px; height: 30px; margin: -15px 0 0 -2px; border-radius: 3px; background: var(--c-accent); border-color: transparent; opacity: .5; }

/* ---------------------------------------------------------- pied de page */
.ribbon { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid rgba(255,255,255,.08);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon__track { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); width: max-content; animation: ribbon 60s linear infinite; }
.ribbon__item { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.5rem, .9rem + 2.4vw, 3.1rem); line-height: 1.15; white-space: nowrap; letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.ribbon__item--gold { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; animation: sheen 7s linear infinite; }
.ribbon__item[lang="ar"] { font-family: 'Tajawal', 'El Messiri', sans-serif; letter-spacing: 0; -webkit-text-stroke: 0; color: rgba(255,255,255,.88); }
.ribbon__item--gold[lang="ar"] { color: transparent; }
.ribbon__star { flex: none; width: clamp(16px, 1.6vw, 24px); height: auto; color: var(--c-accent); animation: spin 12s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.ribbon--band { background: var(--c-navy); border-bottom: 0; mask-image: none; -webkit-mask-image: none; }
.ribbon--band::before, .ribbon--band::after { content: ""; position: absolute; inset-block: 0; z-index: 1; width: 12%; pointer-events: none; }
.ribbon--band::before { left: 0; background: linear-gradient(90deg, var(--c-navy), transparent); }
.ribbon--band::after { right: 0; background: linear-gradient(-90deg, var(--c-navy), transparent); }
.ribbon .mali__flag { width: clamp(30px, 2.6vw, 42px); height: clamp(20px, 1.75vw, 28px); border-radius: 4px; flex: none; }
.mali { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 10px; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255,255,255,.2); }
.mali__flag { display: inline-flex; width: 21px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.mali__flag i { flex: 1; } .mali__flag i:nth-child(1) { background: #14B53A; } .mali__flag i:nth-child(2) { background: #FCD116; } .mali__flag i:nth-child(3) { background: #CE1126; }
[dir="rtl"] .mali__flag { flex-direction: row-reverse; }

/* ---------------------------------------------------------- accessibilité / impression */
@media (prefers-reduced-motion: reduce) {
  .hero__rosette, .hero__dust, .hero__glow, .cursor, .intro-veil { display: none !important; }
  .ribbon__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .curtain, .sw > span, [data-seq], .collage__item, .collage__item :is(img, video) { clip-path: none !important; scale: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
}
@media print { .intro-veil, .hero__rosette, .hero__dust, .hero__glow, .cursor, .ribbon { display: none !important; } .sw > span, [data-seq], .curtain { opacity: 1 !important; transform: none !important; clip-path: none !important; scale: none !important; filter: none !important; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (max-width: 959px) { .hero__rosette { inset-inline-end: -40%; top: 26%; width: 130vw; opacity: .7; } }
