* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
}

body {
  min-height: 100vh;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
}
body.menu-open {
  overflow: hidden;
  position: fixed;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("images/background.png");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  background: #1a53e4;
  border: none;

  width: 42px;
  height: 42px;

  border-radius: 10px;

  cursor: pointer;

  z-index: 3000;
  position: relative;
}


.menu-overlay {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;

  background: rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  z-index: 1500;
}



.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
.hamburger span {
  width: 20px;
  height: 2.5px;

  background: #ffffff;

  border-radius: 5px;

  transition: 0.3s ease;

  display: block;
  margin: 0 auto;
}
.navbar {
  background: #fff;
  padding: 0.625rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 110px;
  position: fixed;
  top: 0;
  z-index: 2500;
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored:
    0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow:
    var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.switch-language {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background-color: white;
}

.switch-language img {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  padding: 6px;

  border: 2px solid #c5c5c5;

  object-fit: cover;
  display: block;
}
.switch-language img:hover {
  border-color: #1a53e4;
  transition: border-color 0.3s;
}
.navbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  z-index: 2000;
}
.navbar-links li {
  display: flex;
  align-items: center;
}
.navbar-links a {
  text-decoration: none;
  color: #ffff;
  background: #1a53e4;
  padding: 0.7rem 1.7rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.15rem;
  transition:
    background 0.2s,
    color 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.navbar-links a.active,
.navbar-links a:hover {
  background: #1e40af;
  color: #fff;
}
ul li {
  list-style: none;
}

.hamburger:hover {
  background: #1e40af;
  transform: scale(1.05);
}

.hero-section {
  margin-top: 6rem;
  background: #0d3f7a;
  padding: 30px;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 95%;

  height: 500px;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.96);
  margin-top: 1.25rem;
}
.hero-image1 {
  width: 95%;
  height: 650px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(images/yassinadel.jpeg);
  background-size: cover;
  background-position: center 5%;
  background-repeat: no-repeat;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.92);
  margin-top: 1.25rem;
}
.secrétaires {
  margin-bottom: 350px;
}
.hero-content {
  text-align: center;
  color: white;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
  animation: fadeUp 1.5s ease-out;
}

.welcome-text {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 5vw, 5rem);
  margin-bottom: -10px;
  margin-right: 31.25rem;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  margin: 10px 0;
}

.slogan {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.5;
}

.countdown {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.time-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);

  padding: 20px;
  min-width: 100px;

  border-radius: 12px;
  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-box span {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  font-family: "Montserrat", sans-serif;

  display: block;
}

.time-box p {
  margin-top: 5px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.colon {
  font-size: 3rem;
  font-weight: bold;
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  margin-top: -20px;
}
.content-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px;
  font-size: 1.5rem;
  overflow-x: hidden;
}
.floating-logo {
  float: right;
  width: 40.625rem;
  height: auto;
  margin-left: 30px;
  margin-bottom: 20px;
  border-radius: 12px;
}

h2 {
  color: #1a53e4;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
  font-size: 2.5rem;
}

p {
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
}
.gold {
  color: #cea70c;
}
.foot {
  background-color: #0d3f7a;
  padding: 0 0 20px;
  width: 100%;
  margin: 0;
}
.foot-blue {
  color: white;
  text-align: center;
  padding: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  width: 100%;
}
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d3f7a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #ffcc00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#loader-wrapper p {
  color: white;
  margin-top: 15px;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
}
.foot-logo {
  height: 70px;
  width: auto;
}
.foot-gray {
  color: #c5c5c5;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: clamp(60px, 11vw, 160px);
  align-items: center;
  background-color: #202936;
  width: 100%;
  min-height: 143px;
  margin: 0;
  padding: 10px 80px 14px;
  position: relative;
}

.foot-gray-left,
.foot-gray-middle,
.foot-gray-right {
  flex: 1 1 0;
  min-width: 0;
}

.foot-gray-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  text-align: center;
}

.foot-gray-left .foot-logo {
  margin-bottom: 8px;
}

.foot-gray-left h3 {
  width: 100%;
  text-align: center;
}

