/**
 * Styles pétitions uniquement — ne touche PAS au header Elementor.
 */

/* Utilitaires responsive Sinfin (scopés, sans body/header) */
@media screen and (max-width: 450px) {
  .ava-petitions-list .no-mobile,
  .ava-petitions-single .no-mobile {
    display: none !important;
  }
}
@media screen and (max-width: 1091px) and (min-width: 451px) {
  .ava-petitions-list .no-tablet,
  .ava-petitions-single .no-tablet {
    display: none !important;
  }
}
@media screen and (min-width: 1092px) {
  .ava-petitions-list .no-desktop,
  .ava-petitions-single .no-desktop {
    display: none !important;
  }
}

/* ——— Liste ——— */
.ava-petitions-list.container_bloc_inline,
.ava-petitions-list {
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  padding: 24px 16px 48px;
  box-sizing: border-box;
}

.ava-petitions-list .blocs_filtre.responsive {
  display: none;
}

.ava-petitions-list .blocs_filtre.resp .bloc_inline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  position: relative;
  top: 0;
}

@media screen and (min-width: 768px) {
  .ava-petitions-list .blocs_filtre.resp .bloc_inline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1091px) {
  .ava-petitions-list.petitions-col-3 .blocs_filtre.resp .bloc_inline,
  .ava-petitions-list .blocs_filtre.resp .bloc_inline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ava-petitions-list .blocs_filtre .inline {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ava-petitions-list .blocs_filtre .inline .bloc_white {
  border-radius: 30px;
  box-shadow: 0px 4px 19px rgba(42, 56, 84, 0.12);
  transition: box-shadow ease 500ms;
  position: relative;
  margin: 12px;
  background-color: #fff;
  overflow: hidden;
}

.ava-petitions-list .blocs_filtre .inline .bloc_white:hover {
  box-shadow: 0px 4px 16px rgba(42, 56, 84, 0.6);
}

.ava-petitions-list .blocs_filtre .inline .bloc_white .image {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
}

@media screen and (min-width: 1451px) {
  .ava-petitions-list .blocs_filtre .inline .bloc_white .image {
    height: 300px;
  }
}

.ava-petitions-list .blocs_filtre .inline .bloc_white .cont {
  padding: 20px;
}

.ava-petitions-list .blocs_filtre .inline .bloc_white .cont .date {
  color: #7f8898;
  margin: 0;
}

.ava-petitions-list .blocs_filtre .inline .bloc_white .cont .title {
  color: #2a3854;
  font-size: 18px;
  margin: 5px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ava-petitions-list .blocs_filtre .inline .bloc_white .cont p:last-child {
  color: #2a3854;
  margin: 0;
}

.ava-petitions-list .blocs_filtre .inline .bloc_white .tags {
  background: rgba(42, 56, 84, 0.57);
  border-radius: 3px;
  top: 20px;
  left: 20px;
  position: absolute;
  padding: 3px 5px;
}

.ava-petitions-list .blocs_filtre .inline .bloc_white .tags p {
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  font-size: 12px;
}

.ava-petitions-list .button_ajout {
  text-align: center;
  margin: 24px 0 8px;
}

.ava-petitions-list .button_ajout .load-more {
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  background-color: #faa916;
  box-shadow: 0px 4px 19px rgba(250, 169, 22, 0.5);
  border: none;
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  transition: background-color ease 300ms;
}

.ava-petitions-list .button_ajout .load-more:hover {
  background-color: #f0a00f;
}

.ava-petitions-list .empty {
  text-align: center;
  padding: 40px 16px;
  color: #2a3854;
}

.ava-petitions-list .empty span {
  display: block;
  color: #7f8898;
  margin-top: 8px;
}

/* ——— Single + formulaire ——— */
.ava-petitions-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  box-sizing: border-box;
}

.ava-petitions-single .posts {
  margin-top: 24px;
}

.ava-petitions-single .posts .petitions_form.popup {
  background: #ffffff;
  cursor: pointer;
  display: none;
  position: fixed;
  text-align: center;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 20px 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
}

.ava-petitions-single .posts .petitions_form.popup .popupCloseButton {
  font-size: 40px;
  position: absolute;
  background-color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 19px rgba(42, 56, 84, 0.12);
  top: -10px;
  right: -20px;
}

@media screen and (min-width: 1441px) {
  .ava-petitions-single .posts .petitions_form.popup {
    display: none !important;
  }
}

.ava-petitions-single .posts .petitions_form.popup .form_petitions {
  background-color: #fcedcf;
  border-radius: 36px;
  padding: 20px;
  width: 500px;
  max-width: 90%;
  color: #2a3854;
  display: block;
  margin-left: auto;
  margin-right: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.ava-petitions-single .posts .container_posts .retour {
  font-weight: bold;
  text-transform: uppercase;
  color: #2a3854;
  text-decoration: none;
}

.ava-petitions-single .posts .container_posts .category_date {
  margin-top: 32px;
  color: #7f8898;
  display: flex;
  align-items: center;
}

.ava-petitions-single .posts .container_posts .category_date .category {
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  background: #7f8898;
  padding: 3px 5px;
  border-radius: 3px;
  margin-right: 27px;
}

.ava-petitions-single .posts .container_posts h3 {
  color: #2a3854;
  font-size: 40px;
  line-height: 1.2;
  margin: 16px 0;
}

@media screen and (max-width: 768px) {
  .ava-petitions-single .posts .container_posts h3 {
    font-size: 28px;
  }
}

.ava-petitions-single .posts .container_posts .image_posts {
  margin-top: 40px;
  border-radius: 15px;
  max-height: 600px;
  height: 50vh;
  min-height: 240px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.ava-petitions-single .posts .button_popup {
  display: none;
}

@media screen and (max-width: 1091px) {
  .ava-petitions-single .posts .button_popup {
    display: flex;
    justify-content: center;
    margin-top: 32px;
  }

  .ava-petitions-single .posts .button_popup a {
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 36px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #faa916;
    box-shadow: 0px 4px 19px rgba(250, 169, 22, 0.5);
    text-decoration: none;
  }

  .ava-petitions-single .posts .container_petitions_form .petitions_form {
    display: none;
  }
}

.ava-petitions-single .posts .container_petitions_form {
  display: flex;
  gap: 60px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.ava-petitions-single .posts .container_petitions_form .texte_petitions {
  flex: 1 1 320px;
  color: #2a3854;
}

.ava-petitions-single .posts .container_petitions_form .petitions_form {
  flex: 0 1 400px;
}

.ava-petitions-single .posts .container_petitions_form .petitions_form .form_petitions {
  background-color: #fcedcf;
  border-radius: 36px;
  padding: 20px;
  width: 100%;
  color: #2a3854;
}

.ava-petitions-single .posts .container_petitions_form .petitions_form .form_petitions h3 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 12px;
}

.ava-petitions-single .form_petitions .wpforms-field-container input {
  padding: 16px 24px;
  margin-bottom: 12px;
  border-radius: 36px;
  width: 100%;
  font-weight: bold;
  box-shadow: 0px 4px 19px rgba(42, 56, 84, 0.12);
  border: 0;
  box-sizing: border-box;
}

.ava-petitions-single .form_petitions .wpforms-submit-container {
  margin: 24px auto;
  text-align: center;
}

.ava-petitions-single .form_petitions .wpforms-submit-container button {
  text-transform: uppercase;
  font-weight: bold;
  background-color: #faa916;
  box-shadow: 0px 4px 19px rgba(250, 169, 22, 0.5);
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
}

.ava-petitions-single .bouton_lien_petition {
  text-align: center;
  margin-top: 32px;
}

.ava-petitions-single .bouton_lien_petition a {
  text-transform: uppercase;
  font-weight: 700;
  background-color: #faa916;
  box-shadow: 0 4px 19px rgba(250, 169, 22, 0.5);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-block;
}
