@import url("https://fonts.cdnfonts.com/css/barlow-condensed");

/* VARIABLES : */
:root {
  /* COLORS */
  --primary-color: #6d6d6c;
  --secondary-color: #2ecc71;
  --background-color: #f5f5f5;
  --font-color: #333;
  --color-black: #000;
  --color-white: #fff;
  --ensg-color: #006d82;

  /* FONT FAMILY */
  --font-family: "Barlow", Arial, "Helvetica Neue", Helvetica,
    "Bitstream Vera Sans", sans-serif;
  --font-family-osw: "Oswald", sans-serif;
  --font-family-gt: "Roboto", sans-serif;
  --font-family-prx: "Proxima Nova", sans-serif;

  /* FONT SIZE */
  --font-size-base: 62.5%;
  --font-size-sm: 1.5rem;

  --spacing-unit: 1rem;
  --header-height: 5.5rem;
  --header-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --submenu-width: 28rem;

  --filter-white: brightness(0) invert(1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

/* Reset default padding and margin for ul */
ul {
  padding-left: 0;
  margin-left: 0;
  list-style-position: inside;
}

::-webkit-scrollbar {
  width: 1.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: #273e6c;
  border-radius: 10rem;
  box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-track {
  background-color: #332b2b;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.5;
  background-color: #f3f4f4;
  color: var(--primary-color);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

main#fcz-main {
  line-height: 1.7;
}

.no-scroll {
  overflow: hidden;
}

/* Header styles */
.site-header,
.site-header-secondary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11111;
  padding: 0.5rem 5%;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

.header-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #273e6c;
  height: var(--header-height);
  padding: 0 var(--spacing-unit);
  box-shadow: var(--header-shadow);
  padding: 0 9rem;
}

.header-ensignement {
  background-color: var(--ensg-color);
  padding-block: 3.3rem;
}

.header-ensignement .custom-logo {
  width: 10rem;
}

/* Header Black */
.header-black {
  padding: 0.5rem 0 0 5% !important;
}

.header-black.header_changes .nav-menu {
  background-color: transparent !important;
}

.header-black:not(.header_changes)
  .nav-menu
  li
  a:hover:not(.sub-menu li a:hover) {
  background-color: #464a4f;
}

.spacing {
  padding-top: 0.8rem;
}

.site-branding img {
  filter: var(--filter-white);
}

.intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgb(42 65 147 / 60%)),
    url(../img/uiass-img/cover.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  text-align: center;
}

.header_changes {
  background: #273e6c;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
}

.site-header .container,
.site-header-secondary .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-branding {
  /* flex: 1; */
  flex: 0 0 25%;
}

.site-branding a img {
  width: 11rem;
  height: auto;
  /* display: none; */
  transition: all 0.8s linear;
}

/* .fixed-header a img {
  display: block;
} */

.site-header-secondary a img {
  display: block !important;
}

.main-navigation {
  /* flex: 2; */
  flex: 0 0 75%;
  display: flex;
  justify-content: end;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .menu-icon {
  width: 30px;
  height: 3px;
  background-color: var(--color-white);
  display: block;
  position: relative;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: "";
  width: 30px;
  height: 3px;
  background-color: var(--color-white);
  position: absolute;
  left: 0;
}

.menu-toggle .menu-icon::before {
  top: -10px;
}

.menu-toggle .menu-icon::after {
  top: 10px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: block;
  padding: var(--spacing-unit);
  text-decoration: none;
  color: var(--color-white);
  /* font-size: var(--font-size-sm); */
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.sub-menu li a {
  font-size: 1.7rem;
}

/* .nav-menu li:hover > a {
  color: var(--primary-color);
} */

.nav-menu li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: var(--header-shadow);
  list-style: none;
  margin: 0;
  padding: 0;
  width: var(--submenu-width);
  z-index: 1;
}

.nav-menu li > .sub-menu > li > a {
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-menu li > .sub-menu > li > a:hover {
  color: #000000c4;
}

.nav-menu .sub-menu .sub-menu a {
  color: inherit;
  font-weight: normal;
}

.nav-menu .sub-menu .sub-menu a:hover {
  color: #000;
  font-weight: normal;
}

.nav-menu li:last-child .sub-menu {
  position: absolute;
  left: auto;
  right: 0;
}

.nav-menu li:hover > .sub-menu {
  display: block;
}

.nav-menu li ul li a {
  padding: var(--spacing-unit);
  color: var(--font-color);
}

.nav-menu li .sub-menu li .sub-menu {
  position: static;
  display: none;
}

/* .nav-menu li .sub-menu li .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  z-index: 1000;
  background: white;
  margin: 10px 0;
} */

.nav-menu li .sub-menu li:hover > .sub-menu {
  display: block;
}

/* main */
.section {
  padding: 5rem 10rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 4rem 4rem;
}

.p-13 {
  padding-top: 13rem;
}

.flex-start {
  align-items: flex-start;
}

.flex-reverse {
  flex-direction: row-reverse;
}

.section-img {
  /* ADM */
  /* flex: 0 0 46%; */
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.section-img img {
  /* ADM */
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(100%) contrast(100%) saturate(100%) blur(0px)
    hue-rotate(0deg);
  /* border-radius: 20px 20px 20px 20px; */
}

.section-content {
  /* ADM */
  /* flex: 0 0 50%; */
  flex: 1;
}

.section-content p,
.section-content ul li {
  color: var(--primary-color);
  /* color: #1e1e1e; */
  /* font-size: 1.55rem; */
  font-weight: 400;
  letter-spacing: -0.1px;
  text-align: justify;
}

.section-title {
  /* font-family: "Oswald", Sans-serif; */
  /* font-family: "Canela Deck", sans-serif; */
  color: #171d56;
  font-size: 3.7rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 0.8;
}

.video-page {
  width: 60%;
  margin: 11rem auto 5rem auto;
}

.president-biographie {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 300;
  text-align: justify;
  margin-top: -7rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .site-header,
  .site-header-secondary {
    padding: 0.5rem 2rem;
  }

  .header-black {
    padding: 0.5rem 5% !important;
  }

  .header-black .nav-menu {
    background-color: transparent !important;
  }

  .nav-menu li ul {
    position: relative;
    width: 100%;
    margin: 0;
  }

  .nav-menu li .sub-menu {
    width: 100%;
  }

  .nav-menu ul li {
    display: inherit;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #ededed;
  }

  .nav-menu li a {
    color: var(--color-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-menu > .menu-item-has-children > a .toggle-arrow {
    filter: none !important;
  }

  .nav-menu li a:hover {
    background-color: #e1e1e1 !important;
  }

  .nav-menu li ul li a {
    color: #374c83;
  }

  .mobile-hide {
    display: none;
  }

  .main-navigation {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    left: 0;
    z-index: 1000;
    justify-content: start;
    overflow-y: auto; /* Ensure scrolling is enabled */
    margin-top: 1rem;
  }

  .main-navigation.toggled {
    display: flex;
  }

  .menu-toggle {
    display: block;
    order: 2;
    align-self: self-start;
    margin-top: 3rem;
  }

  .nav-menu {
    flex-direction: column;
  }

  .site-branding {
    order: 1;
    width: 100%;
  }

  .rotate {
    margin-left: -1.1rem !important;
  }

  .rotate::after {
    bottom: 25% !important;
  }

  .elm {
    margin-left: -0.44rem !important;
  }

  .row-1 {
    flex-direction: column;
    gap: 2em;
  }

  .adresse {
    text-align: left !important;
  }

  .footer-logo img {
    width: 6rem !important;
  }

  .intro-text {
    zoom: 48%;
  }

  .vector-container {
    zoom: 67%;
    display: flex;
    align-items: center;
  }

  .vector-container::after {
    height: 97% !important;
    bottom: -7% !important;
  }

  .text-container {
    margin-top: -1rem;
  }

  .elementor-2 .elementor-element.elementor-element-45e00eb {
    flex-direction: column-reverse;
  }

  .section {
    padding: 2rem;
  }

  .section-img {
    flex: 0 0 100%;
  }
  .section-content {
    flex: 0 0 100%;
  }
}

/* Main */
.intro-image {
  min-height: 100vh;
  /* overflow: hidden; */
  /* animation: zoomIn 10s ease-in-out infinite alternate;
  background-size: cover; */
}

/* @keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
} */

/* .intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: moveInTop 0.8s ease-in;
} */

.intro-text {
  font-family: var(--font-family);
  color: var(--color-white);
  text-transform: uppercase;
  animation-fill-mode: backwards;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  position: absolute;
  top: 50%;
  left: 4%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.vector-container {
  position: relative;
}

.vector-container::after {
  content: "";
  border-right: 2px solid var(--color-white);
  animation: moveInBottom 0.8s ease-in;
  animation-fill-mode: backwards;
  border-width: thick;
  width: 100%;
  /* height: 88%; */
  height: 60%;
  position: absolute;
  /* bottom: 6%; */
  bottom: 21%;
  left: 6%;
}

.text-container {
  margin-left: 3rem;
}

img#vector-one {
  width: 10rem;
  padding-top: 11rem;
  animation: moveInRight2 1.2s ease-in;
  animation-fill-mode: backwards;
}

img#vector-two {
  width: 10rem;
  padding-top: 11rem;
  animation: moveInRight 1.2s ease-in;
  animation-fill-mode: backwards;
}

.vector-container #vector-three {
  position: absolute;
  left: 20%;
  bottom: 29%;
  width: 14rem;
  animation: moveInTopB 1.3s ease-in;
}

.flexed-intro {
  display: flex;
}

.rotate {
  color: var(--color-white);
  transform: rotate(270deg) scaleY(1.2);
  font-size: 4rem;
  letter-spacing: -3px;
  margin-left: -8rem;
  margin-top: 1.5rem;
  opacity: 50%;
  /* animation: moveInLeft 6s ease-in;
  animation-fill-mode: backwards; */
  /* animation: moveInLeft 6s ease-in forwards; */
}

.rotate span {
  animation: moveInLeftOpacity 8s 4s backwards;
}

.rotate::after {
  content: "";
  border-bottom: 2px solid var(--color-white);
  border-width: thick;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 42%;
  left: -1%;
  /* z-index: -11; */
  animation: moveInTop 2s ease-in;
}

.elm-logo {
  animation: moveInBottom 0.6s ease-in;
}

.elm-sante {
  display: block;
  font-size: 9.4rem;
  color: var(--color-white);
  letter-spacing: 2.7px;
  flex: 1 1 20%;
  margin-block: 1.5rem;
  animation: moveInRight 0.6s ease-in;
  animation-fill-mode: backwards;
  opacity: 80%;
}

.elm-tous {
  font-size: 3rem;
  letter-spacing: 5px;
  display: block;
  margin-top: -1rem;
  animation: moveInRight 0.6s ease-in;
  animation-fill-mode: backwards;
  opacity: 60%;
}

.elm-science {
  font-size: 3rem;
  transform: scaleY(1.2);
  animation: moveInTop 0.8s ease-in;
  animation-fill-mode: backwards;
}

.elm {
  display: flex;
  flex-direction: column;
  margin-left: -7.44rem;
  transform: scaleY(1.2);
}

#vector-one {
  animation-delay: 0s;
}

#vector-one {
  animation-delay: 2s;
}

#vector-one {
  animation-delay: 4s;
}

.vector-container::after {
  animation-delay: 1s;
}

#element1 {
  animation-delay: 2s;
}

