/* =====================================================================
   Al Andalus — en-tête et pied de page premium (couche « chrome »)
   Espace de noms : .ah-* (header), .af-* (footer). Propriétés logiques → RTL natif.
   ===================================================================== */
:root {
  --ah-deep: color-mix(in srgb, var(--c-navy) 78%, #000);
  --ah-ink: var(--c-navy);
  --ah-gold: var(--c-accent);
  --ah-gold-2: color-mix(in srgb, var(--c-accent) 55%, #fff);
  --ah-gold-grad: linear-gradient(110deg, #9C6F1E 0%, var(--c-accent) 28%, #F3D898 50%, var(--c-accent) 72%, #9C6F1E 100%);
  --ah-green-grad: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 85%, #1fa36a) 0%, var(--c-primary) 45%, var(--c-primary-dark) 100%);
  --ah-ease: cubic-bezier(.22, 1, .36, 1);
  --ah-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ah-h: 74px;
  --af-bg: color-mix(in srgb, var(--c-navy) 70%, #030a1c);
}
/* Remplace l'ancienne barre de progression (site.js) : le header a la sienne */
.progress { display: none !important; }
.flag { display: block; width: 100%; height: 100%; border-radius: 3px; }

@keyframes ah-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 120, .65); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 120, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 120, 0); } }
@keyframes ah-sheen { to { background-position: -220% 0; } }
@keyframes ah-spin { to { transform: rotate(360deg); } }
@keyframes ah-border { to { --ah-angle: 360deg; } }
@keyframes ah-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4%, -6%, 0) scale(1.08); } }
@keyframes ah-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@property --ah-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.ah-pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34D378; animation: ah-pulse 2s infinite; }

/* ---------------------------------------------------------------- barre d'infos */
.ah-top { display: none; position: relative; z-index: 61; color: rgba(255,255,255,.82); font-size: .82rem;
  background:
    radial-gradient(600px 80px at 12% 0%, color-mix(in srgb, var(--c-primary) 55%, transparent), transparent 70%),
    radial-gradient(500px 80px at 90% 100%, color-mix(in srgb, var(--ah-gold) 22%, transparent), transparent 70%),
    var(--ah-deep); }
