/* Container pour l'image de prévisualisation */
.preview-container {
  max-width: 280px;
  margin: 0 auto;
}

.preview-container img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.preview-container img:hover {
  transform: scale(1.02);
}

/* Icône de succès repositionnée */
.success-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 0.6s ease-out;
}

/* Responsive - sur petits écrans, retour au layout vertical */
@media (max-width: 768px) {
  .preview-container {
    max-width: 200px;
  }
  
  .preview-container img {
    max-height: 150px;
  }
  
  .success-icon {
    width: 45px;
    height: 45px;
  }
  
  /* Centre tout sur mobile */
  .col-md-7 {
    text-align: center;
  }
}

@media (min-width: 769px) {
  /* Sur grands écrans, alignement à gauche pour le texte */
  .col-md-7 {
    text-align: left;
  }
}

.placeholder-img {
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #dee2e6;
}

@keyframes bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Cards élégantes */
.card-elegant {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card-elegant:hover {
  transform: translateY(-5px);
}

/* Boutons sociaux */
.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: white;
}

.facebook {
  background: #3b5998;
  box-shadow: 0 4px 15px rgba(59, 89, 152, 0.3);
}
.twitter {
  background: #1da1f2;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}
.pinterest {
  background: #bd081c;
  box-shadow: 0 4px 15px rgba(189, 8, 28, 0.3);
}
.email {
  background: #34495e;
  box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

/* Cards des rubriques */
.resource-card {
  border: 2px solid #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.resource-card:hover {
  border-color: #4ecdc4;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.resource-card .card-img-top {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resource-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Texte avec gradient */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animation flottante */
.floating-element {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Responsivité */
@media (max-width: 768px) {
  .success-icon {
    width: 50px;
    height: 50px;
  }
  
  .card-img-wrapper {
    height: 150px;
  }
  
  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}