#element2 {
  animation-delay: 4s;
}

/* #element3 span {
  animation-delay: 6s;
} */

#element4 {
  animation-delay: 6s;
}
/* #element1 {
  animation-delay: 0s;
}

#element2 {
  animation-delay: 2s;
}

#element3 {
  animation-delay: 4s; 
}

#element4 {
  animation-delay: 6s; 
} */

@keyframes moveInLeft {
  from {
    opacity: 0;
    transform: rotate(270deg) scaleY(1.2) translateY(-100px);
  }
  to {
    opacity: 0.45;
    transform: rotate(270deg) scaleY(1.2) translate(0);
  }
}

@keyframes moveInLeftOpacity {
  0% {
    opacity: 0;
    transform: rotate(270deg) scaleY(1.2) translateY(-100px);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(270deg) scaleY(1.2) translate(0);
  }
}

@keyframes moveInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 0.45;
    transform: translate(0);
  }
}

@keyframes moveInRight2 {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 0.45;
    transform: translate(0);
  }
}

@keyframes moveInTop {
  from {
    opacity: 0;
    transform: scaleY(1.2) translateY(-100px);
  }
  to {
    opacity: 0.45;
    transform: scaleY(1.2) translate(0);
  }
}

@keyframes moveInTopB {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 0.45;
    transform: translate(0);
  }
}

