@import url(https://fonts.googleapis.com/css?family=Lato:400,900);
@import url('https://fonts.googleapis.com/css2?family=Gentium+Book+Basic&display=swap');

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 160%;
    font-size: 100%;
    color: #4d4d4d;
    background: #fff;
}

.group:after {
    content: "";
    display: table;
    clear: both;
}

.fullwidth {
    width: 100%;
    padding-top: 4rem;
    background-color: #fff;
}

.header {
    text-align: center;
    padding-bottom: 2rem;
}

.logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100px;
}

.site-title {
    font-family: 'Gentium Book Basic', serif;
    font-size: 2.5rem;
    color: #254363;
    margin: 1rem 0;
}

.timeline {
    width: 100%;
    max-width: 60rem;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2rem;
    padding-bottom: 4rem;
    padding-left: 2rem;
    background-image: linear-gradient(#999, #999);
    background-size: 2px 100%;
    background-position: 50% 1rem;
    background-repeat: no-repeat;
}

@media (max-width: 40rem) {
    .timeline {
        background-position: 2rem 0;
    }
}

.timeline .item {
    position: relative;
    display: block;
    width: 50%;
    float: left;
    clear: both;
    margin-top: -1rem;
}

@media (max-width: 40rem) {
    .timeline .item {
        width: 100%;
        float: none;
        margin-top: 0;
        margin-bottom: 3rem;
    }
}

.timeline .item:before {
    content: '';
    position: absolute;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #F5F7FA;
    background: #254363;
}

.timeline .item:hover:before {
    background-color: #4DD0E1;
    border-radius: 50%;
}

.timeline .item:first-child {
    margin-top: 0;
}

.timeline .item:nth-child(odd) {
    float: right;
    padding-left: 2rem;
}

.timeline .item:nth-child(odd):before {
    left: -0.5rem;
}

.timeline .item:nth-child(even) {
    padding-right: 2rem;
}

@media (max-width: 40rem) {
    .timeline .item:nth-child(even) {
        padding-right: 0;
        padding-left: 2rem;
    }
}

.timeline .item:nth-child(even):before {
    right: -0.5rem;
}

@media (max-width: 40rem) {
    .timeline .item:nth-child(even):before {
        left: -0.5rem;
    }
}

.timeline .item h2 {
    display: block;
    margin-bottom: 1rem;
    font-family: 'Gentium Book Basic', serif;
    font-size: 30px;
    font-weight: 400;
}

.timeline .item:nth-child(even) h2 {
    text-align: right;
}

@media (max-width: 40rem) {
    .timeline .item:nth-child(even) h2 {
        text-align: left;
    }
}

.admin-link {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.admin-link a {
    color: #254363;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.admin-link a:hover {
    color: #4DD0E1;
    text-decoration: underline;
}

/* Ajustements pour les petits écrans mobiles (320px et moins) */
@media (max-width: 360px) {
    .timeline {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .timeline .item h2 {
        font-size: 24px;
        word-wrap: break-word;
    }
    
    .timeline .item p {
        font-size: 14px;
    }
    
    /* Ajustements pour le formulaire de recherche */
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .search-button, 
    .reset-button {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }
    
    /* Empêcher les liens et le texte de déborder */
    .timeline .item a,
    .timeline .item p {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}
