body {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1c2e20 0%, #131f16 45%, #0a120c 100%);
    background-attachment: fixed;
    color: #e6f2e8;
}

#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 1070px;
    width: 1500px;
}

#canvas_palette {
    border: 2px solid #2a4d2c;
}

#sortable li {
    margin: 3px 3px 0px 0;
    padding: 1px;
    float: left;
    width: 740px;
    height: 580px;
    font-size: 4em;
    text-align: center;
}

.btn-primary {
    background-image: linear-gradient(to bottom, #36B733 0px, #26882B 100%);
    background-repeat: repeat-x;
    border-color: silver;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-info {
    background-image: linear-gradient(to bottom, #36BC41 0px, #0A7D3F 100%);
    background-repeat: repeat-x;
    border-color: silver;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-info:hover,
.btn-info:focus {
    background-color: #36B733;
    background-position: 0;
    border-color: silver;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #36B733;
    background-position: 0;
    border-color: silver;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.open>a {
    background-image: linear-gradient(to bottom, #158412 0px, #2ECE42 50%) !important;
}

.dropdown-menu {
    background-color: #12980F !important;
    border: 1px solid silver !important;
}

.dropdown-menu>li>a,
.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
    background-image: none !important;
    background-color: #12980F !important;
}

.dropdown-menu>li>a {
    color: white !important;
}

.navbar-brand {
    padding: 3px;
}

.navbar-default .navbar-brand {
    color: #FFF;
}

.navbar-nav {
    width: 95%;
}

.navbar-default {
    border-color: silver;
}

.navbar-default .navbar-nav>.active>a {
    background-image: linear-gradient(to bottom, #1FF821 0px, #2DAB37 100%);
    color: #000000 !important;
    font-weight: bold;
}

#barnav {
    background-image: linear-gradient(to bottom, #223926 0px, #111d13 50%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 10000;
}

.nav>li {
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 1px;
    margin: 1px;
    transition: background-image 0.2s ease, border-color 0.2s ease;
}

.nav>li:hover {
    cursor: pointer;
    background-image: linear-gradient(to bottom, #1FF821 0px, #2DAB37 100%);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav>li:not(.disabled):hover>a {
    cursor: pointer;
    background-image: linear-gradient(to bottom, #1FF821 0px, #2DAB37 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: #000000 !important;
}

.nav>li.disabled {
    border-color: #2a4d2c;
    background-image: linear-gradient(to bottom, #4d7d50 0%, #2a4d2c 100%);
}

li.li_lang {
    float: right;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

li.li_lang:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

img.flag {
    width: 50px;
    height: 70%;
    border-radius: 2px;
}

.li_lang .flag {
    margin-top: 6px;
}

a.lien_lang {
    height: 50px;
    padding: 5px !important;
}

#lang {
    height: 50px;
    float: right;
    margin-right: 6px;
}

#divPalette {
    color: white;
}

#divPalette select {
    background-color: #24382a;
    color: #e6f2e8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#footer {
    text-align: center;
    font-weight: bold;
    margin: auto;
    padding: 10px;
    color: #a9c9ac;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 5px 0px;
    background-color: #152118;
    border-top: 2px solid #254f25;
}

#menu>li>a {
    color: white;
}

.accueil #main,
.jouer #main {
    background-color: #17251b;
}

#main {
    margin: auto;
    max-width: 1100px;
    height: 100%;
}

.form_MD {
    margin-left: auto;
    margin-right: auto;
    background-color: #17251b;
    padding: 7px;
}

.modal_form {
    background-color: #182619;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.modal_form .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal_form .close {
    color: #fff;
    opacity: 0.6;
    text-shadow: none;
}

.modal_form .close:hover,
.modal_form .close:focus {
    color: #fff;
    opacity: 1;
}

body .modal-body .form-control {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

body .modal-body .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #5fe15f;
    box-shadow: none;
}

body .modal-body .form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body .modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-default {
    background-color: transparent;
    background-image: none;
    color: #e6f2e8;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-default:hover,
.btn-default:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.form_MD>h1 {
    text-align: center;
}

/* login */

#form_login {
    max-width: 500px;
}

#infoConnecterJoueur .btn,
.modal-body .btn {
    font-size: 18px;
    border-radius: 8px;
}

#infoConnecterJoueur {
    padding: 6px 4px;
}

/* fiche perso */
.tableInfos {
    margin: 0px;
    padding: 10px;
    width: 100%;

}

#classement_selecteur {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    color: #ffffff;
}

#classement_selecteur select {
    margin-left: 8px;
    border-radius: 4px;
    padding: 4px 8px;
    background-color: #0b7a0b;
    border: 1px solid #316134;
}

.statues_dragons_joueur {
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
}

.statue-icon-rank {
    display: inline-block;
    width: 48px;
    height: 60px;
    background-size: 192px 60px;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 2px;
}

.tableInfos table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
    -webkit-border-bottom-left-radius: 14px;
    border-bottom-left-radius: 14px;

    -webkit-border-bottom-right-radius: 14px;
    border-bottom-right-radius: 14px;

    -webkit-border-top-right-radius: 14px;
    border-top-right-radius: 14px;

    -webkit-border-top-left-radius: 14px;
    border-top-left-radius: 14px;
}

