/* Eléments de base pour tout le code */
:root {
    --my_btn_color: rgba(108, 117, 125, 1);
}


/* ------------------------------------------------------------- Contenair ------------------------------------------------------------ */
/* Mon contenair principal ------------------------------------------------------ */
.my_container {
    width: 100%;
    max-width: 1500px;
    padding: 20px;
    margin: 0 auto;
    text-align: center;

    /* Pour les textes */
    font-size: 0.9em;
    font-family: 'Jost', sans-serif;
    color: #000000;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.my_container hr {
    width: 100%; /* Assurez-vous que la ligne horizontale prend toute la largeur disponible */
    height: 2px; /* Hauteur de la ligne */
    background-color: var(--my_btn_color); /* Couleur de la ligne */
    margin: 20px 0; /* Marges autour de la ligne */
    border: none; /* Supprimez les bordures par défaut */
    align-self: stretch; /* Étendre la ligne sur toute la largeur du conteneur flex */
}


.wrapper{
    padding-top: 60px;
}

.black_background{
    background-color: black;
    /* background-color: white; */
}

/* HOME PAGE ------------------------------------------------------ */
.home_page_container {
    margin: 20px;
    text-align: center;
    /* background-color: #666; */
}

/* Contenair pour les boutons ------------------------------------------------------ */
.two_btn_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.btn_container {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.multiple_btn_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Espace constant entre les boutons */
}

/* Contenair register ------------------------------------------------------ */
.under_18_container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.delete_project_appear_button{
    cursor: pointer;
}

/* LISTE DE NAISSANCE ------------------------------------------------------ */
/* Contenair pour les cartes des produits de la liste de naissance ------------------------------------------------------ */
.product_card_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
/* Contenair pour les images des produits de la liste de naissance ------------------------------------------------------ */
.product_image_container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    margin-bottom: 20px;
}

/* Contenair pour les informations des produits de la liste de naissance ------------------------------------------------------ */
.product_informations_container{
    width: 100%;
    padding: 10px;
    height: 150px;
    /* background-color: #155724; */
}

/* A DEFINIR */
.back-button-container {
    position: absolute;
}

.range_container{
    margin: 0 auto;
    max-width: 300px;
}