@keyframes moveInBottom {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 0.45;
    transform: translate(0);
  }
}

#scroll-bottom {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translate(-50%, -50%);
}

#scroll-bottom a {
  padding-top: 80px;
}
#scroll-bottom a span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-animation: sdb07 2s infinite;
  animation: scrollBottomArrow 2s infinite;
  opacity: 0;
  box-sizing: border-box;
}

#scroll-bottom .scroll-bottom-link span {
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
}

#scroll-bottom a span:nth-of-type(1) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}
#scroll-bottom a span:nth-of-type(2) {
  top: 16px;
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}
#scroll-bottom a span:nth-of-type(3) {
  top: 32px;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
@-webkit-keyframes scrollBottomArrow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes scrollBottomArrow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.scroll-top {
  color: #fff;
  background-color: #171d56;
  border-radius: 10rem;
  padding-block: 1rem;
  padding-inline: 3rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s;
}

.scroll-top a {
  text-decoration: none;
  color: inherit;
}

.scroll-top i::before {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 2rem;
}

/* Single Post & ACF */
/* .single-content {
  margin: 8rem 0;
} */

.single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 5rem;
}

.fcz-posts {
  padding: 2rem 9rem;
  font-size: var(--font-size-sm);
}

.fcz-posts div {
  margin-bottom: 2rem;
}