.tableInfos tr:last-child td:last-child {
    -webkit-border-bottom-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.tableInfos table tr:first-child td:first-child {
    -webkit-border-top-left-radius: 14px;
    border-top-left-radius: 14px;
}

.tableInfos table tr:first-child td:last-child {
    -webkit-border-top-right-radius: 14px;
    border-top-right-radius: 14px;
}

.tableInfos tr:last-child td:first-child {
    -webkit-border-bottom-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.tableInfos tr:hover td {
    background-color: #0f8f0f;
}

.tableInfos td.rank_position {
    font-size: 20px;
    font-weight: bold;
}

.tableInfos td {
    vertical-align: middle;
    white-space: nowrap;
    background-color: #0b7a0b;

    border: 1px solid white;
    border-width: 0px 1px 1px 0px;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-family: Arial;
    font-weight: normal;
    color: #ffffff;
    transition: background-color 0.15s ease;
}

.tableInfos td.cell_header {
    padding: 15px;
}

.tableInfos tr:last-child td {
    border-width: 0px 1px 0px 0px;
}

.tableInfos tr td:last-child {
    border-width: 0px 0px 1px 0px;
}

.tableInfos tr:last-child td:last-child {
    border-width: 0px 0px 0px 0px;
}

.tableInfos tr:first-child td {
    background: -o-linear-gradient(bottom, #59aa08 5%, #3f7f00 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #59aa08), color-stop(1, #3f7f00));
    background: -moz-linear-gradient(center top, #59aa08 5%, #3f7f00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#59aa08", endColorstr="#3f7f00");
    background: -o-linear-gradient(top, #59aa08, 3f7f00);

    background-color: #59aa08;
    border: 0px solid #cccccc;
    text-align: center;
    border-width: 0px 0px 1px 1px;
    font-size: 14px;
    font-family: Arial;
    font-weight: bold;
    color: #ffffff;
}

.tableInfos tr:first-child:hover td {
    background: -o-linear-gradient(bottom, #59aa08 5%, #3f7f00 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #59aa08), color-stop(1, #3f7f00));
    background: -moz-linear-gradient(center top, #59aa08 5%, #3f7f00 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#59aa08", endColorstr="#3f7f00");
    background: -o-linear-gradient(top, #59aa08, 3f7f00);

    background-color: #59aa08;
}

.tableInfos tr:first-child td:first-child {
    border-width: 0px 0px 1px 0px;
}

.tableInfos tr:first-child td:last-child {
    border-width: 0px 0px 1px 1px;
}

.tableInfos .nom_joueur_stats {
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* inscription */

#form_inscription {
    max-width: 600px;
}

/* accueil */

#textPresentation {
    font-weight: bold;
    text-align: center;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    color: #cfe6d1;
    line-height: 1.6;
    font-size: 16px;
}

.accueil #main {
    max-width: 700px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding-bottom: 30px;

    margin-bottom: 30px;
}

#main {
    margin-top: 60px;
}

#div_img_presentation {
    text-align: center;
}

.lien_img_presentation {
    position: relative;
}

#div_img_presentation .badge-sur-image {
    position: absolute;
    right: 10%;
    bottom: 28%;
    width: 150px;
    height: 33px;
    font-size: 20px;
}

.badge-nouveau-lg {
    font-size: 62px;
    padding: 20px 56px;
}

#img_presentation {
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

#titre_principal {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    text-align: center;
    padding-top: 30px;
    margin-top: 0;
    letter-spacing: 1px;
    color: #eaf7ec;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#div_sons,
#div_musique {
    float: right;
    margin-top: 20px;
    margin-right: 50px;
}

#div_sons>span,
#div_musique>span {
    font-size: 18px;
    line-height: 1.33;
    font-weight: bold;
    margin-right: 10px;
    float: left;
}

/* jeu */

body .btn {
    outline-color: green !important;
}

body .btn.btn-default {
    outline-color: #ccc !important;
}

.btn-modal .col-sm-8,
.btn-modal .col-sm-7 {
    display: flex;
    gap: 8px;
}

body .btn-modal .btn {
    float: none;
    flex: 1;
}

.starwin {
    margin-left: 10px;
    width: 15px;
    height: 15px;
}

#jouerBtnContainer {
    text-align: center;
    padding: 10px 20px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#jouerBtnContainer .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#jouerBtnContainer .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

#pause.btn-danger {
    outline-color: #b92c28 !important;
}

