/* Reset des styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de base */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fafafa;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

nav {
    background-color: #2d87f0;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    flex: 1;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    padding: 10px 20px;
    background-color: #3498db;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #1e73b3;
    border-color: white;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.2);
}

h1 {
    margin: 30px 0;
    font-size: 2.5rem;
    color: #333;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 20px auto;
}

/* Page des mots croisés : Grille */
#grid-container {
    display: grid;
    grid-template-columns: repeat(6, 70px);
    grid-gap: 10px;
    justify-content: center;
    margin-top: 30px;
    padding: 10px;
    max-width: 500px;
    margin: 30px auto;
}

#grid-container div {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
}

#grid-container .cell {
    background-color: #f0f4f8;
}

#grid-container .cell:hover {
    background-color: #cce5ff;
    cursor: pointer;
    transform: scale(1.05);
}

#grid-container .cell:empty {
    background-color: #f4f4f4;
    border-color: #ddd;
}

#grid-container .cell:focus {
    outline: none;
    border-color: #2980b9;
}

/* Page générale : Textes et contenu */
h1,
p {
    font-family: 'Arial', sans-serif;
}

button {
    background-color: #3498db;
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #1e73b3;
    transform: scale(1.05);
}

/* Sections générales */
section {
    margin-top: 40px;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.blank {
    border-bottom: 2px solid #000;
    width: 100px;
    display: inline-block;
    text-align: center;
    margin: 0 5px;
    min-width: 30px;
    padding: 2px;
}

.blank[contenteditable="true"]:empty:before {
    content: "_____";
    color: #888;
}

button {
    margin-top: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.game-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.word-list {
    width: 30%;
}

.word-list ul {
    list-style-type: none;
    padding: 0;
}

.word-list li {
    padding: 5px;
    font-size: 16px;
    background-color: #f0f0f0;
    margin: 5px 0;
    border-radius: 5px;
}

.phrases-container {
    width: 65%;
}

.phrase {
    margin-bottom: 20px;
}

button {
    margin-top: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}
