  * {
      box-sizing: border-box;
  }


  /* Container Principal */
  .cours-container {
      max-width: 900px;
      margin: 20px auto;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      overflow: hidden;
  }

  /* ----------------------------------------- */
  /* Fil d'Ariane (style from classe.php)      */
  /* ----------------------------------------- */
  .breadcrumb-container {
      background-color: #fff !important;
      padding: 15px 0;
      border-bottom: 1px solid var(--gray-200);
      position: relative;
      z-index: 10;
      display: block !important;
      width: 100%;
      min-height: 50px;
      /* Ensure height */
      clear: both;
      margin-bottom: 10px;
  }

  .breadcrumb {
      display: flex;
      flex-wrap: wrap;
      /* Permet le retour à la ligne si besoin */
      padding: 0;
      margin: 0;
      list-style: none;
      font-size: 0.9rem;
  }

  .breadcrumb-item {
      display: flex;
      align-items: center;
  }

  .breadcrumb-item a {
      color: var(--primary) !important;
      text-decoration: none;
      transition: color 0.3s;
      display: inline-block;
      /* Ensure link has layout */
  }

  .breadcrumb-item a:hover {
      color: var(--accent);
  }

  .breadcrumb-item.active {
      color: var(--gray-600);
      font-weight: 500;
  }

  .breadcrumb-item+.breadcrumb-item::before {
      content: '>';
      display: inline-block;
      padding: 0 10px;
      color: var(--gray-400);
  }

  /* En-tête du cours */
  .cours-header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      padding: 25px;
      border-radius: 10px;
      margin-bottom: 25px;
      text-align: left;
  }

  .cours-header .titre-principal {
      font-size: 28px;
      margin: 0 0 10px 0;
  }

  .cours-header .meta-cours {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
      margin-top: 15px;
      justify-content: flex-start;
  }

  .cours-header .badge {
      background: rgba(255, 255, 255, 0.2);
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 14px;
  }

  /* Corps du cours */
  .cours-body {
      padding: 20px;
      padding-top: 14px;
  }

  /* Sections */
  .section {
      margin-bottom: 40px;
  }

  .section-titre {
      color: #667eea;
      font-size: 24px;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 3px solid #667eea;
      margin-top: 32px;
  }

  .section-contenu {
      font-size: 16px;
      text-align: justify;
  }

  .section-contenu p {
      margin-bottom: 14px;
  }

  /* Objectifs d'apprentissage */
  .objectifs {
      background: #e8f4f8;
      border-left: 4px solid #3498db;
      padding: 20px;
      margin: 20px 0;
      border-radius: 4px;
  }

  .objectifs-titre {
      font-weight: bold;
      color: #2c3e50;
      margin-bottom: 10px;
  }

  .objectifs-liste {
      list-style-position: inside;
      padding-left: 10px;
  }

  .objectifs-liste li {
      margin: 8px 0;
  }

  /* Définitions et Concepts clés */
  .definition {
      background: #fff9e6;
      border-left: 4px solid #f39c12;
      padding: 15px;
      margin: 20px 0;
      border-radius: 4px;
  }

  .definition-terme {
      font-weight: bold;
      color: #e67e22;
  }

  /* Exemples */
  .exemple {
      background: #e8f8f5;
      border-left: 4px solid #27ae60;
      padding: 20px;
      margin: 20px 0;
      border-radius: 4px;
  }

  .exemple ul {
      padding-left: 1.5rem;
      list-style-position: outside;
  }

  .exemple li,
  .resume li {
      margin-bottom: 0.3rem;
  }

  .exemple-titre {
      font-weight: bold;
      color: #27ae60;
      margin-bottom: 10px;
  }

  /* Attention/Remarques importantes */
  .attention {
      background: #fce4e4;
      border-left: 4px solid #e74c3c;
      padding: 15px;
      margin: 20px 0;
      border-radius: 4px;
  }

  .attention-icone {
      font-weight: bold;
      color: #c0392b;
  }

  /* Images et Médias */
  .cours-image {
      width: 100%;
      max-width: 600px;
      height: auto;
      margin: 20px auto;
      display: block;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .image-legende {
      text-align: center;
      font-style: italic;
      color: #7f8c8d;
      margin-top: 8px;
      font-size: 14px;
  }

  /* Exercices */
  .exercices {
      background: #f8f9fa;
      padding: 25px;
      border-radius: 8px;
      margin-top: 30px;
  }

  .exercice-titre {
      color: #764ba2;
      font-size: 22px;
      margin-bottom: 15px;
  }

  .exercice-item {
      background: white;
      padding: 15px;
      margin: 15px 0;
      border-radius: 6px;
      border: 1px solid #dee2e6;
  }

  .exercice-numero {
      font-weight: bold;
      color: #667eea;
  }

  /* Résumé */
  .resume {
      background: #f0f3f7;
      padding: 25px;
      border-radius: 8px;
      margin-top: 30px;
  }

  .resume-titre {
      font-size: 22px;
      color: #2c3e50;
      margin-bottom: 15px;
  }

  /* Footer */
  .cours-footer {
      background: #2c3e50;
      color: white;
      padding: 20px;
      text-align: center;
      font-size: 14px;
  }

  /* Placeholder admin image — masqué sur front public */
  .admin-image-prompt {
      display: none;
  }

  /* Image finale générée */
  .course-img-final {
      width: 100%;
      max-width: 640px;
      height: auto;
      display: block;
      margin: 24px auto;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,.12);
  }

  /* SVG/figure inline */
  .course-figure {
      margin: 24px auto;
      text-align: center;
  }

  .course-figure svg {
      max-width: 100%;
      height: auto;
  }

  .course-figure figcaption {
      font-size: .85rem;
      color: #64748b;
      margin-top: 8px;
      font-style: italic;
  }

  /* Responsive */
  @media (max-width: 768px) {
      .cours-body {
          padding: 20px;
      }

      .cours-titre {
          font-size: 24px;
      }

      .section-titre {
          font-size: 20px;
      }

      .breadcrumb {
          font-size: 0.85rem;
      }
  }

  /* ============================================= */
  /* CTA Inscription - Block pour visiteurs       */
  /* ============================================= */
  .cta-inscription {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
      border-radius: 16px;
      margin: 30px 20px 20px;
      padding: 40px 30px;
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  }

  .cta-inscription::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
      animation: shimmer 3s infinite;
  }

  @keyframes shimmer {
      0% {
          transform: rotate(0deg);
      }

      100% {
          transform: rotate(360deg);
      }
  }

  .cta-content {
      position: relative;
      z-index: 1;
  }

  .cta-icon {
      width: 70px;
      height: 70px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      backdrop-filter: blur(10px);
  }

  .cta-icon svg {
      width: 36px;
      height: 36px;
      color: white;
  }

  .cta-title {
      color: white;
      font-size: 28px;
      font-weight: 700;
      margin: 0 0 15px;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .cta-description {
      color: rgba(255, 255, 255, 0.95);
      font-size: 17px;
      line-height: 1.6;
      max-width: 500px;
      margin: 0 auto 25px;
  }

  .cta-description strong {
      color: #fff;
      font-weight: 600;
  }

  .cta-benefits {
      list-style: none;
      padding: 0;
      margin: 0 auto 30px;
      max-width: 350px;
      text-align: left;
  }

  .cta-benefits li {
      color: white;
      font-size: 15px;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .cta-benefits li:last-child {
      border-bottom: none;
  }

  .cta-button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: white;
      color: #764ba2;
      font-size: 18px;
      font-weight: 700;
      padding: 16px 40px;
      border-radius: 50px;
      text-decoration: none;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
  }

  .cta-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
      transition: left 0.5s ease;
  }

  .cta-button:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
      background: #f8f9ff;
  }

  .cta-button:hover::before {
      left: 100%;
  }

  .cta-button:hover .cta-arrow {
      transform: translateX(5px);
  }

  .cta-arrow {
      width: 22px;
      height: 22px;
      transition: transform 0.3s ease;
  }

  .cta-reassurance {
      color: rgba(255, 255, 255, 0.8);
      font-size: 13px;
      margin: 20px 0 0;
      font-style: italic;
  }

  /* CTA Responsive */
  @media (max-width: 768px) {
      .cta-inscription {
          margin: 20px 15px 15px;
          padding: 30px 20px;
      }

      .cta-title {
          font-size: 22px;
      }

      .cta-description {
          font-size: 15px;
      }

      .cta-button {
          font-size: 16px;
          padding: 14px 30px;
      }

      .cta-benefits {
          max-width: 100%;
      }
  }