:root {
  --primary-color: #0404b0db;
  --secondary-color: #FFA500;
  --text-color: #000000;
}

#cookieConsent {
  background-color: #004085;
  color: white;
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 15px;
  text-align: center;
  z-index: 1000;
  display: none; 
  transition: all 0.5s ease;
}

#cookieConsent a {
  color: #FFD700;
  text-decoration: underline;
}

#cookieConsent button {
  margin-left: 15px;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
}

#acceptCookies {
  background-color: #28a745;
  color: white;
}

#declineCookies {
  background-color: #dc3545;
  color: white;
}

body, html {
  height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex-grow: 1;
}

#text, #cursor {
  font-family: 'Roboto', sans-serif;
  font-size: 2em;
  color: #333;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.btn-custom {
  border-radius: 5px;
  font-size: 1.25rem;
  color: var(--primary-color) !important;
  background-color: transparent;
  padding: 5px 30px;
  white-space: nowrap;
  transition: all 0.3s ease; 
}

.btn-custom:hover {
  background-color: #D3D3D3;
  border-radius: 5px; 
}

.btn-custom.active {
  color: #FFF !important;
  background-color: var(--primary-color);
  border-radius: 5px; 
}

.btn-custom.active::after {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffffff;
  margin-left: 5px; 
}

.btn-formation {
  background-color: var(--secondary-color);
  color: var(--text-color) !important;
  border-radius: 5px;
  font-size: 1.25rem;
  padding: 5px 30px;
  white-space: nowrap;
}

.btn-formation:hover {
  background-color: #b16603;
  color: var(--text-color) !important;
}

.navbar-brand, .navbar-nav .nav-link {
  margin-right: 3%;
  font-size: 1.25rem;
  padding: 5px 30px;
}

.rounded-btn {
  border-radius: 5px;
}

.bg-white {
  background-color: white;
  color: black;
}

.navbar {
  background-color: #FFFFFF;
  object-position: top;
}

.navbar-brand img {
  height: auto;
  max-height: 60px;
}

.header-image img {
  width: 100%;
  height: 40vh;
  object-fit: cover;
  object-position: 55% 25%;
}

.header-image {
  position: relative;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 2s;
  color: var(--primary-color);
  font-size: 3vw;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.info-section {
  padding: 10px;
  background-color: #F8F8F8;
  color: var(--primary-color);
}

.info-section h2 {
  font-size: 2em;
  margin-bottom: 10px; 
}

.info-section p {
  font-size: 1.2em;
  line-height: 1.5;
}

.overlay-text {
  overflow: hidden;
  width: 50%;
}

.overlay-text .text {
  display: inline-block;
  border-right: .15em solid orange;
  width: 0;
  animation: typewriter 4s steps(40) infinite, blink-caret .75s step-end infinite;
}

@keyframes typewriter {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 100%; }
}

@keyframes blink-caret {
  100% { border-color: transparent; }
}

.bg-blue {
  color: white;
}

.footer {
  background: linear-gradient(to bottom, #ffffff 0%, #b5b5b5 100%);
  color: #004085;
  padding: 1rem 0;
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  bottom: 0;
  width: 100%;
}


.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  padding: 0 10px;
}

.footer-menu a {
  color: #0404b0db;
  margin: 0 8px;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-icons a {
  color: #0404b0db;
  margin: 0 8px;
  text-decoration: none;
  font-size: 2rem;
}

.footer-logos img {
  height: 80px;
  margin-left: 5px;
}

.delimiter {
  position: relative;
  width: 80%;
  margin: 0 auto;
  border-radius: 20px;
  text-align: center;
  color: #000000;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10px;
}

.delimiter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-color) 100%);
  opacity: 0.8;
  border-radius: 20px;
  z-index: -1;
}

