/* ============================================================
   Cabinet MBA — Experts Comptables & Conseil
   Palette : camaïeu de bleus + accent or champagne
   ============================================================ */

:root {
  --navy-950: #050F1E;
  --navy-900: #0A2540;
  --navy-850: #0C2B4A;
  --navy-800: #103358;
  --blue-700: #14477D;
  --blue-600: #1D5FBF;
  --blue-500: #2E7CE4;
  --sky-400: #6FAEF5;
  --sky-300: #9CC7F8;
  --ice-100: #EAF2FC;
  --ice-50: #F6FAFE;
  --white: #FFFFFF;
  --gold: #C6A15B;
  --gold-light: #E3C98F;
  --text: #223447;
  --text-soft: #51667C;
  --border: #DCE7F3;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(10, 37, 64, 0.07);
  --shadow-md: 0 10px 34px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.18);

  --radius: 14px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ============ Topbar ============ */
.topbar {
  background: var(--navy-950);
  color: var(--sky-300);
  font-size: 13px;
  border-bottom: 1px solid rgba(111, 174, 245, 0.12);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-left { display: flex; gap: 22px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-item svg { width: 14px; height: 14px; color: var(--gold); }
.topbar-badge {
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ============ Sélecteur de langue ============ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(111, 174, 245, 0.25);
  border-radius: 999px;
}
.lang-btn {
  min-width: 30px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  line-height: 1.6;
}
.lang-btn[data-lang="ar"] { font-size: 15px; line-height: 1.2; }
.lang-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-900);
}

/* ============ Navigation ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(111, 174, 245, 0.14);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(5, 15, 30, 0.35); background: rgba(8, 30, 52, 0.97); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark { width: 44px; height: 44px; color: var(--gold); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand-text small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sky-300);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--gold);
  color: var(--navy-900) !important;
  padding: 9px 22px !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(46, 124, 228, 0.28), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(20, 71, 125, 0.55), transparent 65%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-850) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-lines { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  padding-top: 90px;
  padding-bottom: 110px;
  max-width: 900px;
}
.hero-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold-light);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-kicker::before {
  content: "";
  width: 42px; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--sky-300);
}
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 70px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(198, 161, 91, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(198, 161, 91, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.btn-blue {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(29, 95, 191, 0.3);
}
.btn-blue:hover { background: var(--blue-500); transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 780px;
  border-top: 1px solid rgba(111, 174, 245, 0.2);
  padding-top: 34px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  animation: floatY 2.4s ease-in-out infinite;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.hero-scroll:hover { border-color: var(--gold); color: var(--gold); }
.hero-scroll svg { width: 16px; height: 16px; }
@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ============ Sections génériques ============ */
.section { padding: 104px 0; }
.section-ice { background: var(--ice-50); }
.section-dark {
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(46, 124, 228, 0.16), transparent 60%),
    linear-gradient(170deg, var(--navy-900) 0%, var(--navy-850) 100%);
  color: var(--white);
}
.section-head { max-width: 760px; margin-bottom: 58px; }
.eyebrow {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--blue-600);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}
.section-head-light .eyebrow { color: var(--sky-300); }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
}
.section-head h2 em { font-style: italic; color: var(--blue-600); }
.section-head-light h2 { color: var(--white); }
.section-head-light h2 em { color: var(--sky-300); }
.section-sub {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 16.5px;
}
.section-head-light .section-sub { color: rgba(255, 255, 255, 0.72); }

