* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #1d2a49;
}

/* NAVBAR */
.navbar {
  width: 100%;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1002;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 100px;
  height: auto;
}

/* Nav Links */
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links ul {
  display: flex;
  font-size: 1.2em;
  gap: 50px;
}

.nav-links ul li a {
  color: #1d2a49;
  transition: 0.3s;
}

.nav-links ul li.active a {
  color: #bfdcec;
  font-weight: 600;
}

/* Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 25px;
}

.social-icons a {
  font-size: 30px;
  color: #1d2a49;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons a:hover i.fa-instagram { color: #e244a0; }
.social-icons a:hover i.fa-linkedin  { color: #0077b5; }
.social-icons a:hover i.fa-envelope  { color: #ab6bc5; }

/* Language Switch */
.language-switch .lang-btn,
.lang-button {
  font-size: 16px;
  padding: 6px 14px;
  border: 2px solid #1d2a49;
  border-radius: 20px;
  color: #1d2a49;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-button {
  background-color: transparent;
  width: auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.lang-button:hover {
  background-color: #1d2a49;
  color: white;
}

/* Device Visibility */
.desktop-only { display: flex; }
.mobile-only { display: none; }

/* Hamburger */
.menu-hamburger { display: none; width: 35px; cursor: pointer; }

/* Close Button */
.close-btn { display: none; }

/* RESPONSIVE NAVBAR */
@media screen and (max-width: 900px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }

  .navbar { padding: 10px 20px; }
  .navbar .logo { margin-right: auto; }
  .menu-hamburger { display: block; margin-left: auto; }

  /* Mobile Menu Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 1000;
  }

  .nav-links.mobile-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links ul { flex-direction: column; gap: 30px; text-align: center; }

  /* Show social icons & language switch inside mobile menu */
  .nav-links.mobile-menu .social-icons,
  .nav-links.mobile-menu .lang-button {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 1004;
  }
}

/* Accueil SECTION Animation */
.clig-hero {
  width: 100%;
  height: 87vh;
  position: relative;
  overflow: hidden;
  background-color: #0a1f44;
}

/* Curtain panels */
.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #bfdcec, #ffffff);
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.curtain-left {
  left: 0;
  animation: curtainLeft 3s ease-in-out forwards;
}

.curtain-right {
  right: 0;
  background: linear-gradient(to left, #bfdcec, #ffffff);
  box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.3);
  animation: curtainRight 3s ease-in-out forwards;
}

