/* ACCORDION */
.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-item:first-child {
  border-top: 1px solid #ddd;
}

.accordion-header {
  width: 100%;
  padding: 1.25rem;
  background: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.1;
  color: var(--color-heading);
}

.chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: .5rem;
}

.accordion-item.active .chevron {
  transform: rotate(-135deg);
}

.accordion-content {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-section {
  margin-bottom: 2rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.accordion-section ul {
  list-style: none;
}

.accordion-section-list {
  margin-top: .25rem;
}

.accordion-section-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.3;
  padding: .5rem;
  border-top: 1px solid var(--color-muted);
  cursor: pointer;
  color: var(--color-subtitle);
}

.accordion-section-list-item:hover {
  background-color: var(--color-secondary);
}

.accordion-section-list-item .text-emphasis {
  display: flex;
  align-items: center;
}

.accordion-section-list-item .text-emphasis::before {
  font-family: "bootstrap-icons";
  content: "\F4F3";
  margin-right: .5rem;
  display: inline-block;
  color: var(--color-dark);
}

.accordion-section-list-item .text-small {
  color: var(--color-gray);
}

.accordion-list-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  border-bottom: 1px solid #ddd;
  padding: .25rem .125rem;
}

@media (max-width: 720px) {
  .accordion-section-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .accordion-section-list-item .text-small {
    margin-left: 1.5rem;
  }
}

/* MODAL */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.9); 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
  }
  .modal-content { 
    position: relative; 
    width: 90%; 
    max-width: 800px; 
    aspect-ratio: 16/9; 
    background: #000; 
    border-radius: 12px; 
  }
  .modal-content video { 
    width: 100%; 
    height: 100%; 
    border-radius: 12px; 
    background: #000; 
  }
  .modal-close { 
    position: absolute; 
    top: -40px; 
    right: 0px; 
    font-size: 28px; 
    color: #fff; 
    cursor: pointer; 
    font-weight: bold; 
  }

/* NAVIGATION */
.nav-layout {
  display: flex;
  align-items: center;
  padding: .5rem;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  width: 800px;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

.logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo a {
  color: inherit;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03125rem;
  text-decoration: none;
  white-space: nowrap;
}

.logo img {
  width: 70px;
  display: block;
}

.nav {
  text-align: center;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

.nav a {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .0625rem;
  text-decoration: none;
  color: var(--color-heading);
  transition: .2s ease-in-out;
}

.nav a:hover {
  color: var(--color-primary);
  font-weight: 500;
}

.nav a.active {
  color: var(--color-primary);
  font-weight: 500;
}

/* SOCIAL */
.social {
  flex: 1;
  text-align: right;
}

.social a {
  color:  var(--gray-200);
  font-size: 1.25rem;
  margin-left: 6px;
  cursor: pointer;
}

.social a:hover {
  color: var(--gray-300);
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 32px;
  cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: white;
  transition: 0.3s;
  padding: 2rem 0;
  z-index: 2000;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.mobile-menu ul {
  list-style: none;
  margin-top: 50px;
  flex: 1;
}

.mobile-menu a {
  color: var(--color-heading);
  text-decoration: none;
  font-size: clamp(1.25rem, 1rem + 1.36vw, 2rem);
  font-weight: 500;
  width: 100%;
  display: block;
  padding: 1rem 2rem;
}

.mobile-menu a:hover {
  background-color: var(--color-secondary);
  font-weight: 500;
}

.mobile-menu a.active {
  color: var(--color-primary);
  font-weight: 500;
}

.mobile-menu-social {
  padding-left: 2rem;
  display: flex;
  gap: .5rem;
}

.mobile-menu .bi-facebook,
.mobile-menu .bi-play-circle-fill {
  font-size: 1.75rem;
}

.close {
  font-size: 28px;
  color: var(--gray-200);
  cursor: pointer;
  margin-left: 2rem;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav {
    display: none;
  }

  .nav-layout {
    padding: 1rem;
  }

  .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hamburger {
    display: block;
  }

  .social {
    display: none;
  }
}

/* OVERLAY */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500; /* sous menu, au-dessus contenu */
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  z-index: 2000;
}