.ah-top::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ah-gold) 70%, transparent), transparent); }
.ah-top__in { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.ah-top .ic { width: 15px; height: 15px; color: var(--ah-gold-2); flex: none; }
.ah-top__season { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 10px; border-radius: 999px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .3s, border-color .3s; }
.ah-top__season strong { font-weight: 800; background: var(--ah-gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ah-sheen 6s linear infinite; }
.ah-top__season:hover { background: rgba(255,255,255,.13); border-color: color-mix(in srgb, var(--ah-gold) 60%, transparent); color: #fff; }
.ah-top__go { transition: transform .3s var(--ah-ease); }
.ah-top__season:hover .ah-top__go { transform: translateX(3px); }
[dir="rtl"] .ah-top__season:hover .ah-top__go { transform: translateX(-3px) scaleX(-1); }
.ah-top__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.ah-top__addr { margin: 0; display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-top__right { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.ah-top__tel { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 700; transition: color .2s; }
.ah-top__tel:hover { color: var(--ah-gold-2); }
.ah-top__lbl { font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
[dir="rtl"] .ah-top__lbl { letter-spacing: 0; font-size: .8rem; }
.ah-top__soc { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ah-top__soc a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; background: rgba(255,255,255,.08); transition: background .2s, transform .3s var(--ah-spring); }
.ah-top__soc a:hover { background: var(--ah-gold); transform: translateY(-2px); }
.ah-top__soc a:hover .ic { color: var(--ah-deep); }
@media (min-width: 1100px) { .ah-top { display: block; } }
@media (max-width: 1280px) { .ah-top__addr { display: none; } }

/* ---------------------------------------------------------------- en-tête : îlot de verre */
.ah { position: sticky; top: 0; z-index: 60; padding-block: 10px 0; pointer-events: none; transition: transform .55s var(--ah-ease); }
.ah.is-away { transform: translateY(calc(-100% - 12px)); }
.ah__shell { width: min(100% - 24px, 1360px); margin-inline: auto; pointer-events: auto; transition: width .5s var(--ah-ease); }
.ah__island { position: relative; display: flex; align-items: center; gap: 14px; min-height: var(--ah-h); padding: 8px 10px; padding-inline-start: 18px;
  border-radius: 24px; background: rgba(255,255,255,.78); isolation: isolate;
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(var(--c-navy-rgb), .07), 0 18px 40px -26px rgba(var(--c-navy-rgb), .45);
  transition: min-height .45s var(--ah-ease), border-radius .45s var(--ah-ease), box-shadow .4s, background .4s; }
/* Liseré doré animé (bordure conique) */
.ah__island::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from var(--ah-angle), transparent 0 62%, color-mix(in srgb, var(--ah-gold) 85%, #fff) 74%, var(--c-primary) 84%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ah-border 7s linear infinite; opacity: .9; }
.ah__glow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ah__glow::before { content: ""; position: absolute; width: 340px; height: 340px; top: -170px; inset-inline-start: var(--gx, 20%); translate: -50% 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--ah-gold) 22%, transparent), transparent 65%); transition: inset-inline-start .25s linear; }
.ah.is-scrolled .ah__island { --ah-h: 62px; background: rgba(255,255,255,.88); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(var(--c-navy-rgb), .08), 0 24px 50px -24px rgba(var(--c-navy-rgb), .5); }

/* Progression de lecture intégrée à l'îlot */
.ah__progress { position: absolute; inset-inline: 22px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.ah__progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--c-primary), var(--ah-gold), #F3D898); box-shadow: 0 0 12px var(--ah-gold); }
[dir="rtl"] .ah__progress i { transform-origin: 100% 50%; }

/* ---------------------------------------------------------------- marque */
.ah-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; flex: none; text-decoration: none; color: var(--ah-ink); }
.ah-brand__mark { position: relative; display: grid; place-items: center; flex: none; }
.ah-brand__mark img { width: 54px; height: auto; filter: drop-shadow(0 6px 12px rgba(13, 110, 123, .22)); transition: transform .5s var(--ah-spring), width .45s var(--ah-ease); }
.ah-brand:hover .ah-brand__mark img { transform: rotate(-5deg) scale(1.07); }
.ah-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ah-brand__name { display: flex; align-items: baseline; gap: 8px; line-height: 1.05; }
.ah-brand__lat { font-family: 'Montserrat', var(--f-head); font-weight: 800; font-size: 1.28rem; letter-spacing: .05em; color: var(--ah-ink); }
.ah-brand__sep { width: 1.5px; height: .95em; align-self: center; background: linear-gradient(var(--ah-gold), var(--c-primary)); border-radius: 2px; }
.ah-brand__ar { font-family: 'El Messiri', 'Tajawal', serif; font-weight: 700; font-size: 1.3rem; color: var(--c-primary); }
.ah-brand__tag { margin-top: 4px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30ch; transition: opacity .3s, max-height .4s; max-height: 2em; }
[dir="rtl"] .ah-brand__tag { letter-spacing: 0; font-size: .78rem; }
.ah.is-scrolled .ah-brand__mark img { width: 46px; }
.ah.is-scrolled .ah-brand__tag { opacity: 0; max-height: 0; margin-top: 0; }

/* ---------------------------------------------------------------- navigation (bureau) */
.ah-nav { display: none; position: relative; margin-inline: auto; }
.ah-nav__list { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ah-nav__ink { position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; border-radius: 14px; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 10%, #fff), color-mix(in srgb, var(--ah-gold) 14%, #fff));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-primary) 14%, transparent) inset;
  transition: transform .45s var(--ah-ease), width .45s var(--ah-ease), opacity .3s; }
.ah-nav__ink.is-on { opacity: 1; }
.ah-nav__item { position: relative; }
.ah-nav__link { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 11px 14px; border: 0; border-radius: 14px; background: none; cursor: pointer;
  font: 700 .95rem/1 var(--f-head); color: var(--ah-ink); text-decoration: none; white-space: nowrap; transition: color .25s; }
[dir="rtl"] .ah-nav__link { font-family: var(--f-head-ar); font-size: 1.04rem; }
.ah-nav__link::after { content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--ah-gold-grad); background-size: 220% 100%;
  transform: scaleX(0); transition: transform .45s var(--ah-ease); }
.ah-nav__item.is-active > .ah-nav__link { color: var(--c-primary-dark); }
.ah-nav__item.is-active > .ah-nav__link::after { transform: scaleX(1); animation: ah-sheen 5s linear infinite; }
.ah-nav__link:hover, .ah-nav__item.is-open > .ah-nav__link { color: var(--c-primary-dark); }
.ah-nav__link:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 2px; }
.ah-nav__chev { width: 15px; height: 15px; opacity: .55; transition: transform .4s var(--ah-spring), opacity .2s; }
.ah-nav__item.is-open .ah-nav__chev { transform: rotate(180deg); opacity: 1; }

/* Méga-menu */
.ah-mega { position: absolute; top: calc(100% + 18px); inset-inline-start: 50%; translate: -50% 0; z-index: 5; width: max-content; max-width: min(660px, 90vw);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: 50% 0; pointer-events: none;
  transition: opacity .3s var(--ah-ease), transform .45s var(--ah-ease), visibility 0s .3s; }
[dir="rtl"] .ah-mega { translate: 50% 0; }
.ah-mega::before { content: ""; position: absolute; inset-inline: 0; top: -20px; height: 20px; }
.ah-nav__item.is-open .ah-mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.ah-mega__in { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 26px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(var(--c-navy-rgb), .07), 0 40px 80px -30px rgba(var(--c-navy-rgb), .55), 0 12px 24px -16px rgba(var(--c-navy-rgb), .25); }
.ah-mega__intro { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 20px; color: #fff;
  background: radial-gradient(220px 160px at 100% 0%, color-mix(in srgb, var(--ah-gold) 45%, transparent), transparent 70%), var(--ah-green-grad); }
[dir="rtl"] .ah-mega__intro { background: radial-gradient(220px 160px at 0% 0%, color-mix(in srgb, var(--ah-gold) 45%, transparent), transparent 70%), var(--ah-green-grad); }
.ah-mega__badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); margin-bottom: 8px; }
.ah-mega__badge .ic { width: 22px; height: 22px; }
.ah-mega__eyebrow { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #F3D898; }
[dir="rtl"] .ah-mega__eyebrow { letter-spacing: 0; font-size: .85rem; }
.ah-mega__title { margin: 0; font: 800 1.25rem/1.15 var(--f-head); }
[dir="rtl"] .ah-mega__title { font-family: var(--f-head-ar); font-size: 1.4rem; }
.ah-mega__all { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; }
.ah-mega__all .ic { transition: transform .35s var(--ah-spring); }
.ah-mega__all:hover { color: #F3D898; }
.ah-mega__all:hover .ic { transform: translateX(4px); }
[dir="rtl"] .ah-mega__all:hover .ic { transform: translateX(-4px) scaleX(-1); }
.ah-mega__star { position: absolute; width: 120px; height: 120px; inset-inline-end: -36px; bottom: -36px; fill: rgba(255,255,255,.08); animation: ah-spin 30s linear infinite; }
.ah-mega__grid { list-style: none; margin: 0; padding: 4px; display: grid; gap: 4px; align-content: center; min-width: 290px; }
.ah-mega__grid li { opacity: 0; transform: translateY(8px); }
.ah-nav__item.is-open .ah-mega__grid li { animation: ah-in .5s var(--ah-ease) forwards; animation-delay: calc(var(--k) * 55ms + 60ms); }
.ah-mega__card { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; color: var(--c-text); text-decoration: none; font-weight: 700;
  transition: background .25s, transform .35s var(--ah-ease); }
.ah-mega__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--c-primary); background: var(--c-primary-soft);
  transition: background .3s, color .3s, transform .45s var(--ah-spring); }
