body {
    font-family: Arial, sans-serif;
    background: #121212;        /* Fond sombre */
    color: #eaeaea;             /* Texte clair */
    padding: 20px;
    margin: 0;
}

.timeline,
.main-container
{
    position: relative;
    max-width: 600px;
    margin: 42px auto auto auto;
    padding: 10px 0;
}

.timeline-item {
    background: #1e1e1e;
    padding: 15px 15px 15px 40px;
    border-radius: 8px;
    display: block;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #888; /* fallback */
}

/*
    A voir comme couleur : https://dribbble.com/shots/23437330-Rating-System
    https://dribbble.com/shots/4000409-Visual-Rating-System
    https://dribbble.com/shots/16430287-Product-Rating
    Mode smiley : https://dribbble.com/shots/23950680-Ratings-Dialogue-Box

    Animation : https://dribbble.com/shots/6295035-Rating-animation
*/

.bg-rate-1 { background-color: #2c2c2c !important;}
.bg-rate-2 { background-color: #e74c3c !important;}
.bg-rate-3 { background-color: #f1c40f !important;}
.bg-rate-4 { background-color: #3498db !important;}
.bg-rate-5 { background-color: #2ecc71 !important;}

/* Couleurs par rate */
.timeline-item-rate-1::before { background-color: #2c2c2c; }
.timeline-item-rate-2::before { background-color: #e74c3c; }
.timeline-item-rate-3::before { background-color: #f1c40f; }
.timeline-item-rate-4::before { background-color: #3498db; }
.timeline-item-rate-5::before { background-color: #2ecc71; }

/* Autres styles */
.date {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
    text-align: right;
}

.note {
    color: #f1c40f;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.content {
    font-size: 0.95em;
    line-height: 1.4;
}

.timeline-container {
    max-width: 600px;
    margin: auto;
    padding: 10px;
}

.timeline-header {
    text-align: right;
}

.primary-button,
.warning-button {
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 20px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.primary-button {
    background-color: #3498db;
    color: white;

}

.primary-button:hover {
    background-color: #2980b9;
}

.warning-button {
    background-color: #e74c3c;
    color: white;
}

.warning-button:hover {
    background-color: #8e2b2b;
}

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e1e;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

.bottom-menu a {
    color: #eaeaea;
    text-decoration: none;
    font-size: 0.9em;
    padding: 18px 12px;
    transition: background 0.2s;
    border-left: 1px solid #333;
    width: 100%;
    text-align: center;
}

.bottom-menu a:nth-child(1) {
    border-left: 0;
}

.bottom-menu a:hover {
    background: #333;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #eaeaea;
}

.header-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
}

.main-header nav a {
    color: #eaeaea;
    text-decoration: none;
    font-size: 0.95rem;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.main-header nav a:hover {
    color: #3498db;
}

/* Pour laisser de la place au contenu */
.page-content {
    padding-top: 70px;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #ccc;
}

form input[type="email"],
form input[type="password"],
form input[type="text"],
form input[type="checkbox"],
form input[type="submit"],
form input[type="number"],
form input[type="tel"],
form input[type="url"],
form input[type="date"],
form input[type="time"],
form textarea,
form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    background-color: #2a2a2a;
    color: #eaeaea;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.alert {
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 6px;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    animation: fadeIn 0.5s ease-in-out, fadeOut 1s ease-in-out 3s forwards;
}

.alert-success {
    background-color: #4daf51;
    color: #ffffff;
}

.alert-error {
    background-color: #eb2c14;
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; height: 0; margin: 0; padding: 0; }
}


.tag {
    display: inline-block;
    position: relative;
    float: left;
    padding: 6px 26px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 18px;
    text-shadow:1px 0 0  #000000, -1px -0px 0  #000000, 0 1px 0  #000000, 0 -1px 0  #000000;
}

.tag .decrement,
.tag .increment {
    position: absolute;
    top: 0;
    padding: 6px;
    cursor: pointer;
    min-width: 12px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.tag .decrement {
    left: 0;
}

.tag .increment {
    right: 0;
}

.tag + .tag {
    margin-left: 6px;
}
