/* Page Annonce - Style moderne */

main {
   background: #7c7aff1c;
   padding-top: 2rem;
   padding-bottom: 2rem; 
}

.annonce-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0a4f70;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Cards avec effet d'ombre */
.card-annonce {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.card-annonce-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a4f70;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #FCC71C;
}

.card-annonce-content {
  color: #333;
  line-height: 1.8;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Container pour le contenu texte */
.card-content-text {
  flex-grow: 1;
}

.card-annonce-content strong {
  color: #0a4f70;
  font-weight: 600;
  font-size: 1.05rem;
}

.card-annonce-content p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Texte tronqué */
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-7 {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lien "Voir la structure" */
.link-voir-structure {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0a4f70;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid #0a4f70;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: white;
}

.link-voir-structure:hover {
  background: #0a4f70;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 79, 112, 0.3);
}

.link-voir-structure i {
  font-size: 0.9rem;
}

/* Liens modernes "Voir plus" */
.link-voir-plus {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0a4f70;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  align-self: flex-end;
  margin-top: auto;
}

.link-voir-plus::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0a4f70;
  transition: width 0.3s ease;
}

.link-voir-plus:hover {
  color: #0d6eaa;
  transform: translateX(4px);
}

.link-voir-plus:hover::after {
  width: 100%;
}

.link-voir-plus i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.link-voir-plus:hover i {
  transform: translateX(4px);
}

/* Lien "Ouvrir carte" */
.link-ouvrir-carte {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0a4f70;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.link-ouvrir-carte::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0a4f70;
  transition: width 0.3s ease;
}

.link-ouvrir-carte:hover {
  color: #0d6eaa;
}

.link-ouvrir-carte:hover::after {
  width: 100%;
}

.link-ouvrir-carte i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.link-ouvrir-carte:hover i {
  transform: translate(2px, -2px);
}

/* Carte avec style */
#map {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #f0f0f0;
}

/* Avantages sans icônes de check */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.avantage-item {
  display: flex;
  align-items: center;
  padding: 0.2rem;
}


.avantage-item span {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* Info items */
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.info-icon {
  color: #0a4f70;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.info-content strong {
  display: block;
  color: #0a4f70;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.info-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Carousel - largeur et hauteur uniformes */
.carousel-wrapper {
  width: 100%;
}

.carousel-wrapper .carousel {
  border-radius: 16px;
  overflow: hidden;
}

.carousel-wrapper .carousel-inner {
  border-radius: 16px;
  overflow: visible !important;
}

.carousel-wrapper .carousel-item {
  height: 300px;
  overflow: hidden;
}

.carousel-wrapper .carousel-item img:not(.carousel-item-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

/* Carousel de structure - affichage complet des photos */
.carousel-item-jocare .carousel-item-img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 25px;
}

/* Buttons avec effets */
.btn-retour {
  background: #f87BC6;
  color: white;
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-retour::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn-retour:hover::before {
  left: 100%;
}

.btn-retour:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
  color: white;
}

.btn-retour:active {
  transform: translateY(0);
}

.btn-postuler {
  background:#FCC71C;
  color: #0a4f70;
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(248, 183, 57, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-postuler::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn-postuler:hover:not(:disabled)::before {
  left: 100%;
}

.btn-postuler:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(248, 183, 57, 0.4);
  color: #0a4f70;
}

.btn-postuler:active:not(:disabled) {
  transform: translateY(0);
}

.btn-postuler:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #ccc;
  box-shadow: none;
}

/* Modals */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: #0a4e71 !important;
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: white !important;
}

.modal-body {
  padding: 2rem;
  line-height: 1.8;
}

.modal-body h6 {
  color: #0a4f70;
  margin-bottom: 0.75rem;
}

.modal-body p {
  color: #666;
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-annonce {
  animation: fadeInUp 0.5s ease-out;
}

.card-annonce:nth-child(1) {
  animation-delay: 0.1s;
}

.card-annonce:nth-child(2) {
  animation-delay: 0.2s;
}

.card-annonce:nth-child(3) {
  animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 991px) {
  .annonce-title {
    font-size: 1.5rem;
  }
  
  .card-annonce {
    padding: 1.5rem;
  }
  
  .card-annonce:hover {
    transform: none;
  }
  
  .avantages-grid {
    grid-template-columns: 1fr;
  }
  
  .carousel-wrapper .carousel-item {
    height: 250px;
  }
  
  .btn-retour,
  .btn-postuler {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .card-annonce {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .card-annonce-title {
    font-size: 1.25rem;
  }
  
  .carousel-wrapper .carousel-item {
    height: 200px;
  }
  
  .btn-retour,
  .btn-postuler {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Alignement des colonnes */
.row.g-4 {
  align-items: stretch;
}

.row.g-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Colonne droite */
.col-lg-5 {
  display: flex;
  flex-direction: column;
}

/* S'assurer que les cards de gauche prennent toute la hauteur disponible */
.col-lg-7 {
  display: flex;
  flex-direction: column;
}