/* Réinitialisation de base */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Liens */
a {
    color: #ef233c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #bb1a2e;
}

/* 
header {
    background: linear-gradient(90deg, #2b2d42, #8d99ae);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-right: 80px; 
} 
*/

/* Style général du header */
header {
    background: linear-gradient(90deg, #2b2d42, #8d99ae);
    color: white;
    padding: 20px; /* Espacement interne */
    display: flex; /* Disposition horizontale pour aligner les éléments */
    align-items:center;
}

/* Conteneur pour centrer et disposer les éléments */
.header-content {
    display: flex;
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: flex-start; /* Aligne tous les éléments à gauche */
}

/* Titre */
.site-title {
    text-decoration: none;
    color: white;
    font-size: 2rem;
    margin: 0;
}

/* Image du header */
.header-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 10px;
}

/* Positionner la photo en haut à droite */
.top-right-photo {
    position: absolute; /* Position absolue par rapport au parent */
    top: 10px; /* Espacement depuis le haut */
    right: 10px; /* Espacement depuis la droite */
    width: 200px; /* Taille de la photo (ajustable) */
    height: 200px; /* Taille de la photo (ajustable) */
    border-radius: 8px; /* Photo circulaire */
    object-fit: cover; /* Ajuste l'image pour qu'elle remplisse bien le conteneur circulaire */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ajoute une ombre douce */
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 1.1rem;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Section News */
#news {
    padding: 20px;
    background-color: #f4f4f9;
    margin-top: 20px;
}

#news h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* Style des articles de news */
.news-item {
    display: flex;
    align-items: center; /* Pour centrer verticalement les éléments */
    margin-bottom: 15px;
    font-size: 1rem;
    padding: 10px;
    transition: background-color 0.3s ease; /* Effet au survol */

}

.news-item:hover {
    background-color: #f0f0f0; /* Changer la couleur de fond au survol */
}

.news-item .date {
    white-space: nowrap;
    font-weight: bold; 
    font-size: 1rem;
    color: #888;
    margin-right: 10px;
}

.news-item .description {
    color: #555;
    margin-right: 10px;
    flex-wrap: wrap; 
}

.news-item .news-link {
    color: #2b2d42;
    text-decoration: none;
    font-weight: bold;
    margin-left: auto;
}

.news-item .news-link:hover {
    text-decoration: underline;
}

section {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo {
    width: 150px; 
    height: auto;
    
    float: right; 
    
    margin-left: 20px; 
    margin-bottom: 10px; 
}

.blog_post_photo {
    width: 200px; 
    height: auto;
    border-radius: 8px; 
    margin-top: 10px; 
}


section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

section h2 {
    font-size: 2rem;
    margin-top: 0;
    color: #2b2d42;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #2b2d42, #8d99ae);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

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

.social-links a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.2s ease, filter 0.3s ease;
}

.social-links a img {
    width: 24px;
    height: 24px;
    filter: grayscale(1);
}

.social-links a img:hover {
    transform: scale(1.2);
    filter: grayscale(0);
}

/* Animation globale */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* body {
    animation: fadeIn 1s ease-in-out;
} */

/* Style pour le titre cliquable */
.site-title {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Conserve la couleur du texte définie pour le h1 */
    cursor: pointer; /* Change le curseur pour indiquer que c'est cliquable */
}

/* Désactive tout effet au survol */
.site-title:hover {
    text-decoration: none;
    color: inherit;
}