@import url('https://fonts.googleapis.com/css2?family=Pixel+Emulator&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');


* {
    margin: 0;
    padding: 0;
}

/* Style pour le Body */
body {
    font-family: 'Pixel Emulator', monospace;
    background: 
        linear-gradient(0deg, #ffb6c1 1px, transparent 1px),
        linear-gradient(90deg, #ffb6c1 1px, transparent 1px);
    background-size: 10px 10px; /* Taille des carreaux */
    background-color: #ffe6f0; /* Fond de base rose clair */
    color: #5a5a5a;
}

#blog {
    display: flex; /* Active Flexbox pour aligner les enfants */
    gap: 10px; /* Espace entre les divs */
    padding: 20px; /* Espacement interne pour le conteneur */
    background: 
        linear-gradient(0deg, #ffb6c1 1px, transparent 1px),
        linear-gradient(90deg, #ffb6c1 1px, transparent 1px);
    background-size: 10px 10px; /* Taille des carreaux */
    background-color: #ffe6f0; /* Fond de base rose clair */
    justify-content: space-between;
}

#posts {
    flex: 1; /* Prend la largeur restante */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.banner {
    max-width: 100%; /* Evite tout débordement si l'image est trop large */
    max-height: 500px;
    border-radius: 10px; /* Coins arrondis de l'image */
    margin-top: 10px;
}

#features {
    position: sticky;
    top: 20px; /* L'élément devient sticky à partir de 20px du haut de la fenêtre */
    border: 2px solid #ffb6c1; /* Bordure rose clair */
    border-radius: 15px;
    background: white; /* Dégradé blanc-rose */
    padding: 20px;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.5); /* Ombre douce rose */
    display: flex;
    flex-direction: column;
    flex-grow: 0; /* L'élément ne s'étire pas verticalement */
    flex-shrink: 0; /* L'élément ne se rétrécit pas */
    flex-basis: auto; /* La hauteur de l'élément dépend du contenu */
    max-height: 600px; /* Hauteur maximale pour éviter que l'élément ne devienne trop grand */
    overflow-y: auto; /* Si le contenu dépasse la hauteur maximale, ajouter une barre de défilement */
}
 

#quote_a {
    text-decoration: none;
}

#quote {
    text-align: center;
    font-family: 'Pacifico', cursive;
    font-size: 1.5em;
    color: #ff69b4; /* Rose vif */
    text-shadow: 2px 2px #ffb6c1; /* Ombre rose clair */
}

#songs {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* WORD CLOUD */
.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.word-cloud span {
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
}

.word-cloud span:hover {
    transform: scale(1.2);
}

/* Tailles des mots selon leur fréquence */
.size-1 { font-size: 12px; }
.size-2 { font-size: 16px; }
.size-3 { font-size: 20px; }
.size-4 { font-size: 24px; }
.size-5 { font-size: 30px; }

figure {
    display: flex;
    align-items: center;
    gap: 10px;
}

h1 {
    text-align: center;
    font-size: 2.3em;
    color: #ff69b4; /* Rose vif */
    text-shadow: 2px 2px #ffb6c1; /* Ombre rose clair */
    margin-bottom: 10px;
}


/* Style pour la barre de navigation */
nav {
    background-color: #ff99cc; /* Rose pâle pour un look années 2000 */
    border-bottom: 4px solid #ff66a3; /* Bande rose plus foncée en bas */
    font-family: 'Pixel Emulator', monospace;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Style pour les éléments de liste */
nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none; /* Supprime les puces */
    margin: 0;
    padding: 0;
}

/* Style pour les liens */
nav ul li {
    display: inline; /* Les éléments de liste sont alignés horizontalement */
    margin: 0 15px; /* Espacement entre les liens */
}

nav ul li a {
    color: white; /* Texte blanc */
    text-decoration: none; /* Supprime le soulignement */
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;

    border-style: solid;
	border-radius: 15px;
	border-width: 2px;
	border-bottom: 5px solid #e7e6e6;
}

/* Style au survol des liens */
nav ul li a:hover {
    background-color: #ff66a3; /* Rose plus foncé au survol */
    color: #fff; /* Assure un texte bien visible */
}

nav h3 {
    font-family: "Pacifico";
    color: white;
    font-size: 2em;
    letter-spacing: 1px;

}

.post {
    border: 2px solid #ffb6c1; /* Bordure rose clair */
    border-radius: 15px;
    background: white; /*linear-gradient(135deg, #fff, #ffe6f0); /* Dégradé blanc-rose */
    padding: 20px;
    /*max-width: 600px;*/
    width: 90%;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.5); /* Ombre douce rose */
}

.post h5 {
    font-size: 14px;
    color: #ff69b4;
    font-style: italic;
    margin-bottom: 10px;
    text-align: center;
}

.post p, .text-detail {
    font-size: 16px;
    color: #ff1493;
    background: #fff0f5; /* Fond rose très clair */
    padding: 10px;
    border-radius: 10px;
    text-align: justify;

}

.title-post {
    font-family: 'Pacifico', cursive;
    text-transform: capitalize;
}

.post a {
    text-decoration: none;
    color: #ff69b4;
    margin-right: 10px;
    font-weight: bold;
}

.post a:hover {
    color: #ff1493;
    text-shadow: 1px 1px #ffe6f0; /* Ombre rose pâle */
}

.edit-container, .login, .create-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Style des champs de formulaire */
.form-field {
    margin-bottom: 15px;
}