/* Contenair pour les messages principaux ------------------------------------------------------ */
.my_messages_container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.parent_message {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.parent_message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.parent_message .message_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.parent_message .message_header .user {
    font-weight: bold;
    color: #333;
}

.parent_message .message_header .date {
    font-size: 0.9em;
    color: #777;
}

/* Contenair pour les messages enfant ------------------------------------------------------ */
.child_messages {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.child_message {
    margin-bottom: 10px;
}

.child_message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.child_message .message_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.child_message .message_header .user {
    font-weight: bold;
    color: #555;
}

.child_message .message_header .date {
    font-size: 0.85em;
    color: #999;
}

.comment_form_container{
    margin: auto;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 80%;
}

.comment_form_container textarea {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    resize: vertical;
}

.answer_form_container{
    margin: auto;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.answer_form_container textarea {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    resize: vertical;
}

/* ------------------------------------------------------------- Styles polices ------------------------------------------------------------ */
/* Styles de base pour le textes / titres / ... ------------------------------------------------------ */
h1{
    font-size: 1.7em;
    font-weight: bold;
    margin: 15px 10px 10px 10px;
    text-align: center;
    font-family: jost;
}

h2{
    font-size: 1.4em;
    margin-top: 15px;
    margin-bottom: 10px;
}

h3{
    font-size: 1.7em;
    margin: 10px 0;
}

.page_title{
    color: #000000;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
}

h6{
    color: #000000;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.text_white{
    color: white;
}

.text_red {
    color: red;
    background-color: #FF69B4;
}

/* Styles pour les pages auth --------------------------------------------------------------------- */
.register_title{
    margin-top: 10px;
}

/* Styles pour la home_page --------------------------------------------------------------------- */
.caligraphy {
    font-family: jost; /* Choisissez une police de caractères de style calligraphique */
    font-size: 1.5em; /* Taille de la police */
    line-height: 1.5; /* Hauteur de ligne pour l'espacement */
    letter-spacing: 1px; /* Espacement entre les lettres */
    text-align: justify; /* Justification du texte pour un aspect plus fluide */
    padding: 10px; /* Espacement intérieur autour du texte */
    text-align: center;
}
  
.with_bubbles {
position: relative;
display: inline-block;



/* Positionnement des bulles */
/* Bulle à gauche */
&::before {
    content: '';
    position: absolute;
    left: -10px; /* Ajustez la position de la bulle à gauche */
    top: 50%; /* Centré verticalement */
    transform: translateY(-50%);
    width: 5px; /* Largeur de la bulle */
    height: 5px; /* Hauteur de la bulle */
    border-radius: 50%; /* Forme de la bulle (ronde) */
    background-color: rgb(0, 0, 0); /* Couleur de la bulle */
}

/* Bulle à droite */
&::after {
    content: '';
    position: absolute;
    right: -10px; /* Ajustez la position de la bulle à droite */
    top: 50%; /* Centré verticalement */
    transform: translateY(-50%);
    width: 5px; /* Largeur de la bulle */
    height: 5px; /* Hauteur de la bulle */
    border-radius: 50%; /* Forme de la bulle (ronde) */
    background-color: rgb(0, 0, 0); /* Couleur de la bulle */
}
}

.title_caligraphy {
    font-size: 2em;
}

.sub_caligraphy {
    font-size: 1em;
    margin-top: -25px;
}

/* Styles pour les pronostics --------------------------------------------------------------------- */
.pronostic_title{
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
}

.pronostic_answer{
    font-size: 0.8em;
    font-weight: bold;
}

.prono_numbers{
    min-width: 50px;
}

/* Styles pour l'élément input de type date --------------------------------------------------------------------- */
input[type="date"] {
    appearance: none; /* Supprimer les styles par défaut de l'élément */
    padding: 10px; /* Ajouter un peu d'espace autour du texte */
    border: 1px solid #ccc; /* Ajouter une bordure grise */
    border-radius: 5px; /* Ajouter des coins arrondis */
    background-color: #f7f7f7; /* Ajouter une couleur de fond légère */
}
  
/* Styles pour l'élément input de type date lorsqu'il est en focus */
input[type="date"]:focus {
outline: none; /* Supprimer la bordure de focus par défaut */
border-color: var(--my_btn_color); /* Modifier la couleur de la bordure lorsqu'il est en focus */
box-shadow: 0 0 5px var(--my_btn_color); /* Ajouter une légère ombre portée lorsqu'il est en focus */
}

/* Styles pour la page photo --------------------------------------------------------------------- */
.white_text {
    color: white;
    font-size: large;
}

/* LISTE DE NAISSANCE ------------------------------------------------------ */
.product_title{
    font-size: 1.5em;
    font-weight: bold;

    color: #000000; /* Les cartes sont entourées d'un lien, nécessaire de spésifier la couleur du texte */
}

.product_description{
    word-wrap: break-word;
    white-space: pre-wrap; /* Conserve les sauts de ligne et les espaces multiples */
    overflow-wrap: break-word;
    
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #000000; /* Les cartes sont entourées d'un lien, nécessaire de spésifier la couleur du texte */

}

.product_price {
    font-size: 1.5em;
    color: #d4854d;
    font-weight: bold;
}

.product_price_crossed {
    font-size: 1.5em;
    color: #555;
    text-decoration: line-through;
}

.left_to_pay {
    font-size: 1.5em;
    color: #d4854d;
    margin-bottom: 5px;
}

.product_price_current {
    font-size: 1.5em;
    color: #d4854d;
    font-weight: bold;
}

.participation_text{
    font-size: 1.1em;
    margin-top: 10px auto;
    margin-bottom: 0px;
}

/* Styles pour les détails des participations à la liste de naissance --------------------------------------------------------------------- */
.product_detail_title{
    font-size: 1.8em;
    font-weight: bold;
}

.product_detail_info{
    font-size: 1.2em;
}

/* MY PROJECTS ------------------------------------------------------ */
/* Styles pour les projets rejoints --------------------------------------------------------------------- */
.project_title{
    font-size: 1.5em;
    font-weight: bold;
}


/* --------------------------------------------------------------- Les cartes -------------------------------------------------------------- */
/* Eléments de base pour TOUTES les cartes */
.my_card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    width: 100%;
    max-width: 700px;

    background-color: #fff;

    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.363);
    padding: 20px;
    transition: transform 0.3s ease;

    margin: 0px auto 10px auto;

}

.my_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.363);
    cursor: pointer;
}