#save {
    background-image: linear-gradient(to bottom, #11DDF5 0px, #0D37EC 100%);
    background-repeat: repeat-x;
    border-color: #2C9BCE;
    width: 106px;
}

#comment_jouer {
    width: auto;
}

#div_comment_jouer .popover-content,
#div_comment_jouer .popover-title {
    color: #000 !important;
    font-size: 14px;
    line-height: 1.4;
}

.overlay {
    position: absolute;
    /* Position the overlay div inside the container */
    top: 0;
    left: 0;
    width: 736px;
    font-size: 22px;
    height: 576px;
    background-color: rgba(0, 0, 0, 0.7);
    /* Example background (semi-transparent) */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.triggers_quetes_joueur>img {
    width: 65px;
}

/* ===== INVENTORY GRID ===== */

#inventaire[disabled] {
    background-color: #4f924f;
    cursor: not-allowed;
}

#table_inventories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.inv-item {
    border: 2px solid #7ea87e;
    text-align: center;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    margin: 2px;
}

.inv-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.item-slot {
    position: relative;
    width: 90px;
    height: 110px;
}

.item-name {
    text-align: center;
    font-weight: bold;
}

.item-slot img {
    width: 90px;
    height: 90px;
    display: block;
}

@media (max-width: 576px) {
    #table_inventories {
        grid-template-columns: repeat(3, 1fr);
    }

    .item-slot {
        width: 70px;
        height: 90px;
    }

    .item-slot img {
        width: 70px;
        height: 70px;
    }

    .inventaire-wrapper {
        flex-direction: column;
    }

    .inventaire-wrapper .inventaire-table {
        overflow-y: auto;
        max-height: 230px;
        min-width: auto;
        min-height: auto;
    }

    .crafting-row:nth-child(2) {
        flex-direction: column;
    }

    .crafting-row:nth-child(2) .crafting-associate,
    .crafting-row:nth-child(2) .crafting-slot.crafting-result {
        width: 100%;
    }
}

.item-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 23px;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border-top-left-radius: 4px;
    font-weight: bold;
    pointer-events: none;
}


/*
.overlay>p {
    display: none;
}*/

#div_video_youtube {
    text-align: center;
    padding-top: 50px;
    max-width: 700px;
}

#div_gauche_canvas {
    width: 250px;
    box-sizing: border-box;
    float: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%), #1f321f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    padding: 16px;
}

#div_gauche_canvas .btn-lg {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 10px;
    margin-bottom: 0;
    border-radius: 10px;
    font-size: 15px;
    letter-spacing: 0.2px;
}

#save {
    width: 100%;
}

#btn_creer_compte,
#can_save {
    display: none;
}

#statistiques {
    margin-bottom: 0;
}

#statistiques table {
    border: 1px solid white;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
}

#statistiques tr:first-child td {
    background: none;
}

#statistiques td {
    background: transparent;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.85);
}

#statistiques td:last-child {
    text-align: right;
    color: #fff;
    font-weight: bold;
    text-transform: none;
    letter-spacing: normal;
}

#statistiques tr:hover td {
    background-color: rgba(255, 255, 255, 0.06);
}

#div_gauche_canvas,
#div_comment_jouer,
#div_button_pause {
    text-align: center;
}

#div_musique,
#div_sons {
    float: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

#div_musique>span,
#div_sons>span {
    float: none;
    margin-right: 0;
    font-size: 14px;
}

#div_canvas {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    height: 576px;
}