.edit-form input, 
.edit-form textarea,
.edit-form select,
.create-form input,
.create-form textarea,
.create-form select,
.login-form input,
.login-form textarea,
.login-form select {
    font-family: 'Pixel Emulator', monospace;
    font-size: 16px;
    background-color: #fff; /* Fond blanc */
    color: #5a5a5a; /* Texte gris */
    border: 2px solid #ffb6c1;
    border-radius: 8px;
    padding: 10px;
    width: 100%; /* Champs remplissent le formulaire */
    box-sizing: border-box;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: none;
}

.edit-form input[type="text"], .edit-form textarea {
    font-family: 'Pixel Emulator', monospace;
}


/* Ajout d'une bordure douce autour du formulaire */
.edit-form, .login-form, .create-form {
    background-color: white; /* Fond rose pâle */
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #ffb6c1; /* Bordure rose clair */
    box-shadow: 0 4px 8px rgba(255, 182, 193, 0.5); /* Ombre douce rose */
    font-family: 'Pixel Emulator', monospace; /* Police rétro */
}

.login-form {
    max-width: 400px;
}

/* Effet au focus pour les champs */
.edit-form input:focus,
.edit-form textarea:focus,
.edit-form select:focus,
.create-form input:focus,
.create-form textarea:focus,
.create-form select:focus,
.login-form input:focus,
.login-form textarea:focus,
.login-form select:focus {
    border-color: #ff1493; /* Bordure rose vif */
    box-shadow: 0 0 8px rgba(255, 20, 147, 0.5); /* Glow rose */
    outline: none;
}

#id_published {
    display: block; /* Forcer la checkbox à apparaître sur une nouvelle ligne */
    margin: 0 auto; /* Centrer la checkbox sous le label (optionnel) */
}


/* Style pour la checkbox */
#id_published {
    width: 50%;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* Effet au survol */
#id_published:hover {
    border-color: #888;
}

/* Style lorsque la checkbox est cochée */
#id_published:checked {
    background-color: #ff69b4;
    border-color: #ff69b4;
}

#id_published:checked::after {
    content: '✔';
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Titre du formulaire */
.form-title {
    text-align: center;
    color: #ff1493; /* Rose vif */
    font-family: 'Pixel Emulator', monospace;
    font-size: 2em;
    margin-bottom: 20px;
}

#id_username, #id_password, #id_title, #id_content, #id_banner {
    margin-top: 5px;
}

/* STYLE DES BOUTONS */
.buttons-list {
    margin-top: 5px;
    display: flex;
    gap: 10px;
}

.buttons, .submit-button, input[type="submit"] {
    background-color: #ff69b4; /* Couleur rose vif */
    color: #fff; /* Texte blanc */
    border: none; /* Pas de bordure */
    padding: 10px 15px; /* Espacement interne */
    cursor: pointer; /* Curseur pointeur */
    border-radius: 10px; /* Coins arrondis */
    font-size: 16px; /* Taille du texte */
    font-weight: bold; /* Texte en gras */
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.5); /* Ombre douce */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Centrage du texte */
    text-decoration: none; /* Supprime le soulignement */
    display: inline-block; /* Alignement en ligne */
}

/* Bouton d'édition */
.submit-button, input[type="submit"] {
    width: 100%;
}

.buttons:hover, .submit-button:hover, input[type="submit"]:hover {
    background-color: #d3138c; /* Couleur plus sombre au clic */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre réduite au clic */
}

.buttons:active {
    background-color: #d3138c; /* Couleur plus sombre au clic */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre réduite au clic */
}

#fixed-button {
    position: fixed; /* Fixé dans la fenêtre */
    bottom: 30px; /* Distance depuis le bas de la fenêtre */
    right: 30px; /* Distance depuis le côté droit */
    padding: 12px 20px; /* Espacement interne */
}

.song {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.song img {
    width: 100px; 
    height: 100px; 
    object-fit: cover; 
    margin-right: 20px; 
    cursor: pointer; 
    border-radius: 50px;
}

.song h3 {
    margin: 0; 
    font-weight: bold;
}

.song audio {
    display: none;
}

/* Styles de base pour les chansons */
.song {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ERROR ON FORMS */
.errorlist {
    padding: 20px;
    background-color: #f44336; /* Red */
    color: white;
    margin-bottom: 15px;
    list-style-type: none;
    border-radius: 15px;
}

#container-delete {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#form-delete {
    width: 200px;
}

/* Responsive Design pour les petits écrans */
@media (max-width: 900px) {
    #blog {
        flex-direction: column; /* Aligne les éléments en colonne */
        gap: 10px; /* Réduit l'espace entre les éléments */
    }

    #posts, #features {
        flex: 0 0 100%; /* Chaque élément prend toute la largeur */
    }

    body nav {
        padding-bottom: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #quote {
        font-size: 1.2em;
    }

    .song img {
        width: 70px; 
        height: 70px; 
        object-fit: cover; 
        margin-right: 10px; 
        cursor: pointer; 
        border-radius: 50px;
    }

    .song h3 {
        font-size: 1em;
        margin: 0; 
        font-weight: bold;
    }

    .song-info {
        width: 100%; /* Prend toute la largeur */
        height: 60px; /* Prend toute la hauteur de la fenêtre visible */
        box-sizing: border-box; /* Inclut les bordures et le padding dans la taille */

        display: flex;
        align-items: center;

        background-color: #ffe6f0;
        border-radius: 15px;
        padding: 10px;
    }

    #fixed-button {
        font-size: 12px;
    }

    .title-post {
        font-size: 1.7em;
    }

    #post-text {
        font-size: 12px;    
    }
}