/* ============================================================
   Badge "Bilan Ma Tovou 2025" — remplace l'ancien compte à rebours.
   Reste compact et sur une seule ligne à toutes les tailles d'écran
   pour ne jamais casser la mise en page du header.
   ============================================================ */
.review-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  background-color: #f1f8ff;
  color: #002798;
  border: 3px solid #ff7f00;
  border-radius: 16px;
  padding: clamp(6px, 1.8vw, 12px) clamp(10px, 3vw, 22px);
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.review-teaser__title {
  font-weight: 800;
  font-size: clamp(11px, 2.2vw, 16px);
}

.review-teaser__cta {
  font-size: clamp(9px, 1.6vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ff7f00;
  font-weight: 700;
}

.review-teaser:hover {
  background-color: #002798;
  color: #f1f8ff;
  transform: translateY(-2px);
}
.review-teaser:hover .review-teaser__cta {
  color: #f1f8ff;
}

/* Sur les très petits écrans, on garde uniquement l'essentiel */
@media screen and (max-width: 420px) {
  .review-teaser__title {
    display: none;
  }
  .review-teaser {
    padding: 8px 14px;
  }
}

/* ============================================================
   Modale du bilan — plein écran sur mobile, confortable ailleurs
   ============================================================ */
.review-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.review-modal--open {
  display: flex;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 39, 152, 0.72);
}

.review-modal__panel {
  position: relative;
  background: #f1f8ff;
  border-radius: 20px;
  border: 5px solid #002798;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(16px, 4vw, 30px);
  z-index: 1;
}

.review-modal__heading {
  color: #002798;
  text-align: center;
  margin-top: 0;
  font-size: clamp(20px, 4vw, 28px);
}

.review-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 32px;
  color: #002798;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
}

.review-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.review-card {
  border: 3px solid #002798;
  border-radius: 15px;
  padding: 10px;
  background: #fff;
  color: #002798;
  min-width: 0;
}

.review-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.review-card__noimg {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background: #e4edf9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90a3c4;
  font-size: 14px;
}

.review-card__title {
  font-weight: 800;
  margin: 10px 0 5px;
}

.review-card__desc {
  font-size: 14px;
  margin: 0;
  word-wrap: break-word;
}

@media screen and (max-width: 700px) {
  .review-modal {
    padding: 10px;
  }
  .review-modal__panel {
    max-height: 92vh;
    border-width: 3px;
  }
}

/* ============================================================
   Carte "Soutien régulier" — style ticket (encoches rondes,
   bordure pointillée), sans objectif chiffré.
   ============================================================ */
.projet-cta {
  position: relative;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 22px 34px;
  border-style: dashed !important;
  overflow: visible;
}

/* Pas d'effet de soulèvement sur le ticket : les encoches restent fixes */
.allprojet .projet-cta:hover {
  transform: none;
  box-shadow: none;
}

/* Encoches façon billet, toujours sur les côtés (jamais sur le bouton).
   Couleur du fond de page + un arc bleu côté carte pour l'effet découpé. */
.projet-cta::before,
.projet-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: #f1f8ff;
  border: 5px solid transparent;
  z-index: 2;
}
.projet-cta::before {
  left: -17px;
  border-right-color: #002798;
}
.projet-cta::after {
  right: -17px;
  border-left-color: #002798;
}

.projet-cta__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  color: #002798;
  text-align: left;
}

.projet-cta__text-group {
  flex: 1;
  min-width: 0;
}

.projet-cta__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
}

.projet-cta__text {
  margin: 0;
  font-size: 14px;
}

.projet-cta__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border: 2px solid #002798;
  border-radius: 100px;
  background-color: #ff7f00;
  color: #f1f8ff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.projet-cta__btn:hover {
  background-color: #f1f8ff;
  color: #ff7f00;
}

/* Carte étroite : texte centré, bouton dessous. Les encoches
   restent sur les côtés, à mi-hauteur du texte. */
@media screen and (max-width: 760px) {
  .projet-cta {
    padding: 20px 30px;
  }
  .projet-cta__inner {
    flex-direction: column;
    text-align: center;
  }
  .projet-cta__btn {
    white-space: normal;
  }
}

/* ============================================================
   Formulaire admin du bilan (review_admin.php)
   ============================================================ */
.review-admin__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.review-admin__form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 5px solid #002798;
  border-radius: 20px;
  padding: 15px;
  color: #002798;
}

.review-admin__form textarea {
  border: 2px solid #002798;
  background-color: #f1f8ff;
  color: #002798;
  border-radius: 10px;
  padding: 8px;
  font-family: "Poppins", sans-serif;
  resize: vertical;
  width: 100%;
}

.review-admin__preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #002798;
}

.projet-cta {
  justify-content: flex-start;
  gap: 16px;
}

.projet-cta img {
  flex: 1 1 0;
  min-height: 180px;
  height: auto;
  width: 100%;
  object-fit: cover;
  object-position: center 35%;
}