/* Cartes pour les éléments de connexion ---------------------------------------------------------------------*/
.auth_card{
    max-width: 400px;
}


/* Cartes pour la liste de naissance ---------------------------------------------------------------------*/
.product_card {
    max-width: 500px;
    min-width: 300px;
    min-height: 400px;

    transition: transform 0.3s ease;
    margin: 10px auto; /* Centrer la carte et ajouter une marge en bas */
    display: block;
}

.product_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.363);
    cursor: pointer;
}

.inert_product_card:hover {
    transform: None;
    cursor: default;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.363);
}

.product_card a {
    text-decoration: none;
    color: inherit; /* Assure que la couleur du texte reste la même que celle de son conteneur parent */
}

/* Cartes pour les pronostics ---------------------------------------------------------------------*/
.prono_answers{
    max-width: 300px;

}


.card_title{
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .prono_answers {
        flex: 1 1 calc(50% - 20px); /* Affiche 2 cartes par ligne sur les petits écrans */
    }
}

@media (max-width: 576px) {
    .prono_answers {
        flex: 1 1 100%; /* Affiche une carte par ligne sur les très petits écrans */
    }
}


/* Cartes pour my_projects ---------------------------------------------------------------------*/
.my_projects_cards{
    width: 300px;
    min-height: 50px;
    margin: 0 auto;
    
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.my_projects_cards:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.363);
    cursor: pointer;
}

.inert_card:hover {
    transform: None;
    cursor: default;
}

.project_card{
    width: 70%; /* Largeur de la carte en pourcentage de la largeur de l'écran */
    max-width: 250px; /* Largeur maximale pour limiter l'expansion sur les grands écrans */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.363);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
}

.project_card_inert{
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.363);
}

.project_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.363);
    cursor: pointer;
}

.project_card_inert:hover {
    transform: none;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.363);
}


/* --------------------------------------------------------------- Les images/photos -------------------------------------------------------------- */
/* Les éléments ici concernent uniquement la page photos */

.photo_mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "photo1 photo2 photo3"
        "photo4 photo4 photo5"
        "photo4 photo4 photo6"
        "photo7 photo8 photo9"; 

    width: 90%;
    max-width: 900px;
    margin: 30px auto;
    gap: 10px;
}

.photo_mosaic > photo1,
.photo_mosaic > photo2,
.photo_mosaic > photo3,
.photo_mosaic > photo4,
.photo_mosaic > photo5,
.photo_mosaic > photo6,
.photo_mosaic > photo7,
.photo_mosaic > photo8,
.photo_mosaic > photo9 {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%; /* Maintains a square ratio */
    transition: transform 0.3s ease;
}

.photo_mosaic > photo1 img,
.photo_mosaic > photo2 img,
.photo_mosaic > photo3 img,
.photo_mosaic > photo4 img,
.photo_mosaic > photo5 img,
.photo_mosaic > photo6 img,
.photo_mosaic > photo7 img,
.photo_mosaic > photo8 img,
.photo_mosaic > photo9 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo_mosaic > .photo_item {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
    transition: transform 0.3s ease;
}

.photo_mosaic > .photo_item:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}