#canvas {
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.overlay {
    border-radius: 12px;
}

canvas.paused {
    border: 2px solid red;
}

.liste_joueurs .tableInfos table {
    border: 1px solid #296b14;
    border-collapse: initial;
}

.modal-title,
.modal label {
    color: #eef5ee;
}

body .btn.btn-warning {
    outline-color: #eb9316 !important;
}

#div_button_save,
#div_button_carte,
#div_button_inventaire {
    display: inline-block;
}

.objectSelected {
    border: 4px solid white;
}

.inventaire-wrapper {
    display: flex;
    gap: 16px;
    margin-top: 15px;
}

.inventaire-hint {
    font-weight: bold;
}

.inventaire-table {
    flex-shrink: 0;
    border-radius: 4px;
    border: 2px solid #7ea87e;
    min-width: 380px;
    min-height: 120px;
}

.crafting-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    font-weight: bold;
}

.crafting-row {
    display: flex;
    gap: 8px;
    flex: 1;
}

.crafting-slot {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 4px solid #7ea87e;
    border-radius: 4px;
    padding: 8px;
    min-height: 126px;
}

.crafting-slot label {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.crafting-slot-content {
    color: #7ddc7d;
    flex: 1;
}

.crafting-associate {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
}

.crafting-slot.slot-focused {
    border-color: white;
    outline: 2px solid white;
}

.crafting-associate button.associate-focused {
    border: 4px solid white !important;
    outline: none;
    padding: 3px 9px;
}

#btn_carnet_essais.associate-focused {
    border: 4px solid white !important;
    outline: none;
    padding: 2px 9px;
}

.carnet-btn-row {
    text-align: center;
    margin-top: 10px;
}

.result-combo-imgs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.result-combo-imgs img {
    width: 36px;
    height: 36px;
}

.result-combo-imgs span {
    font-size: 18px;
    font-weight: bold;
}

.carnet-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 1px solid #7ea87e;
}

.carnet-row:last-child {
    border-bottom: none;
}

.carnet-plant-img {
    width: 48px;
    height: 48px;
}

.carnet-sep {
    font-size: 20px;
    font-weight: bold;
    color: #7ddc7d;
}

.carnet-result {
    font-weight: bold;
    color: #8be08b;
}

.carnet-btn-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

#boutique_rubys {
    font-weight: bold;
    margin-bottom: 10px;
}

#boutique_rubys_count {
    color: #8be08b;
}

#boutique_liste {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

@media (max-width: 576px) {
    #boutique_liste {
        grid-template-columns: repeat(3, 1fr);
    }
}

.boutique-item {
    border: 2px solid #7ea87e;
    text-align: center;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 2px;
}

.boutique-item .item-slot {
    margin: 0 auto;
}

.boutique-price {
    font-weight: bold;
    margin: 4px 0;
}

#boutique_rubys img {
    margin-top: -7px;
}

#boutique_rubys img,
.boutique-price img {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-left: 2px;
}

.boutique-item.boutique-item-disabled .boutique-buy-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes inventaire-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 80, 0.9);
    }

    20% {
        box-shadow: 0 0 18px 12px rgba(255, 255, 80, 0.85);
    }

    40% {
        box-shadow: 0 0 4px 2px rgba(255, 255, 80, 0.3);
    }

    60% {
        box-shadow: 0 0 18px 12px rgba(255, 255, 80, 0.75);
    }

    80% {
        box-shadow: 0 0 4px 2px rgba(255, 255, 80, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 80, 0);
    }
}

.inventaire-highlight {
    animation: inventaire-pulse 3s ease-in-out;
    position: relative;
    z-index: 10;
}

