/* -------------------- RESET -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------------- BODY -------------------- */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #1a001a, #4b0082);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -------------------- HEADER -------------------- */
header {
    background-color: #2a002a;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    z-index: 1000;
}

header nav a {
    color: #d8b0ff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

header nav a:hover {
    color: #ff7fff;
}

/* -------------------- ACCUEIL -------------------- */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1, h2 {
    color: #d8b0ff;
    margin-bottom: 20px;
}

p {
    font-size: 1.2rem;
    color: #e0caff;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    background-color: #9b30ff;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(155,48,255,0.4);
    transition: 0.3s;
}

.btn:hover {
    background-color: #7a1fff;
    box-shadow: 0 6px 12px rgba(122,31,255,0.6);
}

/* -------------------- AVANCEMENT -------------------- */
.container-center {
    margin-top: 120px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bloc principal d'entrée */
.avance-block {
    background-color: #2a002a;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(155,48,255,0.3);
    width: 80%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.avance-block h2 {
    color: #d8b0ff;
    margin-bottom: 15px;
}

.avance-block textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid #9b30ff;
    padding: 10px;
    font-size: 1rem;
    background-color: #1a001a;
    color: #fff;
    margin-bottom: 15px;
}

.avance-block button {
    padding: 12px 20px;
    border-radius: 10px;
    background-color: #9b30ff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.avance-block button:hover {
    background-color: #7a1fff;
}

/* -------------------- BLOCS DE DATES -------------------- */
.dates-container {
    display: flex;
    flex-direction: column-reverse; /* plus récent en haut */
    align-items: center;
    width: 100%;
}

.date-block {
    background-color: #2a002a;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(155,48,255,0.3);
    width: 80%;
    max-width: 700px;
    transition: 0.3s;
}

.date-block:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 14px rgba(155,48,255,0.4);
}

.date-block h3 {
    color: #d8b0ff;
    margin-bottom: 15px;
    border-bottom: 1px solid #9b30ff;
    padding-bottom: 5px;
    text-align: center;
}

.avance-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #1a001a;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.avance-item span {
    flex: 1;
    text-align: left;
}

/* Boutons */
.avance-item button {
    background-color: #9b30ff;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-left: 10px;
}

.avance-item button:hover {
    background-color: #7a1fff;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
    .avance-block, .date-block {
        width: 90%;
    }

    .avance-block textarea {
        min-height: 140px;
    }
}