.ah-mega__lbl { flex: 1; line-height: 1.3; }
.ah-mega__go { width: 16px; height: 16px; color: var(--ah-gold); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ah-ease); }
[dir="rtl"] .ah-mega__go { transform: translateX(6px) scaleX(-1); }
.ah-mega__card:hover, .ah-mega__card:focus-visible, .ah-mega__card.is-active { background: linear-gradient(90deg, var(--c-surface-alt), color-mix(in srgb, var(--ah-gold) 8%, #fff)); }
.ah-mega__card:hover .ah-mega__ic, .ah-mega__card.is-active .ah-mega__ic { background: var(--c-primary); color: #fff; transform: rotate(-8deg) scale(1.06); }
.ah-mega__card:hover .ah-mega__go, .ah-mega__card:focus-visible .ah-mega__go { opacity: 1; transform: none; }
[dir="rtl"] .ah-mega__card:hover .ah-mega__go { transform: scaleX(-1); }
.ah-mega__card:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 1px; }

/* ---------------------------------------------------------------- actions */
.ah__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.ah__actions .mbr-acc__login, .ah__actions .mbr-acc__btn, .ah__actions .sp-hbtn { border-radius: 14px; }

/* Sélecteur de langues */
.ah-lang { position: relative; }
.ah-lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding-inline: 8px 10px; border-radius: 15px; cursor: pointer;
  border: 1px solid rgba(var(--c-navy-rgb), .1); background: rgba(255,255,255,.7); color: var(--ah-ink); font: 800 .82rem/1 var(--f-head); letter-spacing: .06em;
  transition: border-color .25s, box-shadow .3s, background .25s; }
.ah-lang__btn:hover, .ah-lang.is-open .ah-lang__btn { border-color: color-mix(in srgb, var(--ah-gold) 70%, transparent); background: #fff; box-shadow: 0 8px 20px -12px rgba(var(--c-navy-rgb), .45); }
.ah-lang__flag { display: block; width: 28px; height: 19px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 3px 8px -3px rgba(0,0,0,.35); transition: transform .45s var(--ah-spring); }
.ah-lang__btn:hover .ah-lang__flag { transform: rotate(-6deg) scale(1.1); }
.ah-lang__chev { width: 14px; height: 14px; opacity: .55; transition: transform .4s var(--ah-spring); }
.ah-lang.is-open .ah-lang__chev { transform: rotate(180deg); }
.ah-lang__menu { position: absolute; top: calc(100% + 14px); inset-inline-end: 0; z-index: 6; width: 290px; padding: 8px; border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(var(--c-navy-rgb), .07), 0 40px 70px -30px rgba(var(--c-navy-rgb), .55);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: 90% 0;
  transition: opacity .25s var(--ah-ease), transform .4s var(--ah-ease), visibility 0s .25s; }
[dir="rtl"] .ah-lang__menu { transform-origin: 10% 0; }
.ah-lang.is-open .ah-lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ah-lang__title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px 8px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
[dir="rtl"] .ah-lang__title { letter-spacing: 0; font-size: .85rem; }
.ah-lang__title .ic { width: 15px; height: 15px; color: var(--ah-gold); }
.ah-lang__menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.ah-lang__opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; color: var(--c-text); text-decoration: none; transition: background .25s; }
.ah-lang__opt:hover, .ah-lang__opt:focus-visible { background: var(--c-surface-alt); }
.ah-lang__opt:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 1px; }
.ah-lang__big { flex: none; width: 44px; height: 30px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 8px 16px -8px rgba(0,0,0,.45); transition: transform .45s var(--ah-spring); }
.ah-lang__opt:hover .ah-lang__big { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.ah-lang__names { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ah-lang__native { font-weight: 800; font-size: 1rem; color: var(--ah-ink); }
.ah-lang__native[lang="ar"] { font-family: 'Tajawal', 'El Messiri', sans-serif; font-size: 1.08rem; text-align: start; }
.ah-lang__tr { font-size: .78rem; color: var(--c-muted); }
.ah-lang__check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--c-primary); transform: scale(0); transition: transform .4s var(--ah-spring); }
.ah-lang__check .ic { width: 13px; height: 13px; }
.ah-lang__opt.is-current { background: linear-gradient(90deg, var(--c-primary-soft), color-mix(in srgb, var(--ah-gold) 10%, #fff)); }
.ah-lang__opt.is-current .ah-lang__check { transform: scale(1); }

/* Bouton d'appel à l'action */
.ah-cta { position: relative; overflow: hidden; isolation: isolate; display: none; align-items: center; gap: 8px; height: 46px; padding-inline: 20px; border-radius: 15px;
  color: #fff; text-decoration: none; font: 800 .9rem/1 var(--f-head); white-space: nowrap; background: var(--ah-green-grad);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 26px -12px color-mix(in srgb, var(--c-primary) 80%, transparent);
  transition: transform .4s var(--ah-spring), box-shadow .3s; }
[dir="rtl"] .ah-cta { font-family: var(--f-head-ar); font-size: 1rem; }
.ah-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ah-gold-grad); background-size: 220% 100%; opacity: 0; transition: opacity .35s; animation: ah-sheen 4s linear infinite; }
.ah-cta .ic { width: 17px; height: 17px; transition: transform .45s var(--ah-spring); }
.ah-cta:hover { color: var(--ah-deep); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 32px -14px color-mix(in srgb, var(--ah-gold) 90%, transparent); }
.ah-cta:hover::after { opacity: 1; }
.ah-cta:hover .ic { transform: rotate(-10deg) scale(1.12); }
.ah-cta__shine { position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: 1; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: ah-shine 4.5s var(--ah-ease) infinite; }
@keyframes ah-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ah-cta--block { display: flex; justify-content: center; width: 100%; height: 54px; font-size: 1rem; border-radius: 18px; }
@media (min-width: 640px) { .ah__actions > .ah-cta { display: inline-flex; } }

/* Burger */
.ah-burger { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding-inline: 12px 14px; border-radius: 15px; cursor: pointer;
  border: 0; background: var(--ah-ink); color: #fff; font: 800 .82rem/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 22px -12px rgba(var(--c-navy-rgb), .8); transition: transform .35s var(--ah-spring), background .3s; }
[dir="rtl"] .ah-burger { letter-spacing: 0; font-family: var(--f-head-ar); font-size: .95rem; text-transform: none; }
.ah-burger:hover { transform: translateY(-2px); background: var(--c-primary-dark); }
.ah-burger__lines { display: grid; gap: 4px; width: 20px; }
.ah-burger__lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ah-spring), width .35s var(--ah-ease), opacity .2s; }
.ah-burger__lines i:nth-child(2) { width: 70%; margin-inline-start: auto; }
.ah-burger__lines i:nth-child(3) { width: 45%; margin-inline-start: auto; }
.ah-burger:hover .ah-burger__lines i { width: 100%; }
.ah-burger[aria-expanded="true"] .ah-burger__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ah-burger[aria-expanded="true"] .ah-burger__lines i:nth-child(2) { opacity: 0; }
.ah-burger[aria-expanded="true"] .ah-burger__lines i:nth-child(3) { width: 100%; transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1300px) {
  .ah-nav { display: block; }
  .ah-burger { display: none; }
}
/* Bureau serré : la marque, la langue et les liens se compactent pour tout garder sur une ligne */
@media (min-width: 1300px) and (max-width: 1599px) {
  .ah-brand__tag { display: none; }
  .ah-brand__mark img { width: 46px; }
  .ah-brand__lat, .ah-brand__ar { font-size: 1.12rem; }
  .ah-brand__lat { letter-spacing: .03em; }
  .ah__island { gap: 10px; padding-inline-start: 14px; }
  .ah-nav__list { gap: 0; }
  .ah-nav__link { padding-inline: 10px; font-size: .9rem; gap: 3px; }
  .ah-nav__link::after { inset-inline: 10px; }
  .ah-nav__chev { width: 13px; height: 13px; }
  [dir="rtl"] .ah-nav__link { font-size: .98rem; }
  .ah-lang__code { display: none; }
  .ah-cta { padding-inline: 16px; font-size: .86rem; }
}
@media (min-width: 1300px) and (max-width: 1439px) {
  .ah-nav__link { padding-inline: 8px; font-size: .87rem; }
  .ah-cta .ic { display: none; }
  .ah:has(.ah__actions > :nth-child(4)) .ah-brand__ar, .ah:has(.ah__actions > :nth-child(4)) .ah-brand__sep { display: none; }
}
@media (max-width: 640px) {
  .ah { padding-top: 8px; }
  .ah__shell { width: calc(100% - 16px); }
  .ah__island { --ah-h: 62px; gap: 8px; padding: 6px; padding-inline-start: 12px; border-radius: 20px; }
  .ah-brand { gap: 8px; }
  .ah-brand__mark img { width: 42px; }
  .ah-brand__lat, .ah-brand__ar { font-size: 1.02rem; }
  .ah-brand__name { gap: 6px; }
  .ah-brand__tag { display: none; }
  .ah-lang__btn { height: 44px; padding-inline: 7px; gap: 5px; }
  .ah-lang__code, .ah-lang__chev { display: none; }
  .ah-burger { height: 44px; padding-inline: 11px; }
  .ah-burger__txt { display: none; }
  .ah__actions { gap: 6px; }
  .ah-lang__menu { position: fixed; top: 84px; inset-inline: 12px; width: auto; }
}
@media (max-width: 400px) { .ah-brand__ar, .ah-brand__sep { display: none; } }
@media (max-width: 440px) { .ah:has(.ah__actions > :nth-child(4)) .ah-brand__ar, .ah:has(.ah__actions > :nth-child(4)) .ah-brand__sep { display: none; } }

/* ---------------------------------------------------------------- tiroir mobile */
.ah-drawer { position: fixed; inset: 0; z-index: 120; }
.ah-drawer[hidden] { display: none; }
.ah-drawer__veil { position: absolute; inset: 0; background: rgba(5, 14, 34, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ah-ease); }
.ah-drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 18px; padding: 16px 18px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(420px 260px at 100% 0%, color-mix(in srgb, var(--ah-gold) 16%, transparent), transparent 70%),
    radial-gradient(420px 300px at 0% 100%, color-mix(in srgb, var(--c-primary) 14%, transparent), transparent 70%),
    var(--c-surface);
  clip-path: circle(0 at calc(100% - 44px) 44px); transition: clip-path .7s var(--ah-ease); }
