:root {
    /* Couleurs */
    --primary-bg: #8c6d59;
    --primary-bg-alt: rgb(232, 217, 177);
    --primary-border: #e3d39f;
    --alt-bg: #8c6d59;
    --text-color: black;
    --error-color: red;
    --success-color: green;

    /* Margins et paddings */
    --default-margin: 4px;
    --default-padding: 4px;

    /* Bordures */
    --default-border-radius: 8px;
    --default-border-width: 2px;

    /* Polices */
    --font-family-primary: Arial, sans-serif;
    --font-family-secondary: Courier, monospace;
    --font-size-small: 12px;
    --font-size-medium: 14px;
    --font-size-large: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background-color: var(--primary-bg-alt);
}

label,
textarea {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

textarea {
    padding: 10px;
    max-width: 100%;
    line-height: 1.5;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 1px #999;
    resize: none;
}

label {
    display: block;
    margin-bottom: 10px;
}

.etiquette {
    font-weight: bold;
}
.titreZone {
    text-align: center;
    background-color: var(--primary-bg);
    border: 2px solid var(--primary-border);
    border-radius: 8px;
    color: white;
}

.formConnexion {
    margin: 12px 0;
}

.titreBoite {
    text-align: center;
    background-color: var(--primary-bg);
    border: 2px solid var(--primary-border);
    border-radius: 8px;
    color: white;
}
.titreYouTube {
    text-align: center;
    background-color: var(--primary-bg);
    color: white;
}
.confirm-message {
    text-align: center;
    background-color: var(--primary-bg);
    color: white;
    border: none;
    padding: 10px;
}
/* Header, Footer */
header, footer {
    margin-top: auto;
    background-color: var(--primary-bg);
    color: var(--primary-border);
    text-align: center;
    font-size: 18px;
}

.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.button-bold {
    background-color: antiquewhite;
    border-color: var(--primary-border);
    color: black;
    text-align: center;
    display: inline-block;
    font-weight: bold;

    border-radius: var(--default-border-radius);
    /* box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
    /* width: 100%; */
    padding: 0 8px 0 8px;
    margin: 4px;
}
.form-check-label {
    font-weight: bold;
}
.form-select {
    margin-bottom: 10px;
}
.button {
    background-color: antiquewhite;
    border-color: var(--primary-border);
    color: black;
    text-align: center;
    display: inline-block;
    border-radius: var(--default-border-radius);
    /* box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
    width: 100%;
    padding: 0 4px 0 4px;
    margin: 4px;
}
.drapeau {
    padding: 0 10px 0 10px;
}
.sudoku-container {
    background-color: antiquewhite;
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    display: flex;
    align-items: center;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 65px);
    width: fit-content;
    gap: 2px;
    background-color: #000;
    border: 2px solid #000;
    padding: 2px;
}

.sudoku-wrapper {
    display: inline-block;
}

.column-headers {
    display: grid;
    grid-template-columns: 40px repeat(9, 65px);
    gap: 2px;
    margin-bottom: 2px;
}

.column-header {
    width: 65px;
    height: 40px;
    background-color: antiquewhite;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
}

.corner-cell {
    width: 40px;
    height: 40px;
    background-color: antiquewhite;
    border-radius: 5px;
}

.grid-container {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px;
}

.row-headers {
    display: grid;
    grid-template-rows: repeat(9, 65px);
    gap: 2px;
}

.row-header {
    width: 40px;
    height: 65px;
    background-color: antiquewhite;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
}

.cell {
    width: 65px;
    height: 65px;
    box-sizing: border-box; /* Inclut la bordure dans les dimensions de la cellule */
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
}

.cell.bord-droit {
    border-right: 2px solid #000; /* On applique juste la bordure (2px pour bien marquer la zone) */
}

.cell.bord-bas {
    border-bottom: 2px solid #000;
}

.cell:hover {
    background-color: #f0f0f0;
}

.selected {
    background-color: rgba(178, 196, 227, 0.91);
}

.cell.fixed {
    color: #000;
    font-weight: bold;
}

.cell.editable {
    color: #0066cc;
}

.commandes-container {
    background-color: #ddc59e;
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 10px 0 10px 0;
}
.aide-container {
    background-color: antiquewhite;
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 10px 0 10px 0;
}

.etapes-container {
    background-color: antiquewhite;
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 10px 0 10px 0;
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.numpad-button-chiffre {
    width: auto;
    height: 50px;
    font-size: 20px;
    background-color: white;
    border: 1px solid var(--primary-border);
    border-radius: var(--default-border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.numpad-button {
    width: auto;
    height: 50px;
    font-size: 20px;
    background-color: white;
    border: 1px solid var(--primary-border);
    border-radius: var(--default-border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.chiffre-bleu {
    color: blue;
}

.chiffre-rouge {
    color: red;
}

.numpad-button:hover {
    background-color: var(--primary-bg-alt);
}

.confirm-dialog {
    display: none;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-bg);;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 300px;
    text-align: center;
}