/* ===== Mauri Flight — styles partagés ===== */

:root {
  --navy: #003e6c;
  --navy-dark: #002a4a;
  --orange: #ff914d;
  --gold: #ffbd59;
  --cream: #fbf8f3;
  --ink: #16232f;
  --ink-soft: #52657a;
  --white: #ffffff;
  --line: #e6e1d6;
  --shadow: 0 20px 50px -20px rgba(0, 30, 60, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --gradient-brand: linear-gradient(135deg, var(--orange), var(--gold));
  --gradient-navy: linear-gradient(180deg, rgba(0, 20, 40, 0.15) 0%, rgba(0, 25, 48, 0.55) 55%, rgba(0, 18, 36, 0.88) 100%);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Cairo", "Tajawal", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: var(--font-arabic);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: var(--font-arabic);
  font-weight: 700;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient-brand);
  display: inline-block;
}

html[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* ===== Boutons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-brand);
  color: var(--navy-dark);
  box-shadow: 0 14px 30px -10px rgba(255, 145, 77, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(255, 145, 77, 0.65);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(0, 40, 70, 0.5);
}

.btn--dark:hover { transform: translateY(-2px); }

.btn__arrow { font-size: 18px; transition: transform 0.25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .btn__arrow { transform: translateX(-4px) scaleX(-1); }
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 8px 30px -18px rgba(0, 20, 40, 0.4);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 52px;
  height: 49px;
  filter: drop-shadow(0 2px 6px rgba(0, 20, 40, 0.35));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--white);
  transition: color 0.35s ease;
}

.is-scrolled .brand__name,
.page-hero ~ * .brand__name { color: var(--navy); }
.is-scrolled .brand__name { color: var(--navy); }

.brand__ar {
  font-family: var(--font-arabic);
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  transition: color 0.35s ease;
}

.is-scrolled .brand__ar { color: var(--orange); }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav__link {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease;
}

.is-scrolled .main-nav__link { color: var(--navy); }

.main-nav__link:hover,
.main-nav__link.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.is-scrolled .main-nav__link:hover,
.is-scrolled .main-nav__link.is-active {
  background: rgba(0, 62, 108, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.is-scrolled .lang-toggle {
  color: var(--navy);
  border-color: rgba(0, 62, 108, 0.3);
  background: rgba(0, 62, 108, 0.06);
}

.lang-toggle:hover { background: rgba(255, 145, 77, 0.25); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.is-scrolled .burger span { background: var(--navy); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--white);
  font-weight: 600;
}

html[dir="rtl"] .mobile-nav__link { font-family: var(--font-arabic); }

.mobile-nav__close {
  position: absolute;
  top: 26px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}

html[dir="rtl"] .mobile-nav__close { right: auto; left: 28px; }

/* ===== Hero (Accueil) ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s ease, transform 2.4s ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-navy);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 90px;
  color: var(--white);
}

.hero__title {
  font-size: clamp(38px, 6vw, 64px);
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: normal;
  white-space: nowrap;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--gold);
  font-weight: 600;
  margin-top: 18px;
}

.hero__desc {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 16px;
  max-width: 560px;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__dots {
  position: absolute;
  bottom: 40px;
  z-index: 2;
  display: flex;
  gap: 10px;
  inset-inline-start: 28px;
}

.hero__dots button {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.hero__dots button.is-active { background: var(--gradient-brand); }

/* ===== Bannière secondaire (pages internes) ===== */

.page-hero {
  position: relative;
  padding: 168px 0 96px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 145, 77, 0.35), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(255, 189, 89, 0.18), transparent 45%);
  z-index: -1;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 52px);
  max-width: 680px;
}

.page-hero p {
  margin-top: 18px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

/* ===== Sections génériques ===== */

section { padding: 100px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== Cartes services ===== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
}

/* ===== Pourquoi Mauri Flight / Prestations (checklist) ===== */

.why-us {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.why-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 189, 89, 0.18), transparent 50%);
  z-index: -1;
}

.why-us .section-head h2 { color: var(--white); }
.why-us .section-head p { color: rgba(255, 255, 255, 0.75); }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}

.check-item__mark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.check-item span:last-child { font-size: 15.5px; font-weight: 500; }

/* ===== Contact ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-grid .contact-card:last-child {
  grid-column: 1 / -1;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.contact-card h3 { font-size: 17px; margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 15px; }
.contact-card a:hover { color: var(--orange); }

.contact-cta {
  margin-top: 60px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.contact-cta h2 { font-size: clamp(24px, 3vw, 32px); }
.contact-cta p { margin-top: 12px; color: var(--navy-dark); font-weight: 500; }
.contact-cta .btn { margin-top: 24px; }

/* ===== CTA bande générique ===== */

.cta-band {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
  text-align: center;
}

.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.cta-band p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 28px; }

/* ===== Footer ===== */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand__name { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: 14.5px; line-height: 1.7; }

.footer-brand__ar {
  margin-top: 18px;
  font-family: var(--font-arabic);
  color: var(--gold);
}

.footer-brand__ar strong { display: block; font-size: 17px; color: var(--white); margin-bottom: 4px; }
.footer-brand__ar span { font-size: 13.5px; }

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-col li { margin-bottom: 12px; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ===== RTL ===== */

html[dir="rtl"] .site-header .container,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .check-item {
  direction: rtl;
}

html[dir="rtl"] .card__link .btn__arrow,
html[dir="rtl"] .btn .btn__arrow {
  transform: scaleX(-1);
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .lang-toggle-desktop { display: none; }
  .burger { display: flex; }
  section { padding: 72px 0; }
  .check-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero__content { padding-top: 60px; }
  .page-hero { padding: 130px 0 64px; }
}

@media (max-width: 640px) {
  .cards-grid, .cards-grid.cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__dots { inset-inline-start: 20px; }
  .contact-cta { padding: 34px 22px; }
  .container { padding: 0 20px; }
}
