/* Corps général */
body {
  font-family: Garamond;
  line-height: 1.6;
  background-color: #ffffff;
  color: #48494C;
}

/* Navigation */
.navbar {
  font-family: Garamond;
  font-weight: bold;
  font-size: large;
  text-align: center;
}

.navbar-brand {
  color: #3B2715;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-brand:hover {
  color: #FFFFFF;
  background-color: #BD9D7E;
  padding: 5px;
  border-radius: 5px;
}

.nav-link {
  color: #646C77;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: #FFFFFF;
  background-color: #BD9D7E;
  border-radius: 5px;
}

.section {
  margin-bottom: 40px;
}

.jumbotron {
  background-color: #D0D8E3;
  padding: 50px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 900px;
}

.jumbotron h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3B2715;
  letter-spacing: 3px;
  margin: 0;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.text-center {
  text-align: center;
}

.accordion {
  padding-top: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.accordion-header {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.accordion-item {
  border: rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
}

.accordion-item h4 {
  color: #3B2715;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid #808893;
  display: inline-block;
  background: #E9EAEE;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2)
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.95rem 2.5rem 0.95rem 1.25rem;
  background-color: #D0D8E3;
  color: #3B2715;
  font-family: "Garamond", serif;
  font-weight: bolder;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 12px;
  overflow: visible;
  transition: all 0.3s ease;
}


.accordion-button .accordion-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  max-width: calc(100% - 6rem);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 25px;
  color: #48494C;
  transition: color 0.25s ease;
}


.accordion-button::after {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  filter: brightness(0.3);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: translateY(-50%) rotate(180deg);
  filter: brightness(1.5);
}


.accordion-button:hover {
  background-color: #BD9D7E;
  color: #E9EAEE;
}

.accordion-body {
  background-color: #E9EAEE;
  color: #646C77;
  padding: 2rem;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: justify;
  transition: all 0.3s ease;
}


.accordion-collapse {
  transition: height 0.4s ease;
}


.accordion-body h2 {
  font-family: "Garamond", serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #3B2715;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.accordion-body h4 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.accordion-body p {
  font-family: "Garamond", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.9;
  color: #595D5F;
  text-align: justify;
  margin: 0 auto;
  max-width: 90%;
}


.accordion-body p a {
  color: #BD9D7E;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.accordion-body p a:hover {
  color: #3B2715;
  text-decoration: underline;
}




@media (max-width: 768px) {
  .accordion {
    padding-top: 30px;
  }

  .accordion-button .accordion-title {
    font-size: 20px;
    max-width: calc(100% - 6rem);
  }

  .accordion-body {
    padding: 1.5rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .accordion-body h2 {
    font-size: 1.4rem;
  }

  .accordion-body p {
    font-size: 1rem;
    max-width: 100%;
    text-align: left;
  }

  .accordion-button .accordion-title {
    font-size: 1rem;
    max-width: calc(100% - 5rem);
    white-space: normal;
    padding: 0 0.75rem;
  }

  .accordion-button {
    padding: 0.7rem 2rem 0.7rem 0.9rem;
  }
}




/* FOOTER */

footer {
  padding: 40px 0;
  color: white;
}

footer.bg-primary {
  background-color: #48494C !important;
}

footer h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 10px;
}

footer ul li a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}


/*Texte droits d'auteurs */
footer h5 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #ffffff;
  text-underline-offset: 10px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: bold;
  font-family: Garamond;
}

/* Section droits d'auteurs */
.footer-copyright {
  text-align: center;
  padding: 20px;
  background-color: #a2a4a8;
  font-weight: bolder;
  color: #E9EAEE;
  display: inline-block;
  background-color: rgba(108, 117, 125, .75);
  border-radius: 50rem;
  padding: 0.25rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-copyright a {
  color: #BD9D7E;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-in-out, text-decoration 0.3s ease-in-out;
}

.footer-copyright a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Section des logos dans le footer */
.logos-section {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  background: #E9EAEE;
  border: 1px solid #d3c7b5;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.logos-section::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 100%;
  height: 40px;
  background: #E9EAEE;
  clip-path: polygon (0 0, 50% 100%, 100% 0);
  z-index: -1;
}

.footer-logo {
  max-height: 60px;
  margin: 0 50px;
}


/* Alignement du menu déroulant */
.dropdown-menu-end {
  right: 0;
  left: auto;
}

@media (max-width: 768px) {

  /* Navbar */
  .navbar-brand:hover {
    color: inherit;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
  }

  .nav-link:hover {
    color: inherit;
    background-color: transparent;
    border-radius: 0;
  }

  /* Logos */
  .footer-logo {
    max-height: 40px;
    margin: 0 5px;
  }

  .logos-section {
    margin-top: 15px;
  }
}