
body {
    background-color: #f3f4fa;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 0;
    margin: 0;
}

.image-7 {    
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.section-2 {
    background-color: #f3f4fa;
    padding: 2em;
}

.container-2 {
    max-width: 1200px;
    margin: 0 auto;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.logo {
    height: 200px;
    margin-right: 2em;
}
.banner {
    height: 200px;
    display: block;
    position: static;
    marging-left: 40px;
    text-align: center;
}

.form-section input {
    margin: 10px;
    padding: 10px;
    width: 250px;
}
.submit-section button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #5a67d8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.formulaire {
  max-width: 600px;
  margin: 0 auto;
}

.ligne-haut {
  display: flex;
  gap: 1em;
  margin-bottom: 0.1em;
}

.champ-prenom,
.champ-nom {
  flex: 1;
}

.ligne-bas input {
  width: 100%;
}

input[type="text"],
input[type="email"] {
  padding: 0.7em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
input[type="text"],
input[type="email"] {
  padding: 0.5em 0.8em;
  font-size: 0.95em;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: #FF914D;
  box-shadow: 0 0 0 2px rgba(255, 145, 77, 0.2);
}

.champ-prenom,
.champ-nom {
  flex: 1;
  max-width: 240px;
}
.jeu-section {
    text-align: center;
    margin: 2em;
}
.grid {
    display: grid;
    grid-template-columns: repeat(12, 30px);
    gap: 5px;
    justify-content: center;
}
.cell {
    width: 30px;
    height: 30px;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.cell.selected {
    background-color: #FF914D;
    color: white;
    border: 2px solid #FF914D;
}

/* ----- STYLES POUR LE MOT MÊLÉ ----- */

.jeu-mot-mele {
    padding: 2em 1em;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.grille {
  display: grid;
  grid-template-columns: repeat(12, 2.2em); /* 12 lettres, ajuste selon taille */
  gap: 0.3em;
  justify-content: center;
  margin: 1em auto;
  padding: 1em;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.cellule {
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    background-color: #f4f4f4;
    color: #333;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.cellule.selectionnee {
    background-color: #FF914D;
    color: #fff;
    border: 2px solid #FF914D;
}

.liste-mots {
    margin-top: 1em;
    font-size: 1.1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
}

.liste-mots span {
    padding: 0.4em 0.8em;
    border-radius: 5px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.liste-mots span.trouve {
    background-color: #5a67d8;
    color: white;
    text-decoration: line-through;
}

.bouton-verification {
    margin-top: 1.5em;
    padding: 0.6em 1.2em;
    font-size: 1em;
    background-color: #FF914D;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.bouton-verification:hover {
    background-color: #e57a34;
}

#resultat-verification {
    margin-top: 1em;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.grille table {
  border-collapse: collapse;
  margin: auto;
}

.grille td {
  width: 30px;
  height: 30px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #333;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

.case-grille.selectionnee {
  background-color: #ffdb99;
}

.liste-mots {
  text-align: center;
  margin-top: 1em;
}

.liste-mots span {
  margin: 0 0.5em;
  padding: 0.3em 0.5em;
  display: inline-block;
  font-weight: bold;
  background: #f2f2f2;
  border-radius: 5px;
}

.liste-mots .trouve {
  background-color: #c2f0c2;
  text-decoration: line-through;
}

/* GRILLE MOT MÊLÉ */
.grille table {
  border-collapse: collapse;
  margin: 0 auto;
}

.grille td {
  width: 2em;
  height: 2em;
  text-align: center;
  border: 1px solid #999;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  user-select: none;
}

.grille td.selectionnee {
  background-color: #cde8ff;
}

.liste-mots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1em auto;
  gap: 1em;
  font-weight: bold;
}

.liste-mots span.trouve {
  text-decoration: line-through;
  color: #999;
}

.grille div {
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  user-select: none;
  border: 1px solid #ccc;
  transition: background 0.3s;
}

.grille div.selectionne {
  background-color: #FFDF91; /* couleur lors de la sélection */
}

.grille div.trouve {
  background-color: #8BC34A; /* couleur si mot correct trouvé */
}

.grille td.trouve {
  background-color: #67c667;
  color: white;
}

#liste-mots span.trouve {
  text-decoration: line-through;
  color: #888;
}
