/**************************************
******** PROJECT GENERAL STYLE ********
**************************************/

/* TEXTS */
html,
body {
  font-family: var(--font-main);
  font-size: var(--base);
  background-color: #fff;
  color: var(--color-dark);
}

.title {
  font-size: var(--title-xl);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.title--section {
  position: relative;
  font-size: var(--title-l);
  line-height: 1.2;
}

.title--section--custom {
  font-size: calc(var(--title-nb) - 3px);
}

.title--section::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: var(--gap-s) 0;
}

.texts__row__half .title--section::after {
  margin-bottom: 0;
}

.subtitle {
  font-size: var(--title-nb);
}

p,
li {
  line-height: calc(var(--base) + 6px);
}

.btn {
  display: inline-block;
  padding: 10px 23px;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: var(--title-btn);
  border: 3px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn--new {
  border-color: var(--color-secondary);
}

.btn--new:hover {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

/* Variantes de couleur */
.btn.bg--primary {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, #3aa8b8 100%);
  color: var(--color-light);
}

.btn.bg--primary:hover {
  background: linear-gradient(135deg, #3aa8b8 0%, var(--color-primary) 100%);
  color: var(--color-light);
  border-color: #3aa8b8;
}

.btn.bg--secondary {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, var(--color-secondary) 0%, #e68a00 100%);
  color: var(--color-light);
}

.btn.bg--secondary:hover {
  background: linear-gradient(135deg, #e68a00 0%, var(--color-secondary) 100%);
  color: var(--color-light);
  border-color: #e68a00;
}

.btn.bg--light {
  border-color: var(--color-light);
  background: linear-gradient(135deg, var(--color-light) 0%, #f8f9fa 100%);

}

.btn.bg--light:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, var(--color-light) 100%);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* Animation spéciale pour les boutons avec effet de pression */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.1s ease;
}

/* Variante pour les boutons plus petits */
.btn--base {
  font-size: var(--base);
  padding: 8px 18px;
}

/* Variante pour les boutons circulaires */
.btn--dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
}

.btn--dot:hover {
  transform: translateY(-1px) scale(1.05);
}

.btn--dot span {
  height: 24px;
}

.link {
  text-decoration: underline;
  color: var(--color-dark);
}

.number {
  font-size: var(--title-nb);
  color: var(--color-secondary);
}

/* STRUCTURE */
.container {
  padding: var(--margin);
  margin: 0;
}

.row {
  display: flex;
  position: relative;
}

.flex-start {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-s);
}

.item {
  flex: 1;
  border-radius: var(--rad-s);
  box-shadow: var(--shadow);
  background-color: var(--color-light);
  padding: var(--gap-s) var(--gap-s) calc(var(--gap-s) + 10px);
  overflow: hidden;
}

/* COLORS */
.primary {
  color: var(--color-primary);
}

.secondary {
  color: var(--color-secondary);
}

.light {
  color: var(--color-light);
}

.dark {
  color: var(--color-dark);
}

.bg--primary {
  background-color: var(--color-primary);
}

.bg--secondary {
  background-color: var(--color-secondary);
}

.bg--light {
  background-color: var(--color-light);
}

.bg--dark {
  background-color: var(--color-dark);
}

.bg--section {
  background-color: #EBEBEB;
}

/* ACCORDION */
.accordion {
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  transition: 0.4s;
}

.panel {
  padding: 0;
  overflow: hidden;
}

.active .panel {
  padding-top: 10px;
}

/* GF AJAX SPINNER */
body img.gform_ajax_spinner {
  width: initial;
}

/* GF CHECKBOX */
.gfield_consent_label {
  cursor: pointer;
  position: relative;
}

.gform_legacy_markup_wrapper .gfield_checkbox li input[type="checkbox"],
.ginput_container_consent input[type="checkbox"] {
  padding: 0;
  height: initial;
  width: initial;
  margin-bottom: 0;
  cursor: pointer;
  opacity: 0;
  position: absolute;
}

.ginput_container_checkbox label::before,
.gfield_consent_label::before {
  background-color: var(--color-light);
  content: "";
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
  padding: 8px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 5px;
  border: 0.5px solid #2768AD33;
}

.ginput_container_checkbox label::before,
.ginput_container_checkbox label::before {
  display: none;
}

.gform_legacy_markup_wrapper .gfield_checkbox li input[type="checkbox"]:checked+label::after,
.ginput_container_consent input[type="checkbox"]:checked+.gfield_consent_label::after {
  color: var(--color-secondary);
  content: "\2713";
  display: block;
  position: absolute;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-secondary);
  left: 1px;
  width: 16px;
  height: 17px;
}

.gform_legacy_markup_wrapper .gfield_checkbox li input[type="checkbox"]:checked+label::after {
  top: -3px;
}