@keyframes curtainLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes curtainRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Intro Lines */
.clig-intro {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.clig-line {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  opacity: 0;
  white-space: nowrap;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1px #ffffff;
}

/* etc... (your existing styles remain) */

/* FOOTER Section */
.footer {
  background-color: #ffffff;
  color: #1d2a49;
  padding: 25px 20px 20px;
  font-size: 15px;
}

/* ...footer content remains identical... */

/* ✅ MOBILE NAVBAR FIX (logo left, hamburger right, lang at bottom) */
@media (max-width: 900px) {
  /* Navbar layout */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    position: relative;
  }

  /* Logo fully left */
  .navbar .logo {
    margin-right: auto;
  }

  /* Hamburger menu fully right */
  .menu-hamburger {
    display: block;
    margin-left: auto;
    cursor: pointer;
  }

  /* Hide language button initially */
  .lang-button {
    display: none;
  }

  /* Mobile menu overlay */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .nav-links.mobile-menu {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  /* Show language button at bottom when menu open */
  .nav-links.mobile-menu .lang-button {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    border: 2px solid #1d2a49;
    color: #1d2a49;
    background-color: transparent;
    font-weight: 600;
    font-size: 16px;
    border-radius: 20px;
    padding: 8px 16px;
    transition: background-color 0.3s, color 0.3s;
  }

  .nav-links.mobile-menu .lang-button:hover {
    background-color: #1d2a49;
    color: #ffffff;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 1004;
  }
}

/* Accueil SECTION Animation */
.clig-hero {
  width: 100%;
  height: 87vh;
  position: relative;
  overflow: hidden;
  background-color: #0a1f44;
}

/* Curtain panels */
.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #bfdcec, #ffffff);
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.curtain-left {
  left: 0;
  animation: curtainLeft 3s ease-in-out forwards;
}

.curtain-right {
  right: 0;
  background: linear-gradient(to left, #bfdcec, #ffffff);
  box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.3);
  animation: curtainRight 3s ease-in-out forwards;
}

@keyframes curtainLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes curtainRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Intro Lines (Zoom In) */
.clig-intro {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.clig-line {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  opacity: 0;
  white-space: nowrap;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1px #ffffff;
}

.clig-line1 {
  animation: zoomInLine 2s ease forwards 1.5s, slideOutLeft 1.8s ease-in-out forwards 7s;
}

.clig-line2 {
  animation: zoomInLine 2s ease forwards 1.5s, slideOutRight 1.8s ease-in-out forwards 7s;
}

@keyframes zoomInLine {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-100%); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* Final CLIG Text */
.clig-final {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 4;
  opacity: 0;
  animation: fadeInFinal 2s ease forwards 9s;
}

.clig-final h1 {
  font-size: 3.5rem;
  color: #ffffff;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
}

.clig-final p {
  font-size: 1.7rem;
  margin-top: 1rem;
  font-style: italic;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
}

@keyframes fadeInFinal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Blurred Background */
.clig-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/UdeM.jpeg');
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0;
  z-index: 1;
  animation: bgFadeIn 2s ease-in-out forwards 6s, bgFadePartial 2s ease-in-out forwards 9s;
}

@keyframes bgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bgFadePartial {
  from { opacity: 1; }
  to { opacity: 0.4; }
}

/* Responsive Animation */
@media (max-width: 768px) {
  .clig-line { font-size: 1.5rem; }
  .clig-final h1 { font-size: 2.2rem; }
  .clig-final p { font-size: 1rem; }
}

/* 4 Boxes Section */
.feature-section {
  background-color: #fffcff;
  padding: 130px 20px;
}

.feature-content {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.feature-heading h4 {
  color: #1d2a49;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.feature-heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1d2a49;
  font-family: "Poppins", sans-serif;
}

.features-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 0;
}

.feature-box {
  width: 250px;
  padding: 70px 20px 30px;
  background: #d6f1ff;
  border-radius: 20px;
  text-align: left;
  position: relative;
  transition: 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-box h3 {
  text-align: center;
  font-family: "DM Sans", sans-serif;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background-color: #1d2a49;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
  font-size: 32px;
  color: #ffffff;
}

.feature-box h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1d2a49;
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
}

.feature-box p {
  font-size: 15px;
  color: #1d2a49;
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
  text-align: justify;
}

@media (max-width: 768px) {
  .feature-box { width: 80%; }
}

@media (max-width: 480px) {
  .feature-box { width: 100%; }
}

/* ORBS Section */
.orb-container {
  display: flex;
  height: 350px;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 20px;
  background-color: #1d2a49;
}

.orb {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #bfdcec, #e9f3fa);
  border-radius: 50%;
  box-shadow: 0 0 30px #3e5467;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s, color 0.3s;
  perspective: 1000px;
  text-align: center;
  color: #421c1c;
  overflow: hidden;
}

.orb-heading h2 {
  font-style: normal;
  background-color: #1d2a49;
  color: #d6f1ff;
  text-align: center;
  font-size: 45px;
  margin-top: 50px;
  padding: 5px;
  font-family: "Poppins", sans-serif;
}

.orb-heading p {
  background-color: #1d2a49;
  color: #bfdcec;
  text-align: center;
  font-size: 20px;
  font-family: "DM Sans", sans-serif;
}

.orb:hover {
  transform: scale(1.1);
  color: transparent;
}

.orb .count,
.orb .desc {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(90deg);
  opacity: 0;
  color: #1d2a49;
  pointer-events: none;
  transition: transform 0.5s, opacity 0.5s;
  backface-visibility: hidden;
}

.orb:hover .count,
.orb:hover .desc {
  transform: translate(-50%, -50%) rotateX(0);
  opacity: 1;
}

.orb .count {
  font-size: 30px;
  font-weight: bold;
  padding-bottom: 20px;
}

.orb .desc {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.3;
}

.orb:hover span,
.orb:hover .emoji {
  opacity: 0;
}

@media (max-width: 768px) {
  .orb {
    width: 100px;
    height: 100px;
    font-size: 28px;
  }

  .orb .count {
    font-size: 18px;
  }

  .orb .desc {
    font-size: 12px;
  }
}

/* FOOTER Section */
.footer {
  background-color: #ffffff;
  color: #1d2a49;
  padding: 25px 20px 20px;
  font-size: 15px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-left .logo-img {
  width: 150px;
  margin-bottom: 10px;
}

.footer-left p {
  line-height: 1.5;
  max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 12px;
  font-weight: 600;
  color: #1d2a49;
}

.footer-links ul {
  padding: 0;
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #1d2a49;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #bfdcec;
}

.footer-social .social-icons a {
  color: #1d2a49;
  margin-right: 15px;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid #1d2a49;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-left .logo-img {
    margin-bottom: 15px;
  }

  .footer-left p {
    max-width: 100%;
  }

  .footer-links,
  .footer-social {
    margin-top: 30px;
  }

  .footer-social .social-icons a {
    margin-right: 10px;
  }
}