/**
 * DEEZPRO Course Templates — Frontend Template Styles
 *
 * Three distinct visual templates for course content.
 * Each template is scoped with its own class prefix to avoid conflicts.
 *
 * Templates:
 *   1. .dct-template-classique   — Clean, professional, blue accents
 *   2. .dct-template-moderne     — Bold gradients, vibrant colors
 *   3. .dct-template-academique  — Formal, serif, numbered sections
 */

/* ═══════════════════════════════════════════════════════════════════
   SHARED RESET & BASELINE
   ═══════════════════════════════════════════════════════════════════ */
[class*="dct-template-"] {
  font-size: 16px;
  line-height: 1.8;
  color: #2d3436;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

[class*="dct-template-"] p {
  text-align: justify;
  margin: 0 0 1.2em;
}

[class*="dct-template-"] a {
  word-break: break-all;
}

[class*="dct-template-"] strong {
  font-weight: 700;
}

[class*="dct-template-"] blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #ddd;
  background: #fafafa;
  font-style: italic;
}

[class*="dct-template-"] pre,
[class*="dct-template-"] code {
  font-family: "Fira Code", "Consolas", "Monaco", monospace;
  font-size: 0.9em;
}

[class*="dct-template-"] pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.2em 1.5em;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5em 0;
}

[class*="dct-template-"] code {
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 4px;
}

[class*="dct-template-"] pre code {
  background: none;
  padding: 0;
}

[class*="dct-template-"] table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

[class*="dct-template-"] th,
[class*="dct-template-"] td {
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  text-align: left;
}