.ginput_container_consent input[type="checkbox"]:checked+.gfield_consent_label::after {
  top: 0px;
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--btn {
  opacity: 0;
  transition: opacity 0.7s ease-out;
  transition-delay: .8s;
}

.reveal--btn.is-visible {
  opacity: 1;
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  /* background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); */
  background: linear-gradient(90deg, #45bdcf 0%, #2a8ba3 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

/* STATS ANIMATION */
.item--anim {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.item--anim.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animation delay for each item */
.item--anim:nth-child(1) {
  transition-delay: 0.2s;
}

.item--anim:nth-child(2) {
  transition-delay: 0.3s;
}

.item--anim:nth-child(3) {
  transition-delay: 0.4s;
}

.item--anim:nth-child(4) {
  transition-delay: 0.5s;
}

.item--anim:nth-child(5) {
  transition-delay: 0.6s;
}

.item--anim:nth-child(6) {
  transition-delay: 0.7s;
}

.item--anim:nth-child(7) {
  transition-delay: 0.8s;
}

.item--anim:nth-child(8) {
  transition-delay: 0.9s;
}

.item--anim:nth-child(9) {
  transition-delay: 1s;
}

.item--anim:nth-child(10) {
  transition-delay: 1.1s;
}

/* FLIP ANIMATION FOR STATS CARDS */
.stats__item {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.stats__item__content {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
  justify-content: initial;
}

/* Animation de flip au survol */
.stats__item:hover .stats__item__content {
  transform: rotateY(180deg);
}

/* Face avant de la carte */
.stats__item__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: inherit;
  border-radius: inherit;
}

/* Face arrière de la carte (visible après rotation) */
.stats__item__content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: inherit;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animation de flip automatique déclenchée par .reveal.is-visible */
.reveal.is-visible .stats__item:nth-child(1) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.1s;
}

.reveal.is-visible .stats__item:nth-child(2) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.2s;
}

.reveal.is-visible .stats__item:nth-child(3) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.3s;
}

.reveal.is-visible .stats__item:nth-child(4) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.4s;
}

.reveal.is-visible .stats__item:nth-child(5) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.5s;
}

.reveal.is-visible .stats__item:nth-child(6) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.6s;
}

.reveal.is-visible .stats__item:nth-child(7) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.7s;
}

.reveal.is-visible .stats__item:nth-child(8) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.8s;
}

.reveal.is-visible .stats__item:nth-child(9) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 0.9s;
}

.reveal.is-visible .stats__item:nth-child(10) .stats__item__content {
  animation: autoFlip 0.9s ease-in-out forwards;
  animation-delay: 1s;
}

@keyframes autoFlip {
  0% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(0deg);
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  background: var(--color-secondary);
  color: var(--color-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  z-index: 8;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, var(--color-light) 0%, #f8f9fa 100%);
  color: var(--color-secondary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover svg path {
  fill: currentColor;
}

/* LENIS */
html.lenis,
html.lenis body {
  height: auto
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain
}

.lenis.lenis-smooth iframe {
  pointer-events: none
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete
}


/* BREADCRUMBS */
.breadcrumb * {
  font-size: var(--base);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

main {
  margin-bottom: 480px
}

/******************************
******** MEDIA QUERIES ********
******************************/
@media screen and (min-width: 480px) {}

@media screen and (min-width: 600px) {}

@media screen and (max-width: 767px) {}

@media screen and (min-width: 768px) {
  main {
    margin-bottom: 490px;
  }

  .btn--dot {
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    right: 2rem;
  }

  .container {
    margin: var(--gap-s) 0 0;
  }

  .container--noTop {
    margin-top: 0;
  }

  .active .panel {
    padding-top: var(--gap-s);
  }
}

@media screen and (max-width: 991px) {}

@media screen and (min-width: 992px) {}

@media screen and (max-width: 1023px) {

  .noMob {
    display: none;
  }

  .btn--base {
    padding: 6px 14px;
  }

  .container.news__content {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (min-width: 1024px) {
  main {
    margin-bottom: 320px;
  }

  .single main {
    margin-top: 90px;
  }

  .container--noTop {
    padding-top: 0;
  }
}

@media screen and (min-width: 1280px) {}


/* TEMPORARY */
.otgs-development-site-front-end {
  display: none;
}

/***************************************************************/
/***************************************************************/
/********************** ERROR 404 ******************************/
/***************************************************************/
/***************************************************************/
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-404__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Numéro d'erreur */
.error-404__number {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
}

.error-404__digit {
  font-size: 6rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: digitPulse 2s ease-in-out infinite;
  line-height: 1;
}

.error-404__digit:nth-child(2) {
  animation-delay: 0.3s;
  color: var(--color-secondary);
}

.error-404__digit:nth-child(3) {
  animation-delay: 0.6s;
  color: var(--color-primary);
}

@keyframes digitPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Titre */
.error-404__title {
  font-size: var(--title-xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

/* Message */

.error-404__text {
  font-size: var(--title-s);
  color: var(--color-dark);
  line-height: 1.6;
  opacity: 0.8;
}

/* Actions */
.error-404__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Navigation rapide */
.error-404__navigation {
  position: fixed;
  left: 1rem;
  top: 25%;
  padding: .5rem 1rem;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-404__subtitle {
  font-size: var(--title-m);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
}

.error-404__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.error-404__item {
  margin: 0;
}

.error-404__link:hover {
  background: var(--color-secondary);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Support */
.error-404__support {
  text-align: center;
  padding: .5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3aa8b8 100%);
  border-radius: var(--radius);
  color: var(--color-light);
}

.error-404__support-text {
  font-size: var(--title-m);
  margin: 0;
}

.error-404__support-link {
  color: var(--color-light);
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.error-404__support-link:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

/* Responsive */
@media screen and (max-width: 767px) {
  .error-404 {
    padding: 2rem 0;
    min-height: 70vh;
  }

  .error-404__digit {
    font-size: 4rem;
  }

  .error-404__title {
    font-size: var(--title-l);
  }

  .error-404__text {
    font-size: var(--base);
  }

  .error-404__actions {
    align-items: center;
    gap: 1rem;
  }

  .error-404__list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .error-404__navigation {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .error-404__digit {
    font-size: 6rem;
  }

  .error-404__list {
    grid-template-columns: repeat(2, 1fr);
  }
}