.info-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 16, 33, 0.9); /* Fond sombre semi-transparent */
    color: white;
    display: none;
    justify-content: center;
    align-items: flex-start; /* contenu démarre en haut */
    z-index: 2000;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow-y: auto; /* si beaucoup de contenu */
}

.info-page.active {
    display: flex;
}

.info-content {
    background-image:
        radial-gradient(circle at center, #212839 0.25rem, transparent 0),
        radial-gradient(circle at center, #212839 0.25rem, #081021 0);
    background-size: 1.3rem 1.3rem;
    border: 5px solid white;
    outline: 4px solid #2781b2;
    border-radius: 12px;
    padding: 25px;
    max-width: 700px;
    width: 100%;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.info-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffc31d;
    font-size: 1.8rem;
    text-align: center;
    text-shadow: 1px 1px 3px black;
}

.info-content p,
.info-content ul,
.info-content ol {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
}

.info-content ul, 
.info-content ol {
    margin-left: 20px;
}

/* Style des "patch cards" */
.patch-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #2781b2;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.patch-card:hover {
    transform: translateY(-3px);
    border-color: #ffc31d;
}

/* Bouton de fermeture */
.info-content button.close-info {
    display: block;
    margin: 25px auto 0;
    padding: 10px 20px;
    background: #2781b2;
    border: 3px solid white;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease, transform 0.2s ease;
}

.info-content button.close-info:hover {
    background: #ffc31d;
    color: black;
    transform: scale(1.05);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/***************** PARAMETRES ************************/

/* Items inside settings page */
.setting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 1.1rem;
}

/* Switch style */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 28px;
    border: 2px solid white;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2781b2;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Link style in settings */
.setting-item a {
    color: #ffc31d;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.setting-item a:hover {
    color: #fff176;
}

.patch-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #ffc31d;
    text-shadow: 1px 1px 2px black;
}

