/* Styles globaux */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Titre */
h1 {
    text-align: center;
    color: #343a40;
}

/* Frise chronologique */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    margin: 0 auto; /* Centre la frise */
    max-width: 600px; /* Limite la largeur */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%; /* Place la ligne centrale au milieu */
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 100px; /* Espace pour l'heure */
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 8px); /* Centre le point sur la ligne */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bullet-color, gray);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #dee2e6;
}

/* Heure mise en avant */
.timeline-item .time {
    font-size: 1.2em;
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
    text-align: left;
}

/* Description de l'événement */
.timeline-item .description {
    font-size: 1em;
    color: #868e96;
    line-height: 1.5;
    text-align: left;
    margin-left: calc(50% + 20px); /* Place la description à droite de la ligne */
}

/* Couleurs par type */
.timeline-biberon::before {
    --bullet-color: #007bff; /* Bleu */
}

.timeline-sommeil::before {
    --bullet-color: #28a745; /* Vert */
}

.timeline-toilette::before {
    --bullet-color: #fd7e14; /* Orange */
}

.timeline-couche::before {
    --bullet-color: #dc3545; /* Rouge */
}

/* Heure mise en avant */
.timeline-item .time {
    font-size: 1.2em;
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
    text-align: left;
}

/* Type de l'item (biberon, sommeil, toilette, couche) */
.timeline-item .item-type {
    font-size: 1em;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 5px;
    color: #ffffff;
}

.timeline-biberon .item-type {
    background-color: #007bff; /* Bleu */
}

.timeline-sommeil .item-type {
    background-color: #28a745; /* Vert */
}

.timeline-toilette .item-type {
    background-color: #fd7e14; /* Orange */
}

.timeline-couche .item-type {
    background-color: #dc3545; /* Rouge */
}

.timeline-reveil .item-type {
    background-color: #b8a7a99c; /* Rouge */
}

/* Style spécifique pour l'heure actuelle */
.timeline-current_time::before {
    --bullet-color: #17a2b8; /* Bleu clair */
    width: 24px;
    height: 24px;
    border: 4px solid #ffffff;
}

.timeline-current_time .time {
    font-weight: bold;
    color: #17a2b8;
}

.timeline-current_time .description {
    font-style: italic;
    color: #17a2b8;
}

/* Style de la boîte d'informations */
.info-box {
    background-color: #2f9aa8; /* Couleur pale terra cota */
    border: 1px solid #2f9aa8; /* Couleur légèrement plus foncée pour la bordure */
    border-radius: 12px; /* Bordures arrondies */
    padding: 16px; /* Espacement interne */
    margin: 20px 0; /* Espacement autour de la boîte */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Légère ombre */
    color: #ffffff; /* Couleur du texte, terre cuite */
}

.info-box h3, .info-box h4 {
    margin-top: 0;
    color: #ffffff; /* Texte terre cuite plus foncé */
}

.info-box p {
    margin: 5px 0; /* Espacement vertical entre les lignes */
}

/* Style pour la fin du jour */
.timeline-end_of_day::before {
    --bullet-color: #e74c3c; /* Rouge */
    width: 20px;
    height: 20px;
}

/* Style pour le début du nouveau jour */
.timeline-start_of_day::before {
    --bullet-color: #27ae60; /* Vert */
    width: 20px;
    height: 20px;
}

/* Style pour les descriptions spéciales */
.timeline-end_of_day .description,
.timeline-start_of_day .description {
    font-weight: bold;
    color: #4a4a4a;
}

/* Style pour les boutons de fin du jour */
.timeline-end_of_day .description button {
    background-color: #e74c3c; /* Rouge */
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.timeline-end_of_day .description button:hover {
    background-color: #c0392b; /* Rouge plus foncé au survol */
}