.fcz_descriptif {
  padding: 1rem 2rem;
  background-color: var(--color-black);
  border-bottom-right-radius: 50px;
  border-bottom-left-radius: 50px;
  text-align: center;
  line-height: 1.8;
}

.fcz_descriptif h1 {
  color: var(--color-white);
  font-size: 3rem;
  text-transform: uppercase;
}

.heading_desc {
  font-size: 2rem;
  font-weight: 600;
  padding-bottom: 1rem;
}

.fcz_descriptif-desc {
  text-align: justify;
}

.fcz_img-intro {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2em;
}

.fcz-posts img {
  width: 40%;
}

.fcz_img-intro img:nth-child(1) {
  flex: 1;
}
.fcz_img-intro img:nth-child(2) {
  flex: 1;
}

.fcz_contact {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
  border-radius: 10px;
}

.fcz_contact-info {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.fcz_location {
  margin-bottom: 0 !important;
}

.fcz_organization {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

.heading_organization {
  padding-bottom: 1.5rem;
  color: #2a4193;
}

.fcz_organization div h3::after {
  content: "";
  border: 1px solid #2a4193;
  width: 25%;
  margin-left: 1rem;
  position: absolute;
  transform: translate(10px, 10px);
}

.fcz_structure {
  flex: 1;
}

.fcz_equipe {
  flex: 1;
}

.animated-block {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CONTACT US */
.contact-heading {
  text-align: center;
  padding-top: 2rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10rem 8rem 5rem 8rem;
  padding: 0.6rem 3rem;
  /* background-image: linear-gradient(45deg, #d8dce4, transparent); */
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  animation: moveFromBottom 0.8s ease;
  transition: all 0.3s;
}

.contact-form,
.contact-map {
  flex: 1;
  /* padding: 1rem; */
}

.contact-form {
  margin-right: 2rem;
}

.contact-map iframe {
  width: 100%;
  height: 450px;
  border-radius: 5px;
}

@keyframes moveFromBottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Footer */
footer {
  width: 100%;
  z-index: 2;
  padding: 3rem 7%;
  background: #273e6c;
}

.footer-enseignement {
  background: var(--ensg-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  color: var(--color-white);
}

.footer-content > * {
  flex-grow: 1;
}

.footer-content #counter-box {
  text-transform: uppercase;
  font-weight: 600;
  min-height: 17rem;
}

.footer-content #counter-box > * {
  display: block;
}

#counter-box i {
  margin-top: auto;
}

.footer-content::after {
  content: "";
  width: 100%;
  height: 3px;
  border-bottom: 3px solid var(--color-white);
  margin-top: 4rem;
}

.row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
  font-size: 1.5rem;
  line-height: 2;
}

