/* Styles pour les pages individuelles des mediafiles */
.media-page {
  max-width: 1024px;
  margin: 2rem auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--header-color);
  background-color: var(--background-section);
  width: fit-content;
  text-align: center;
}

.media-content {
  margin: 2rem 0;
}

.media-preview {
  position: relative;
  text-align: center;
  margin: 2rem 0;
  width: fit-content;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview img,
.media-preview video,
.media-preview iframe {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.media-preview video {
  max-height: 90vh;
  width: 100%;
  height: auto;
}

.media-preview iframe {
  width: 800px;
  height: 480px;
  border: 1px solid #ddd;
}

.document-iframe {
  width: 640px;
  height: 480px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.panorama-iframe {
  width: 100%;
  height: 500px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #000;
}

.file-preview {
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
}

.file-preview p {
  margin-bottom: 1rem;
  color: #6c757d;
  font-size: 1.1rem;
}

.media-info {
  background-color: #4f4f4f;
  width: 80%;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.media-info h2 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.media-info ul {
  list-style: none;
  padding: 0;
}

.media-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.media-info li:last-child {
  border-bottom: none;
}

.media-info strong {
  display: inline-block;
  min-width: 120px;
  font-weight: 600;
}

.back-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--header-color) 0%, #555 100%);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  align-self: flex-start;
  border: 1px solid #444;
}

.back-link:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-color-hover) 100%
  );
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .media-page {
    padding: 1rem;
    margin: 1rem auto;
  }

  .media-header h1 {
    font-size: 1.5rem;
  }

  .media-info {
    padding: 1rem;
  }

  .media-preview {
    max-height: 60vh;
  }

  .media-preview video {
    max-height: 50vh;
  }

  .media-preview iframe {
    height: 400px;
  }
}

/* Variables CSS par défaut si pas déjà définies */
:root {
  --header-color: #333;
  --accent-color: #084d40; /* Vert émeraude authentique */
  --accent-color-hover: #334a0a; /* Vert émeraude profond */
}

/* ============================================ */
/* STYLES SPÉCIFIQUES AUX PROJETS */
/* ============================================ */

/* Section d'action pour les projets */
.project-action {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  text-align: center;
  color: white;
}

/* Bouton de visite du projet */
.visit-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #667eea;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.visit-project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.external-link-icon {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.visit-project-btn:hover .external-link-icon {
  transform: translate(2px, -2px);
}

.external-notice {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Ajustements pour les liens dans media-info pour les projets */
.media-info a {
  color: #51d1ba;;
  text-decoration: none;
  word-break: break-all;
}

.media-info a:hover {
  color: #6de2cb;
  text-decoration: underline;
}

/* Responsive pour les projets */
@media (max-width: 768px) {
  .project-action {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .visit-project-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* ============================================ */
/* SECTION DE CONTACT */
/* ============================================ */

.contact-section {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 12px;
  text-align: center;
  color: white;
  border: 1px solid #34495e;
}

.contact-section h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.contact-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--accent-color-hover) 0%, #0f6b5e 100%);
  text-decoration: none;
  color: white;
}

.contact-icon {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.contact-btn:hover .contact-icon {
  transform: scale(1.1);
}

/* Responsive pour la section de contact */
@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  
  .contact-section h3 {
    font-size: 1.3rem;
  }
  
  .contact-section p {
    font-size: 1rem;
  }
  
  .contact-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}
