/* =========================================================================
   IPFOPS — public site stylesheet
   Brand colours kept from the current site: #1A76D1 (blue), #2C2D3F (ink).
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
    --blue: #1A76D1;
    --blue-600: #1666b8;
    --blue-700: #11528f;
    --blue-900: #0b2f55;
    --blue-50: #eff6fe;
    --blue-100: #dcebfb;
    --blue-200: #bcd8f6;
    --sky: #4A90F0;          /* lighter blue from the logo */
    --ink: #2C2D3F;
    --ink-soft: #55576b;
    --muted: #6c6e80;
    --line: #e4eaf2;
    --bg: #ffffff;
    --bg-soft: #f5f8fc;
    --wa: #25D366;
    --success: #12a150;
    --danger: #d93a3a;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16, 40, 80, .06), 0 1px 3px rgba(16, 40, 80, .05);
    --shadow: 0 10px 30px -12px rgba(16, 52, 100, .18);
    --shadow-lg: 0 24px 60px -20px rgba(16, 52, 100, .30);
    --ease: cubic-bezier(.22, .61, .36, 1);

    --container: 1200px;
    --gutter: 16px;
    --header-h: 72px;
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.skip-link { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transform: translateY(-300%); }
.skip-link:focus { transform: none; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue); margin: 0 0 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #cfe4fb; }

.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--left { margin-left: 0; }
.section-head__lead { font-size: 1.05rem; color: var(--muted); margin: 0; }