.photo_mosaic > .photo_item:nth-child(1) { grid-area: photo1; }
.photo_mosaic > .photo_item:nth-child(2) { grid-area: photo2; }
.photo_mosaic > .photo_item:nth-child(3) { grid-area: photo3; }
.photo_mosaic > .photo_item:nth-child(4) { grid-area: photo4; }
.photo_mosaic > .photo_item:nth-child(5) { grid-area: photo5; }
.photo_mosaic > .photo_item:nth-child(6) { grid-area: photo6; }
.photo_mosaic > .photo_item:nth-child(7) { grid-area: photo7; }
.photo_mosaic > .photo_item:nth-child(8) { grid-area: photo8; }
.photo_mosaic > .photo_item:nth-child(9) { grid-area: photo9; }






.photo_item:hover {
    transform: scale(1.05);
}

/* Les éléments ici concernent uniquement la page photo_and_messages */
.my_image_container {
    width: 100%;
    text-align: center;
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #3498db; */
}

.specific_photo img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
}

/* -------------------------------------------------------------- Les boutons -------------------------------------------------------------- */

/* Eléments de base des boutons */
.my_btn{
    width: 200px;
    margin: 10px;
    padding: 10px 10px;
    font-size: 1.2em;
    align-items: center;
    justify-content: center;

    text-transform: uppercase;
    text-decoration: none;
    color: rgb(255, 255, 255);
    background-color: var(--my_btn_color);

    border: 0px solid #000000;
    border-radius: 10px;
    cursor: pointer;
    min-width: 200px;
    min-height: 50px;
}

.my_btn:hover {
    filter: brightness(1.3); /* Légèrement plus lumineux au survol */
}

.btn_selected {
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    filter: brightness(1.2);
    /* border: 3px solid #000000; */
}

.gender_girl {
    background-color: #FF69B4;
}

.gender_boy {
    background-color: #6495ED;
}

.no_gender {
    background-color: var(--my_btn_color);
}

.red_admin_button {
    background-color: rgb(255, 0, 0);
}

.white_btn {
    background-color: rgb(247, 247, 247);
    color: black;
    border: 1px solid black;
}

.red_btn {
    background-color: red;
}

.my_small_btn {
    width: 100px;
    min-width: 100px;
    height: 25px;
    min-height: 25px;
    padding: 5px 5px;
    font-size: 0.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Je souhaite garder la fonction de bouton sans la mise en page */
.not_btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.not_btn:hover,
.not_btn:focus {
    filter: brightness(0.8);
    outline: none;
}

/* Boutons pour base.html ------------------------------------------------------ */

#backToTopBtn {
    display: none; /* Caché par défaut */
    position: fixed; /* Positionné en bas à droite */
    bottom: 20px; /* Distance du bas */
    right: 20px; /* Distance de la droite */
    z-index: 99; /* Assurez-vous qu'il est au-dessus d'autres éléments */
    font-size: 18px; /* Taille de la police */
    background-color: #ffffff7c;
    
    border: 2px solid black;
    color: #000000; /* Couleur du texte */
    outline: none; /* Pas de contour */
    cursor: pointer; /* Curseur en forme de main */
    padding: 10px; /* Padding */
    border-radius: 100%; /* Coins arrondis */
    width: 50px; /* Largeur */
    height: 50px; /* Hauteur */
}

#backToTopBtn:hover {
    background-color: #000000; /* Couleur de fond en survol */
    color: white;
}

/* Boutons pour la liste de naissance ------------------------------------------------------ */
.no_btn {
    background-color: #de3131;
}

/* Boutons pour les notifications ------------------------------------------------------ */
.form_check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form_check-input {
    margin-right: 12px; /* Espace de 12px entre l'input et le label */
}


