:root {
  --blue-dark: #1e3a8a;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --yellow: #F0C300;
  --brown: #88421D;
  --brown-light: #68421D;
  --white: #ffffff;
  
  
  @media (max-width: 700px) {
  /* Corps : padding réduit, police et taille adaptée */
  body {
    padding: 1rem;
    font-size: 14px;
  }

  /* Conteneur général si utilisé */
  .container, .quiz-container {
    max-width: 95vw !important;
    padding: 10px 12px !important;
    margin: 12px auto !important;
    box-sizing: border-box;
  }

  /* Titres */
  h1, h2, h3, .eqineq {
    font-size: 1.2rem !important;
    padding: 12px !important;
    margin-bottom: 1rem !important;
  }

  /* Tableaux, adaptations largeur, scroll horizontal */
  table, .signe {
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    font-size: 0.85rem !important;
  }

  table th, table td, .signe th, .signe td {
    padding: 6px 8px !important;
    font-size: 0.8rem !important;
    word-break: break-word;
  }

  /* Boutons */
  .bout, .btn, button {
    padding: 10px 18px !important;
    font-size: 1rem !important;
    width: 100% !important;
    margin-top: 10px !important;
    box-sizing: border-box;
  }

  /* Inputs et textarea */
  input[type="text"], input[type="number"], textarea {
    font-size: 1rem !important;
    padding: 8px 10px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Canvas (si présent) */
  canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 12px auto !important;
    display: block !important;
  }

  /* Clavier ou zones d'entrée */
  .clav {
    padding: 0.6rem 1rem !important;
    font-size: 1rem !important;
  }

  /* Textes et corrections */
  .correction-text, .correctionbox, .coursbox {
    font-size: 0.9rem !important;
    padding: 10px !important;
    max-width: 100% !important;
  }

  /* Gestion du flex (alignements en colonnes sur mobile) */
  .cell-flex, .center-btns, .input-row, .button-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  /* Boutons plus petits dans les groupes */
  .btn-sign, .btn-var {
    font-size: 1em !important;
    width: 2rem !important;
    height: 2rem !important;
    margin: 2px !important;
  }
  
  /* Sticky headers and first columns fix */
  table th:first-child, table td:first-child {
    position: sticky !important;
    left: 0 !important;
    background: var(--white, #fff) !important;
    z-index: 10 !important;
  }
}

  
}

body {
  background: var(--white);
  
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: black;
  font-weight: bold;
  margin: 0;
  
}

p {
  color: #000;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: bold;
}

/* Titres principaux à fond bleu, texte blanc, coins arrondis */
h1,  h3, .eqineq {
  background: var(--blue);
  color: var(--white);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-size: 18px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(30,58,138,0.07);
}

h2, .eqineq {
  background: #1a28fd;
  color: var(--white);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-size: 18px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(30,58,138,0.07);
}

#obliq{
  background: #88421D;
  color: var(--white);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(30,58,138,0.07);
}

/* Alternative pour .eqineq si on veut garder la classe spécifique */
.eqineq {
  background: var(--blue);
  color: var(--white);
  font-size: 18px;
}

canvas {
  border: 1px solid var(--blue-dark);
  background: var(--white);
  display: block;
  margin: 1.4rem auto;
  border-radius: 8px;
}

/* Tableaux propres */
td, th {
  text-align: center;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  padding: 5px 8px;
  font-weight: bold;
  vertical-align: top;
}

.signe, .signe td, .signe th {
  border: 1px solid var(--blue-dark);
  border-collapse: collapse;
  background: var(--white);
  font-size: 13px;
}

.signe th {
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* Boutons arrondis modernes à fond bleu */
.bout, .btn, button {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px 24px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(30,58,138,0.09);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

/* Effet hover pour feedback moderne */
.bout:hover, .btn:hover, button:hover {
  background: var(--blue-dark);
  color: var(--white);
}

#note {
  color: #ff0000;
  font-weight: bold;
}

/* Clavier virtuel ou input sur fond jaune */
.clav {
  background-color: var(--yellow);
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  color: var(--brown);
  display: inline-block;
  font-weight: bold;
  margin-bottom: 0.6rem;
}

/* Petite retouche input pour uniformité si besoin */
input[type="text"], input[type="number"], textarea {
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 1rem;
  background: #f9fafb;
  color: var(--brown);
  margin-bottom: 8px;
  transition: border-color 0.18s;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
  border-color: var(--blue);
  outline: none;
}

/* Pour rendre l’ensemble encore plus moderne et centré */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