[class*="dct-template-"] th {
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════════════
   TEMPLATE 1: CLASSIQUE
   — Clean, professional design with blue accents
   ═══════════════════════════════════════════════════════════════════ */
.dct-template-classique {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Header */
.dct-classique-header {
  text-align: center;
  margin-bottom: 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 3px solid #1a73e8;
}

.dct-classique-header h1 {
  font-size: 2em;
  font-weight: 800;
  color: #1a73e8;
  margin: 0 0 0.3em;
  line-height: 1.3;
}

/* Section headings */
.dct-classique-heading {
  color: #174ea6;
  border-bottom: 2px solid #e8f0fe;
  padding-bottom: 0.4em;
  margin: 2em 0 1em;
}

h2.dct-classique-heading {
  font-size: 1.5em;
  font-weight: 700;
}

h3.dct-classique-heading {
  font-size: 1.2em;
  font-weight: 600;
  color: #1a73e8;
  border-bottom-color: transparent;
}

/* Section body */
.dct-classique-section {
  margin-bottom: 1.5em;
}

.dct-classique-body {
  padding: 0;
}

/* Introduction box */
.dct-classique-intro-box {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 100%);
  border-left: 5px solid #1a73e8;
  border-radius: 0 12px 12px 0;
  padding: 1.5em 2em;
  margin: 1.5em 0 2em;
}

.dct-classique-intro-label {
  font-weight: 700;
  font-size: 1.1em;
  color: #1a73e8;
  margin-bottom: 0.7em;
  display: block;
}

.dct-classique-intro-content p:last-child {
  margin-bottom: 0;
}

/* Conclusion box */
.dct-classique-conclusion-box {
  background: linear-gradient(135deg, #e6f9f0 0%, #f0faf5 100%);
  border-left: 5px solid #0d8050;
  border-radius: 0 12px 12px 0;
  padding: 1.5em 2em;
  margin: 2em 0 1.5em;
}

.dct-classique-conclusion-label {
  font-weight: 700;
  font-size: 1.1em;
  color: #0d8050;
  margin-bottom: 0.7em;
  display: block;
}

.dct-classique-conclusion-content p:last-child {
  margin-bottom: 0;
}

/* Note box */
.dct-classique-note-box {
  background: #fffce6;
  border: 1px solid #ffd43b;
  border-left: 5px solid #fcc419;
  border-radius: 0 8px 8px 0;
  padding: 1em 1.5em;
  margin: 1.5em 0;
}

.dct-classique-note-label {
  font-weight: 700;
  color: #e67700;
  display: block;
  margin-bottom: 0.4em;
}

/* Lists */
.dct-classique-list {
  padding-left: 1.8em;
  margin: 1em 0 1.5em;
}

.dct-classique-list li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

ul.dct-classique-list {
  list-style-type: none;
}

ul.dct-classique-list li::before {
  content: "▸";
  color: #1a73e8;
  font-weight: 700;
  margin-right: 8px;
}

/* Images */
.dct-classique-figure {
  text-align: center;
  margin: 2em auto;
  max-width: 100%;
}

.dct-classique-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
}

.dct-classique-figcaption {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
  margin-top: 0.7em;
}

/* Links */
.dct-template-classique a {
  color: #1a73e8;
  text-decoration: underline;
  text-decoration-color: rgba(26, 115, 232, 0.3);
  transition: text-decoration-color 0.2s;
}

.dct-template-classique a:hover {
  text-decoration-color: #1a73e8;
}

/* Tables */
.dct-template-classique th {
  background: #1a73e8;
  color: #fff;
}

.dct-template-classique tr:nth-child(even) td {
  background: #f8faff;
}


/* ═══════════════════════════════════════════════════════════════════
   TEMPLATE 2: MODERNE
   — Bold, gradient-heavy design for tech/creative courses
   ═══════════════════════════════════════════════════════════════════ */
.dct-template-moderne {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Header */
.dct-moderne-header {
  background: linear-gradient(135deg, #6C63FF 0%, #3F3D99 60%, #FF6584 100%);
  border-radius: 16px;
  padding: 2.5em 2em;
  text-align: center;
  margin-bottom: 2.5em;
}

.dct-moderne-title {
  font-size: 2em;
  font-weight: 800;
  color: #fff !important;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Section headings */
.dct-moderne-heading {
  position: relative;
  padding-left: 20px;
  margin: 2em 0 1em;
}

h2.dct-moderne-heading {
  font-size: 1.5em;
  font-weight: 700;
  color: #2d3436;
}

h3.dct-moderne-heading {
  font-size: 1.2em;
  font-weight: 600;
  color: #6C63FF;
}

.dct-moderne-heading-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #6C63FF 0%, #FF6584 100%);
  border-radius: 3px;
}

/* Section body */
.dct-moderne-section {
  margin-bottom: 1.5em;
}

.dct-moderne-body {
  padding: 0;
}

/* Intro & Conclusion boxes — card style with left accent */
.dct-moderne-intro-box,
.dct-moderne-conclusion-box {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  margin: 1.5em 0 2em;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.1);
}

.dct-moderne-intro-box .dct-moderne-box-accent {
  width: 8px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #6C63FF 0%, #48c6ef 100%);
}

.dct-moderne-conclusion-box .dct-moderne-box-accent {
  width: 8px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #FF6584 0%, #ffa502 100%);
}

.dct-moderne-box-inner {
  padding: 1.5em 2em;
  flex: 1;
  background: #fafafe;
}

.dct-moderne-box-label {
  font-weight: 700;
  font-size: 1.1em;
  display: block;
  margin-bottom: 0.7em;
}

.dct-moderne-intro-box .dct-moderne-box-label {
  color: #6C63FF;
}

.dct-moderne-conclusion-box .dct-moderne-box-label {
  color: #FF6584;
}

.dct-moderne-box-inner p:last-child {
  margin-bottom: 0;
}

/* Note box */
.dct-moderne-note-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #f0efff 0%, #fff0f3 100%);
  border-radius: 12px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  border: 1px solid rgba(108, 99, 255, 0.15);
}

.dct-moderne-note-icon {
  font-size: 1.5em;
  flex-shrink: 0;
  margin-top: 2px;
}

.dct-moderne-note-content {
  flex: 1;
}

/* Lists */
.dct-moderne-list {
  padding-left: 0;
  margin: 1em 0 1.5em;
  list-style: none;
}

.dct-moderne-list li {
  position: relative;
  padding: 0.6em 0 0.6em 2em;
  margin-bottom: 0.3em;
  border-radius: 8px;
  transition: background 0.2s;
}

.dct-moderne-list li:hover {
  background: rgba(108, 99, 255, 0.04);
}

ul.dct-moderne-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C63FF, #FF6584);
}

ol.dct-moderne-list {
  counter-reset: moderne-counter;
}

ol.dct-moderne-list li {
  counter-increment: moderne-counter;
}