.foot-gray-left p {
  width: 100%;
  text-align: center;
}

.foot-gray h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.foot-gray p,
.foot-gray li {
  line-height: 1.35;
}

.foot-gray ul {
  list-style: none;
}

.foot-links a,
.foot-links a:visited {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.3s;
}
a {
  color: #ffffff;
}
.foot-gray li a {
  color: #c5c5c5;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer-bottom {
  width: 100%;
  background-color: transparent;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}
.rendere {
  width: 100%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116.5px;
  padding: 50px;
  position: relative;
}
.rendere > div:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.renderlinks {
  gap: 20px;
  display: flex;
}
.rlogo {
  width: 200px;
}
h3 {
  color: white;
  font-family: "Inter", sans-serif;
}
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #1a53e4;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26, 83, 228, 0.35);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: #1e40af;
  transform: translateY(-3px);
}
.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hamburger span {
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    background 0.2s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
    height: 90px;
  }

  .navbar-logo {
    height: 55px;
  }

  .hamburger {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;

    background: rgb(255, 255, 255);
    backdrop-filter: blur(18px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: right 0.4s ease;
    z-index: 999;

    padding: 0;
    margin: 0;
  }

  .navbar-links.active {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.2rem;

    border-radius: 3rem;

    background: #1a53e4;
    color: white;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  .navbar-links li {
    width: auto;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
  }

  .switch-language img {
    height: 2.5rem;
    padding: 0.4rem;
  }

  .hero-section {
    margin-top: 4rem;
  }

  .hero-image {
    height: 300px;
    scale: 1.1;
  }

  
  .hero-image1 {
    height: 300px;
    background-position: center 10%;
    scale: 1.19;
    align-items: flex-start;
  }

  .secrétaires {
    margin-bottom: 0;
    margin-top: 16px;
    font-size: 1rem;
    align-self: center;
  }
  

  .welcome-text {
    font-size: 1.7rem;
    margin-right: 10.625rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .slogan {
    font-size: 1rem;
    padding: 0 10px;
  }
  .time-box {
    min-width: 50px;
    padding: 6px;
  }

  .time-box span {
    font-size: 3rem;
  }

  .time-box p {
    font-size: 0.6rem;
  }

  .colon {
    font-size: 1rem;
  }

  .floating-logo {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    width: 200px;
  }
  .content-section {
    font-size: 1rem;
  }
  h2 {
    font-size: 2rem;
  }

  .foot-gray {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }

  .footer-bottom {
    width: 100%;
  }

  .foot-blue {
    font-size: 0.9rem;
    padding: 15px;
  }

  .foot-logo {
    height: 50px;
  }

  .foot-gray-left,
  .foot-gray-middle,
  .foot-gray-right {
    width: 100%;
    max-width: none;
  }

  .foot-gray-left {
    display: block;
  }
  .foot-gray h3 {
    justify-self: center;
  }
  .rendere {
    height: auto;
    padding: 24px 16px;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .rendere > div:nth-child(2) {
    position: static;
    transform: none;
    order: 2;
  }

  .renderelogo {
    order: 1;
  }

  .renderlinks {
    order: 3;
    justify-content: center;
    gap: 18px;
  }

  .rlogo {
    width: min(180px, 75vw);
  }

  .rendere h3 {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
 .section-title {
  font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 6px;
    color: #1a1a2e;
    margin-bottom: 40px;
  }
 

  .cards-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 325px;
    max-width: 1100px;
    margin: 0 auto 56px;
  }

  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(220px, 28vw, 320px);
  }
 
  
  .card-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    border: 4px solid #c9a84c;
    border-radius: 6px;
    overflow: hidden;
    background: #b0b8cc;
    position: relative;
  }
 
  .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
  }
 
 
 
  .card-name {
    margin-top: 14px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: #1a1a2e;
    text-align: center;
  }
 

  .cards-row.single {
    justify-content: center;
  }
 
   @media (max-width: 600px) {
    .cards-row {
      gap: 24px;
    }
    .card {
      width: clamp(150px, 42vw, 220px);
    }
  }