/* -----------------------------------BASE---------------------------------- */
/* * {
  margin: 0;
  padding: 0;
} */
body {
  margin: 0;
  padding: 0;
  color: white;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Noto Serif", serif;
  color: white;
}
h2 {
  padding-top: 50px;
}
.background {
  background-color: #101728;
}

.ubuntu {
  font-family: "Ubuntu Mono", serif;
  font-style: normal;
}

.noto {
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.nunito {
  font-family: "Nunito", serif;
  font-optical-sizing: auto;
  font-style: normal;
}
#content a,
#textHeader a {
  color: rgba(255, 255, 255, 1);
}

#content a:hover,
#textHeader a:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
p {
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
.text p,
.text ul {
  font-size: 21px;
  line-height: 32px;
  font-weight: 100;
}

.button {
  display: inline-block;
  padding: 12px 25px;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease;
  margin: 20px 0;
  font-size: 20px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.grid6535 {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 20px;
  align-items: center;
}

.grid25 {
  display: grid;
  grid-template-columns: 25fr 25fr 25fr 25fr;
  gap: 20px;
}
.grid33 {
  display: grid;
  grid-template-columns: 33fr 33fr 33fr;
  gap: 20px;
}
.margin-top {
  margin-top: 200px;
}

.maxContent {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

.minContent {
  max-width: 1000px;
  margin: auto;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}
.sortContent {
  max-width: 1200px;
  margin: auto;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  margin-top: 100px;
}
.center {
  text-align: center;
}
.justify {
  text-align: justify;
}
/* ---------------------------------navBar------------------------- */
.navbar {
  position: relative;
  height: 90px;
  min-width: 430px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.navbar ul {
  position: relative;
  display: flex;
  padding: 0;
  margin: 0;
}

.navbar ul li {
  position: relative;
  list-style-type: none;
}

.navbar ul li a {
  position: relative;
  height: 90px;
  width: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  padding-bottom: 15px;
}

.navbar ul li a i {
  position: absolute;
  font-size: 38px;
  color: #101728;
}

.navbar ul li a i.activeIcon {
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s ease;
  transition-delay: 0.2s;
}

.navbar ul li.active a i {
  opacity: 1;
  pointer-events: auto;
}

.navbar ul .indicator {
  position: absolute;
  bottom: -19px;
  left: 30px;
  height: 36px;
  width: 25px;
  background: #101728;
  border-radius: 50%;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navbar ul .indicator::before {
  content: "";
  position: absolute;
  left: -15px;
  bottom: 50%;
  height: 22px;
  width: 20px;
  background: #fff;
  border-bottom-right-radius: 20px;
  box-shadow: 0 10px 0 #101728;
}

.navbar ul .indicator::after {
  content: "";
  position: absolute;
  right: -15px;
  bottom: 50%;
  height: 22px;
  width: 20px;
  background: #fff;
  border-bottom-left-radius: 20px;
  box-shadow: 0 10px 0 #101728;
}

.navTitle {
  margin-top: 65px;
  font-size: 11px;
  color: #0f1828;
}

@media screen and (max-width: 460px) {
  .navbar {
    min-width: auto;
    width: 95%;
  }
}
/* -----------------------------------MENU---------------------------------- */
.navbar {
  display: none;
}

#topNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

#logo {
  font-size: 40px;
  padding: 20px;
}

#logo a {
  color: white;
  text-decoration: none;
}

#logoIllu {
  width: 60px;
  vertical-align: middle;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-right: 20px;
  display: flex;
  gap: 40px;
}

nav li {
  margin-left: 25px;
}

nav ul li a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
  font-size: 24px;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease-out, background-position 0.2s ease-out;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}
nav ul li a.active {
  color: inherit;
  /* or specific color if needed */
}

nav ul li a.active::after {
  transform: scaleX(1);
}
/* -----------------------------------INTRO---------------------------------- */

#header {
  overflow: hidden;
  /* Empêche le scroll horizontal */
}