.fa {
  font-size: 4rem !important;
}

.bottom-content {
  padding: 2rem 0;
}

.row-1 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.footer-logo img {
  filter: var(--filter-white);
  width: 10rem;
}

.adresse {
  font-size: 1.5rem;
  color: var(--color-white);
  text-align: center;
}

.adresse ul {
  list-style: none;
}

/* Swiper Carousel */
.intro-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
}

.swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  transition: background-color 0.3s;
}

.swiper-pagination .swiper-pagination-bullet-active {
  background-color: #fff;
}

/* Media Query */
@media (max-width: 991px) {
  .contact-container {
    flex-direction: column;
    margin: 2rem;
    padding: 10px;
    margin-top: 10rem;
  }

  .contact-form,
  .contact-map {
    flex: 1 0 100%;
    margin-right: 0;
    width: 100%;
  }

  .contact-map iframe {
    height: 300px;
  }

  .section-title {
    font-size: 2.7rem;
  }
}

@media (max-width: 480px) {
  .contact-heading {
    padding-top: 1rem;
  }

  .contact-form,
  .contact-map {
    padding: 5px;
  }

  .contact-map iframe {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .video-page {
    width: 90%;
  }
  .fcz_descriptif h1 {
    font-size: 2rem;
  }
  .fcz_equipe {
    flex: 1 1 50%;
  }
  .fcz_structure {
    flex: 1 1 50%;
  }
  .heading_desc {
    font-size: 1.3rem;
  }
  .fcz_location {
    width: 100%;
  }
  .fcz_location iframe {
    width: 100%;
  }
  .fcz-posts {
    padding: 2rem 3rem;
  }
  .footer-content {
    justify-content: center;
    gap: 2em;
  }
}

/* Desktop Media Query */
@media only screen and (min-width: 992px) {
  .header-black:not(.header_changes) .nav-menu li a:not(.sub-menu li a) {
    height: 50px;
    display: flex;
    align-items: center;
  }
}

/******************** NEW *******/
/* Container for the grid */

.blog-grid-container {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px; /* Adjust spacing between cards */
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 100px;
}

/* Individual blog post cards */
.blog-post-card {
  flex-basis: calc((100% - 3 * 2rem) / 4);
  /* flex: 0 0 23%; */
  /* max-width: 23%; */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: grid;
  align-content: start;
  /* display: flex;
  flex-direction: column;
  justify-content: space-between; */
}

/* Hover effect */
.blog-post-card:hover {
  transform: translateY(-5px);
}

/* Post thumbnail */
.thumbnail-link img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}

/* Post title */
.post-title {
  font-size: 2rem;
  margin: 1rem;
}

.article-content p {
  text-align: justify;
}

.post-title a {
  color: var(--color-black);
  text-decoration: none;
}

/* Post excerpt */
.post-excerpt {
  font-size: 1.5rem;
  padding: 0 1rem 1rem;
}

/* Pagination styling */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.pagination a {
  padding: 10px 15px;
  border: 1px solid #ddd;
  margin: 0 5px;
  text-decoration: none;
  color: #333;
}

.pagination .current {
  background-color: #333;
  color: white;
  padding: 10px 15px;
}

