
.cours-content {
    background-color: #fff;
    background-image: 
        linear-gradient(to right, #e0e0e0 1px, transparent 1px),
        linear-gradient(to bottom, #e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
}

/*  .cours-content {
            background: #fef9e3;
            padding: 1rem;
            border-radius: 1rem;
            line-height: 1.5;
        }*/

/* Classes prédéfinies pour l'éditeur */
.intro {
    background: #eef2ff;
    border-left: 4px solid #0f3b5c;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.definition {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.theoreme {
    background: #fef9e3;
    border-left: 4px solid #eab308;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    margin: 1rem 0;
    display: block;
}
.exemple {
    background: #f3e8ff;
    border-left: 4px solid #a855f7;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.attention {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.citation {
    background: #fef9e3;
    font-style: italic;
    padding: 0.5rem 1rem;
    border-left: 4px solid #f59e0b;
    margin: 1rem 0;
    display: block;
}

/* Style pour les titres de chapitre */

.chapitre {
    background: #e0f2fe;
    border-left: 6px solid #0284c7;
    font-weight: 800;
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    text-align: left;
    margin: 1rem 0;
    font-weight: bold;
    display: block;
}
 

/* Style pour les Nota Bene (NB) */
.nb {
    background: #e6f7ff;
    border-left: 6px solid #0284c7;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
    font-style: italic;
    display: block;
}

/* Style pour les exercices */
.exercice {
    background: #fef9c3;
    border: 1px solid #eab308;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    display: block;
}
 

/* Style pour les corrections */
.correction {
    background: #dcfce7;
    border-left: 6px solid #22c55e;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
    display: block;
}
.correction::before {
    content: " Correction : ";
    font-weight: bold;
    color: #166534;
}

/* Style pour les activités */
.activite {
    background: #f3e8ff;
    border: 1px dashed #a855f7;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    display: block;
}
.activite::before {
    content: " Activité : ";
    font-weight: bold;
    color: #6b21a5;
}
 
 
/* Objectif / but */
.objectif {
    background: #dcfce7;
    border-left: 4px solid #0284c7;
    padding: 0.5rem 1rem;
    color: '#16a34a';
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.objectif::before {
    content: " Objectif : ";
    font-weight: bold;
    color: #0369a1;
}
/* Titre niveau 0 */
.titre_0 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0f3b5c;
    border-bottom: 1px solid #0f3b5c;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem;
    display: block;
}
/* Titre niveau 1 */
.titre_1 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e293b;
    border-bottom: 1px solid #94a3b8;
    padding-bottom: 0.3rem;
    margin: 1.2rem 0 0.8rem;
    display: block;
}

/* Titre niveau 2 */
.titre_2 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #334155;
    border-left: 4px solid #64748b;
    padding-left: 0.75rem;
    margin: 1rem 0 0.5rem;
    display: block;
}

/* Titre niveau 3 */
.titre_3 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    margin: 0.8rem 0 0.4rem;
    padding-left: 0.5rem;
    display: block;
}

/* Titre niveau 4 */
.titre_4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    font-style: italic;
    margin: 0.6rem 0 0.3rem;
    padding-left: 1rem;
    display: block;
}

/* Conclusion */
.conclusion {
    background: #f1f5f9;
    border-left: 4px solid #0f3b5c;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.conclusion::before {
    font-weight: bold;
    color: #0f3b5c;
}

/*Utile pour francais, anglais, etc*/
/* Vocabulaire / mots-clés */
.vocabulaire {
    background: #fdf4ff;
    border-left: 4px solid #d946ef;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.vocabulaire::before {
    content: "Vocabulaire : ";
    font-weight: bold;
    color: #a21caf;
}

