body {
    font-family: Spectral, Garamond, Times, serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

h1
{
    font-family: Montserrat, sans-serif;
}
h2
{
    font-family: Montserrat, sans-serif;
}
h3
{
    font-family: Montserrat, sans-serif;
}
h4
{
    font-family: Montserrat, sans-serif;
}
header {
    background-color: rgb(165, 14, 21);
    color: #fff;
    
}
.cover-image {
    width: 100%; /* L'image couvre toute la largeur */
    height: 20px; /* Hauteur de l'image (modifiable selon vos besoins) */
    object-fit: cover; /* Adapte l'image à l'espace disponible */
    display: block; /* Évite les espaces blancs indésirables */
    top: 0; /* Atteint le haut de la page */
    left: 0; /* Atteint le bord gauche */
}
.header-container {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    padding: 20px;
    justify-content: center; /* Centre l'en-tête horizontalement */


}

.photo {
    aspect-ratio: 1 / 1; /* Garantit un carré, donc un rond avec border-radius */
    width: 30vw; /* 25% de la largeur de l'écran */
    max-width: 150px; /* Limite la taille maximale pour éviter les trop grands écrans */
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Empêche la réduction de la taille */
    align-self: flex-start; /* Aligne la photo en haut de l'en-tête */

}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}  

.header-details {
    flex: 1;
    white-space: normal;   /* Assure que le texte revienne à la ligne naturellement */
    max-width: 100%;       /* Empêche le texte de dépasser son conteneur */
    margin: 5px 0; /* Ajuste l'espacement des coordonnées */
}

.header-details h1 
{
    margin: 0;
    font-size: 1.8em;
    
}

.header-details h2 
{
    margin: 0;
}
.header-details p {
    margin: 5px 0;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 20px;
}

section h3 {
    border-bottom: 2px solid #9b3111;
    padding-bottom: 5px;
    color: #9b3111;
}
section h4 {
    border-bottom: 2px solid #9b3111;
    border-bottom-style: dotted;
    padding-bottom: 5px;
    color: #9b3111;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    line-height: 1.5;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Mise en page à deux colonnes */
.two-columns {
    display: flex;
    gap: 20px;
}

.column-left,
.column-right {
    flex: 1;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.column-right {
    background: #9b311114;
}

.linkedin-button {
    display: inline-block;
    padding: 1px 10px;
    font-size: 16px;
    color: white;
    background-color: #0077b5;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-weight: bold;
}

.linkedin-button:hover {
    background-color: #005983;
}


body {
    margin: 0;
    padding: 0;
}
