/**
 * CMS Content Styles
 * Styles pour l'affichage des pages dynamiques
 */

.content-article {
  padding: 3rem 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.content-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}

.content-excerpt {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.content-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
}

.content-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #111827;
}

.content-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.content-body p {
  margin-bottom: 1.5rem;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body a {
  color: #2563eb;
  text-decoration: underline;
}

.content-body a:hover {
  color: #1d4ed8;
}

.content-body blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}

.content-body code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.95em;
  font-family: 'SF Mono', Monaco, monospace;
}

.content-body pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.content-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Cover Image */
.content-cover {
  margin-bottom: 3rem;
}

.content-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

/* Inline Image */
.content-image {
  margin: 2.5rem 0;
  text-align: center;
}

.content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.content-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #6b7280;
  font-style: italic;
}

/* Embed (iframe PDF, etc.) */
.content-embed {
  margin: 2.5rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.content-embed iframe {
  display: block;
  width: 100%;
}

.embed-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #6b7280;
  text-align: center;
}

/* Audio */
.content-audio {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
}

.content-audio audio {
  width: 100%;
}

.content-audio p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Video */
.content-video {
  margin: 2.5rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.content-video video {
  display: block;
  width: 100%;
}

.content-video p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #6b7280;
  text-align: center;
}

/* Download Link */
.content-download {
  margin: 2rem 0;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.download-link:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.download-link svg {
  flex-shrink: 0;
}

.badge-gated {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: #fef3c7;
  color: #f59e0b;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Assets Grid */
.content-assets {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e5e7eb;
}

/* Alert Boxes */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.alert-info {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
}

.alert-warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-success {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

/* Tables */
.content-body table,
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.content-body table th,
.table th {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
}

.content-body table td,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.content-body table tbody tr:last-child td,
.table tbody tr:last-child td {
  border-bottom: none;
}

.content-body table tbody tr:hover,
.table tbody tr:hover {
  background: #f9fafb;
}

.table-bordered {
  border: 1px solid #e5e7eb;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #e5e7eb;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cta-box h3 {
  color: white !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  font-size: 1.875rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.cta-box .btn,
.cta-box a.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-box .btn:hover,
.cta-box a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  color: #764ba2;
}

.cta-box .btn-primary {
  background: white;
  color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
  .content-title {
    font-size: 2rem;
  }

  .content-body {
    font-size: 1rem;
  }

  .content-body h2 {
    font-size: 1.75rem;
  }

  .content-body h3 {
    font-size: 1.25rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .cta-box h3 {
    font-size: 1.5rem;
  }

  .alert {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .content-body table,
  .table {
    font-size: 0.9rem;
  }

  .content-body table th,
  .content-body table td,
  .table th,
  .table td {
    padding: 0.5rem 0.75rem;
  }
}