/* ============ Le Cabinet ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text .lead {
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.5;
  color: var(--navy-900);
  margin-bottom: 22px;
}
.about-text p { margin-bottom: 16px; color: var(--text-soft); }
.about-text p strong { color: var(--navy-900); }
.check-list { margin-top: 26px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ice-100);
  border: 1px solid var(--sky-300);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}
.about-card {
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--blue-700) 130%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 1px solid rgba(198, 161, 91, 0.35);
}
.about-card::after {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(111, 174, 245, 0.3);
}
.about-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 22px;
  color: var(--gold-light);
}
.team-figures { display: grid; gap: 13px; margin-bottom: 26px; }
.team-figures li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}
.team-figures li span:first-child {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--gold-light);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(198, 161, 91, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-card-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sky-300);
  border-top: 1px solid rgba(111, 174, 245, 0.25);
  padding-top: 20px;
}

/* ============ Services (onglets) ============ */
.tabs { margin-top: 8px; }
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(111, 174, 245, 0.25);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.tab-btn svg { width: 18px; height: 18px; }
.tab-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); transform: translateY(-1px); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-color: transparent;
  color: var(--navy-900);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(198, 161, 91, 0.3);
}
.tab-panel { display: none; animation: fadeUp 0.5s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel-grid {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(111, 174, 245, 0.18);
  border-radius: var(--radius);
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 44px;
}
.panel-intro h3 {
  font-family: var(--font-serif);
  font-size: 27px;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.panel-intro p { color: rgba(255, 255, 255, 0.75); font-size: 15.5px; }
.panel-lists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.panel-lists-4 { grid-template-columns: repeat(2, 1fr); }
.panel-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky-300);
  margin-bottom: 14px;
  font-weight: 600;
}
.panel-col ul { display: grid; gap: 9px; }
.panel-col li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}
.panel-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--gold);
}

/* ============ Pourquoi nous ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 60px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 34px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-300);
}
.pillar-num {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 600;
  color: var(--ice-100);
  -webkit-text-stroke: 1px var(--sky-300);
  position: absolute;
  top: 22px; right: 28px;
  line-height: 1;
}
.pillar h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy-900);
  margin-bottom: 14px;
  padding-right: 70px;
}
.pillar p { font-size: 15px; color: var(--text-soft); margin-bottom: 14px; }
.pillar-benefit {
  font-size: 14.5px !important;
  color: var(--blue-600) !important;
  font-weight: 500;
  font-style: italic;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-bottom: 0 !important;
}
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.advantage {
  background: var(--ice-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.advantage-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(29, 95, 191, 0.25);
}
.advantage-icon svg { width: 22px; height: 22px; }
.advantage p { font-size: 14px; color: var(--text-soft); }
.advantage p strong { color: var(--navy-900); }

/* ============ Équipe ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 118px; height: 118px;
  margin: 0 auto 22px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--sky-400) 100%);
}
.team-photo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--white);
}
.team-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.team-role {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
.team-quals {
  font-size: 12.5px;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.team-bio {
  font-size: 14px;
  color: var(--text-soft);
  text-align: left;
  margin-bottom: 18px;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.team-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-700);
  background: var(--ice-100);
  border: 1px solid var(--sky-300);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ============ Références — bande défilante ============ */
.logo-marquee {
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.logo-track {
  position: relative;
  display: flex;
  width: max-content;
  gap: 20px;
  animation: marquee-left 46s linear infinite;
}
.logo-track-reverse {
  animation-name: marquee-right;
  animation-duration: 52s;
}
.logo-track-set {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.ref-logo {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 22px;
  width: 168px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(5, 15, 30, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
a.ref-logo {
  cursor: pointer;
}
a.ref-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(5, 15, 30, 0.28);
}
.ref-logo img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ============ Page Règlementation ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% -20%, rgba(46, 124, 228, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-850) 100%);
  color: var(--white);
  padding: 74px 0 62px;
}
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero-bg svg { width: 100%; height: 100%; }
.page-hero-inner { position: relative; max-width: 780px; }
.eyebrow-light { color: var(--sky-300); }
.eyebrow-light::before { background: var(--gold); }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-top: 6px;
}
.page-hero h1 em { font-style: italic; color: var(--sky-300); }
.page-hero-sub {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}
.reg-page { padding-top: 64px; }
.reg-group { margin-bottom: 44px; }
.reg-group:last-child { margin-bottom: 0; }
.reg-cat-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.reg-cat-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