/* Bouton pour les parametres des photos ------------------------------------------------------ */
.photo_options {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.dots_container {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    margin: 2px 0;
}

.options_menu {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background-color: #333;
    border-radius: 5px;
    padding: 5px;
    z-index: 100;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    width: 150px;
}

.options_menu button {
    margin: 5px auto;
}

.options_menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.options_menu a:hover {
    background-color: #555;
}

.photo_options:hover .options_menu {
    display: block;
}





/* --------------------------------------------------------- Barres de progression --------------------------------------------------------- */
/* Barre de progression pour la moyenne gars/fille ------------------------------------------------------ */
.progress_container {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin: 0 auto;
    border: 1px solid #000000;
    border-radius: 8px;
}

.progress {
    background-color: #6495ED; /* Couleur de fond du reste à faire */
    height: 30px;
}

.bar_container {
    width: 100%;
    height: 30px;
    background-color: #6495ED;
    position: relative;
    border-radius: 5px;
}

.fill {
    height: 100%;
    background-color: #FF69B4;
    border-radius: 5px;
    animation: fillAnimation 2s ease forwards;
}

@keyframes fillAnimation {
    from {
        width: 0%;
    }
    to {
        width: {{percentage_girl}}%;
    }
}

.progress_label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: white;
}

.label_left {
    left: 10px;
}

.label_right {
    right: 10px;
}


/* --------------------------------------------------------- Plein écran --------------------------------------------------------- */

#fullscreen {
    position: fixed; /* Assure que le conteneur occupe toute la fenêtre */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#fullscreenImage {
    max-width: 100%;
    max-height: 100%;
}


/* --------------------------------------------------------- Fenêtres modales --------------------------------------------------------- */

/* Elements pour les fenêtres modales ------------------------------------------------------ */


.modal {
    display: hidden;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #00000053;
}

.modal_content{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgb(164, 41, 41);
    padding: 10px;
    width: 80%;
    max-width: 700px;
    height: 40%;
    font-size: 1.5em;

}

.exit_cross{
    position: inherit;
    left: 40%;
}



.close_icon {
    cursor: pointer;
    font-size: 1em;
}

/* A DEFINIR */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Chrome, Safari, Edge, Opera */
}
input[type="number"]::-moz-spin-buttons {
    display: none; /* Firefox */
}

.photo_description{
    height: 50px;
    width: 100%;
}

/* --------------------------------------------------------- Notifications --------------------------------------------------------- */
.copy_notification {
    position: absolute;
    top: calc(10%); /* Positionné 20px en dessous du bas de .my_container */
    right: calc(70%); /* Positionné 200px à gauche du bord droit de .my_container */
    min-width: 120px;
    background-color: var(--my_btn_color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------- Tableaux --------------------------------------------------------- */
/* Styles pour les tableaux dans my_projects */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f5f5f5;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #f1f1f1;
}

.my_link {
    padding: 10px 20px;
    color: white;
}


/* Styles pour les tableaux dans Suivi */
.hour_zone {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(154, 35, 35, 0.141);
    border: 1px solid #ddd;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}


.highlight {
    background-color: green;
    color: white;
    height: 30px;
    margin: 10px auto;
}
/* --------------------------------------------------------- Notifications --------------------------------------------------------- */

.has_unread_comments::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    z-index: 10;
}


/* Style pour le conteneur de l'élément de liste */
.notification {
    position: relative;
    display: flex;
    align-items: center;
}

/* Style pour le point rouge de notification */
.notification_dot {
    position: absolute;
    top: 5px;
    right: -5px; /* Positionné légèrement à droite du lien */
    width: 10px; /* Largeur du point */
    height: 10px; /* Hauteur du point */
    background-color: red; /* Couleur du point */
    border-radius: 50%; /* Forme ronde */
    z-index: 10; /* Assure que le point est au-dessus du lien */
}

/* --------------------------------------------------------- Loader --------------------------------------------------------- */
/* Styles pour le loader */
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    margin: auto;
    margin-top: 50px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles pour masquer le loader lorsque le décompte est terminé */
.hidden {
    display: none;
}

/* --------------------------------------------------------- Footer --------------------------------------------------------- */
/* Footer styles */
.footer {
    background-color: rgba(0, 0, 0, 0.881);
    color: white;
    padding: 20px 0;
    width: 100%;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .footer-section {
    margin: 0;
}

.footer .footer-links {
    display: flex;
    align-items: center;
}

.footer .footer-link {
    color: white;
    text-decoration: none;
    margin: 0 15px; /* Ajustement des marges entre les liens */
}

.footer .footer-link:hover {
    text-decoration: underline;
}

/* Wrapper to make the footer sticky */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 60px; /* Hauteur du footer pour éviter de le recouvrir */
}

/* Text Section */
.text_section {
    z-index: 2;
    color: #333;
    /* background-color: #6495ED; */
}


/* --------------------------------------------------------- Logo --------------------------------------------------------- */
/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* Ajout d'une marge en haut pour l'espacement */
    /* background-color: #FF69B4; */
}

