.text-center {
  text-align: center;
}

.preuves-hero {
  padding: 2rem 0;
  text-align: center;
}

.preuves-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.preuves-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.preuves-description {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
}

/*carrousel*/
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.carousel-caption h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.carousel-caption p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* controles carrousel */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-alt);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicator.active {
  background: var(--accent);
}

.carousel-indicator:hover {
  background: var(--accent-2);
}

/*infos supp*/
.preuves-info {
  max-width: 900px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin-top: 0;
  color: var(--accent);
}

.info-card ul {
  padding-left: 1.2rem;
}

.info-card li {
  margin-bottom: 0.5rem;
}

/* actions*/

.preuves-actions {
  text-align: center;
  margin: 3rem 0;
}

.preuves-actions .btn {
  margin: 0 0.5rem;
}

/* Styles des certificats */
.certificate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.certificate-image {
  width: 100%;
  max-width: 800px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.certificate-image:hover {
  transform: scale(1.02);
}

.certificate-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.certificate-details {
  margin-bottom: 1rem;
  text-align: center;
}

/* carrousel responsive */
@media (max-width: 768px) {
  .carousel {
    height: 400px;
  }
  
  .carousel-nav {
    padding: 0.8rem;
    font-size: 1rem;
  }
  
  .carousel-nav.prev {
    left: 0.5rem;
  }
  
  .carousel-nav.next {
    right: 0.5rem;
  }
  
  .preuves-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .preuves-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Styles spécifiques pour les certificats avec filtres */
.certificate-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.certificate-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #ff6b8a);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.certificate-container:hover::before {
  transform: scaleX(1);
}

.certificate-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 59, 92, 0.15);
  border-color: var(--accent-color);
}

.certificate-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.certificate-details {
  margin-bottom: 1.5rem;
}

.certificate-details p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.certificate-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.certificate-image:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 59, 92, 0.2);
}
