
#suguru {
    display: grid;
    grid-template-columns: repeat(9, 36px);
    grid-template-rows: repeat(9, 36px);
    gap: 0px;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid black;
}
.cell {
    position: relative;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
}
input {
    width: 36px;
    height: 36px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #999;
    font-weight: 550;
    box-sizing: border-box;
    padding: 0;
}
#suguru input:not(:disabled) {
    color: #6600CC;
}
input.fixed {
    background: #eee;
    font-weight: bold;
    color: #666666;
}
input.error {
    background-color: #F1B9B9;
    color: #A00000;
}
.cell input.error {
    color: #c00000;
    font-weight: bold;
}
/* ==========================================================
   LIMITES DES REGIONS
========================================================== */
.cell.region-top input {
    border-top: 2px solid #000;
}
.cell.region-bottom input {
    border-bottom: 2px solid #000;
}
.cell.region-left input {
    border-left: 2px solid #000;
}
.cell.region-right input {
    border-right: 2px solid #000;
}
/*
 * Le bord extérieur du plateau est déjà fourni
 * par #suguru.
 *
 * On évite donc de doubler la bordure du haut
 * et de la gauche sur la première ligne et la
 * première colonne.
 */
#suguru .cell:nth-child(-n+9) input {
    border-top: 1px solid #999;
}
#suguru .cell:nth-child(9n+1) input {
    border-left: 1px solid #999;
}
/* ==========================================================
   BOUTONS
========================================================== */
#unefois,
#tout,
#nouveau {
    width: auto;
    height: auto;
    margin-bottom: 10px;
    padding: 14px 12px !important;
    border-radius: 8px;
    border: 2px solid #2B7CFF;
    background:
        linear-gradient(#FFFFFF,#EEF6FF);
    cursor: pointer;
    font-weight: 550;
}
#message {
    margin-top: 10px;
}
/* ==========================================================
   CHECKBOX
========================================================== */
#showCandidatesLabel input[type="checkbox"] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}
/* ==========================================================
   CANDIDATS
========================================================== */
.candidates {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 9px;
    color: #0066FF;
}
/* ==========================================================
   DIFFICULTE
========================================================== */
#difficulty {
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    outline: none;
    border-color: #0066CC;
    box-shadow: 0px 0px 0px 0.5px #0066CC;
    border-radius: 3px;
}
#difficulty:hover {
    background-color: #F0F0F0;
    color: #FF0000;
}
/* ==========================================================
   MODE D'AFFICHAGE
========================================================== */
.devinernum {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: -10px;
    margin-bottom: -10px;
}
.txtmobile {
    display: none;
}
.txtnormal {
    display: block;
}
#mobileHint {
    display: none;
    font-weight: bold;
}
/* ==========================================================
   MOBILE
========================================================== */
@media only screen and (max-width: 700px) {
    #unefois,
    #tout {
        padding: 16px 12px !important;
    }
    #suguru {
        grid-template-columns:
            repeat(9, 32px);
        grid-template-rows:
            repeat(9, 32px);
    }
    .cell {
        width: 32px;
        height: 32px;
    }
    input {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    input.error {
        background-color: #F1B9B9;
        color: #A00000;
    }
    input.fixed {
        color: #444;
    }
    .candidates {
        font-size: 8px;
    }
    .txtmobile {
        display: block;
    }
    .txtnormal {
        display: none;
    }
    #mobileHint {
        display: block;
        font-weight: bold;
    }
}
/* ==========================================================
   TABLETTE
========================================================== */
@media only screen and (min-width: 701px) and (max-width: 900px) {
    .txtmobile {
        display: block;
    }
    .txtnormal {
        display: none;
    }
    #mobileHint {
        display: block;
        font-weight: bold;
    }
    input.fixed {
        color: #444;
    }
    input.error {
        background-color: #F1B9B9;
        color: #A00000;
    }
}