/* ---------- 3. Buttons & chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(26, 118, 209, .7); }
.btn--primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(26, 118, 209, .75); }
.btn--outline { border-color: var(--blue-200); color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-700); }
.btn--white { background: #fff; color: var(--blue-700); }
.btn--white:hover { color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { color: #fff; filter: brightness(.95); }
.btn--block { width: 100%; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: var(--blue-50); color: var(--blue-700);
}
.chip--soft { background: var(--bg-soft); color: var(--ink-soft); }

/* ---------- 4. Topbar & header ---------- */
.topbar { background: var(--blue-900); color: #cfe0f3; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__contacts, .topbar__social { display: flex; align-items: center; gap: 18px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; }
.topbar__social { gap: 12px; }
@media (max-width: 640px) {
    .topbar__social, .hide-sm { display: none; }
    .topbar__contacts { width: 100%; justify-content: space-between; }
}

.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(16, 40, 80, .25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.header__logo img { height: 46px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { padding: 10px 18px; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 999px; border: 0; background: none;
    color: var(--ink); font-weight: 500; font-size: .95rem;
    position: relative; transition: background .2s, color .2s;
}
.nav__link:hover, .nav__link[aria-current], .nav__link[data-active] { color: var(--blue); background: var(--blue-50); }
.nav__toggle .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav__item--mega { position: relative; }
.nav__item--mega.is-open .nav__toggle .icon { transform: rotate(180deg); }
.nav__mobile-contact { display: none; }

.mega {
    position: absolute; top: calc(100% + 12px); left: 50%;
    width: min(720px, 92vw);
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 16px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) {
    .nav__item--mega:hover .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav__item--mega:hover .nav__toggle .icon { transform: rotate(180deg); }
}
.mega__col { padding: 8px; border-radius: var(--radius); }
.mega__col:first-child { background: var(--bg-soft); }
.mega__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; font-weight: 700; color: var(--ink); }
.mega__head .icon:first-child { color: var(--blue); width: 22px; height: 22px; }
.mega__head .icon:last-child { margin-left: auto; width: 16px; opacity: .5; transition: transform .2s, opacity .2s; }
.mega__head:hover .icon:last-child { transform: translateX(3px); opacity: 1; }
.mega li a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; color: var(--ink); line-height: 1.35; }
.mega li a:hover { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.mega__col:last-child li a:hover { background: var(--blue-50); box-shadow: none; }
.mega li span { font-weight: 500; font-size: .92rem; }
.mega li small { color: var(--muted); font-size: .76rem; }

.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blue-50); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
    .burger { display: block; }
    .header__cta { display: none; }
    .nav {
        position: fixed; inset: calc(var(--header-h) + var(--nav-offset, 0px)) 0 0 0;
        background: #fff; padding: 16px var(--gutter) 120px; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
    .mega {
        position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 0 4px;
        grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible;
    }
    .nav__item--mega.is-open .mega { display: grid; transform: none; }
    .mega__col:first-child { background: none; }
    .nav__mobile-contact { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
    .nav__mobile-contact a { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 6px 12px; }
    body.nav-open { overflow: hidden; }
}

/* ---------- 5. Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); }
.hero__slides { position: relative; min-height: clamp(560px, 82vh, 760px); }
.hero__slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active .hero__bg img { transform: scale(1); }
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.35) 62%, rgba(255,255,255,0) 80%);
}
@media (max-width: 760px) {
    .hero__slides { min-height: 720px; }
    .hero__bg { bottom: auto; height: 300px; }
    .hero__bg::after { background: linear-gradient(180deg, rgba(255,255,255,0) 45%, var(--bg-soft) 100%); }
    .hero__bg img { object-position: 78% center; }
    .hero__slide { align-items: flex-start; padding-top: 286px; }
    .hero__text { font-size: 1rem; margin-bottom: 22px; }
    .hero__controls { bottom: auto; top: 236px; }
    .hero__controls .container { justify-content: flex-end; }
    .hero .hero__arrow, .hero__actions .btn--outline { display: none; }
    .hero__dot { background: rgba(255, 255, 255, .7); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
}
.hero__content { position: relative; z-index: 2; max-width: 620px; }
.hero__content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .12s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .24s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .36s; }
.hero__kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
    background: #fff; color: var(--blue-700); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.hero__kicker .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.hero__kicker .dot .icon { width: 13px; height: 13px; }
.hero h1, .hero .hero__title { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; line-height: 1.08; margin-bottom: 18px; }
.hero__title em { white-space: nowrap; font-style: normal; color: var(--blue); background: linear-gradient(transparent 62%, var(--blue-100) 62%); }
.hero__text { font-size: 1.08rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__badge { height: 64px; width: auto; }
.hero__flags { height: 40px; width: auto; border-radius: 6px; }

.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 84px; pointer-events: none; } /* the bar is full-width: only the dots/arrows take taps, never the slide buttons under it */
.hero__controls .container > * { pointer-events: auto; }
@media (max-width: 760px) { .hero__controls { bottom: auto; } } /* must come after the base rule, or top+bottom stretch the bar over the slide text */
.hero__controls .container { display: flex; align-items: center; gap: 14px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 34px; height: 6px; border-radius: 6px; border: 0; padding: 0; background: rgba(26, 118, 209, .22); overflow: hidden; position: relative; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: dotfill var(--hero-delay, 6500ms) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .28); color: rgba(44, 45, 63, .6); display: grid; place-items: center; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .2s, color .2s, border-color .2s; }
.hero__arrow:hover, .hero__arrow:focus-visible { background: rgba(26, 118, 209, .85); color: #fff; border-color: transparent; }

/* Key figures strip */
.figures { position: relative; z-index: 4; margin-top: -48px; }
.figures__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
    background: var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.figure { background: #fff; padding: 22px 18px; display: flex; gap: 14px; align-items: center; }
.figure__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.figure__icon .icon { width: 22px; height: 22px; }
.figure strong { display: block; color: var(--ink); font-size: clamp(1.02rem, .8rem + 1vw, 1.35rem); line-height: 1.1; font-weight: 700; }
.figure div > span { font-size: .85rem; color: var(--muted); line-height: 1.35; display: block; }
@media (max-width: 560px) { .figure { flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; gap: 10px; padding: 18px 12px; } .figure__icon { width: 38px; height: 38px; border-radius: 12px; } }
@media (min-width: 900px) { .figures__grid { grid-template-columns: repeat(4, 1fr); } .figure { padding: 28px 24px; } }

/* ---------- 6. Welcome ---------- */
.welcome { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .welcome { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.welcome__text p { font-size: 1.02rem; }
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
@media (min-width: 560px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
.amenity {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
    background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; font-weight: 500; line-height: 1.3;
    transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.amenity:hover { border-color: var(--blue-200); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.amenity .icon { color: var(--blue); width: 20px; height: 20px; }

.video-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; background: var(--blue-900); }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover img { transform: scale(1.04); }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card__play {
    position: absolute; inset: 0; display: grid; place-items: center; border: 0;
    background: linear-gradient(180deg, rgba(11,47,85,0) 40%, rgba(11,47,85,.65) 100%); color: #fff;
}
.video-card__play .ring { width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2.2s infinite; }
.video-card__play .ring .icon { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.video-card__label { position: absolute; left: 20px; bottom: 16px; font-weight: 600; font-size: .95rem; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.welcome__media { position: relative; }
.welcome__float {
    position: absolute; right: -8px; bottom: -22px; background: #fff; border-radius: var(--radius);
    padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); max-width: 250px;
}
.welcome__float img { width: 46px; height: 46px; }
.welcome__float strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.welcome__float span { font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .welcome__float { position: relative; right: 0; bottom: 0; margin: -28px auto 0; } }

/* ---------- 7. Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.fcard {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--line); overflow: hidden; color: inherit; height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.fcard__media { position: relative; aspect-ratio: 557 / 337; overflow: hidden; background: var(--blue-50); }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.fcard:hover .fcard__media img { transform: scale(1.06); }
.fcard__badge {
    position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--blue-700); font-size: .78rem; font-weight: 600;
    backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.fcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.fcard__title { font-size: 1.2rem; margin-bottom: 8px; transition: color .2s; }
.fcard:hover .fcard__title { color: var(--blue); }
.fcard__meta { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.fcard__meta .icon { color: var(--success); margin-top: 3px; width: 16px; height: 16px; }
.fcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.fcard__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: background .25s, color .25s, transform .25s var(--ease); }
.fcard:hover .fcard__go { background: var(--blue); color: #fff; transform: rotate(-45deg); }

.ncard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; height: 100%; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ncard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ncard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); display: block; }
.ncard__media img, .ncard__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--blue); display: grid; place-items: center; }
.ncard__play .icon { fill: currentColor; margin-left: 3px; }
.ncard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ncard__date { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.ncard__date .icon { width: 14px; height: 14px; }
.ncard__title { font-size: 1.05rem; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__title a { color: var(--ink); }
.ncard__title a::after { content: ""; position: absolute; inset: 0; }
.ncard { position: relative; }
.ncard__title a:hover { color: var(--blue); }
.ncard__excerpt { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.ncard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--blue); }
.ncard__more .icon { width: 16px; transition: transform .25s var(--ease); }
.ncard:hover .ncard__more .icon { transform: translateX(4px); }

.section-foot { text-align: center; margin-top: 40px; }

/* OCF intro banner */
.ocf-intro { display: grid; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); margin-bottom: 36px; }
.ocf-intro__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.ocf-intro__icon .icon { width: 26px; height: 26px; }
.ocf-intro p { margin: 0; color: var(--ink-soft); }
.ocf-intro strong { color: var(--ink); }
@media (min-width: 720px) { .ocf-intro { grid-template-columns: auto 1fr; } }

/* ---------- 8. Partners marquee ---------- */
.partners { padding: 64px 0; border-top: 1px solid var(--line); }
.partners h2 { font-size: 1rem; text-align: center; color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 32px; }
.partners__carousel { position: relative; max-width: 1400px; margin: 0 auto; }
/* Scrollable band: auto-scrolls slowly (assets/js/site.js), and the visitor can swipe, drag or use the arrows. */
.marquee {
    overflow-x: auto; overflow-y: hidden; direction: ltr; scrollbar-width: none; cursor: grab; padding: 10px 0 14px;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }
.marquee:focus-visible { outline-offset: -3px; }
.marquee__track { display: flex; gap: 28px; width: max-content; padding: 0 28px; }
.marquee__item {
    width: 132px; height: 132px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
    display: grid; place-items: center; padding: 24px; flex-shrink: 0; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.marquee__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-200); }
.marquee__item img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.partners__nav {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .2s, color .2s;
}
.partners__nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.partners__nav--prev { left: 12px; }
.partners__nav--next { right: 12px; }
[dir="rtl"] .partners__nav .icon--dir { transform: none; } /* the band itself stays left-to-right */
@media (max-width: 640px) {
    .marquee__item { width: 104px; height: 104px; padding: 18px; }
    .marquee__track { gap: 16px; }
    .partners__nav { width: 38px; height: 38px; }
    .partners__nav--prev { left: 4px; } .partners__nav--next { right: 4px; }
}

/* ---------- 9. CTA band ---------- */
.cta-band { padding: 0 0 88px; }
.section + .cta-band, .partners + .cta-band { padding-top: 0; }
.cta-band__box {
    position: relative; overflow: hidden; border-radius: 28px; padding: 44px 28px; color: #e6f0fb;
    background: radial-gradient(1200px 400px at 110% -20%, rgba(74,144,240,.55), transparent 60%), linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 60%, var(--blue-900) 100%);
    display: grid; gap: 28px; align-items: center; box-shadow: var(--shadow-lg);
}
.cta-band__deco { position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255,255,255,.06); }
.cta-band__deco::after { content: ""; position: absolute; inset: 50px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.14); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band__text, .cta-band__actions { position: relative; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band__box { grid-template-columns: 1fr auto; padding: 56px 56px; } .cta-band__actions { flex-direction: column; } }

/* ---------- 10. Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 48px 0 56px; background: var(--bg-soft); }
.page-hero__bg { position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, var(--blue-100), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(74,144,240,.12), transparent 70%); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(26,118,209,.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.page-hero__inner { position: relative; }
.page-hero h1 { max-width: 820px; margin-bottom: 14px; }
.page-hero__lead { font-size: 1.08rem; max-width: 680px; margin: 0; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 76px; } }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; margin: 0 0 20px; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- 11. Formation detail ---------- */
.fdetail { display: grid; gap: 40px; }
@media (min-width: 1000px) { .fdetail { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; } }
/* the aside spans the full article height: the card sticks inside its own wrapper and stops above "other programmes", so it never slides over that list */
@media (min-width: 1000px) {
    .fdetail__aside { align-self: stretch; display: flex; flex-direction: column; }
    .fdetail__sticky { flex: 1; }
}
.fdetail__cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 32px; aspect-ratio: 16 / 9; background: var(--blue-50); }
.fdetail__cover img { width: 100%; height: 100%; object-fit: cover; }
.fdetail__intro { font-size: 1.12rem; color: var(--ink); line-height: 1.7; margin-bottom: 32px; }
.highlights { display: grid; gap: 10px; margin-bottom: 36px; }
.highlight { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--blue-50); color: var(--blue-900); font-weight: 500; }
.highlight .icon { color: var(--blue); margin-top: 3px; }
.highlight img { width: 32px; height: 32px; }

.block { margin-bottom: 40px; }
.block h2 { font-size: 1.35rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.block h2::before { content: ""; width: 6px; height: 26px; border-radius: 4px; background: var(--blue); }
.facts { display: grid; gap: 12px; }
.fact { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.fact:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.fact dt { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.fact dt .icon { color: var(--blue); width: 18px; height: 18px; }
.fact dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 720px) { .fact { grid-template-columns: 220px 1fr; gap: 20px; } }

.feature-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .feature-list--cols { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); }
.feature__num { width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--blue); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.feature strong { display: block; color: var(--ink); margin-bottom: 2px; }
.feature p { margin: 0; font-size: .95rem; }

.checks li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checks li:last-child { border: 0; }
.checks .icon { color: var(--success); margin-top: 4px; }

.plus-box { border-radius: var(--radius-lg); padding: 24px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); color: #e8f1fb; position: relative; overflow: hidden; }
.plus-box h2 { color: #fff; }
.plus-box h2::before { background: #fff; }
.plus-box li { display: flex; gap: 12px; margin-bottom: 12px; }
.plus-box li:last-child { margin: 0; }
.plus-box .icon { color: #9fd0ff; margin-top: 4px; }

.days { display: grid; gap: 16px; }
@media (min-width: 720px) { .days { grid-template-columns: 1fr 1fr; } }
.day { border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.day__tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--blue); background: var(--blue-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.day h3 { font-size: 1.05rem; }
.day li { display: flex; gap: 10px; font-size: .93rem; margin-top: 8px; }
.day li .icon { color: var(--blue); width: 16px; margin-top: 5px; }

.aside-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.aside-card__head { padding: 22px 24px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.aside-card__head h2 { font-size: 1.15rem; margin: 0 0 4px; }
.aside-card__head p { margin: 0; font-size: .88rem; }
.aside-card__body { padding: 20px 24px 24px; display: grid; gap: 12px; }
.aside-meta { display: grid; gap: 10px; margin-bottom: 8px; }
.aside-meta div { display: flex; gap: 10px; font-size: .92rem; align-items: flex-start; }
.aside-meta .icon { color: var(--blue); margin-top: 3px; }
.aside-meta b { color: var(--ink); font-weight: 600; }
.other-links { margin-top: 24px; }
.other-links h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.other-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .93rem; }
.other-links a:hover { color: var(--blue); }
.other-links .icon { width: 16px; opacity: .5; }

/* ---------- 12. Presentation ---------- */
.story { display: grid; gap: 36px; align-items: center; margin-bottom: 88px; }
.story:last-child { margin-bottom: 0; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; gap: 64px; } .story--reverse .story__media { order: 2; } }
.story__media { position: relative; }
.story__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.story__media--stack { padding: 0 0 48px 0; }
.story__media--stack img:nth-child(2) { position: absolute; width: 52%; right: -8px; bottom: 0; border: 6px solid #fff; }
.story__text h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.story__text ul { margin: 0 0 1em; }
.story__text li { display: flex; gap: 12px; margin-bottom: 14px; }
.story__text li .icon { color: var(--blue); margin-top: 4px; }
.story__text li strong { color: var(--ink); }
.quote { margin: 24px 0 0; padding: 18px 22px; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--blue-900); font-weight: 500; font-style: italic; }

/* ---------- 13. News detail ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 32px; background: var(--blue-50); }
.article__media img, .article__media video { width: 100%; max-height: 640px; object-fit: contain; background: #0b1a2c; }
.article__body { font-size: 1.06rem; color: var(--ink); line-height: 1.8; }
.article__body strong { color: var(--ink); }
.article__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__share span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); border: 0; transition: background .2s, color .2s; }
.share-btn:hover { background: var(--blue); color: #fff; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .is-current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- 14. Forms (pre-registration) ---------- */
.apply { display: grid; gap: 32px; }
@media (min-width: 1000px) { .apply { grid-template-columns: 1fr 420px; gap: 48px; align-items: start; } }
.form-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px 22px; }
@media (min-width: 640px) { .form-card { padding: 40px; } }
.form-card h2 { font-size: 1.5rem; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; color: var(--ink); font-size: .92rem; }
.field label .req { color: var(--danger); }
.control {
    width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
    font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none;
}
.control::placeholder { color: #a3a6b5; }
.control:hover { border-color: var(--blue-200); }
.control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 118, 209, .14); }
select.control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C2D3F' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field.has-error .control { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217, 58, 58, .1); }
.field__error { color: var(--danger); font-size: .84rem; display: none; }
.field.has-error .field__error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.consent button { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* hidden from people without an offset: a large negative left is scrollable in RTL */
.form-alert { padding: 14px 16px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-size: .92rem; display: none; }
.form-alert.is-visible { display: block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.formation-picker { display: grid; gap: 10px; }
.formation-picker legend { font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 8px; padding: 0; }
.formation-picker fieldset { border: 0; padding: 0; margin: 0; }
.picker-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 8px 0 2px; }
.picker-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .picker-grid { grid-template-columns: 1fr 1fr; } }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-size: .92rem; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; min-height: 50px; line-height: 1.3; }
.pick span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--blue-200); flex-shrink: 0; transition: border .2s, background .2s; }
.pick input:checked + span { border-color: var(--blue); background: var(--blue-50); }
.pick input:checked + span::before { border: 5px solid var(--blue); }
.pick input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.field.has-error .pick span { border-color: #f3b4b4; }

.apply-aside { display: grid; gap: 16px; }
.step-list { counter-reset: s; display: grid; gap: 4px; }
.step-list li { display: flex; gap: 14px; padding: 14px 0; }
.step-list li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.step-list strong { display: block; color: var(--ink); }
.step-list p { margin: 0; font-size: .9rem; }
.info-card { border-radius: var(--radius-lg); padding: 24px; background: var(--bg-soft); }
.info-card h3 { font-size: 1.05rem; }
.info-card a { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 6px 0; }
.info-card a .icon { color: var(--blue); }

.modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 16px; background: rgba(11, 26, 44, .55); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; animation: fadein .2s; }
.modal__box { background: #fff; border-radius: var(--radius-lg); padding: 28px; max-width: 560px; width: 100%; box-shadow: var(--shadow-lg); }
.modal__box h2 { font-size: 1.25rem; }
@keyframes fadein { from { opacity: 0; } }

/* Thank you */
.thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks__icon { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: #e7f7ee; color: var(--success); animation: pop .6s var(--ease); }
.thanks__icon .icon { width: 48px; height: 48px; stroke-width: 2.4; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- 15. Footer ---------- */
.footer { background: #0d1f35; color: #a9b8cc; font-size: .92rem; padding-top: 72px; }
.footer a { color: #cdd8e6; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.footer__brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer__brand em { color: #8fb6e3; }
.footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.footer__links li { margin-bottom: 9px; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer__contact .icon { color: var(--sky); margin-top: 3px; }
.footer__hours { display: block; }
.footer__hours b { color: #e6edf6; font-weight: 500; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--blue); transform: translateY(-2px); }
.footer__map { padding-bottom: 48px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: 300px; background: #13294433 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23ffffff10'/%3E%3C/svg%3E"); border: 1px solid rgba(255,255,255,.08); }
.map-embed { position: relative; }
.map-embed::before { content: attr(data-loading); position: absolute; inset: 0; display: grid; place-items: center; color: #a9b8cc; font-size: .9rem; } /* shows through the iframe until Google has painted the map */
.map-embed iframe { position: relative; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.map-embed__btn { width: 100%; height: 100%; border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 1rem; }
.map-embed__btn .icon { width: 34px; height: 34px; color: var(--sky); }
.map-embed__btn small { color: #a9b8cc; font-weight: 400; }
.map-embed__btn:hover .icon { animation: bounce .6s; }
@keyframes bounce { 50% { transform: translateY(-6px); } }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 96px; font-size: .85rem; }
@media (min-width: 1025px) { .footer__bottom { padding-bottom: 20px; } }
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; gap: 18px; }

/* ---------- 16. Floating actions ---------- */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
    background: var(--wa); color: #fff; font-weight: 600; font-size: .93rem;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.03); }
.wa-float .icon { width: 26px; height: 26px; }
.mobile-cta { display: none; }
@media (max-width: 1024px) {
    .mobile-cta {
        position: fixed; left: 12px; right: 84px; bottom: 14px; z-index: 59;
        display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 999px;
        background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 12px 28px -10px rgba(26, 118, 209, .8);
        transform: translateY(120px); transition: transform .35s var(--ease);
    }
    .mobile-cta.is-visible { transform: none; }
    .mobile-cta:hover { color: #fff; }
    .wa-float { bottom: 14px; right: 12px; width: 54px; height: 54px; padding: 0; justify-content: center; }
    .wa-float span { display: none; }
}

/* ---------- 17. Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. Language switcher ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch a {
    display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px;
    color: var(--ink-soft); font-size: .78rem; font-weight: 600; letter-spacing: .02em; line-height: 1;
}
.lang-switch a[lang="ar"] { font-family: 'Tajawal', var(--font); font-size: .95rem; }
.lang-switch a:hover { color: var(--blue); background: var(--blue-50); }
.lang-switch a[aria-current] { background: var(--blue); color: #fff; }
.lang-switch--mobile { display: none; }
@media (max-width: 1024px) {
    .lang-switch--desktop { display: none; }
    .lang-switch--mobile { display: flex; width: 100%; margin-top: 16px; padding: 4px; }
    .lang-switch--mobile li { flex: 1; }
    .lang-switch--mobile a { height: 42px; font-size: .9rem; }
    .lang-switch--mobile a[lang="ar"] { font-size: 1.05rem; }
}

.article__note { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-900); font-size: .9rem; }

/* ---------- 19. Right-to-left (Arabic) ---------- */
[dir="rtl"] { --font: 'Tajawal', 'Poppins', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }
[dir="rtl"] body { font-size: 17px; line-height: 1.8; }
/* Arabic letters must stay joined: no letter-spacing, no uppercase tricks */
[dir="rtl"] *, [dir="rtl"] .eyebrow { letter-spacing: 0 !important; }
[dir="rtl"] .eyebrow { text-transform: none; font-size: .9rem; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; }
[dir="rtl"] [lang="fr"], [dir="rtl"] [lang="en"] { font-family: 'Poppins', system-ui, sans-serif; }

[dir="rtl"] .icon--dir { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .icon--dir:last-child { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .mega__head .icon:last-child { margin-left: 0; margin-right: auto; }
[dir="rtl"] .mega__head:hover .icon--dir:last-child { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .ncard:hover .ncard__more .icon--dir { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .fcard:hover .fcard__go { transform: rotate(45deg); }
[dir="rtl"] .fcard:hover .fcard__go .icon--dir { transform: scaleX(-1); }
[dir="rtl"] .section-head--left { margin-left: auto; margin-right: 0; }
[dir="rtl"] .hero__dot::after { transform-origin: right; }
[dir="rtl"] .video-card__play .ring .icon { margin-left: 0; }
[dir="rtl"] .video-card__label { left: auto; right: 20px; }
[dir="rtl"] .welcome__float { right: auto; left: -8px; }
@media (max-width: 560px) { [dir="rtl"] .welcome__float { left: 0; } }
[dir="rtl"] .fcard__badge { left: auto; right: 14px; }
[dir="rtl"] .cta-band__deco { right: auto; left: -60px; }
[dir="rtl"] .page-hero__bg { transform: scaleX(-1); }
[dir="rtl"] .story__media--stack img:nth-child(2) { right: auto; left: -8px; }
[dir="rtl"] .quote { border-left: 0; border-right: 4px solid var(--blue); border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .article__share span { margin-right: 0; margin-left: 6px; }
[dir="rtl"] select.control { background-position: left 14px center; padding-right: 16px; padding-left: 44px; }
[dir="rtl"] .mega { padding-inline: 16px; }
@media (max-width: 1024px) { [dir="rtl"] .mega { padding: 0 4px 0 0; } }
[dir="rtl"] .wa-float { right: auto; left: 18px; padding: 12px 14px 12px 18px; }
@media (max-width: 1024px) {
    [dir="rtl"] .mobile-cta { left: 84px; right: 12px; }
    [dir="rtl"] .wa-float { left: 12px; right: auto; padding: 0; }
}
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: right; }
/* Hero (Arabic, desktop): keep the text block on the left, over the white fade, like the French version.
   The photos are not mirrored because they contain French signage. */
@media (min-width: 761px) {
    [dir="rtl"] .hero__slide > .container { display: flex; justify-content: flex-end; } /* flex-end = left in RTL */
    [dir="rtl"] .hero__content { padding-inline-end: clamp(0px, 4vw, 56px); }
    [dir="rtl"] .hero__controls .container { justify-content: flex-end; }
}

/* ---------- 20. School-year ribbon on pre-registration buttons ---------- */
.btn--ribbon { position: relative; overflow: visible; }
.mobile-cta.btn--ribbon { position: fixed; } /* keep the phone bottom bar floating: .btn--ribbon must not override it */
.btn__ribbon {
    position: absolute; top: -10px; inset-inline-end: 14px;
    padding: 2px 9px; border-radius: 999px;
    background: #d32f2f; color: #fff; border: 2px solid #fff; /* red to draw attention; white text stays readable */
    font-size: .68rem; font-weight: 700; line-height: 1.35; letter-spacing: .02em; white-space: nowrap;
    box-shadow: 0 4px 10px -4px rgba(211, 47, 47, .6);
    pointer-events: none;
}
.header__cta .btn__ribbon { top: -9px; font-size: .62rem; padding: 1px 7px; }
.mobile-cta .btn__ribbon { top: -9px; }
.btn:hover .btn__ribbon { transform: none; }

/* ---------- 21. Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gallery-filters button {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: .92rem;
}
.gallery-filters button small { color: var(--muted); font-size: .78rem; }
.gallery-filters button:hover { border-color: var(--blue); color: var(--blue); }
.gallery-filters button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.gallery-filters button.is-active small { color: #cfe4fb; }
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery__item[hidden] { display: none; }
.gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; color: inherit; }
.gallery__media {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
    background: var(--bg-soft); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.gallery__media img, .gallery__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__open:hover .gallery__media, .gallery__open:focus-visible .gallery__media { box-shadow: var(--shadow); transform: translateY(-3px); }
.gallery__open:hover .gallery__media img, .gallery__open:hover .gallery__media video { transform: scale(1.04); }
.gallery__play {
    position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow);
}
.gallery__play .icon { width: 26px; height: 26px; fill: currentColor; margin-inline-start: 3px; }
.gallery__badge {
    position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px; background: rgba(11, 26, 44, .62); color: #fff; font-size: .74rem; font-weight: 600;
}
.gallery__badge .icon { width: 13px; height: 13px; }
.gallery__title { display: block; margin-top: 12px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.gallery__open:hover .gallery__title { color: var(--blue); }

.lightbox {
    position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
    padding: 56px 12px 24px; background: rgba(8, 16, 28, .94);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox__stage { display: grid; place-items: center; max-width: 100%; }
.lightbox__stage img, .lightbox__stage video { max-width: min(1200px, 100%); max-height: calc(100vh - 150px); border-radius: 10px; background: #000; }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: #fff; font-weight: 600; text-align: center; }
.lightbox figcaption small { color: #a9b8cc; font-weight: 400; }
.lightbox__nav, .lightbox__close {
    width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox__nav .icon, .lightbox__close .icon { width: 24px; height: 24px; }
.lightbox__close { position: absolute; top: 12px; inset-inline-end: 12px; }
.lightbox.is-single .lightbox__nav { visibility: hidden; }
@media (max-width: 640px) {
    .lightbox { grid-template-columns: 1fr; padding: 64px 8px 16px; }
    .lightbox__nav { position: absolute; bottom: 16px; }
    .lightbox__nav--prev { inset-inline-start: 16px; }
    .lightbox__nav--next { inset-inline-end: 16px; }
    .lightbox figcaption { padding: 0 60px; }
}
body.lb-open { overflow: hidden; }

/* ---------- 22. Mobile menu: fit the whole menu on a phone screen without scrolling ---------- */
@media (max-width: 1024px) {
    .nav { padding: 10px var(--gutter) calc(16px + env(safe-area-inset-bottom)); }
    .nav__link { padding: 11px 12px; font-size: 1rem; line-height: 1.4; }
    .nav__list { gap: 0; }
    .lang-switch--mobile { margin-top: 10px; }
    .lang-switch--mobile a { height: 38px; }
    .nav__mobile-contact { gap: 2px; margin-top: 12px; padding-top: 10px; }
    .nav__mobile-contact a { padding: 6px 12px; font-size: .92rem; }
    /* Formations sub-menu: compact list when opened */
    .mega__head { padding: 6px 10px 6px; font-size: .95rem; }
    .mega li a { padding: 6px 12px; }
    .mega li small { display: none; }
    /* the floating buttons would cover the bottom of the menu */
    body.nav-open .mobile-cta, body.nav-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 1024px) {
    /* backdrop-filter makes the header the containing block of the fixed menu, which then gets cut off:
       drop it while the menu is open so the menu covers the screen down to the bottom. */
    body.nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .nav { min-height: calc(100dvh - var(--header-h) - var(--nav-offset, 0px)); }
}
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #cfe0f3; font-size: .9rem; font-weight: 500; }
.map-link:hover { color: #fff; }
.map-link .icon { width: 16px; height: 16px; color: var(--sky); }

/* ---------- 23. No horizontal scroll on phones ---------- */
/* clip (not hidden) keeps the sticky header working; hidden on body stays as a fallback for old browsers */
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 760px) {
    .btn { white-space: normal; text-align: center; max-width: 100%; }
    .btn--lg { padding: 14px 22px; }
    .story__media--stack img:nth-child(2), [dir="rtl"] .story__media--stack img:nth-child(2) { right: 0; left: auto; }
    [dir="rtl"] .story__media--stack img:nth-child(2) { left: 0; right: auto; }
    .welcome__float, [dir="rtl"] .welcome__float { right: 0; left: auto; }
    .hero__flags, .hero__badge { max-width: 100%; }
    .container { overflow-wrap: anywhere; }
    .footer__bottom ul { flex-wrap: wrap; gap: 8px 18px; }
    .topbar__contacts { gap: 10px; min-width: 0; }
    .topbar__contacts span { white-space: nowrap; }
}
@media (max-width: 380px) {
    .topbar { font-size: .74rem; }
    .topbar__contacts { gap: 6px; }
    .topbar .icon { width: 13px; height: 13px; }
}
/* Hero slider controls (FR/EN, desktop): bottom right, over the photo, so they never cover the slide text. */
@media (min-width: 761px) {
    [dir="ltr"] .hero__controls .container { justify-content: flex-end; }
}