@media only screen and (max-width: 800px) {

    body {
        background-color: #101c14;
    }

    .rank_position img {
        width: 25px;
        height: 25px;
    }

    .triggers_quetes_joueur>img {
        width: 40px;
    }

    #nameMobile {
        color: white;
        background-color: transparent;
        font-weight: bold;
        display: inline-block;
    }

    #nameMobile li {
        background-image: linear-gradient(to bottom, #2a4d2c 0px, #4d7d50 135%);
    }

    #nameMobile .open a {
        border-radius: 5px;
    }

    #nameMobile li a {
        color: white;
    }

    #jouerBtnContainer>a {
        width: 100%;
    }

    #div_img_presentation .badge-sur-image {
        right: 10%;
        bottom: 28%;
        width: 90px;
        height: 20px;
        font-size: 12px;
    }

    .tableInfos td.cell_header {
        padding: 10px;
    }

    .statues_dragons_joueur {
        display: block;
        margin-left: 0;
        margin-top: 6px;
    }

    .inventaire-hint {
        display: none;
    }

    #div_sons,
    #div_musique {
        margin-right: 24px;
    }

    #div_musique>span {
        min-width: 73px;
    }

    .tableInfos td {
        padding: 5px;
    }

    #titre_principal {
        font-size: 24px;
    }

    #infoConnecterJoueur {
        padding: 0px 20px;
        max-width: 100%;
        white-space: normal;
    }

    #modal_carnet_essais .modal-body {
        padding: 5px;
    }

    #div_canvas {
        position: relative;
        overflow: auto;
        width: 100%;
        height: 100%;
        margin-left: 0px;
    }

    #div_sons,
    #div_musique {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    #div_gauche_canvas {
        width: 100%;
    }

    .hideOnMobile {
        display: none;
    }

    #menu .dropdown-toggle {
        border-radius: 20px 20px 0px 0px;
    }

    #menu .dropdown-menu,
    #menu .dropdown-menu li,
    #menu .dropdown-menu li a {
        border-radius: 0px 0px 20px 20px
    }

    .navbar-default .navbar-toggle .icon-bar {
        background-color: #cfcfcf;
    }

    .navbar-default .navbar-toggle:hover,
    .navbar-default .navbar-toggle:focus {
        background-color: #6e996e;
    }

    .navbar-collapse {
        background-color: #152118;
    }

    .navbar-default .navbar-nav>.active>a {
        border-radius: 9px;
    }

    #barnav #menu {
        max-width: 150px;
        float: right;
        margin: 0px;
    }

    .nav>li {
        border-radius: 10px;
        border: 1px solid #063703;
        background-image: linear-gradient(to bottom, #4d7d50 0px, #2a4d2c 50%);
    }

    .nav>li.li_lang {
        width: 72px;
        text-align: center;
    }

    .nav>li.li_lang,
    .nav>li.li_lang.active .lien_lang {
        border-radius: 10px;
    }

    .nav>li.li_lang .lien_lang {
        height: 40px;
    }

    img.flag {
        width: 50px;
        height: 100%;
        margin-top: 0px !important;
    }

    #div_img_presentation img {
        width: 90%;
        border-radius: 10px;
    }

    #textPresentation {
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 20px;
        margin: 20px;
        background-image: linear-gradient(to bottom, #1a301c 0px, #101c12 50%);
        color: #eaf7ec;
    }
}

.font-math {
    font-family: math;
    font-size: 18px;
}

/* Met en avant le lien/bouton vers Magic Dragon II comme une nouveauté,
   avec un effet discret (un léger reflet qui balaie le bouton) plutôt
   qu'un effet criard */
.btn-nouveau {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to bottom, #5fe15f 0%, #36b733 100%);
}

.disabled.btn-nouveau {
    border-color: #2a4d2c;
    background-image: linear-gradient(to bottom, #4d7d50 0%, #2a4d2c 100%);
}

.btn-nouveau::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 35%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shine-sweep-nouveau 2.6s ease-in-out 3;
    pointer-events: none;
}

@keyframes shine-sweep-nouveau {
    0% {
        left: -60%;
    }

    35% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

@keyframes text-glow-nouveau {

    0%,
    100% {
        text-shadow: 0 0 2px rgba(255, 220, 60, 0.5);
    }

    50% {
        text-shadow: 0 0 8px rgba(255, 220, 60, 0.9);
    }
}

:not(.disabled)>.lien_nouveau {
    animation: text-glow-nouveau 2.6s ease-in-out 3;
    font-weight: bold;
    background-image: linear-gradient(to bottom, #308230 0%, #198c19 100%);
    border-radius: 3px;
}

@keyframes badge-pulse-nouveau {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.06);
    }
}

.badge-nouveau {
    display: inline-block;
    background: linear-gradient(#f4fff0, #d4f7c5);
    color: #1b5e20;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.badge-nouveau-sm {
    font-size: 11px;
    padding: 2px 7px;
    margin-left: 5px;
}

.lien_menu.lien_nouveau {
    padding-bottom: 9px;
}

.tooltip-inner {
    text-align: left;
}