/* Vamos Travel: tokens and the shared parts (header, full-screen menu, buttons, phone bar, boarding-pass
   footer). One light theme, locked. The brand's own colours, from the logo: royal blue as the ground of the
   big blocks (the departures board, the services, the menu), sun yellow as the one accent (buttons, prices,
   the plane), navy text on a cool white. Radius system: pills for anything you press, 24px for cards and
   photos, 28px for the board and the boarding pass, circles for the step icons and the steppers.
   Bilingual: French (ltr) and Arabic (rtl) share every rule; logical properties throughout; arrows that point
   onward are mirrored in rtl (.icon--flip). Both fonts carry Arabic and Latin, split by unicode-range. */

@font-face { font-family: "Baloo Bhaijaan 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/baloo-bhaijaan-2-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo Bhaijaan 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/baloo-bhaijaan-2-arabic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 160 700; font-display: swap; src: url("../fonts/readex-pro-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 160 700; font-display: swap; src: url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --paper: #f6f8fc;        /* cool white page */
  --surface: #fcfdff;      /* cards, inputs */
  --sand: #fff4cc;         /* pale sun panels */
  --line: #d9e1ef;
  --ink: #0b1f45;          /* navy text */
  --ink-2: #44537a;
  --blue: #004bb1;         /* the brand's blue: big blocks */
  --blue-deep: #003a8c;
  --night: #0a2459;        /* the departures board */
  --on-blue: #f6f8fc;
  --sun: #fec907;          /* the one accent */
  --sun-deep: #e0b000;
  --focus: #004bb1;
  --error: #b42318;
  --error-bg: #fdecea;

  --display: "Baloo Bhaijaan 2", "Arial Rounded MT Bold", Arial, sans-serif;
  --sans: "Readex Pro", Arial, sans-serif;
  --r-card: 24px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgb(11 31 69 / 0.06), 0 18px 40px -12px rgb(11 31 69 / 0.22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { line-height: 1.75; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.skip-link { position: absolute; z-index: 40; inset-inline-start: 12px; top: -60px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; transition: transform 0.2s var(--ease); }
.skip-link:focus { transform: translateY(72px); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }
.link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: currentColor; }
/* Something the agency has to confirm: square brackets in a dashed frame (in the text's own colour). */
.tbc { display: inline-block; padding: 0 7px; border: 1.5px dashed currentColor; border-radius: 6px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; line-height: 1.6; white-space: nowrap; opacity: 0.9; }

.section { padding-block: clamp(64px, 8vw, 112px); }
.section__head { max-width: 640px; }
.section__head--centre { margin-inline: auto; text-align: center; }
.section__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
[dir="rtl"] .section__title { line-height: 1.25; letter-spacing: 0; }
.section__lede { margin-top: 12px; font-size: 1.125rem; color: var(--ink-2); }

/* ------------------------------------------------------------------ Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 48px; height: 48px; border-radius: 50%; }
.logo__word { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: 0.02em; color: var(--blue); white-space: nowrap; }
.logo__word span { font-weight: 500; font-size: 0.75em; letter-spacing: 0.12em; color: var(--ink-2); }

/* ------------------------------------------------------------------ Buttons (pills) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 26px; border: 2px solid transparent; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 18px -8px rgb(224 176 0 / 0.7); }
.btn--blue { background: var(--blue); color: var(--on-blue); }
.btn--wa { background: #25d366; color: var(--ink); box-shadow: 0 8px 18px -8px rgb(18 140 70 / 0.6); }
.btn--wa .icon { width: 24px; height: 24px; }
/* "Places limitées": a small sun tag where a trip's date will go. */
.day-tag { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--sun); color: var(--ink); font-family: var(--sans); font-size: 0.75rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.btn--line { border-color: currentColor; background: transparent; color: var(--blue-deep); }
.btn--glass { border-color: rgb(246 248 252 / 0.7); background: rgb(10 36 89 / 0.35); color: var(--on-blue); backdrop-filter: blur(8px); }
.btn .icon { width: 1.2em; height: 1.2em; }

/* ------------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.nav { margin-inline: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border-radius: 999px; font-weight: 500; text-decoration: none; }
.nav__link:hover { background: var(--sand); }
.nav__link[aria-current="true"] { background: var(--blue); color: var(--on-blue); }
.site-header__end { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 14px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--blue-deep); }
.lang:hover { background: var(--sand); }
.site-header__call { min-height: 46px; padding-inline: 20px; }
.site-header__wa { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: var(--ink); transition: transform 0.2s var(--ease); }
.site-header__wa:hover { transform: scale(1.06); }
.site-header__wa .icon { width: 26px; height: 26px; }
.menu-btn { display: none; width: 48px; height: 48px; place-items: center; border: 0; border-radius: 50%; background: var(--blue); color: var(--on-blue); }
.menu-btn .icon { width: 24px; height: 24px; }
@media (max-width: 61.99rem) {
  .js .nav, .js .site-header__call, .site-header__wa { display: none; }
  .js .menu-btn { display: inline-grid; }
  .site-header__inner { justify-content: space-between; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; row-gap: 0; padding-block: 10px; }
  html:not(.js) .nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
}
@media (max-width: 47.99rem) {
  :root { --header-h: 66px; }
  .logo__word { font-size: 1.25rem; }
  .logo__mark { width: 42px; height: 42px; }
  .site-header .lang span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .lang { position: relative; }
}

/* ------------------------------------------------------------------ Full-screen menu (under 62rem) */
/* The blue sky: a panel that drops over the page, the links large in Baloo, a yellow plane beside each,
   sliding in one after another. A native <dialog>; only transform and opacity move. */
.flood { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--on-blue); }
/* In and out on transitions (the dialog stays in the top layer while it leaves, via overlay and display
   allow-discrete), so leaving is as smooth as arriving: the panel slides on a soft decelerating curve, the
   backdrop fades, the links rise in one after another and fade together on the way out. */
.flood { transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete; }
.flood::backdrop { background: rgb(10 36 89 / 0); transition: background 0.4s ease, display 0.5s allow-discrete, overlay 0.5s allow-discrete; }
.flood[open]::backdrop { background: rgb(10 36 89 / 0.5); }
@starting-style { .flood[open]::backdrop { background: rgb(10 36 89 / 0); } }
.flood__panel { display: grid; grid-template-rows: auto 1fr auto; height: 100%; overflow: auto; padding: 14px var(--pad) calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(120% 70% at 100% 0%, var(--blue) 0%, var(--blue-deep) 55%, var(--night) 100%); }
.flood__panel { transform: translateY(-100%); transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.flood[open] .flood__panel { transform: none; transition-duration: 0.55s; transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
@starting-style { .flood[open] .flood__panel { transform: translateY(-100%); } }
.flood__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.flood__top .logo__word { color: var(--on-blue); }
.flood__top .logo__word span { color: var(--sun); }
.flood__close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sun); color: var(--ink); }
.flood__close .icon { width: 22px; height: 22px; }
.flood__list { display: grid; align-content: center; gap: 6px; }
.flood__link { display: flex; align-items: center; gap: 14px; min-height: 64px; font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 3vw, 3rem); line-height: 1.1; text-decoration: none; }
.flood__plane { width: 30px; height: 30px; color: var(--sun); }
[dir="rtl"] .flood__plane { transform: scaleX(-1); }
.flood__link[aria-current="true"] { color: var(--sun); }
.flood__list li { opacity: 0; transform: translateY(18px); transition: opacity 0.2s ease, transform 0.2s ease; }
.flood[open] .flood__list li { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(0.18s + var(--i, 0) * 0.06s); }
@starting-style { .flood[open] .flood__list li { opacity: 0; transform: translateY(18px); } }
.flood__list li:nth-child(2) { --i: 1; }
.flood__list li:nth-child(3) { --i: 2; }
.flood__list li:nth-child(4) { --i: 3; }
@media (prefers-reduced-motion: reduce) {
  .flood, .flood::backdrop, .flood__panel, .flood__list li { transition: none !important; }
}
.flood__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 18px; border-top: 1px solid rgb(246 248 252 / 0.25); }
.flood__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.flood__foot .lang { color: var(--sun); }