#leftGridIntro {
  padding-left: 30px;
}

#gridHeader {
  margin-top: 75px;
}

#textHeader {
  font-size: 20px;
  max-width: 600px;
  margin: auto;
}

#imageHeader img {
  max-width: 85%;
  height: auto;
}

.buttonRed {
  margin-left: 100px;
  background: linear-gradient(90deg, #999999, #df310f);
  background-size: 200% auto;
  /* Étend le gradient pour permettre le mouvement */
  transition: background-position 0.5s ease-in-out;
  margin-top: 40px;
}

.buttonGreen {
  background: linear-gradient(90deg, #999999, #00ff95);
  background-size: 200% auto;
  transition: background-position 0.5s ease-in-out;
  margin: auto;
  display: block;
  margin-top: 70px;
  max-width: 270px;
}

.buttonRed:hover,
.buttonGreen:hover {
  background-position: right center;
  /* Fait défiler le gradient */
}

/* ---------------------CONTENT--------------------- */
#titleProject,
#titleContent {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(90deg, #999999, #f1760b);
  -webkit-background-clip: text; /* Safari & Chrome */
  background-clip: text; /* Standard */
  -webkit-text-fill-color: transparent; /* Safari */
  color: transparent; /* Fallback for other browsers */
  display: inline-block;
  text-align: left;
  /* line-height: 50px; */
}
#titleContent {
  font-size: 3rem;
}
/* ----------------PLAN DU SITE----------------- */
#titlePlan {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(90deg, #999999, #3c3d7a);
  display: inline-block;
  margin-left: 30px;
  -webkit-background-clip: text; /* Safari & Chrome */
  background-clip: text; /* Standard */
  -webkit-text-fill-color: transparent; /* Safari */
  color: transparent; /* Fallback for other browsers */
}

.planTitle {
  font-size: 30px;
  margin-bottom: 25px;
}

.planPages {
  font-size: 20px;
  margin-bottom: 10px;
}

.col-plan {
  padding: 35px;
}
#planSite {
  place-items: center;
  align-items: baseline;
}
#planSite a {
  color: #ced8e9;
  text-decoration: none;
  font-weight: 100;
  transition: all 0.3s ease;
}

#planSite a:hover {
  color: white;
}

/* ----------------FOOTER-------------- */
footer {
  margin-top: 100px;
}
img.footerLogo {
  max-width: 200px;
  display: block;
  margin: 10px auto 25px;
}
p#FWB-text {
  text-align: center;
  max-width: 80%;
  margin: auto;
  font-size: 12px !important;
}
#social {
  text-align: center;
  margin-top: 65px;
}

.iconSocial {
  display: inline-block;
  font-size: 45px;
  padding: 0;
  margin: 0 15px;
}

.iconSocial a {
  color: #ff3c5f;
  transition: all 0.3s ease;
}

.iconSocial a:hover {
  color: #ab1e32;
}

#footerText {
  padding: 20px 10px;
  margin-top: 5px;
}

#footerText a {
  color: #ffffff;
  text-decoration: none;
}

#footerText a:hover {
  text-decoration: overline;
}
/* ------------------Style pour les pop up définition---------------------- */
.definition-word {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  transition: color 0.2s ease;
}

.definition-word:hover {
  color: #1d4ed8;
  background-color: #eff6ff;
  padding: 2px 4px;
  border-radius: 3px;
}

