.object-row:hover {
    background-color: #cce5ff80;
    cursor: pointer;
}

a {
    text-decoration: none;
}



/* Positionner le bandeau de chargement par-dessus l'image */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#chart-container {
        display: flex;
        flex-wrap: wrap;
            background-color: #565656;
            padding: 20px;
            margin: 20px;
            border: black solid 3px;
    
}

#graph-container {
        flex: 1;
        margin-right: 20px;
        min-width: 400px;  /* Largeur minimale du conteneur */
        min-height: 300px; /* Hauteur minimale du conteneur */
    }

    .popup.success {
        background-color: green;
        color: white;
        width: 100%;
    }

    /* Style pour le popup d'erreur (rouge) */
    .popup.error {
        background-color: red;
        color: white;
        width: 100%;
    }

    /* Autres styles pour le popup*/
    .popup {
        position: fixed;
        top: 2%;
        left: 2%;
        right: 2%;
        border-radius: 5px;
        
        padding: 10px;
        text-align: center;
        z-index: 9999;
        display: none; 
         pointer-events: none;
    }

    @keyframes shrink {
    from {
        transform: var(--initial-transform);
    }
    to {
        transform: var(--final-transform);
    }
}

    /* Base styles for light mode (default) */

/* Dark mode styles */
body.dark-mode {
background-color: #1e1e1e;
color: #ccc;
}

body.dark-mode a {
color: #ffffff;
}

body.dark-mode a:hover {
color: #357ab8;
}

/* Buttons - Dark Mode */
body.dark-mode .btn {
border: 1px solid #2a2a2a; /* Bordure adaptée au mode sombre */
}

body.dark-mode .btn:hover {
background-color: #444; /* Fond des boutons au survol en mode sombre */
border-color: #666; /* Bordure des boutons au survol en mode sombre */
color: #fff; /* Couleur du texte des boutons au survol en mode sombre */
}


body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
background-color: #333;
color: #ccc;
border: 1px solid #555;
}


body.dark-mode table th, body.dark-mode table td {
border: 1px solid #444;
}

body.dark-mode table {
background-color: #2a2a2a;
color: #ccc;
}

body.dark-mode table th {
background-color: #444;
color: #eee;
}



body.dark-mode .ul {
background-color: #333;
}


body.dark-mode .card {
background-color: #2a2a2a;
border: 1px solid #444;
}


body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
color: #ddd;
}

/* Accordion - Dark Mode */
body.dark-mode .accordion-item {
background-color: #2a2a2a;
border: 1px solid #444;
}

body.dark-mode .accordion-header {
background-color: #333;
border-bottom: 1px solid #444;
}

body.dark-mode .accordion-button {
background-color: #333;
color: #ddd;
border: none;
}

body.dark-mode .accordion-button:not(.collapsed) {
background-color: #444;
color: #fff;
}

body.dark-mode .accordion-button:focus {
box-shadow: none;
}