/* ------------------------------------------------------------------ WhatsApp button (under 62rem) */
/* A green pill in the bottom corner (the end side, so on the left in Arabic), always on screen; WhatsApp's own
   green with navy words (8:1). Wide screens have the phone numbers in the header and the footer instead. */
.wa { display: none; }
@media (max-width: 61.99rem) {
  .wa { position: fixed; z-index: 15; inset-block-end: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: var(--pad); display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px; background: #25d366; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.0625rem; text-decoration: none; box-shadow: 0 10px 28px -8px rgb(10 36 89 / 0.45), 0 0 0 3px rgb(255 255 255 / 0.9); }
  .wa .icon { width: 28px; height: 28px; }
  .wa:active { transform: scale(0.96); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}


/* ------------------------------------------------------------------ Footer: a boarding pass */
/* A blue stub with the logo, a perforated edge (two notches and a dashed line), then the details. */
.site-footer { padding-block: clamp(40px, 6vw, 80px) 28px; }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.pass__stub { position: relative; display: grid; align-content: start; justify-items: start; gap: 16px; padding: clamp(24px, 3vw, 40px); background: var(--blue); color: var(--on-blue); }
.pass__stub::after { content: ""; position: absolute; inset-block: 18px; inset-inline-end: 0; border-inline-end: 2px dashed rgb(246 248 252 / 0.5); }
.pass__logo { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); }
.pass__line { max-width: 30ch; }
.pass::before, .pass::after { content: ""; position: absolute; z-index: 1; inset-inline-start: calc(30% - 14px); width: 28px; height: 28px; border-radius: 50%; background: var(--paper); }
.pass::before { top: -14px; }
.pass::after { bottom: -14px; }
.pass__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: clamp(24px, 3vw, 40px); }
.pass__title { margin-bottom: 6px; font-family: var(--display); font-size: 1.0625rem; font-weight: 700; color: var(--blue); }
.pass__title:not(:first-child) { margin-top: 14px; }
.pass__list, .pass__text { color: var(--ink-2); }
.pass__list a, .pass__text a { color: var(--ink); }
.credits { max-width: 880px; margin: 22px auto 0; }
.credits__summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 14px; border-radius: 999px; font-weight: 600; color: var(--blue-deep); cursor: pointer; list-style: none; }
.credits__summary::-webkit-details-marker { display: none; }
.credits__summary:hover { background: var(--sand); }
.credits__caret { transition: transform 0.25s var(--ease); }
.credits[open] .credits__caret { transform: rotate(180deg); }
.credits { text-align: center; }
.credits__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.credits__note { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }
/* The disclosure opens and closes smoothly (height and opacity), where supported; elsewhere at once. */
@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    .credits { interpolate-size: allow-keywords; }
    .credits::details-content { display: flow-root; height: 0; opacity: 0; overflow: clip; transition: height 0.35s var(--ease), opacity 0.3s ease, content-visibility 0.35s allow-discrete; }
    .credits[open]::details-content { height: auto; opacity: 1; }
  }
}
.site-footer__legal { margin-top: 22px; font-size: 0.9375rem; color: var(--ink-2); text-align: center; }
@media (max-width: 61.99rem) {
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass__stub::after { inset: auto 18px 0 18px; border-inline-end: 0; border-bottom: 2px dashed rgb(246 248 252 / 0.5); }
  .pass::before, .pass::after { display: none; }
}
@media (max-width: 47.99rem) {
  .pass__body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ------------------------------------------------------------------ Scroll fades */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
  .reveal-ready [data-reveal] { transition: opacity 0.6s ease-out, transform 0.7s var(--ease); }
}

/* ------------------------------------------------------------------ Page transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 0.16s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.3s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