.logo {
    max-width: 100%;
    height: auto;
    opacity: 0.5;
}

/* --------------------------------------------------------- Pour le mobile --------------------------------------------------------- */
/* de 0 à 768px */
@media (max-width: 768px) {
    /* Contenair */
    .home_page_container {
        margin-top: 30px;
        flex-direction: column;
        align-items: center;
    }

    .two_btn_container {
        gap:0px;
    }

    .multiple_btn_container {
        gap:0px;
    }

    .small_btn_container{
        gap:20px;
    }

    /* Styles polices */

    /* Les cartes */
    .product_card {
        width: 90%;
        padding: 15px;
    }

    /* Les images */

    /* Les boutons */
    .my_btn {
        font-size: 1.2em;
        padding: 5px 10px;
        width: 100%; /* Taille adaptative pour les petits écrans */
        max-width: 200px; /* Taille maximale pour s'assurer qu'il ne devient pas trop grand */
        min-height: 50px;
    }

    .my_small_btn {
        width: 100px;
        min-width: 100px;
        height: 25px;
        min-height: 25px;
        padding: 5px 5px;
        font-size: 0.6em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn_selected {
        font-size: 1.4em;
        padding: 5px 10px;
        width: 100%; /* Taille adaptative pour les petits écrans */
        min-width: 150px; /* Taille maximale pour s'assurer qu'il ne devient pas trop grand */
    }

    /* Barres de progression */

    /* Fenêtres modales */

    /* Notifications */

    /* Tableaux */

    /* Loader */

    /* Footer */
    .footer .container {
        flex-direction: column;
    }

    .footer .footer-links {
        margin-top: 10px;
    }

    /* Logo */

    .logo-section {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.4;
    }

    .logo {
        max-width: 100%;
        height: auto;
    }

    /* Messages flash */
}

/* de 769 à l'infini */
@media (min-width: 769px) {

    /* Contenair */
    .home_page_container {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        padding: 10px;
    }

    /* Styles polices */
    /* A DEFINIR */
    .text_section {
        text-align: left;
        margin-bottom: 0;
        max-width: 50%;
    }

    /* Les cartes */

    /* Les images */

    /* Les boutons */

    /* Barres de progression */

    /* Fenêtres modales */

    /* Notifications */

    /* Tableaux */

    /* Loader */

    /* Footer */

    /* Logo */
    .logo-section {
        position: relative;
        max-width: 50%;
        display: flex;
        justify-content: center;
        max-width: 300px;

    }

    .logo {
        max-width: 100%;
        height: auto;
        opacity: 0.5;
        transition: max-width 0.5s ease; /* Ajoute une transition douce */
    }

}


/* --------------------------------------------------------- Messages flash --------------------------------------------------------- */

.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    
}

.flash-success {
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    animation: fadeOut 4s forwards 1s;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
    position: fixed;
    top: 20px; /* Ajuste selon tes besoins */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999; /* Assure que le message soit au-dessus des autres éléments */
}