/* Règle de grammaire / conjugaison */
.grammaire {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.grammaire::before {
    content: " Règle de grammaire : ";
    font-weight: bold;
    color: #c2410c;
}
/**Utile pour Histoire*/
/* Date importante */
.date-cle {
    background: #fef9e3;
    border-left: 4px solid #d97706;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-weight: bold;
    display: block;
}
.date-cle::before {
    content: "Date clé : ";
    font-weight: bold;
    color: #92400e;
}

/* Personnage historique */
.personnage {
    background: #f3e8ff;
    border-left: 4px solid #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-style: italic;
    display: block;
}
.personnage::before {
    content: "👤 Personnage : ";
    font-weight: bold;
    color: #5b21b6;
}

/* Carte / Schéma légendé */
.carte {
    background: #ecfdf5;
    border: 2px solid #059669;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    display: block;
}
.carte::before {
    content: "🗺️ Carte / Schéma : ";
    font-weight: bold;
    color: #065f46;
}
/* Auteur / courant philosophique */
.auteur-philo {
    background: #f1f5f9;
    border-left: 4px solid #475569;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: block;
}
.auteur-philo::before {
    content: " Auteur : ";
    font-weight: bold;
    color: #1e293b;
}

 /* Protocole expérimental */
.protocole {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-family: monospace;
    display: block;
}
.protocole::before {
    content: " Protocole : ";
    font-weight: bold;
    color: #0369a1;
}

/* Danger / sécurité */
.danger {
    background: #fef2f2;
    border-left: 6px solid #dc2626;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
    font-weight: bold;
    color: #991b1b;
    display: block;
}
.danger::before {
    content: "⚠️ Danger : ";
    font-weight: bold;
    color: #b91c1c;
}
.situation {
    background-color: #f0f7ff;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #2c6b9e;
  }
/* Résultat / donnée expérimentale */
.resultat {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    text-align: center;
    display: block;
}

/* Formule importante (déjà existe avec .theoreme, mais on peut ajouter une variante) */
.formule {
    background: #fef9e3;
    border: 2px solid #eab308;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
}

/* Démonstration / preuve */
.demo {
    background: #f8fafc;
    border-left: 4px solid #64748b;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    font-style: italic;
    display: block;
}
.demo::before {
    content: " Démonstration : ";
    font-weight: bold;
    color: #334155;
}

/* Question à choix multiples */
.qcm {
    background: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    display: block;
}
.qcm p {
    margin: 0.3rem 0;
}

/* Ajout d'une marge interne et d'une ombre légère pour les blocs importants */
.definition, .theoreme, .attention {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Unification des arrondis : 0.8rem pour tous les blocs */
.intro, .definition, .theoreme, .exemple, .attention, .citation, 
.nb, .objectif, .conclusion, .activite, .exercice, .correction {
    border-radius: 0.8rem;
}


/* ===== TABLEAUX PÉDAGOGIQUES ===== */
.table-cours {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    text-align: center;
    background: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.04);
  }
  
  .table-cours thead th {
    background: #1a3a5c;
    color: #fff;
    padding: 0.6rem 0.4rem;
    border: 1px solid #1a3a5c;
    font-weight: 700;
  }
  
  .table-cours tbody td {
    padding: 0.5rem 0.3rem;
    border: 1px solid #ccc;
    vertical-align: middle;
  }
  
  .table-cours tbody tr:nth-child(even) {
    background: #f8fafc;
  }
  
  .table-cours tbody tr:hover {
    background: #eef2f7;
  }
  
  /* --- Version responsive --- */
  .table-cours-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
  }
  
  /* ===== TABLEAU DU CODE GÉNÉTIQUE (plus dense) ===== */
  .table-code-genetique {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
    background: #fff;
    margin: 1rem 0;
  }
  
  .table-code-genetique th,
  .table-code-genetique td {
    border: 1px solid #bbb;
    padding: 0.3rem 0.2rem;
  }
  
  .table-code-genetique thead th {
    background: #2c3e50;
    color: #fff;
    font-weight: 700;
  }
  
  .table-code-genetique tbody td {
    background: #fcfcfc;
  }
  
  .table-code-genetique tbody tr:nth-child(odd) td {
    background: #f2f5f9;
  }
  
  /* ===== TABLEAU DE CROISEMENT (MENDEL) ===== */
  .table-croisement {
    width: auto;
    min-width: 60%;
    margin: 1rem auto;
    border-collapse: collapse;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  
  .table-croisement th,
  .table-croisement td {
    border: 1px solid #aaa;
    padding: 0.4rem 0.6rem;
  }
  
  .table-croisement thead th {
    background: #34495e;
    color: #fff;
  }
  
  .table-croisement .cellule-vide {
    background: #eaeef3;
    border: 1px solid #aaa;
  }

  .formule-centree {
    text-align: center;
    margin: 1.2rem 0;
    padding: 0.2rem 0;
    overflow-x: auto;        /* permet de scroller horizontalement si besoin */
    white-space: nowrap;     /* évite le retour à ligne intempestif */
    max-width: 100%;
  }
  
  @media (max-width: 600px) {
    .formule-centree {
      margin: 0.6rem 0;
      white-space: normal;   /* autorise le retour à ligne sur mobile */
      font-size: 0.95rem;    /* réduit très légèrement la taille pour éviter le débordement */
    }
  }

  /* ===== TABLEAU EN-TÊTE ===== */
.table-entete {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
    background: #fff;
  }
  
  .table-entete td {
    border: 1px solid #222;
    padding: 0.4rem 0.6rem;
    vertical-align: middle;
  }
  
  .table-entete td:first-child {
    border-left: none;
  }
  
  .table-entete td:last-child {
    border-right: none;
  }
  
  .table-entete tr:first-child td {
    border-top: none;
  }
  
  .table-entete tr:last-child td {
    border-bottom: none;
  }
  
  @media (max-width: 600px) {
    .table-entete {
      font-size: 0.8rem;
    }
    .table-entete td {
      padding: 0.3rem 0.2rem;
    }
  }