/* =========== Epreuve et Defi ============= */

h1{
    font-family: 'Gebuk', sans-serif;
    color: #315D8E;
    margin: 10px;
}

h3{
    font-family: Poppins;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 17px;
}

/* CARD */

#card-defi, #card-epreuve {
    background: linear-gradient(270.02deg, #00F0C8 -69.49%, #AAA3F5 99.98%);
    border-radius: 16px;
    padding: 10px;
    margin: 10px;
    color: white;
}

#sous-card {
    background-color: #F4F3F1;
    border-radius: 6px;
    padding: 20px;
    color:black;
}

#header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* SPAN */
span {
    font-family: 'Poppins';
    font-weight: 400;
    font-style: Regular;
    text-align: center;
    background-color: #315D8E ;
    color: white;
    height: 32px;
    padding: 4px 0px;
    margin: 0px 8px 0px 0px;
    border-radius: 25px;
    width: 125px;
}

p.info {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-style: Regular;
    color: #d9534f;
    padding: 4px 10px;
    margin-top: 10px;
    border-radius: 8px;
    background-color: #d9534f1a;
}

/* BOUTON */

#btn-statut-lancer, #btn-retour-liste {
    font-family: Poppins;
    font-weight: 400;
    font-style: Regular;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
}

#btn-statut-lancer {
    background-color: #315D8E;
    color: white;
}

#btn-retour-liste {
    border: 1px solid #315D8E;
    color: #315D8E;
    margin-top: 10px;
}

#btn-soumettre {
    font-family: Poppins;
    font-weight: 400;
    background-color: #315D8E;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

/* INPUT FILE */

.form-group {
    margin-top: 12px;
}

.form-group input[type="file"] {
    display: none;
}

.form-group label[for="medias"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 24px 16px;
    border: 2px dashed #315D8E;
    border-radius: 12px;
    background-color: #eef3f9;
    color: #315D8E;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.form-group label[for="medias"]::before {
    content: "📎";
    font-size: 28px;
}

.form-group label[for="medias"]:hover,
.form-group label[for="medias"]:focus-within {
    background-color: #d8e6f5;
    border-color: #1e3f66;
}

#texte {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border: 1px solid #c0cfe0;
    border-radius: 8px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

#texte:focus {
    border-color: #315D8E;
}

.form-group label[for="texte"] {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.media-count {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    color: #315D8E;
    margin-top: 6px;
}

.form-group .error {
    display: block;
    color: #d9534f;
    font-size: 12px;
    font-family: Poppins, sans-serif;
    margin-top: 4px;
}

/* LOADING */

#loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    color: #315D8E;
    font-family: Poppins;
    font-size: 14px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #d0dce8;
    border-top-color: #315D8E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




