/*
Theme Name:  ATTPS
Theme URI:   https://attps.fr/
Version:     3.0
Description: Theme Enfant Divi
Author:      ATTPS
Author URI:  https://attps.fr/
Template:    Divi
*/

/*- Add any CSS custom code for this child theme below this line -*/

.center-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.bg-opacity-filter {
  &::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
  }
}

.et_pb_section_video:not(.et_pb_section--with-menu) {
  overflow: visible !important;
}

.newsletter-form {
  .gform-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0 !important;
  }

  .ginput_container_email {
    input[type="email"] {
      height: 33px;
    }
  }

  .gform_required_legend,
  .gform_description {
    display: none;
  }
}

.gform_fields {
  input,
  textarea {
    background-color: rgba(180, 180, 180, 0.2);
    color: #000000 !important;

    &::placeholder {
      color: #b4b4b4 !important;
    }
  }

  .gfield_description {
    border: none !important;
    overflow-y: auto !important;
  }
}

.gform-footer {
  .gform_button {
    cursor: pointer;
    height: 33px;
    margin-bottom: 0 !important;
    color: #ffffff;
    border: none;
    font-weight: bold;
    background-color: #c5000c;
    padding: 0 30px;
    text-transform: uppercase;
    transition: 0.3s;

    &:hover {
      background-color: #e30613;
    }
  }
}

.social-pre-footer .et_pb_text_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000;
  padding: 20px 0;

  .social-links {
    display: flex;
    align-items: center;
    gap: 0 !important;
  }

  .social-links .social-link {
    color: #fff !important;
    padding: 0 40px;
    border-left: 1px solid #e30613;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-links .social-link:first-child {
    border-left: none;
    padding-left: 0;
  }

  .social-links .social-link:last-child {
    padding-right: 0;
  }

  .social-links .social-link i {
    font-size: 50px;
  }

  h3 {
    padding: 0;
  }

  @media (max-width: 1200px) {
    .social-links .social-link {
      padding: 0 20px;

      i {
        font-size: 30px;
      }
    }
  }

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 30px;

    .social-links .social-link {
      padding: 0 10px;

      i {
        font-size: 20px;
      }
    }
  }
}

.social-pre-footer p {
  display: none;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1em !important;

  span {
    line-height: 1em !important;
  }

  strong {
    color: #e30613;
  }
}

/*---------------------------------------
----- Blog d'articles
---------------------------------------*/
.et_pb_ajax_pagination_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px 0;
}

.et_pb_post {
  margin-bottom: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
}

.entry-featured-image-url {
  position: relative;
  margin-bottom: 15px !important;
  display: block;
  line-height: 0;
}

.post-meta {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 45px;
  height: 45px;
  z-index: 3;
  margin: 0 !important;
  display: flex;
  background: #e30613;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0;
}

.post-meta .published {
  font-size: 14px !important;
  color: #fff !important;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.more-link {
  font-size: 12px !important;
  font-weight: bold !important;
  text-transform: uppercase;
  text-decoration: underline !important;
  color: #000 !important;
  margin-top: auto;
}

.post-content p {
  display: none !important;
}

#main-content {
  ul,
  ol {
    list-style: none;
    padding-left: 5px;
    padding-top: 10px;

    li {
      position: relative;
      padding-left: 30px;
      margin-bottom: 10px;
    }
  }

  ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #e30613;
    font-weight: bold;
    font-size: 18px;
  }
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.copyright-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;

  p {
    margin-bottom: 0;
  }
}

@media (max-width: 980px) {
  .et_pb_ajax_pagination_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .et_pb_ajax_pagination_container {
    grid-template-columns: 1fr;
  }
}

/* effectif */
.effectif-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.membre {
  position: relative;

  &:not(.is_staff) {
    .membre-header .num {
      position: absolute;
      left: 20px;
      bottom: 0;
      font-weight: bold;
      transform: translateY(70%);
      font-size: 30px;
      min-width: 60px;
    }

    .member-name {
      margin-left: 90px;

      span {
        display: block;
      }
    }
  }
}

.membre-header {
  position: relative;
  background-color: #d3d8e1;
}

.membre-header img {
  width: 100%;
  height: 290px;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.membre .num {
  background-color: #e30613;
  color: #fff;
  text-align: center;
  display: inline-block;
  padding: 5px 10px;
}

.member-name {
  margin-top: 20px;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 900;
}

.member-name span {
  font-weight: 500;
  text-transform: capitalize;
}

.onglet-navigation-bar,
.onglet-sub-navigation-bar {
  display: flex;
  width: 100%;
  align-items: stretch;
}

.onglet-nav-item,
.onglet-sub-nav-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  text-align: center;
  background-color: #000;
  text-transform: uppercase;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 16px;
  letter-spacing: 1px;
}

.onglet-nav-item.active,
.onglet-sub-nav-item.active {
  background: #e30613;
}

.onglet-nav-item:hover:not(.active),
.onglet-sub-nav-item:hover:not(.active) {
  background: #222;
}

.onglet-content-pane,
.onglet-sub-content-pane {
  display: none;
  padding: 60px 0;
  animation: fadeInTab 0.5s ease;
}

.onglet-content-pane.active,
.onglet-sub-content-pane.active {
  display: block;
}

.onglet-inner-layout {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
}

.onglet-text-area h2,
.onglet-text-area h3 {
  text-transform: inherit;
}

.onglet-side-left {
  flex: 1;
  width: 100%;
}

.onglet-side-right {
  flex: 1;
}

.onglet-main-title {
  font-size: 64px;
  text-transform: uppercase;
  margin: 0 auto 30px;
  text-align: center;
  max-width: 700px;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (max-width: 992px) {
  .onglet-inner-layout {
    flex-direction: column;
    gap: 30px;
  }

  .onglet-main-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .onglet-navigation-bar {
    flex-direction: column;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}
#main-content {
  a.small-button,
  a.big-button,
  a.icon-button {
    cursor: pointer;
    margin-bottom: 0 !important;
    color: #ffffff !important;
    border: 1px solid #e30613 !important;
    border-radius: 0;
    font-weight: bold !important;
    background: #e30613 !important;
    padding: 0 30px;
    text-transform: uppercase;
    transition: 0.3s;
    text-shadow: none;
    line-height: 32px;
    box-shadow: none;

    &:hover {
      color: #e30613 !important;
      background: transparent !important;
    }

    .et-icon {
      display: none;
    }
  }
  a.big-button {
    text-align: center;
    width: 100%;
  }

  a.icon-button {
    background: transparent !important;
    color: #e30613 !important;

    &:hover {
      color: #fff !important;
      background: #e30613 !important;
    }
  }
}