ol.dct-moderne-list li::before {
  content: counter(moderne-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C63FF, #FF6584);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images */
.dct-moderne-figure {
  text-align: center;
  margin: 2em auto;
  max-width: 100%;
}

.dct-moderne-img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
}

.dct-moderne-figcaption {
  font-size: 0.85em;
  color: #999;
  margin-top: 0.8em;
  font-style: italic;
}

/* Links */
.dct-template-moderne a {
  color: #6C63FF;
  text-decoration: none;
  border-bottom: 2px solid rgba(108, 99, 255, 0.2);
  transition: border-color 0.2s;
}

.dct-template-moderne a:hover {
  border-bottom-color: #6C63FF;
}

/* Tables */
.dct-template-moderne th {
  background: linear-gradient(135deg, #6C63FF 0%, #3F3D99 100%);
  color: #fff;
}

.dct-template-moderne tr:nth-child(even) td {
  background: #f8f7ff;
}

.dct-template-moderne table {
  border-radius: 12px;
  overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════════
   TEMPLATE 3: ACADÉMIQUE
   — Formal, serif-based, numbered sections
   ═══════════════════════════════════════════════════════════════════ */
.dct-template-academique {
  font-family: "Merriweather", "Georgia", "Times New Roman", serif;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 0;
  font-size: 15.5px;
}

/* Header */
.dct-academique-header {
  text-align: center;
  margin-bottom: 2.5em;
  padding-bottom: 0.5em;
}

.dct-academique-title {
  font-size: 1.9em;
  font-weight: 700;
  color: #2d3436;
  margin: 0 0 0.5em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.dct-academique-header-line {
  width: 80px;
  height: 3px;
  background: #2d3436;
  margin: 0 auto;
}

/* Section headings */
.dct-academique-heading {
  margin: 2em 0 1em;
  color: #2d3436;
}

h2.dct-academique-heading {
  font-size: 1.4em;
  font-weight: 700;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #dee2e6;
}

h3.dct-academique-heading {
  font-size: 1.15em;
  font-weight: 600;
  color: #495057;
}

.dct-academique-numbering {
  color: #00b894;
  font-weight: 700;
  margin-right: 6px;
}

/* Section body */
.dct-academique-section {
  margin-bottom: 1.5em;
}

.dct-academique-body {
  padding: 0;
}

/* Intro box — formal "Préambule" style */
.dct-academique-intro-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin: 1.5em 0 2em;
  overflow: hidden;
}

.dct-academique-intro-box .dct-academique-box-header {
  background: #2d3436;
  color: #fff;
  padding: 0.7em 1.5em;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dct-academique-intro-box .dct-academique-box-content {
  padding: 1.5em 2em;
}

.dct-academique-intro-box .dct-academique-box-content p:last-child {
  margin-bottom: 0;
}

/* Conclusion box */
.dct-academique-conclusion-box {
  background: #f0faf5;
  border: 1px solid #b2dfdb;
  border-radius: 4px;
  margin: 2em 0 1.5em;
  overflow: hidden;
}

.dct-academique-conclusion-box .dct-academique-box-header {
  background: #00b894;
  color: #fff;
  padding: 0.7em 1.5em;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dct-academique-conclusion-box .dct-academique-box-content {
  padding: 1.5em 2em;
}

.dct-academique-conclusion-box .dct-academique-box-content p:last-child {
  margin-bottom: 0;
}

/* Note box */
.dct-academique-note-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 4px;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.dct-academique-note-box strong {
  color: #e65100;
}

/* Lists */
.dct-academique-list {
  padding-left: 1.8em;
  margin: 1em 0 1.5em;
}

.dct-academique-list li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

ul.dct-academique-list {
  list-style-type: disc;
}

ul.dct-academique-list li::marker {
  color: #00b894;
}

ol.dct-academique-list-ordered {
  list-style-type: decimal;
}

ol.dct-academique-list-ordered li::marker {
  color: #00b894;
  font-weight: 700;
}

/* Images */
.dct-academique-figure {
  text-align: center;
  margin: 2em auto;
  max-width: 100%;
}

.dct-academique-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.dct-academique-figcaption {
  font-size: 0.82em;
  color: #868e96;
  margin-top: 0.6em;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-style: italic;
}

/* Links */
.dct-template-academique a {
  color: #00b894;
  text-decoration: underline;
}

.dct-template-academique a:hover {
  color: #00a884;
}

/* Tables */
.dct-template-academique th {
  background: #2d3436;
  color: #fff;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dct-template-academique tr:nth-child(even) td {
  background: #f8f9fa;
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  [class*="dct-template-"] {
    font-size: 15px;
  }

  .dct-classique-header h1,
  .dct-moderne-title,
  .dct-academique-title {
    font-size: 1.5em;
  }

  .dct-classique-intro-box,
  .dct-classique-conclusion-box,
  .dct-moderne-box-inner,
  .dct-academique-intro-box .dct-academique-box-content,
  .dct-academique-conclusion-box .dct-academique-box-content {
    padding: 1em 1.2em;
  }

  .dct-moderne-header {
    padding: 1.5em 1.2em;
  }

  .dct-moderne-intro-box,
  .dct-moderne-conclusion-box {
    flex-direction: column;
  }

  .dct-moderne-intro-box .dct-moderne-box-accent,
  .dct-moderne-conclusion-box .dct-moderne-box-accent {
    width: 100%;
    height: 6px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════ */
@media print {
  [class*="dct-template-"] {
    font-size: 12pt;
    color: #000;
  }

  .dct-moderne-header {
    background: none !important;
    color: #000;
    border: 2px solid #000;
  }

  .dct-moderne-title {
    color: #000 !important;
    text-shadow: none !important;
  }

  [class*="dct-template-"] img {
    max-width: 80%;
    box-shadow: none;
  }
}
