body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background: url("img/math_arena_07.png");
    background-position: 0 center;
    background-repeat: no-repeat;
    background-size: 100px;
    background-color: rgb(0,109,174);
    color: white;
    font-size: 19px;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 90px;
    line-height: 90px;
    z-index: 500;
}

header h1{
    margin: 0;
}

@media (max-width: 370px) {
    header {
        background-size: 80px;
        font-size: 17px;
    }
}

@media (max-width: 315px) {
    header {
        background-size: 70px;
        font-size: 12px;
    }
}

#corps{
    margin-top: 120px;
}

main {
    padding: 20px;
    margin-top: 90px;
}

/* Style général des liens */
a {
    color: #0077CC; /* Bleu Sarmate */
    text-decoration: none; /* Enlève le soulignement par défaut */
    transition: color 0.3s, text-decoration 0.3s;
    font-weight: bold;
}

/* Effet au survol */
a:hover {
    color: #005fa3; /* Un bleu légèrement plus foncé au hover */
    text-decoration: underline;
}

/* Liens visités (optionnel, mais ça peut être sympa) */
a:visited {
    color: #005fa3;
}

/* Liens actifs (au clic) */
a:active {
    color: #003f6d;
}

textarea {
    width: calc(100% - 20px);
    height: 200px;
    resize: none; /* ✅ pour désactiver le redimensionnement manuel */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

textarea:focus {
    border-color: #0077CC;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 119, 204, 0.5);
}

#arena-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

.arena-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

#arena-create{
    margin: auto;
    display: flex;
    justify-content: center;
}

.create-arena button {
    background-color: #007acc;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 0px;
    font-size: 14px;
}

.create-arena button:hover {
    background-color: #005f99;
}

button {
    background-color: #00aaff;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0088cc;
}
/*

#create-arena-div {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 400px;
    max-height: 95vh;
    overflow-y: auto;
}

*/







.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
/*
#create-arena-div h2 {
    text-align: center;
    margin-bottom: 15px;
}

#create-arena-div label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
}

#create-arena-div select, 
#create-arena-div input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#chapitres-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 5px;
}

.chapitre-item {
    display: flex;
    align-items: center;
    gap: 10px; 
    white-space: nowrap;
    color: black;
}

.chapitre-item label {
    font-size: 16px;
    line-height: 16px; 
    display: flex;
    align-items: center;
    color: #333;
}

.chapitre-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.listeChapitres{
    display: block;
    text-align: left;
}

#create-arena-div .listeChapitres input{
    width: 20px;
}

#button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    opacity: 0.9;
}

#submit-button {
    background-color: #007bff;
    color: white;
}

#cancel-button {
    background-color: #dc3545;
    color: white;
}


#create-arena-div {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 10px;
    width: calc(100% - 30px);
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
*/
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#infos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    padding: 5px 0;
    border-bottom: 2px solid #ddd;
    background-color: white;
}

#infos div {
    text-align: center;
    width: 33%;
    font-size: 16px;
}

#afficheScore {
    font-weight: bold;
    color: #333;
}

#numQuestion {
    font-weight: bold;
    color: #333;
}

#time-left {
    font-weight: bold;
    color: #55adff;
    font-size: 18px;
}

#timer {
    font-weight: bold;
    color: #333;
}

/* Amélioration sur très petits écrans */
@media screen and (max-width: 400px) {
    #infos div {
        font-size: 14px;
    }

    #time-left {
        font-size: 16px;
    }
}

@keyframes buzz {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.buzz-effect {
    animation: buzz 0.3s;
}


#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-color: transparent;
}


.save-question-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ccc;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.save-question-btn.active {
    background-color: #68da77;
    cursor: default;
}



.toastGame {
    visibility: hidden;
    position: fixed;
    right: 20px;
    bottom: 35px;
    width: 200px;
    background-color: rgba(0, 119, 204, 0.55);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    transform: translateY(10px);
}

.toastGame.show {
    visibility: visible;
    opacity: 1;
}

.toastGame.info {
    background-color: rgba(0, 119, 204, 0.55);
}

.toastGame.show {
    visibility: visible;
    opacity: 1;
}

.toastGame.info {
    background-color: rgba(0, 119, 204, 0.55);
}


.toastCenter {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 119, 204, 0.9);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 15px 25px;
    font-size: 16px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
}

.toastCenter.show {
    visibility: visible;
    opacity: 1;
}


.question-saved {
    transition: opacity 0.3s, transform 0.3s;
}

.question-saved.removed {
    opacity: 0;
    transform: scale(0.95);
}



.custom-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* fond semi-transparent */
    display: none; /* caché par défaut */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-confirm-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
}

.custom-confirm-buttons {
    margin-top: 15px;
}

.custom-confirm-buttons button {
    margin: 0 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #0077cc;
    color: white;
    font-size: 14px;
}

.custom-confirm-buttons button:first-child {
    background: #aaa;
}

.custom-confirm-buttons button:hover {
    opacity: 0.9;
}

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














#propositions-container iframe{
    width: 100%; 
    height: 30px;
    border: 1px solid #ccc;
    background-color: transparent;
}


#prop1-frame, #prop2-frame, #prop3-frame, #prop4-frame {
    pointer-events: none;
    cursor:pointer;
}

#gameOver {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8); /* légèrement transparent */
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

.gameOverContent {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#scoreBoard {
    margin: 20px 0;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
}

#shareButton{
    margin-bottom: 10px !important;
}


.google-int{
	text-align: center;
	margin-bottom: 100px;
}


.google-int h1{
	background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
	text-align: center;
	color: var(--text-light);
	padding: 10px;
}