/* ============ Règlementation ============ */
.reg-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.reg-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.reg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky-300);
}
.reg-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reg-icon svg { width: 24px; height: 24px; }
.reg-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.reg-name { font-size: 15.5px; color: var(--navy-900); line-height: 1.35; }
.reg-desc { font-size: 13px; color: var(--text-soft); }
.reg-meta {
  font-size: 11.5px;
  color: var(--blue-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.reg-dl {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--ice-100);
  border: 1px solid var(--sky-300);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.reg-card:hover .reg-dl { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.reg-dl svg { width: 15px; height: 15px; }
.reg-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
  padding: 30px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
[dir="rtl"] .reg-icon svg { transform: scaleX(-1); }

/* ============ Engagements ============ */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.commit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.commit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.commit-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-700));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 26px rgba(10, 37, 64, 0.25);
}
.commit-icon svg { width: 26px; height: 26px; }
.commit-card h3 {
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.commit-card p { color: var(--text-soft); font-size: 15px; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: stretch;
}
.contact-grid > * { min-width: 0; }
.contact-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.contact-person img {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--ice-100);
  box-shadow: var(--shadow-sm);
}
.contact-person h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy-900);
}
.contact-person p { font-size: 14px; color: var(--blue-600); font-weight: 500; }
.contact-list { display: grid; gap: 20px; margin-bottom: 30px; flex: 1; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.contact-list li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--text); transition: color 0.25s ease; }
.contact-list a:hover { color: var(--blue-600); }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--ice-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  min-height: 420px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ============ Footer ============ */
.footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .brand-mark { color: var(--gold); width: 48px; height: 48px; }
.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.footer-brand p { font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-contact p { font-size: 14.5px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.65); }
.footer-bottom {
  border-top: 1px solid rgba(111, 174, 245, 0.12);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ============ Animations reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .panel-grid { grid-template-columns: 1fr; gap: 30px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .topbar-badge { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(111, 174, 245, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a {
    width: 100%;
    padding: 15px 24px;
    border-top: 1px solid rgba(111, 174, 245, 0.08);
  }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a.nav-cta {
    margin: 10px 24px 18px;
    width: calc(100% - 48px);
    border-radius: 999px;
    text-align: center;
    justify-content: center;
    display: flex;
  }
  .pillars, .commit-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .panel-lists, .panel-lists-4 { grid-template-columns: 1fr; }
  .panel-grid { padding: 28px 24px; }
  .hero-inner { padding-top: 64px; padding-bottom: 90px; }
  .hero-sub { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-map { min-height: 340px; }
  .contact-map iframe { min-height: 340px; }
  .logo-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .ref-logo { width: 132px; height: 72px; padding: 12px 16px; }
  .ref-logo img { max-height: 38px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .topbar-hide-sm { display: none; }
  .advantages { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}

/* ============ Support arabe (RTL) ============ */
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .about-text .lead,
[dir="rtl"] .about-card-quote,
[dir="rtl"] .section-head h2 {
  font-family: "Segoe UI", "Tahoma", "Geeza Pro", "Noto Naskh Arabic", "Arial", sans-serif;
}
[dir="rtl"] .hero h1 em,
[dir="rtl"] .section-head h2 em,
[dir="rtl"] .about-text .lead,
[dir="rtl"] .about-card-quote { font-style: normal; }

/* Alignements */
[dir="rtl"] .team-bio { text-align: right; }

/* Puces de listes : basculer à droite */
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .check-list li::after { left: auto; right: 6px; }
[dir="rtl"] .panel-col li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .panel-col li::before { left: auto; right: 0; }

/* Numéros décoratifs des piliers */
[dir="rtl"] .pillar-num { right: auto; left: 28px; }
[dir="rtl"] .pillar h3 { padding-right: 0; padding-left: 70px; }

/* La bande de logos garde son sens de défilement */
[dir="rtl"] .logo-marquee { direction: ltr; }

/* Ligne dorée de l'eyebrow reste cohérente en RTL (flex gérée automatiquement) */
[dir="rtl"] .team-figures li span:first-child { margin-left: 0; }

/* ============================================================
   Chatbot — Assistant MBA
   ============================================================ */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}
.chatbot-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-900);
  box-shadow: 0 12px 30px rgba(198, 161, 91, 0.45), 0 4px 12px rgba(5, 15, 30, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chatbot-toggle:hover { transform: translateY(-3px) scale(1.04); }
.chatbot-toggle svg { width: 27px; height: 27px; position: absolute; transition: opacity 0.25s ease, transform 0.25s ease; }
.chatbot-toggle-close { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.chatbot.open .chatbot-toggle-open { opacity: 0; transform: rotate(45deg) scale(0.6); }
.chatbot.open .chatbot-toggle-close { opacity: 1; transform: rotate(0) scale(1); }
/* Pastille de notification pulsée */
.chatbot-toggle::after {
  content: "";
  position: absolute;
  top: 2px; right: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #2ec76b;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(46, 199, 107, 0.6);
  animation: chatPulse 2.2s infinite;
}
.chatbot.open .chatbot-toggle::after { display: none; }
@keyframes chatPulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 199, 107, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(46, 199, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 199, 107, 0); }
}

.chatbot-panel {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 130px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(5, 15, 30, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.chatbot.open .chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-700) 130%);
  color: var(--white);
  flex-shrink: 0;
}
.chatbot-avatar { width: 40px; height: 40px; color: var(--gold-light); flex-shrink: 0; }
.chatbot-avatar svg { width: 100%; height: 100%; }
.chatbot-headtext { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.chatbot-headtext strong { font-family: var(--font-serif); font-size: 17px; }
.chatbot-status {
  font-size: 11.5px;
  color: var(--sky-300);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chatbot-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ec76b;
  flex-shrink: 0;
}
.chatbot-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.22); }
.chatbot-close svg { width: 16px; height: 16px; }

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  background: var(--ice-50);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.chat-msg.bot .chat-bubble {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-bubble p { margin: 0 0 8px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble ul, .chat-bubble ol { margin: 6px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.chat-bubble li { font-size: 13.5px; }
.chat-bubble a { color: var(--blue-600); text-decoration: underline; word-break: break-all; }
.chat-bubble strong { color: var(--navy-900); }
.chat-msg.user .chat-bubble a, .chat-msg.user .chat-bubble strong { color: #fff; }
.chat-bubble .chat-h { font-weight: 700; color: var(--navy-900); margin-top: 4px; }
.chat-bubble .chat-quote {
  border-left: 3px solid var(--sky-300);
  padding-left: 10px;
  color: var(--text-soft);
  font-size: 13px;
}

/* Indicateur de saisie */
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sky-400);
  animation: chatDot 1.3s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Questions suggérées */
.chat-suggestions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 2px; }
.chat-chip {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--blue-700);
  background: var(--white);
  border: 1px solid var(--sky-300);
  padding: 9px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  max-width: 100%;
}
.chat-chip:hover { background: var(--ice-100); border-color: var(--blue-500); transform: translateX(2px); }

.chatbot-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px;
  border-top: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}
.chatbot-input input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--ice-50);
  border-radius: 999px;
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.chatbot-input input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(46, 124, 228, 0.12);
}
.chatbot-input button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chatbot-input button:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(198, 161, 91, 0.4); }
.chatbot-input button svg { width: 19px; height: 19px; }
.chatbot-disclaimer {
  font-size: 10.5px;
  color: var(--text-soft);
  text-align: center;
  padding: 0 14px 12px;
  background: var(--white);
  margin: 0;
  flex-shrink: 0;
}