.page-header {
  background-size: cover;
  background-position: center;
  height: 300vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header h1 {
  margin: 0;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-header > div {
  text-align: center;
}

.card {
  display: flex;
  align-items: flex-start;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  padding-left: 15px;
}

.card-img-left {
  height: 45px;
  width: 45px;
  margin-right: 15px;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4px;
  padding-left: 4px;
}

.card-title {
  margin: 0;
}

.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.navbar-nav .dropdown-menu {
  display: none;
  position: absolute;
  float: left;
  min-width: 10rem;
  margin: 0;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: var(--secondary-color);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.navbar-nav .dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.navbar-nav .dropdown-menu .dropdown-item:hover, 
.navbar-nav .dropdown-menu .dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
}

.navbar-nav .dropdown:hover .nav-link {
  background-color: #e69500;
  color: #000000;
}

.navbar-nav .dropdown-menu .dropdown-item .fa-door-open {
  margin-right: 5px;
}

.connexion-btn:hover::after {
  content: "\f084"; 
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900;
  padding-left: 10px; 
}

@media (max-width: 992px) {
  .navbar-brand {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .navbar.bg-blue {
    background-color: #FFFFFF !important;
    color: black;
  }

  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar-nav .nav-link,
  .navbar-nav .dropdown-menu .dropdown-item,
  .btn-formation {
    width: 100%;
    padding: 10px 0;
  }
  .navbar-nav .dropdown-menu .dropdown-item {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-menu, .social-icons {
    margin-bottom: 10px;
  }

  .footer-logos img {
    margin: 5px auto;
  }

  .navbar-toggler {
    float: right;
    border: none;
    background: transparent;
  }

  .navbar-toggler .fas {
    color: var(--primary-color);
  }
}

@media screen and (max-width: 600px) {
  .navbar {
    background-color: var(--primary-color);
  }

  .navbar .navbar-brand,
  .navbar .navbar-nav .nav-link {
    color: #FFF;
  }

  #text, #cursor {
    font-size: 4em;
  }
}

@media (max-width: 768px) {
  .modal-dialog {
    max-width: 100%;
    margin: 0;
  }
}

@media (min-width: 768px) {
  .modal-lg {
    max-width: 80%;
  }
}

@media (max-width: 576px) {
  .author-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px auto;
  }
  
  .author-img .mask {
    width: 150px;
    height: 150px;
  }
  
  .author-img img {
    width: 150px;
    height: 150px;
  }
}

.author-img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  overflow: hidden;
  position: relative;
  margin-bottom: 15px;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-img.blank img {
  display: none;
}

.author-img.blank {
  background-color: #ddd;
}

.mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-image: url('images/mask.png');
  background-size: cover;
  z-index: 1;
}

@media (max-width: 576px) {
  .mask {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logos a {
    margin-bottom: 10px;
  }

  .footer-logos a:last-child {
    margin-bottom: 0; 
  }

  .footer-logos img {
    height: 60px; 
    width: auto; 
  }
}

.references-list .list-group-item {
  padding: 20px;
  border: none;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.references-list .list-group-item:hover {
  background-color: #f9f9f9;
}

.references-list .list-group-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #000;
}

.references-list .list-group-item p {
  margin: 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

.references-list .list-group-item a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.references-list .list-group-item a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.list-group-item ul {
  margin: 10px 0 0 20px;
  padding: 0;
  list-style-type: disc;
}

.list-group-item ul li {
  margin-bottom: 5px;
  line-height: 1.5;
  font-size: 1rem;
  color: #333;
}

* {
  box-sizing: border-box;
}


.py-5 {
  padding-top: 37.8px !important;
  padding-bottom: 37.8px !important;
}

.my-5 {
  margin-top: 37.8px !important;
  margin-bottom: 37.8px !important;
}

.sfncm-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 37.8px auto;
  padding: 15px;
  background: linear-gradient(to top, #a0d2eb, #f1faff);
  border-radius: 15px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sfncm-label img {
  margin-right: 15px;
  width: 100px;
  height: 120px;
  border-radius: 10px;
  flex-shrink: 0;
}

.sfncm-label p {
  text-align: left;
  font-size: 1.2rem;
  margin: 0;
  color: #000;
}

@media (max-width: 768px) {
  .sfncm-label {
      flex-direction: column;
      text-align: center;
      padding: 10px;
  }

  .sfncm-label img {
      margin-right: 0;
      margin-bottom: 10px;
      width: 80px;
      height: 100px;
  }

  .sfncm-label p {
      font-size: 1rem;
  }
}

.sfncm-label:hover {
  background: linear-gradient(to top, #82c0d0, #caeaf5);
  transition: background 0.3s ease;
}