/*
* Auteur : DRUCKES Lucas
* LOBPSE 2025
* Fichier style css qui gère le style du site global
*/

@font-face {
  font-family: 'OrbitronR';
  src: url("../fonts/orbitron-regular.ttf") format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'PoppinsR';
  src: url("../fonts/poppins-regular.ttf") format('truetype');
  font-weight: normal;
}

/* General Styles */
body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 17px;
  font-family: PoppinsR, Arial, Helvetica, sans-serif;
  color: #656565;
  background: #f9f9f9;
}

p {
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
  text-align: justify;
}

a {
  text-decoration: none;
  color: #008B8B;
  background-color: #fff0;
  transition: transform background-color 0.2s ease;

  &:hover:not(.logo, .moodlelink a, .nav-link, .LobpseQaliopiContainer a, .resultats-links a, footer a, #LobpseCourses a) {
    transform: scale(1.1);
    background-color: #2a6d6d !important;
    outline: none !important;
  }
}

.QaliopiLink{
  background: none !important;
  color: #3B9C9C !important;
  padding: 0 !important;

  transition: 0.3s transform ease;

  li{
    color: #3B9C9C !important;
  }

  &:hover{
    transform: scale(1.05);
  }
}

.QaliopiNotice{
  color: #2E2E2E;
  font-style: italic;
  font-size: clamp(14px, 3vw, 16px);
  line-height: 1.5;
  margin-top: 1rem;
  place-self: center;
  text-align: center;
}

.testitem {
  background: rgba(255 0 0 / 0.5);
}

strong {
  color: #3B9C9C;
  font-weight: 800;
  transition: font-size 0.2s ease;
}

strong:hover {
  font-size: 20px;
}

.LobpseConceptsApprochesAlt strong:hover {
  font-size: 22px;
}

/* Header */
header {
  background: linear-gradient(90deg, #3b9c9c, #2c7575, #256262);
  padding: 10px;
  z-index: 999;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 100%;
  padding: 0 20px;
  align-content: center;
  flex-direction: row;
  height: max-content;

  @media (max-width: 350px) {
    flex-direction: column;
  }
}

.moodlelink {
  background: #008B8B;
  margin: 0;
  padding: 8px;
  text-align: center;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px black solid;

  &:hover a {
    font-size: 20px;
    text-shadow: black 2px 2px 4px;
  }
}

.moodlelink a {
  color: white;
  font-weight: 300;
  font-size: 16px;
}

header h1 {
  color: white;
  font-size: 2rem;
  margin: 0;
}

nav {
  display: flex;
  align-items: center;
  unicode-bidi: isolate;
  height: 60px;
}

nav .navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  flex-wrap: wrap;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
  unicode-bidi: isolate;
  transition: max-height 0.5s ease;
}

.menu-toggle-nav {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  padding: 0 20px;
}

@media(max-width: 1300px) {
  nav {
    flex-direction: column !important;
    align-items: start !important;
    justify-content: center;
  }

  .header-content {
    justify-content: space-between;
  }

  .menu-toggle-nav {
    display: block !important;
  }

  .navbar-nav {
    display: none !important;
    flex-direction: column !important;
    max-height: 0;
    max-width: 75% !important;
    padding-inline-start: 0 !important;
    top: 4em;
    right: 0;
    position: absolute;
  }

  .navbar-nav li {
    width: 100% !important;
  }

  .navbar-nav li .nav-link {
    padding: 15px !important;
    /* border-bottom: 1px solid #fff !important; */
  }

  .navbar-nav.show {
    display: flex !important;
    background-color: rgba(0, 139, 139, 0.9);
    box-shadow: black 1px 1px 8px 1px;
    border-radius: 50px;
    padding: 25px;
    max-height: max-content;
    margin-right: 5px;
  }
  .footer-section{
    a{
      font-size: 1.4em !important;
    }
  }
}

nav .navbar-nav li {
  display: list-item;
  text-align: -webkit-match-parent;
  unicode-bidi: isolate;
}

nav .navbar-nav li .nav-link {
  color: white !important;
  height: 40px;
  display: flex;
  align-items: center;
  border: 0;
  padding: .5rem 1rem;
  font-size: 20px !important;
  padding-right: .5rem;
  padding-left: .5rem;
  padding-top: .5rem;
  padding-bottom: .5rem;

  @media (max-width: 1200px) {
    border: 0 !important;
  }
}

nav .navbar-nav li .nav-link.active {
  color: white !important;
  border: 1px dashed white !important;
  border-radius: 15px !important;
  padding: 5px !important;
  margin: 0 5px 0 5px !important;
  outline: none;
}

nav .navbar-nav li .nav-link:hover {
  background: 0;
  border-bottom: 1px solid white !important;
  border-radius: 10px !important;
  text-decoration: none;
  outline: none;
  text-shadow: black 2px 2px 4px;

  @media (max-width: 1200px) {
    border: 0 !important;
  }
}