.flash-error {
    text-align: center;
    background-color: #f8d7da;
    color: #721c24;
    animation: fadeOut 2s forwards 2s;
    min-width: 300px;
    max-width: 500px;
    margin: 0 auto;
    position: fixed;
    top: 20px; /* Ajuste selon tes besoins */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999; /* Assure que le message soit au-dessus des autres éléments */
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.password-toggle {
    right: 10px;
    cursor: pointer;
}


/* --------------------------------------------------------- En vrac pendant le dev --------------------------------------------------------- */
.icon_container{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px;
}

.icon{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.icon:hover {
    transform: scale(1.05);
}

.icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.icon p {
    margin-top: 8px;
    font-size: 14px;
    color: black;
}

.prono_multiple_names{
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0px;
}



#inputForm {
    display: none; /* Le formulaire est masqué par défaut */
    margin-top: 10px;
}

.like_container{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    gap: 10px;
    margin-bottom: 10px;
}



/* Style général de l'input note_title */
.note_title {
    width: 20%; /* Ajuster la largeur à 100% du conteneur */
    min-width: 300px;
    padding: 10px; /* Espacement interne */
    font-size: 16px; /* Taille du texte */
    border-radius: 5px; /* Coins arrondis */
    border: 1px solid #ccc; /* Bordure */
    background-color: #f9f9f9; /* Couleur de fond */
    color: #333; /* Couleur du texte */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Légère ombre interne */
    text-align: center; /* Centrer le texte */

}

/* Style spécifique pour le placeholder */
.note_title::placeholder {
    color: #999; /* Couleur du placeholder */
    font-style: italic; /* Style du texte du placeholder */
}

/* Gérer le focus (quand l'utilisateur clique dessus) */
.note_title:focus {
    outline: none;
    border-color: #0066cc; /* Couleur de la bordure au focus */
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.5); /* Ombre au focus */
}



/* Style général du select */
.note_selector {
    width: 20%; /* Ajuster la largeur à 100% du conteneur */
    min-width: 300px;
    padding: 10px; /* Espacement interne du bouton */
    font-size: 14px; /* Taille du texte */
    border-radius: 5px; /* Coins arrondis */
    border: 1px solid #ccc; /* Bordure */
    background-color: #f9f9f9; /* Couleur de fond */
    color: #333; /* Couleur du texte */
    appearance: none; /* Supprimer l'apparence par défaut */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer; /* Curseur en forme de main */
    text-align: center;

    margin-top: 15px;
}



/* Gérer le focus (quand l'utilisateur clique dessus) */
.note_category:focus {
    outline: none;
    border-color: #0066cc; /* Couleur de la bordure au focus */
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.5); /* Ombre au focus */
}

/* Ajustement de la taille du texte dans les options */
.note_category option {
    font-size: 16px; /* Taille du texte dans les options */
    padding: 10px;
}

/* Ajustement de la taille du bouton */
.note_category {
    height: 40px; /* Hauteur du bouton */
}







/* Notes sommeil */
/* Style général */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Container pour le formulaire de filtre */
.filter-container {
    margin: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.filter-container label {
    margin-right: 10px;
    font-size: 16px;
}

.period {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}



/* Container pour les notes */
.notes_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px;
    padding: 10px;
}

/* Chaque note individuelle */
.note_item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 120px; /* Limite la hauteur de chaque note */
    overflow: hidden;
    position: relative; /* Permet le positionnement absolu des éléments enfants */
}

/* Style pour l'image de la note */
.note_image {
    margin-right: 15px;
}

.note-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

/* Style pour les détails de la note */
.note_details {
    display: flex;
    flex-direction: column; /* Assure que le titre, la période, et la description sont empilés verticalement */
    flex-grow: 1;
}

.note_details h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.note_details p {
    font-size: 14px;
    margin: 5px 0;
    color: #666;
}

/* Style pour le bouton de suppression */
.delete-form {
    position: absolute;
    right: 15px; /* Positionne le bouton à 15px du bord droit */
    top: 50%; /* Centrage vertical */
    transform: translateY(-50%); /* Ajuste le centrage vertical pour qu'il soit aligné */
}

.delete_btn {
    background-color: #f44336; /* Couleur rouge pour le bouton */
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Quand on clique sur l'image, elle s'affiche en grand */
.note-thumbnail:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.2s;
}



.modal-content {
    max-width: 90%;
    margin: auto;
    display: block;
}
