html,
body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #0c0033;
  overflow-x: hidden;
  width: 100%;
}

#carousselSlider h1 {
  font-size: 5rem;
}
#contenu h1 {
  font-size: 2rem;
}
.button-orange {
  background-color: #da886a;
  color: #fff;
  border-bottom-color: #da886a;
}

.card-body a.btn {
  color: #fff;
}

.card-body a.btn:hover {
  color: #fff;
  background-color: #e36a3d;
  border-bottom-color: #e36a3d;
}
.card p {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #0c0033 !important;
}

a.title {
  color: #da886a;
}
a.title:hover {
  color: #e36a3d;
}
h5 a,
h5 a:hover {
  color: #0c0033;
}
button.title {
  font-weight: bold;
  color: #da886a;
  background-color: transparent;
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
button.title:hover {
  color: #e36a3d;
}

/* BS4 override fiable */
.breadcrumb-item + .breadcrumb-item::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.45rem;
  margin: 0.4rem 0.35rem;
  background: url("images/chevron.svg") center / contain no-repeat;
  vertical-align: middle;
}

.breadcrumb {
  font-size: 0.7rem;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  padding-top: 0;
  padding-bottom: 0;
  color: #0c0033;
  opacity: 0.9;
  display: inline-flex; /* au lieu de flex */
  width: auto;
  z-index: 1;
}

.button-orange:hover {
  color: white;
  background-color: #e36a3d;
  border-bottom-color: #e36a3d;
}
.custom-bullets {
  color: #2d2d2d;
  list-style-type: square; /* disc | circle | square | none */
}
.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}
.slider-title {
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  bottom: 2rem;
}
.aplat-inter {
  background-color: #879bb3;
}
#chiffres-section h3 {
  color: white;
}
#chiffres-section p {
  color: white;
}
#chiffres-section h2 {
  font-family: "Cinzel", serif;
  color: white;
  font-weight: 700;
  font-size: 5rem;
}

.mail-block {
  background-color: white;
}
h1.titre {
  color: #fff;

  line-height: 2.6rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

h1.titre-article {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 2.6rem;
}

/* Animation d'apparition depuis le bas */
.reveal {
  opacity: 1;
  transform: translateY(150px);
  transition: all 0.8s ease-out;
}
h5.card-title {
  line-height: 2rem;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 0.7s;
}
.header {
  background: url("images/image_top_1.png") center/cover no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -50px;
}

.header-bonnes-pratiques {
  background: url("images/mandataires-echanges-rub.png") center/cover no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -250px;
}

.header-formations-webinaires {
  background: url("images/femmes-formations-rub.png") center/cover no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -250px;
}
.header-etudes {
  background: url("images/mandataires-etudes-rub.png") center/cover no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -250px;
}

.header-divers {
  background: url("images/image_top_1.png") center/cover no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -250px;
}

.header-regards-politiques {
  background: url("images/header-bar.png") center/cover no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -250px;
}

.header-actualites {
  background: url("images/mandataires-plateau-tele-rub.png") center/cover
    no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -250px;
}
.header-info {
  background: url("images/mandataires-plateau-tele-rub.png") center/cover
    no-repeat;
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: -250px;
}

#image-article {
  margin-top: -200px;
  padding-right: 90px;
}
#image-article img {
  outline: 10px solid rgba(219, 219, 219, 0.6);
  width: 280px;
}
a:hover img {
  opacity: 1 !important;
}
.box-orange {
  background-color: #da886a;
  color: white;
}

.box-orange a {
  color: white;
}

.box-orange:hover {
  background-color: #e36a3d;
}

hr {
  border: 0;
  border-top: 1px solid #dbdbdb;
  opacity: 1; /* important en Bootstrap */
}

#form-button {
  margin-bottom: 0 !important;
}

#contenu_article li {
  margin-left: 30px;
  margin-bottom: 10px;
}

/* Patch bootsrap transition entre version 4 et 5*/
#carousselSlider .carousel-item {
  transition: transform 0.6s ease;
}
#carousselSlider .carousel-item-start {
  transform: translateX(100%);
}
#carousselSlider .carousel-item-end {
  transform: translateX(-100%);
}

/* États actifs combinés (entrant/sortant) */
#carousselSlider .active.carousel-item-start,
#carousselSlider .carousel-item-next.carousel-item-start {
  transform: translateX(0);
}

#carousselSlider .active.carousel-item-end,
#carousselSlider .carousel-item-prev.carousel-item-end {
  transform: translateX(0);
}

/* Compat BS4 si le JS ajoute seulement next/prev */
#carousselSlider .carousel-item-next {
  transform: translateX(100%);
}
#carousselSlider .carousel-item-prev {
  transform: translateX(-100%);
}

/* Optionnel mais utile : empêcher que le conteneur rétrécisse pendant l'anim */
#carousselSlider .carousel-inner {
  overflow: hidden;
}

.parallax-row {
  will-change: transform;
  transition: transform 0.05s linear; /* micro-lissage */
}

/* Respect accessibilité */
@media (prefers-reduced-motion: reduce) {
  .parallax-row {
    transition: none !important;
    transform: none !important;
  }
}

.form-control:invalid {
  border-color: var(--bs-border-color, #ced4da);
  box-shadow: none;
}

form.was-validated .form-control:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.pourcentage {
  visibility: hidden;
  opacity: 0;
  transition: opacity 600ms ease;
}

.pourcentage.visible {
  visibility: visible;
  opacity: 1;
}

.form-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.35); /* slate-ish */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
}

/* Mobile */

@media (max-width: 767.98px) {
  .parallax-row {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  #carousselSlider h1 {
    font-size: 2.5rem;
  }
  .slider-title {
    bottom: 0.2rem;
  }
  #chiffres-section .row > [class*="col-"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  /* pas de filet sous la dernière colonne */
  #chiffres-section .row > [class*="col-"]:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .tabs-scroll-mobile {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* vieux Edge/IE */
  }
  .tabs-scroll-mobile::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
    height: 0;
  }

  .tabs-scroll-mobile .nav.nav-tabs {
    display: flex !important; /* au cas où un CSS casse le flex */
    flex-direction: row !important; /* au cas où c’est passé en column */
    flex-wrap: nowrap !important;
    white-space: nowrap;
    justify-content: flex-start !important;
  }

  .tabs-scroll-mobile .nav-item {
    flex: 0 0 auto !important;
    width: auto !important; /* neutralise un éventuel width:100% */
  }

  .tabs-scroll-mobile .nav-link {
    flex: 0 0 auto !important;
    width: auto !important; /* neutralise un éventuel width:100% */
    white-space: nowrap;
  }
  #image-article {
    margin-top: -380px;
    margin-bottom: 0;
    text-align: center !important;
    padding-right: 0;
  }
  #image-article img {
    width: 80%;
    margin-top: 0;
  }

  .position-content-mobile {
    margin-top: 120px !important;
  }
}

/*  petit mobile */
@media (max-width: 480px) {
  #carousselSlider h1 {
    font-size: 2rem;
  }
}