.definition-popup {
  cursor: pointer;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.definition-popup:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.definition-box {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  z-index: 10;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 250px;
  max-width: 90vw;
  word-wrap: break-word;
  hyphens: auto;
}

.definition-box.active {
  display: block;
  font-size: 18px;
  color: #0f1828;
  line-height: 1.3;
}

/* Media queries pour la responsivité de la popup */
@media screen and (max-width: 768px) {
  .definition-box {
    width: 280px;
    max-width: calc(100vw - 40px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px !important;
    padding: 10px 14px;
  }

  /* Vérifier si la popup dépasse à droite */
  .definition-popup:last-child .definition-box,
  .definition-popup:nth-last-child(-n + 2) .definition-box {
    left: auto;
    right: 0;
    transform: none;
  }
}

@media screen and (max-width: 480px) {
  .definition-box {
    width: 260px;
    max-width: calc(100vw - 30px);
    font-size: 14px !important;
    padding: 8px 12px;
    line-height: 1.4;
  }
}

@media screen and (max-width: 350px) {
  .definition-box {
    width: 240px;
    max-width: calc(100vw - 20px);
    font-size: 13px !important;
    padding: 6px 10px;
  }
}

/* Style pour éviter le débordement horizontal */
.definition-box {
  box-sizing: border-box;
  white-space: normal;
}
/* -----------------------------EMBED SHORTS----------------------------------------- */
#video-intro {
  text-align: center;
  margin: 85px 0;
}
/* ------------------------------SCREEN--------------------------------------- */
@media screen and (max-width: 1800px) {
  #imageHeader {
    position: relative;
    transform: translateX(75px);
    /* Décale l'image vers la droite */
  }
  #imageHeader img {
    max-width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 1400px) {
  #titleModules {
    margin-right: 0;
  }
}

@media screen and (max-width: 1000px) {
  #imageHeader {
    position: relative;
    transform: none;
  }
  #leftGridIntro {
    padding-left: 0;
  }
  .grid2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
  }

  .grid6535 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
  }

  .grid25 {
    grid-template-columns: 1fr;
  }
  .grid33 {
    grid-template-columns: 1fr;
  }
  #social {
    text-align: center;
  }

  .iconSocial {
    margin: 25px;
  }

  .maxContent {
    /* padding: 25px; */
    max-width: 90%;
  }

  #imageHeader img {
    max-width: 80%;
    margin: auto;
    display: block;
    margin-top: 55px;
  }

  #textHeader {
    text-align: justify;
    margin: auto;
  }

  .buttonRed {
    display: block;
    margin: auto;
    width: 180px;
    margin-top: 50px;
  }

  #projectSectionHeight {
    padding-bottom: 20px;
  }

  #titleModules {
    margin-right: 0;
    text-align: center;
    display: block;
    margin: auto;
    float: none;
  }

  .btn-module {
    margin-bottom: 20px;
  }
  #planSite {
    place-items: inherit;
  }
}

@media screen and (max-width: 800px) {
  nav {
    display: none;
  }

  .navbar {
    display: flex;
    width: 95%;
    margin: auto;
    max-width: 450px;
  }
}

@media screen and (max-width: 600px) {
  #imageHeader img {
    margin-bottom: 45px;
  }
  #logoIllu {
    width: 45px;
  }

  #textProject {
    padding-top: 30px;
  }
  .text {
    line-height: 26px;
    font-weight: 300;
    font-size: 18px;
  }
  #textHeader {
    font-size: 18px;
    padding-top: 30px;
  }
  .iconSocial {
    margin: 20px;
    font-size: 40px;
    padding: 0;
  }

  .planTitle {
    font-size: 27px;
    margin-bottom: 15px;
  }

  .col-plan {
    padding: 0px 35px;
    text-align: center;
  }

  #titlePlan {
    text-align: center;
    font-size: 3em;
    display: block;
  }
  #titleProject {
    float: none;
    display: block;
    text-align: center;
    font-size: 45px;
    margin-top: 0;
    margin-bottom: 30px;
  }
  #titleProject,
  #titleContent {
    line-height: 50px;
  }

  footer {
    float: none;
    text-align: center;
    margin-top: 0;
  }

  #footerLogos {
    align-items: center;
    justify-items: center;
    margin-top: 70px;
  }
  img.footerLogo {
    max-width: initial;
    margin: 5px auto 10px;
    height: 35px;
  }
  #videoProject iframe {
    height: 300px;
  }

  .text {
    line-height: 29px;
    font-weight: 300;
  }

  .margin-top {
    margin-top: 50px;
  }
}