/* RTL chatbot */
[dir="rtl"] .chatbot { right: auto; left: 24px; }
[dir="rtl"] .chatbot-panel { right: auto; left: 0; transform-origin: bottom left; }
[dir="rtl"] .chat-msg.bot { justify-content: flex-end; }
[dir="rtl"] .chat-msg.user { justify-content: flex-start; }
[dir="rtl"] .chat-msg.bot .chat-bubble { border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
[dir="rtl"] .chat-msg.user .chat-bubble { border-bottom-right-radius: 16px; border-bottom-left-radius: 5px; }
[dir="rtl"] .chat-suggestions { align-items: flex-end; }
[dir="rtl"] .chat-chip { text-align: right; }
[dir="rtl"] .chat-bubble ul, [dir="rtl"] .chat-bubble ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .chat-bubble .chat-quote { border-left: none; border-right: 3px solid var(--sky-300); padding-left: 0; padding-right: 10px; }
[dir="rtl"] .chatbot-status { font-family: "Segoe UI", "Tahoma", sans-serif; }

@media (max-width: 480px) {
  .chatbot { bottom: 16px; right: 16px; }
  [dir="rtl"] .chatbot { right: auto; left: 16px; }
  .chatbot-toggle { width: 56px; height: 56px; }
  .chatbot-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 110px);
    bottom: 72px;
  }
}