[dir="rtl"] .ah-drawer__panel { clip-path: circle(0 at 44px 44px); }
.ah-drawer.is-open .ah-drawer__veil { opacity: 1; }
.ah-drawer.is-open .ah-drawer__panel { clip-path: circle(150% at calc(100% - 44px) 44px); }
[dir="rtl"] .ah-drawer.is-open .ah-drawer__panel { clip-path: circle(150% at 44px 44px); }
.ah-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ah-brand--sm .ah-brand__mark img { width: 46px; }
.ah-brand--sm .ah-brand__lat, .ah-brand--sm .ah-brand__ar { font-size: 1.1rem; }
.ah-drawer__close { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 15px; background: var(--ah-ink); color: #fff; cursor: pointer; transition: transform .45s var(--ah-spring); }
.ah-drawer__close:hover { transform: rotate(90deg); }

.ah-seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 18px; background: var(--c-surface-alt); box-shadow: 0 0 0 1px var(--c-line) inset; }
.ah-seg__opt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 6px 9px; border-radius: 14px; color: var(--c-muted); text-decoration: none; font-weight: 700; font-size: .86rem; transition: background .25s, color .25s, box-shadow .3s; }
.ah-seg__opt .flag { width: 38px; height: 26px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 6px 12px -6px rgba(0,0,0,.45); transition: transform .45s var(--ah-spring); }
.ah-seg__opt span[lang="ar"] { font-family: 'Tajawal', sans-serif; font-size: .98rem; }
.ah-seg__opt:hover .flag { transform: scale(1.08) rotate(-4deg); }
.ah-seg__opt.is-current { background: #fff; color: var(--ah-ink); box-shadow: 0 8px 20px -12px rgba(var(--c-navy-rgb), .45), 0 0 0 1.5px color-mix(in srgb, var(--ah-gold) 70%, transparent); }

.ah-dnav ul { list-style: none; margin: 0; padding: 0; }
.ah-dnav > ul { display: grid; gap: 4px; }
.ah-dnav__item { opacity: 0; transform: translateX(24px); }
[dir="rtl"] .ah-dnav__item { transform: translateX(-24px); }
.ah-drawer.is-open .ah-dnav__item { animation: ah-slide .6s var(--ah-ease) forwards; animation-delay: calc(var(--n) * 50ms + 150ms); }
@keyframes ah-slide { to { opacity: 1; transform: none; } }
.ah-dnav__link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 0; border-radius: 16px; background: none; cursor: pointer; text-align: start;
  font: 800 1.12rem/1.2 var(--f-head); color: var(--ah-ink); text-decoration: none; transition: background .25s; }