.google-int h2{
	width: 100%;;
	text-align: center;
	padding: 8px;
	font-size: 110%;
}

.google-int a {
	background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
	padding: 10px 20px;
	color: var(--text-light);
	font-weight: bold;
	text-decoration: none;
	border-radius: 10px;
}

.google-int a:hover{
	background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}


@media (max-width: 400px) {
	.google-int a{
		font-size: 80%;
	}

	.google-int h1{
		font-size: 140%;
	}
}

.g_id_signin{
	display: flex;
	justify-content: center;
	margin-bottom: 60px;
	margin-top: 40px;
}

.signup-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.signup-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.signup-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.signup-form input {
    width: calc(100% - 20px);
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 0px;
    top: 39px;
    cursor: pointer;
    color: #888;
}

.toggle-password:hover {
    color: #333;
}

.submit-btn {
    width: 100%;
    background-color: rgb(0,109,174);
    color: white;
    font-weight: bold;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: rgb(0, 139, 219);
}


@media (max-width: 480px) {
    .signup-form {
        width: 90%;
        padding: 0 10px;
    }

    .signup-form input,
    .signup-form button {
        font-size: 16px;
    }

    .toggle-password {
        top: 30px;
        right: 0px;
    }
}

.custom-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background-color: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    width: 90%;
    max-width: 320px;
    margin: 20px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-google-btn:hover {
    background-color: #f7f7f7;
}


#menu-icon {
    position: fixed;
    top: 0px;
    right: 15px;
    font-size: 26px;
    color: white;
    cursor: pointer;
    z-index: 999;
    height: 90px;
    line-height:90px;
}

#menu-icon:hover {
    opacity: 0.85;
}


#side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 260px;
    height: 100%;
    background: #f9f9f9;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1100;
    padding: 30px 20px;
    font-family: 'Poppins', sans-serif;
    overflow-y: auto;
}

#side-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

#side-menu .close-btn:hover {
    color: #333;
}

#side-menu ul {
    list-style: none;
    padding: 0;
    margin: 80px 0 0 0;
}

#side-menu ul li {
    margin-bottom: 18px;
}

#side-menu ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
    border-bottom: 1px solid #eaeaea;
}

#side-menu ul li a i {
    width: 20px;
    text-align: center;
    font-size: 17px;
    color: #007acc;
}

#side-menu ul li a:hover {
    color: #007acc;
}

#side-menu .download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 10px;
    background-color: #007acc;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

#side-menu .download-btn:hover {
    background-color: #005f99;
}

#side-menu .download-btn img {
    width: 18px;
    margin-right: 8px;
}



#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}





/* ✅ Réactive les flèches des champs number uniquement dans le menu de création d'arène */
#create-arena-div input.arena-number[type="number"] {
    width: calc(100% - 20px);
  }





  .classement-form-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    margin: 0 auto 30px auto;
    max-width: 700px;
}

.classement-form-v2 .form-line {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    flex: 1;
}

.classement-form-v2 label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: #003366;
}

.classement-form-v2 select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fdfdfd;
    transition: border-color 0.3s;
}

.classement-form-v2 select:focus {
    border-color: #007acc;
    outline: none;
}

.btn-filtrer {
    background-color: #007acc;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-filtrer:hover {
    background-color: #005f99;
}




#classement-resultat table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

#classement-resultat th {
    background-color: #007acc;
    color: white;
    padding: 12px 10px;
    text-align: center;
}

#classement-resultat td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

#classement-resultat tr:nth-child(odd) {
    background-color: #f9f9f9;
}


#classement-resultat tr#row-mon-id {
    background-color: #d6f5d6 !important;
    font-weight: bold;
}







.compte-section {
    margin: 20px 0;
}

.toggle-btn {
    background-color: #3366cc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: #224499;
}

.hidden-form {
    display: none;
    margin-top: 10px;
}

.hidden-form input {
    padding: 6px;
    margin: 5px 0;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.hidden-form button {
    background-color: #28a745;
    color: white;
    padding: 7px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}


.compte-container {
    max-width: 800px;
    margin: 30px auto;
    margin-top: 90px;
    padding: 20px;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

.compte-info {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.compte-info h2 {
    margin-top: 0;
    color: #333;
}

.compte-actions {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.compte-info p strong {
    display: inline-block;
    /*min-width: 130px;*/
}

.compte-info i {
    margin-left: 6px;
}

/* Icône et badge pour Standard */
.compte-info .standard-icon {
    color: #007bff; /* Bleu élégant */
}

/* Icône et badge pour Pro */
.compte-info .pro-icon {
    color: #ffc107; /* Doré pour le prestige */
}

/* Badge visuel pour le statut */
.compte-info .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    margin-left: 8px;
}

.compte-info .badge.standard {
    background-color: #007bff;
}

.compte-info .badge.pro {
    background-color: #ffc107;
    color: #333;
}





.toggle-btn {
    background-color: #444;
    color: white;
    padding: 8px 14px;
    margin-bottom: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-btn:hover {
    background-color: #666;
}

.compte-form {
    margin-top: 10px;
    display: none;
}

.compte-form input {
    padding: 8px;
    margin-bottom: 10px;
    display: block;
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.compte-form button {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.compte-form button:hover {
    background-color: #0056b3;
}

.compte-pro {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.compte-pro h3 {
    margin-top: 0;
}

.stripe-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.stripe-link:hover {
    background-color: #218838;
}


.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}


.password-field {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.password-field input[type="password"],
.password-field input[type="text"] {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
    height: 40px;
    font-size: 16px;
}

.password-field .toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
}


