:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:where(.wp-site-blocks)>* {
  margin-block-start: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #111827;
}

.site-header,
.site-footer {
  width: 100%;
}

.hero-section {
  min-height: 80vh;
}

.wp-block-cover__inner-container,
.wp-block-cover .wp-block-columns {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-cover .wp-block-group {
  width: 100%;
}

.wp-block-cover:not(.hero-banner) {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(234, 31, 26, 0.12);
}

footer .wp-block-group.has-light-red-background-color.has-background {
  border: 1px solid #ea1f1a;
}

p > a:not(.wp-element-button) {
  opacity: 1;
  border-bottom: 2px solid var(--wp--preset--color--dark);
  transition: opacity 0.3s ease;
}
p.has-white-color > a:not(.wp-element-button) {
  border-bottom: 1px solid var(--wp--preset--color--light);
}
p > a:not(.wp-element-button):hover {
  opacity: .75;
}

.has-modal-open .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__content {
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.3s ease, transform 0.3s ease;
}
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation li.current-menu-item .wp-block-navigation-item__content {
  border-bottom-color: #ffffff !important;
  transform: translateY(-1px);
}

.has-modal-open li.current-menu-item .wp-block-navigation-item__content {
  border-bottom-color: #ea1f1a !important;
  transform: translateY(-1px);
}
.has-modal-open .wp-block-navigation-item__content {
  font-size: 1.3rem;
}



button,
.wp-block-button__link {
  background-color: #ea1f1a;
  color: #ffffff;
  border: 2px solid transparent;
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover,
.wp-block-button__link:hover {
  filter: brightness(0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
@media (max-width: 767px) {
  .wp-block-cover h2.wp-block-heading {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
  }
}
.wp-block-button.is-style-outline-primary .wp-block-button__link {
  background-color: transparent;
  border: 2px solid #ea1f1a;
  color: #ea1f1a;
}

.wp-block-button.is-style-outline-primary .wp-block-button__link:hover {
  background-color: #ea1f1a;
  color: #ffffff;
  border-color: #ea1f1a;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.wp-block-button.is-style-primary-light .wp-block-button__link {
  background-color: #f8fafc;
  color: #ea1f1a;
}

.wp-block-button.is-style-primary-light .wp-block-button__link:hover {
  background-color: #ffffff;
  box-shadow: 0 12px 24px rgba(234, 31, 26, 0.12);
}

.wp-block-button.is-style-outline-light .wp-block-button__link {
  background-color: transparent;
  border: 2px solid #f8fafc;
  color: #f8fafc;
}

.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
  background-color: #f8fafc;
  color: #ea1f1a;
  border-color: #f8fafc;
  box-shadow: 0 12px 24px rgba(234, 31, 26, 0.12);
}

.wp-block-button.is-style-outline-gray .wp-block-button__link {
  background-color: transparent;
  border: 2px solid #6b7280;
  color: #6b7280;
}

.wp-block-button.is-style-outline-gray .wp-block-button__link:hover {
  background-color: #6b7280;
  color: #ffffff;
  border-color: #6b7280;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

section {
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 2.5rem;
  }
}

/**********************
* Accordion FAQ
**********************/

.wp-block-accordion .wp-block-accordion-item {
    border-bottom: 2px solid #ea1f1a;
    padding-bottom: 1rem;
}

/**********************
* Key numbers
**********************/
/* Animation pour les chiffres clés */
.keynumber {
  display: inline-block;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation en cascade */
#keyNumbers .wp-block-column:nth-child(1) .keynumber {
  transition-delay: 0s;
}

#keyNumbers .wp-block-column:nth-child(2) .keynumber {
  transition-delay: 0.15s;
}

#keyNumbers .wp-block-column:nth-child(3) .keynumber {
  transition-delay: 0.3s;
}

#keyNumbers .wp-block-column:nth-child(4) .keynumber {
  transition-delay: 0.45s;
}

/**********************
* Modal styles
*********************/
/* Overlay */
.member-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  overflow-y: auto
}

/* active state */
.member-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15px;
}

.member-modal:not(.active) {
  display: none;
}

/* fond noir */
.member-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* content */
.member-modal-content {
  position: relative;
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  z-index: 2;
  max-height: calc(100vh - 30px);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (min-width: 576px) {
  .member-modal-content {
    margin: 25px auto;
    max-width: 500px;
  }
}
@media (min-width: 992px) {
  .member-modal-content {
    margin: 50px auto;
    max-width: 800px;
  }
}

.member-modal.active .member-modal-content {
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.member-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.member-modal-body {
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
  max-height: calc(100vh - 30px - 60px);
}

.member-modal-body .member-photo,
.member-modal-body .modal-logo {
  max-width: 200px;
  height: auto;
}

.modal-logo {
  margin: 1rem 0;
}

.member-modal-body h3 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.member-modal-body p {
  margin: 0.5rem 0;
}

.modal-description {
  font-size: .9rem;
}


.modal-email {
  padding-top: 1rem;
  padding-bottom: 1.75rem;
  word-wrap: break-word;
}

.modal-links a {
  display: inline-block;
  margin-right: 10px;
}

.member-modal .col-lg-4,
.member-modal .col-lg-5,
.member-modal .col-lg-6,
.member-modal .col-lg-7,
.member-modal .col-lg-8 {
  width: 100%;
  padding-right: 0;
}

@media (min-width: 992px) {
  .member-modal-body h3 {
    margin-top: 0;
  }
  .member-modal .col-lg-4 {
      flex: 0 0 auto;
      width: 33.33333333%;
      padding-right: 1rem;
    }
  .member-modal .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  .member-modal .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  .member-modal .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
  .member-modal .col-lg-8 {
    flex: 0 0 auto;
    width: calc(66.66666667% - 1rem);
  }
}