body.dark-mode .accordion-body {
background-color: #2a2a2a;
color: #ccc;
border-top: 1px solid #444;
}



    .label{
        color:white;
        display: inline-block;
        width: 250px; /* Largeur fixe pour tous les labels */
        padding: 10px;
        margin-bottom: 10px;
        text-align: left;
        cursor: pointer;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    
    body.light-mode .label-white {
        background-color: #2a2a2a;
        color: white;
    } 
    body.light-mode .label-red {
        background-color: #ff5733;
    }
    body.light-mode .label-orange {
        background-color: #ff9a33;
    }
    body.light-mode .label-navy {
        background-color: #007bff;
    }
    
    body.light-mode .label-blue {
        background-color: #66b3ff;
    }
    
    body.light-mode .label-grey {
        background-color: grey;
    }

    body.dark-mode .label-white {
        background-color: #414141;
        color: white;
    } 
    body.dark-mode .label-red {
        background-color: #ff7f0e;
    }
    body.dark-mode .label-orange {
        background-color: #ffbb78;
    }
    body.dark-mode .label-navy {
        background-color: #1f77b4;
    }
    
    body.dark-mode .label-blue {
        background-color: #aec7e8;
    }
    
    body.dark-mode .label-grey {
        background-color: grey;
    }

    .lecture-trophies{
        margin-left: 5%;
    }

    .trophy-row {
        display: flex;
        flex-wrap: wrap;              /* Passe à la ligne si trop d'items */
        gap: 1rem;                    /* Espace horizontal ET vertical entre les éléments */
        margin: 1.5rem 0;             /* Espace au-dessus et en dessous du bloc entier */
        justify-content: center; /* ou center / space-between selon l’effet voulu */
        position: relative;
    }

    .svg{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .svg-base{
    border-radius: 50%;
    }
    .svg-animal{
        width:50%;
        height:50%;
        transform: translate(50%, 30%);
    }

    .svg-level{
        width:13%;
        height:13%;
        transform: translate(340%, -5%);
    }

    .svg-habitat{
        width:10%;
        height:10%;
        transform: translate(330%, 22%);
    }

    .svg-completion{
        width:8%;
        height:8%;
        transform: translate(750%, 40%);
    }
    
    .svg-light{
        border-radius: 50%;
        fill: #dc5e1f;
    }

    .trophy-image{
        opacity: 1;
        width: 50%;
        height: 35%;
        object-fit: cover;
        border-radius: 5px;
        border: 2px solid #756a6a;
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(50%,170%);
    }

    .trophy-image-standard{
        filter: saturate(0%) sepia(65%);
    }

    .trophy-image-meticulous{
        filter: grayscale(100%) sepia(100%) hue-rotate(190deg) saturate(400%);
    }

    .trophy-image-resourceful{
        filter: grayscale(100%) sepia(100%) hue-rotate(70deg) saturate(450%);
    }

    .trophy-image-brilliant{
        filter: grayscale(100%) sepia(100%) hue-rotate(10deg) saturate(500%) brightness(1.1) contrast(1.1);
    }
    
    .meticulous{
        filter: invert(24%) sepia(85%) saturate(2325%) hue-rotate(226deg) brightness(82%) contrast(110%);
    }

    .meticulous-border {
        filter: brightness(0) saturate(100%) invert(77%) sepia(99%) saturate(2071%) hue-rotate(172deg) brightness(98%) contrast(106%);
    }
    
    .standard {
        filter: invert(16%) sepia(4%) saturate(5987%) hue-rotate(356deg) brightness(97%) contrast(69%);
    }

    .standard-border {
        filter: brightness(0) saturate(100%) invert(84%) sepia(2%) saturate(2302%) hue-rotate(4deg) brightness(93%) contrast(64%);
    }
    
    .resourceful{
        filter: invert(29%) sepia(13%) saturate(3404%) hue-rotate(92deg) brightness(98%) contrast(86%);
    }

    .resourceful-border {
        filter: brightness(0) saturate(100%) invert(82%) sepia(8%) saturate(2958%) hue-rotate(51deg) brightness(96%) contrast(84%);
    }
    
    .brilliant{
        filter: invert(42%) sepia(39%) saturate(4813%) hue-rotate(358deg) brightness(96%) contrast(79%);
    }

    .brilliant-border {
    filter: brightness(0) saturate(100%) invert(81%) sepia(75%) saturate(344%) hue-rotate(357deg) brightness(105%) contrast(96%);
    }

    .svg-hover {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        
        border-radius: 50%;
        z-index: 1;
    }
    .svg-hover:hover {
        background-color: rgba(255,255,255,0.8);}
    .big-container {
            width: 100px;
            height: 100px;
        }

    .bigger-container {
            width: 250px;
            height: 250px;
        }
    
        .overlay-trophy {
        position: relative; 
        border-radius: 50%;
        background-color: rgba(255, 255, 255); /* Blanc opaque */
        z-index: 1; /* Bien au-dessus du reste */
        }
    
    
        .small-container {
            
            width: 60px;
            height: 60px;
        }
    
        .svg-container {
            border-radius: 50%;
            position: relative;
    }

    .improvement{
        margin: 3%;
        background-color: rgb(19, 62, 13);
        text-align: center;
        border-radius: 20px;
    }

    .improvement:hover{
        background-color: gray;
    }

    .full-link{
        text-decoration: none;
    }

    .improvement-inside{
        margin:20px;
        padding: 20px;
    }

    .improvement-list{
        background-color:rgb(68, 68, 68);
        padding:10px;
        margin:10px;
    }
.trophy-chest{
    background-color: rgb(65, 62, 26);
    padding: 20px;
    margin: 20px;
    text-align: center;
    border-radius: 10px;
}

.quizz-display-flex {
    display: flex;
    gap: 1rem;          /* espace entre les liens */
    flex-wrap: wrap;    /* optionnel */
}

.quizz-display {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    text-decoration: none;
    color:white;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    width:300px;
    height:350px;
    position:relative;
    background-color:rgb(5, 63, 14);
}

.quizz-display:hover {
    cursor: pointer;
    background-color:rgb(1, 29, 39);
}

.language-flag {
    width: 27px;
    height: 21px;
    border-radius: 10%;
}

.info-warning {
    background-color: rgb(175, 184, 14);color:black;
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    font-size: large;
}

.navbar-header {
    display:none;
}

#top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;        /* prend toute la largeur */     /* hauteur fixe */

    z-index: 1000;
}

body {
    padding-top: 80px;  /* même hauteur que le bandeau */
}

.presentation-image{
    width:90%;
    max-width: 400px;
    border-radius: 5px;
    border: 3px solid #121212;
    margin:5px;
}

.presentation-block {
    margin: 10px;
}

@media (min-width: 800px) {
    .presentation-block {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .presentation-block p {
        margin: 0;
        flex: 1;
    }

    .presentation-image {
        margin: 0;
    }
}

@media(min-width:1001px){
    .navbar-toggling{
        display: block !important;
    }
}


@media (max-width: 1000px) {

    body {
    padding-top: 60px;  /* même hauteur que le bandeau */
}
    .bwtitle{
        display:none;
    }

    .navbar{
            position:fixed;
            cursor: pointer;
            height: 70px; 
}
    .navbar-toggling{
        display: none;
        gap: 0;
        margin-top: 60px;
    }

     body.light-mode .navbar-toggling {
        background-color: rgb(243, 237, 237);
    }

    body.dark-mode .navbar-toggling {
        background-color: rgb(45, 45, 46);
    }



    .navbar-header {
        display:block;
        position:fixed;
        text-align: center;

    }

    #chart-container {
        display:none;
    }
}

#game-container {
    text-align: center;
}

