/* Importation de la nouvelle police */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;700&display=swap');

/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: #fff0f5;
    color: #333;
}

h1 {
    font-family: 'Comic Neue', cursive;
    font-size: 4rem;
    text-align: center;
    color: #ff69b4;
    margin: 20px 0;
}

header {
    background-color: #ffb6c1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style de la liste des dictées */
.dictation-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.dictation-card {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border-radius: 20px;
    overflow: hidden; /* Assure que l'image reste à l'intérieur de la carte */
}

.dictation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(50%); /* Assombrir l'image */
    z-index: 1;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.dictation-card h2 {
    position: relative;
    z-index: 2;
    font-family: 'Amatic SC', cursive;
    font-size: 2.5rem;
    margin-top: 70px;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.dictation-card:hover .dictation-bg {
    filter: brightness(40%); /* Assombrir un peu plus au survol */
    transform: scale(1.05); /* Zoom léger au survol */
}

/* Page d'une dictée spécifique */
.dictation-parts {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.dictation-part {
    background-color: #fff;
    padding: 20px;
    margin: 10px 0;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.show-correction-btn {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: 'Comic Neue', cursive;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.show-correction-btn:hover {
    background-color: #ff1493;
    transform: scale(1.05);
}

.correction-text {
    background-color: #fff;
    border: 1px solid #ff69b4;
    padding: 10px;
    margin-top: 10px;
    border-radius: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom : 2rem;
}

h3,audio,#show-correction-btn{
    margin-bottom: 15px;
}

p {
    font-family: 'Roboto';
}

h4{
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}