nav .navbar-nav li .nav-link:hover.active {
  border: 1px dashed white !important;
  border-radius: 15px !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, #3b9c9c, #2c7575, #256262);
  color: white;
  text-align: center;
  padding: 20px;
}

.hero h2 {
  font-size: 2.5rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* About Us Section */
.about-us {
  padding: 40px 20px;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content ul li {
  background: #f9f9f9;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
}

/* Footer */
.footer {
  background-color: #2e2e2e;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  width: 95%;
  color: #fff;
  padding-top: 16px;
  column-gap: 32px;
}

.footer-section {
  flex: 1 0 20%;
  margin: 10px;

  @media (max-width: 1100px) {
    flex: 1 1 100%;
    text-align: center;
  }
}

#footer-socialicons {
  flex: 1 0 10%
}

.footer a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin: 10px 0;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

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

.social-icons a {
  display: inline-block;
  margin-right: 10px;
}

.social-icons img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
}

.footer-bottom {
  width: 100%;
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom a {
  color: #30b8b4;
}

.footer address {
  font-style: normal;
}

/* footer {
  background: linear-gradient(270deg, #514f4f, #373636, #1d1d1d);
  color: white;
  text-align: center;
  padding: 30px 0 54px;
  position: relative;
  z-index: 0;
}

.footer-content {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 20px;
}

footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 0;
}

footer ul li a {
  color: white;
  font-size: 0.9rem;
} */

/* lobpse style */

section {
  width: min(1366px, 95%);

  @media(max-width: 1300px) {
    width: min(1200px, 90%);
  }

  @media(max-width: 950) {
    width: min(900px, 80%);
  }
}

/* lobpse page */
.lobpsesection {
  text-align: center;
  justify-self: center;
  padding: 1rem;
}

.lobpsesection hr {
  border: 2px solid #2f7d7d;
  border-radius: 10px;
  margin: 32px 0;
}

.lobpsesection h2 {
  text-align: center !important;
}

.lobpsesection a {
  display: inline-block;
  padding: 5px 10px;
  background-color: #2f7d7d;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  z-index: 1;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: OrbitronR;
  color: #3B9C9C;
  font-weight: 400;
  margin: 0 !important;
}

h1 {
  font-size: clamp(36px, 6vw, 42px);
}

h2 {
  font-size: clamp(28px, 4vw, 34px);
}

h3 {
  font-size: 26px;
}

h6 {
  font-size: 18px;
}

.logo {
  max-width: 200px;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;

  &:hover h1 {
    font-size: 36px;
    text-shadow: black 2px 2px 4px;
  }
}

.logolobpse {
  width: 90px;
  height: 90px;
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px white solid;
  background-color: #3B9C9C;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  /* Hidden by default */
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#backToTop:hover {
  opacity: 1;
}

/* GENERAL LOBPSE DETAILS */
.LobpseDetailContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  gap: 10px;
}

.LobpseDetailItem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 calc(33.3% - 15px);
  height: 450px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 8px;

  @media (max-width: 900px) {
    flex: 1 0 50% !important;
  }

  @media(max-width: 600px) {
    flex: 0 0 100% !important;
  }
}

.LobpseDetailContentWrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.LobpseDetailItem img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
}

.LobpseDetailItem h3 {
  margin: 10px 0 5px;
}

.LobpseDetailItem p {
  margin: 0;
  padding: 0 10px;
  flex-grow: 1;
}

.LobpseDetailItem a {
  width: 64px;
  background: #3B9C9C;
  border: 1px #3B9C9C solid;
  border-radius: 10px;
  margin-top: 10px;
  padding: 5px 10px;
  text-align: center;
  color: white;
  text-decoration: none;
}

/* */
/* FLOATING BUBBLE CSS*/
.InteractableBubbleWrapper {
  position: relative;
  display: inline-block;
  z-index: 100;
}

a.InteractableBubble {
  display: inline-block;
  z-index: 1;
  position: relative;
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
}

.InteractableBubbleText {
  position: absolute;
  top: calc(100% + 10px);
  background-color: #2f7d7d;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: normal;
  width: 50vw;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.InteractableBubbleText.IBTL {
  left: 0;
}

.InteractableBubbleText.IBTL::after {
  left: 45px;
}

.InteractableBubbleText.IBTR {
  right: 0;
}

.InteractableBubbleText.IBTR::after {
  right: 20px;
}

.InteractableBubbleText::after {
  content: '';
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #2f7d7d transparent;
}

.InteractableBubbleWrapper:focus-within .InteractableBubbleText {
  opacity: 1;
  pointer-events: auto !important;
}

@media (max-width: 768px) {
  .InteractableBubbleText.IBTL::after {
    left: 50% !important;
    right: auto !important;
  }

  .InteractableBubbleText.IBTR::after {
    right: 50% !important;
    left: auto !important;
  }

  .InteractableBubbleWrapper:focus-within .InteractableBubbleText {
    display: block;
  }

  .InteractableBubbleText.IBTL,
  .InteractableBubbleText.IBTR {
    display: none;
    position: relative;
    top: 0;
    margin-top: 10px;
  }
}