.answer-suggestion {
    display: flex;
}

.suggestion-button {
    margin: 5px;
}

.defeat {
    animation: shake 0.5s ease-in-out 3;
    
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

.glowy {
    animation: glow 1s ease-in-out infinite alternate;
    border-radius: 50%;
}

.chimere{
    animation: chimere 1.5s ease-in-out infinite alternate;
    border-radius: 50%;
    filter: grayscale(40%);
}

@keyframes glow {
    from { box-shadow: 0 0 30px gold; }
    to   { box-shadow: 0 0 60px orange; }
}

@keyframes chimere {
    from { opacity: 0.3;box-shadow: 0 0 10px gold; }
    to   { opacity: 0.7;box-shadow: 0 0 40px orange; }
}

#new-trophy {
    display: inline-block;
    text-align: center;
    margin: auto;
    border-radius: 50%;
}

.like-quizz{
    bottom: 15px;
    display:inline-block;
    left: 15px;
    position:absolute;
    font-size: 2.3rem;
}

.discard-quizz {
    bottom: 15px;
    right:15px;
    display:inline-block;
    position:absolute;
    font-size: 2.3rem;
}

.like-quizz-2{
    font-size: 2.3rem;
    text-align: center;
}

.discard-quizz-2 {
    font-size: 2.3rem;
    text-align: center;
}

.like-quizz:hover{ color:rgb(80, 139, 195) ;}
.discard-quizz:hover{ color:rgb(80, 139, 195);}
.like-quizz-2:hover{ color:rgb(80, 139, 195);}
.discard-quizz-2:hover{ color:rgb(80, 139, 195);}

#load-more {
    flex-basis: 100%;
}

.demo-image {
    width: 230px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #756a6a;
}

.topic-image{
    height: 100px;
    object-fit: cover;
    width: 150px;
    border-radius: 10px;
    border: 3px solid #756a6a;
}

.self-topic-image{
    height: 200px;
    object-fit: cover;
    width: 300px;
    border-radius: 10px;
    border: 3px solid #756a6a;      /* sera ajusté par JS */
}

.svg-tag{
    height:22px;
    fill: white;
}

.tag-btn{
    margin-top:5px;
}


#trophy-map-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;          /* 👈 empêche l'image de dépasser */
    background: #000;          /* optionnel, pour voir les bords */
    border: 3px solid #756a6a;
    border-radius: 20px;
}

#map-camera {
    position: absolute;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    transition: transform 0.2s ease;
    max-width: none;           /* important pour autoriser le zoom */
}


.map-btn{
    position:absolute;
    z-index:2;
}

#upBtn{
    left:50px;
    top:10px;
}

#downBtn{
    left:50px;
    top:90px;
}

#leftBtn{
    left:10px;
    top:50px;
}

#rightBtn{
    left:90px;
    top:50px;
}

#zoomBtn{
    top:150px;
    left:75px;
}

#dezoomBtn{
    top:150px;
    left:25px;
}

#white-background{
    background-color: white;
    opacity:0.5;
    width:150px;
    height:200px;
    position:absolute;
    z-index:1;
}

#map-title{
        position: absolute;
    top: 10px;              /* distance du haut */
    left: 50%;
    transform: translateX(-50%);  /* centre horizontal parfait */

    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 6px 14px;

    background: rgba(0, 0, 0, 0.5);  /* fond lisible */
    border-radius: 12px;

    z-index: 10;   /* au-dessus de la map */
    pointer-events: none; /* n'empêche pas de cliquer la carte */
}

.trophy-excluded{
    filter:brightness(0);
}