@media screen and (max-width: 768px) {
  .blog-grid-container {
    justify-content: center;
  }
  .blog-post-card {
    /* flex: 0 0 48%; */
    /* max-width: 48%; */
    flex-basis: calc((100% - 1 * 2rem) / 2);
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .blog-post-card {
    flex: 0 0 100%; /* On very small screens, make it 1 card per row */
    max-width: 100%;
  }
}

/* SINGLE POST */
.single-content,
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 5rem;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.post-content {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 2rem;
  text-align: justify;
}

/* new */
.hidden-content {
  display: none;
  transition: max-height 0.3s ease-in-out;
  margin-top: 1rem;
}

.page-content h1 {
  margin-bottom: 1rem;
}

.page-content p {
  text-align: justify;
}

.toggle-content-btn {
  color: #171d56;
  font-weight: 600;
  font-style: italic;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
  display: block;
}

.toggle-white {
  color: #fff;
  font-size: 1.6rem;
}

/* .toggle-content-btn:hover {
  background-color: #0056b3;
} */

/* Enseignement et Formation Template Style */
.section-formation-intro,
.section-soins-intro {
  padding: 5rem 0;
  height: calc(100vh - 5.5rem);
  margin-top: 5.5rem;
  position: relative;
}

.section-formation-intro::before {
  content: "";
  background-image: linear-gradient(to right, #5a5a5a, rgba(0, 0, 0, 0.2)),
    url("../img/formation-bg.jpg");
  background-size: cover;
  background-position: left center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(1);
}

.section-soins-intro::before {
  content: "";
  background-image: linear-gradient(to right, #5a5a5a, rgba(0, 0, 0, 0.2)),
    url("../img/soins-bg-main.png");
  background-size: cover;
  background-position: left center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(1);
}

.intro__text-box {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: var(--color-white);
  width: 70%;
}

.intro__heading-primary {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.intro__heading-primary span:nth-child(1) {
  font-weight: 300;
}

.intro__heading-primary span:nth-child(2) {
  font-weight: 600;
}

.intro__heading-primary span {
  display: block;
}

.intro__paragraph {
  font-size: 2.2rem;
  padding-right: 4rem;
  margin-bottom: 1rem;
}

.btns__container {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 10rem;
  width: fit-content;
  transition: all 0.3s;
}

.btn i::before {
  font-size: 1.5rem;
  padding-right: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-default {
  background-color: var(--ensg-color);
  color: var(--color-white);
  border: 1px solid transparent;
}

.btn-default:hover {
  background-color: var(--color-white);
  color: var(--ensg-color);
  border: 1px solid var(--ensg-color);
}

.section-search {
  padding: 5rem 1rem;
  background-color: var(--ensg-color);
}

.frm-selection__title {
  font-size: 3rem;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.search__container {
  background-color: var(--color-white);
  max-width: 60rem;
  margin: 0 auto;
  border-radius: 10rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.search__input {
  flex: 1;
  padding: 1rem;
  outline: none;
  border: none;
}

.btn-search {
  background-color: transparent;
  outline: none;
  border: none;
}

.section-actualite {
  padding: 5rem 1rem;
}

.actualite__container {
  /* padding: 0 7rem; */
  max-width: 90%;
  margin: 0 auto;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.btn-actualite {
  background-color: var(--color-white);
  color: var(--ensg-color);
  border: 1px solid var(--ensg-color);
  font-weight: 500;
}

.btn-actualite:hover {
  background-color: #f5fcfb;
}

.actualite-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2rem;
  margin: 0 auto;
}

.margin-medium {
  margin: 2rem 0;
}

.bg-texture {
  background-image: url("../img/texture-fcz.png");
  position: fixed;
  bottom: -1rem;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 50rem;
  z-index: -1;
  opacity: 0.1;
}

.section-achivement {
  padding: 5rem 1rem;
  background-image: linear-gradient(
    to right,
    rgba(0, 109, 130, 0.6),
    rgba(0, 109, 130, 0.6)
  );
  /* background-color: var(--ensg-color); */
}

.achivement__container {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  color: var(--color-white);
  margin-bottom: 6rem;
}

.achivement__box {
  flex-basis: calc((100% - 2 * 3rem) / 3);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.achivement__box::after {
  content: "";
  background-color: var(--color-white);
  height: 0.5rem;
  width: 4rem;
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.achivement__box i::before {
  font-size: 6rem;
}

.achivement__title {
  padding: 1rem 0;
}

.achivement__description {
  max-width: 80%;
  margin: 0 auto;
}

.achivement__cta {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 500;
}

/* Popup Image */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-content {
  max-width: 100%;
  max-height: 90%;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 45px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .achivement__container {
    gap: 2rem;
  }
  .achivement__box {
    flex-basis: calc((100% - 1 * 2rem) / 2);
  }
  .text-box {
    width: 100% !important;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .achivement__box {
    flex-basis: 100%;
  }
  .flex-row {
    flex-direction: column;
  }
  .footer-content #counter-box {
    flex: 0 0 33%;
    text-align: center;
  }
}

.section-about {
  padding: 15rem 2rem;
}

.section-about::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  background-image: url("../img/texture.png");
  background-size: cover;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.about__title {
  color: #273e6c;
  font-size: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about__title::after {
  content: "";
  background-color: #273e6c;
  height: 0.3rem;
  flex: 1;
  display: inline-block;
  border-radius: 10rem;
}

.about__description {
  hyphens: auto;
  margin-bottom: 3rem;
}

.about__description p {
  padding-bottom: 1rem;
}

.about__container {
  max-width: 130rem;
  margin: 0 auto;
}

.about__video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* section welcome */
.section-welcome {
  padding: 5rem 0;
  /* height: 55rem; */
  position: relative;
}

.section-welcome::before {
  content: "";
  background-image: linear-gradient(to right, #5a5a5a 10%, transparent),
    url("../img/hcz-1.JPG");
  background-size: cover;
  background-position: left center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(1);
}

.section-welcome-formation::before {
  background-image: linear-gradient(to right, #5a5a5a 10%, transparent),
    url("../img/fcz-bg--1.jpg");
}

.text-box {
  /* position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%); */
  color: var(--color-white);
  width: 70%;
  padding-right: 2.5rem;
  padding-left: 10rem;
  position: relative;
}

.text-box > p {
  font-size: 2.2rem;
}

.w-medium {
  width: 65%;
}

.font-bold {
  font-weight: 600;
}

.btn-green {
  background-color: var(--ensg-color);
  color: var(--color-white);
}

.btn-green:hover {
  background-color: var(--color-white);
  color: var(--ensg-color);
}

.btn-purple {
  background-color: #8166c6;
  color: var(--color-white);
}

.btn-purple:hover {
  background-color: var(--color-white);
  color: #8166c6;
}

.mt-medium {
  margin-top: 1.5rem;
}

.heading-primary {
  font-size: 3rem;
}

/* section welcome */
.section-content p:not(:last-of-type) {
  margin-bottom: 1rem;
}

.section-recherche {
  padding: 15rem 0;
  /* height: 60rem; */
  position: relative;
}

.section-recherche::after {
  content: "";
  background: linear-gradient(
    to right,
    rgb(224, 218, 218, 0.8) 50%,
    transparent
  );
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.recherche__img {
  background-image: url("../img/img-rech.png");
  background-size: cover;
  background-position: left;
  width: 54%;
  max-width: 100%;
  height: calc(100% - 1rem);
  position: absolute;
  top: 1rem;
  right: 5rem;
  opacity: 0.5;
  overflow: hidden;
  z-index: 1;
}

/* .recherche__img::after {
  content: "";
  background-image: url(../img/uiass-img.png);
  background-size: cover;
  width: 50%;
  height: 50%;
  position: absolute;
  top: 15%;
  left: 21rem;
  z-index: 1000;
} */

.recherche-box {
  color: var(--primary-color);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--ensg-color);
  border: 1px solid;
}

.btn-white:hover {
  background-color: #dbedf0;
}

.btn-cta {
  background-color: #8166c6;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .intro__heading-primary {
    font-size: 2.5rem;
  }
  .intro__paragraph {
    font-size: 1.6rem;
  }
  .intro__text-box {
    width: 90%;
  }
  .recherche__img {
    display: none;
  }
  .w-medium {
    width: 100%;
  }
}

/* @media (max-width: 480px) {
} */