[dir="rtl"] .ah-dnav__link { font-family: var(--f-head-ar); font-size: 1.22rem; }
.ah-dnav__link:hover, .ah-dnav__item.is-active > .ah-dnav__link { background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px var(--c-line); }
.ah-dnav__ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--c-primary); background: var(--c-primary-soft); transition: transform .45s var(--ah-spring), background .3s, color .3s; }
.ah-dnav__item.is-active .ah-dnav__ic, .ah-dnav__link[aria-expanded="true"] .ah-dnav__ic { background: var(--ah-green-grad); color: #fff; }
.ah-dnav__link:hover .ah-dnav__ic { transform: rotate(-8deg) scale(1.06); }
.ah-dnav__lbl { flex: 1; }
.ah-dnav__chev { width: 18px; height: 18px; color: var(--c-muted); transition: transform .4s var(--ah-spring); }
.ah-dnav__link[aria-expanded="true"] .ah-dnav__chev { transform: rotate(180deg); color: var(--ah-gold); }
.ah-dnav__sub ul { display: grid; gap: 2px; margin: 4px 0 8px; padding-inline-start: 34px; position: relative; }
.ah-dnav__sub ul::before { content: ""; position: absolute; inset-inline-start: 32px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--ah-gold), var(--c-primary)); opacity: .5; }
.ah-dnav__sub a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-inline-start: 12px; border-radius: 12px; color: var(--c-text); text-decoration: none; font-weight: 600; }
.ah-dnav__sub a .ic { width: 17px; height: 17px; color: var(--c-primary); }
.ah-dnav__sub a:hover, .ah-dnav__sub a.is-active { background: #fff; color: var(--c-primary-dark); }
.ah-dnav__sub .ah-dnav__all { color: var(--c-primary-dark); font-weight: 800; }

.ah-drawer__h { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
[dir="rtl"] .ah-drawer__h { letter-spacing: 0; font-size: .9rem; }
.ah-drawer__campuses { display: grid; gap: 8px; }
.ah-camp { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; color: var(--c-text); text-decoration: none; font-weight: 700;
  background: #fff; box-shadow: 0 0 0 1px var(--c-line), 0 10px 22px -18px rgba(var(--c-navy-rgb), .5); }
.ah-camp__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: var(--ah-ink); }
.ah-camp__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ah-camp__body strong { color: var(--ah-ink); }
.ah-camp__body a { color: var(--c-muted); text-decoration: none; font-weight: 600; font-size: .92rem; text-align: start; }
.ah-camp__body a:hover { color: var(--c-primary); }
.ah-camp__call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: var(--ah-green-grad); box-shadow: 0 10px 20px -10px var(--c-primary); }
.ah-drawer__addr { display: flex; gap: 10px; margin: 0; color: var(--c-muted); font-size: .92rem; }
.ah-drawer__addr .ic { color: var(--ah-gold); flex: none; margin-top: 3px; }
.ah-drawer__soc { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ah-drawer__soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--c-surface-alt); color: var(--ah-ink); box-shadow: 0 0 0 1px var(--c-line) inset; }
body.ah-locked { overflow: hidden; }
@media (min-width: 1300px) { .ah-drawer { display: none !important; } }

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.af.ftr { position: relative; margin-top: 0; background: transparent; color: rgba(255,255,255,.8); }
.af__arcade { display: block; width: 100%; height: 64px; margin-bottom: -1px; }
.af__arch-fill { fill: var(--af-bg); }
.af__arch-ring { stroke: var(--ah-gold); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: .55; }
.af__body { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--af-bg) 0%, color-mix(in srgb, var(--af-bg) 80%, #000) 100%); }
.af__aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.af__aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: ah-float 18s ease-in-out infinite; }
.af__aurora i:nth-child(1) { width: 520px; height: 420px; top: -120px; inset-inline-start: -140px; background: color-mix(in srgb, var(--c-primary) 85%, #1fa36a); }
.af__aurora i:nth-child(2) { width: 460px; height: 380px; top: 30%; inset-inline-end: -160px; background: color-mix(in srgb, var(--ah-gold) 60%, transparent); animation-duration: 22s; animation-direction: reverse; opacity: .35; }
.af__aurora i:nth-child(3) { width: 600px; height: 300px; bottom: -160px; left: 30%; background: #1C4AA8; animation-duration: 26s; opacity: .4; }
/* Motif géométrique andalou (étoiles à huit branches) */
.af__pattern { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M32 6 39.5 24.5 58 32 39.5 39.5 32 58 24.5 39.5 6 32 24.5 24.5Z'/%3E%3Cpath d='M13.6 13.6H50.4V50.4H13.6Z' transform='rotate(45 32 32)'/%3E%3Cpath d='M13.6 13.6H50.4V50.4H13.6Z'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }

/* Appel à l'action */
.af-cta { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 24px; align-items: center; margin-top: 28px; padding: clamp(26px, 4vw, 48px); border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 40px 80px -40px rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.af-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.4px;
  background: conic-gradient(from var(--ah-angle), transparent 0 55%, var(--ah-gold) 72%, #F3D898 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ah-border 8s linear infinite; }
.af-cta__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #F3D898; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .af-cta__eyebrow { letter-spacing: 0; font-size: .92rem; }
.af-cta__title { margin: 0; max-width: 22ch; color: #fff; font: 800 clamp(1.6rem, 1rem + 2.2vw, 2.6rem)/1.1 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
[dir="rtl"] .af-cta__title { font-family: var(--f-head-ar); letter-spacing: 0; line-height: 1.35; }
.af-cta__text { margin: 12px 0 0; max-width: 56ch; color: rgba(255,255,255,.75); }
.af-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.af-cta__star { position: absolute; z-index: -1; width: 260px; height: 260px; inset-inline-end: -70px; top: -70px; fill: none; stroke: rgba(243, 216, 152, .18); stroke-width: .25; animation: ah-spin 40s linear infinite; }
@media (min-width: 900px) { .af-cta { grid-template-columns: minmax(0, 1fr) auto; } .af-cta__btns { flex-direction: column; } }

.af-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding-inline: 26px; border-radius: 16px;
  font: 800 .98rem/1 var(--f-head); text-decoration: none; white-space: nowrap; transition: transform .4s var(--ah-spring), box-shadow .3s, background .3s; }
[dir="rtl"] .af-btn { font-family: var(--f-head-ar); font-size: 1.05rem; }
.af-btn .ic { width: 18px; height: 18px; }
.af-btn--gold { color: var(--ah-deep); background: var(--ah-gold-grad); background-size: 220% 100%; animation: ah-sheen 5s linear infinite; box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--ah-gold) 90%, transparent); }
.af-btn--glass { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }
.af-btn:hover { transform: translateY(-3px); }
.af-btn--gold:hover { color: var(--ah-deep); box-shadow: 0 22px 40px -14px color-mix(in srgb, var(--ah-gold) 100%, transparent); }
.af-btn--glass:hover { color: #fff; background: rgba(255,255,255,.16); }

/* Colonnes */
.af__grid { display: grid; gap: 40px 32px; padding-block: 64px 40px; }
@media (min-width: 700px) { .af__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .af__grid { grid-template-columns: 1.45fr .9fr 1.1fr 1.15fr; } }
.ah-brand--light .ah-brand__lat { color: #fff; }
.ah-brand--light .ah-brand__ar { color: #F3D898; }
.ah-brand--light .ah-brand__tag { color: rgba(255,255,255,.6); max-width: none; white-space: normal; }
.ah-brand--light .ah-brand__mark img { width: 60px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.af__about { margin: 20px 0 0; max-width: 44ch; color: rgba(255,255,255,.72); line-height: 1.7; }
.af__values { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.af__values li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s, background .3s; }
.af__values li:hover { border-color: color-mix(in srgb, var(--ah-gold) 60%, transparent); background: rgba(255,255,255,.1); }
.af__values .ic { width: 15px; height: 15px; color: var(--ah-gold); }
.af-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; padding: 5px; border-radius: 16px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); width: max-content; max-width: 100%; }
.af-langs__opt { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px; color: rgba(255,255,255,.7); text-decoration: none; font-weight: 700; font-size: .86rem; transition: background .25s, color .25s; }
.af-langs__opt .flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 2px 6px -2px rgba(0,0,0,.5); }
.af-langs__opt span[lang="ar"] { font-family: 'Tajawal', sans-serif; font-size: .95rem; }
.af-langs__opt:hover { color: #fff; background: rgba(255,255,255,.08); }
.af-langs__opt.is-current { color: var(--ah-deep); background: #fff; }

.af__h, .af .ftr__h { position: relative; margin: 0 0 22px; padding-bottom: 12px; color: #fff; font: 800 1.02rem/1.2 var(--f-head); letter-spacing: .02em; }
[dir="rtl"] .af__h, [dir="rtl"] .af .ftr__h { font-family: var(--f-head-ar); font-size: 1.15rem; letter-spacing: 0; }
.af__h::after, .af .ftr__h::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 2px; border-radius: 2px; background: var(--ah-gold-grad); background-size: 220% 100%; animation: ah-sheen 5s linear infinite; }
.af__links, .af .ftr__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.af__links a, .af .ftr__links a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; color: rgba(255,255,255,.74); text-decoration: none; font-weight: 600; transition: color .25s, gap .35s var(--ah-ease); }
.af .ftr__links a::before { display: none; }
.af__links .ic { width: 14px; height: 14px; color: var(--ah-gold); opacity: .5; transition: opacity .25s, transform .35s var(--ah-ease); }
.af__links a:hover, .af .ftr__links a:hover { color: #fff; gap: 12px; }
.af__links a:hover .ic { opacity: 1; }

.af-camps { display: grid; gap: 10px; }
.af-camp { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); transition: transform .45s var(--ah-ease), border-color .3s, background .3s; }
.af-camp:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ah-gold) 50%, transparent); background: rgba(255,255,255,.08); }
.af-camp__ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--ah-deep); background: var(--ah-gold-grad); background-size: 220% 100%; }
.af-camp > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.af-camp strong { color: #fff; font-size: .95rem; }
.af-camp a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.75); text-decoration: none; font-weight: 600; font-size: .9rem; width: max-content; }
.af-camp a .ic { width: 13px; height: 13px; color: var(--ah-gold); }
.af-camp a:hover { color: #F3D898; }

.af__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.af__contact li { display: flex; gap: 12px; align-items: flex-start; }
.af__contact li > span:last-child, .af__contact li > a { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.af__contact small { color: rgba(255,255,255,.55); font-size: .8rem; }
.af__contact a { color: #fff; text-decoration: none; font-weight: 700; word-break: break-word; }
.af__contact a:hover { color: #F3D898; }
.af__ci { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.07); color: var(--ah-gold); }
.af__ci .ic { width: 16px; height: 16px; }
.af-map { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 10px 14px; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .3s, border-color .3s, transform .4s var(--ah-spring); }
.af-map .ic { width: 16px; height: 16px; color: var(--ah-gold); }
.af-map .ic:last-child { width: 13px; height: 13px; opacity: .6; }
.af-map:hover { color: #fff; transform: translateY(-2px); background: rgba(255,255,255,.14); border-color: color-mix(in srgb, var(--ah-gold) 60%, transparent); }
.af__mini { margin: 22px 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
[dir="rtl"] .af__mini { letter-spacing: 0; font-size: .88rem; }
.af__socials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.af__socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  transition: transform .4s var(--ah-spring), background .3s, color .3s; }
.af__socials a:hover { transform: translateY(-4px) rotate(-6deg); background: var(--ah-gold); color: var(--ah-deep); }
.af__ext { padding-bottom: 40px; }
.af .ftr__ext { padding-block: 0 40px; }

/* Filigrane géant */
.af__mark { position: relative; z-index: -1; display: flex; align-items: baseline; justify-content: center; gap: .25em; margin-top: -10px; padding-inline: 12px; line-height: .8; white-space: nowrap; user-select: none; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.af__mark span { font-size: clamp(3rem, 8.6vw, 9.5rem); font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14);
  background: linear-gradient(100deg, transparent 30%, rgba(243, 216, 152, .5) 50%, transparent 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: ah-sheen 9s linear infinite; }
.af__mark-lat { font-family: 'Montserrat', var(--f-head); letter-spacing: .02em; }
.af__mark-ar { font-family: 'El Messiri', 'Tajawal', serif; }
@media (max-width: 700px) { .af__mark-ar { display: none; } .af__mark span { font-size: 12.5vw; } }

/* Barre basse */
.af__bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; background: rgba(0,0,0,.18); }
.af__bottom::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ah-gold) 70%, transparent), transparent); }
.af__bottom-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 18px; }
.af__copy { margin: 0; color: rgba(255,255,255,.65); }
.af__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; margin-inline-start: auto; }
.af__legal a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.af__legal a:hover { color: #fff; }
.af__admin { opacity: .55; }
.af-top { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255,255,255,.06); transition: transform .4s var(--ah-spring), background .3s; }
.af-top:hover { transform: translateY(-4px); background: var(--ah-gold); color: var(--ah-deep); }
.af-top .ic { position: relative; width: 18px; height: 18px; }
.af-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.af-top__ring circle { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2.5; }
.af-top__ring .af-top__val { stroke: var(--ah-gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear; }
@media (max-width: 700px) { .af__legal { margin-inline-start: 0; } .af-top { margin-inline-start: auto; } }

/* Apparition au défilement */
.ah-js .af [data-af-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ah-ease), transform .9s var(--ah-ease); transition-delay: var(--d, 0s); }
.ah-js .af [data-af-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- accessibilité / impression */
@media (prefers-reduced-motion: reduce) {
  .ah *, .ah::before, .ah *::before, .ah *::after, .ah-top *, .ah-drawer *, .af *, .af *::before { animation: none !important; transition-duration: .01ms !important; }
  .ah.is-away { transform: none; }
  .ah-mega__grid li, .ah-dnav__item { opacity: 1; transform: none; }
  .ah-js .af [data-af-reveal] { opacity: 1; transform: none; }
}
@media print { .ah-top, .ah, .ah-drawer, .af { display: none !important; } }

/* Bandeau défilant juste avant le pied de page : les arcades s'ouvrent sur lui */
.ribbon--band + .af .af__arcade, .ribbon + .af .af__arcade { background: var(--c-navy); }

/* Laisse la place aux boutons flottants (chat, WhatsApp, préinscription) */
.af__bottom-in { padding-bottom: 96px; }
@media (min-width: 900px) { .af__bottom-in { padding-bottom: 18px; padding-inline-end: 240px; } }
/* Petits écrans en arabe : on garde le nom arabe plutôt que le latin */
@media (max-width: 400px) {
  [dir="rtl"] .ah__island .ah-brand__ar { display: inline; }
  [dir="rtl"] .ah__island .ah-brand__lat { display: none; }
}
@media (max-width: 440px) {
  [dir="rtl"] .ah:has(.ah__actions > :nth-child(4)) .ah-brand__ar { display: inline; }
  [dir="rtl"] .ah:has(.ah__actions > :nth-child(4)) .ah-brand__lat { display: none; }
}
/* Tiroir : aucun bloc ne se tasse, au-dessus des bulles flottantes, défilement discret */
.ah-drawer { z-index: 170; }
.ah-drawer__panel { scrollbar-width: none; }
.ah-drawer__panel::-webkit-scrollbar { display: none; }
.ah-drawer__panel > * { flex: none; }
