/* Variables CSS */
:root {
    --couleur-principale: #1a6b2e;
    --couleur-secondaire: #145224;
    --couleur-accent: #f5c542;
    --couleur-texte-clair: #ffffff;
    --couleur-fond: #1a6b2e;
    --police-corps: Arial, sans-serif;
}

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

body {
    font-family: var(--police-corps);
    background-color: var(--couleur-fond);
    color: var(--couleur-texte-clair);
}

/* Header */
header {
    background-color: var(--couleur-principale);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

header img {
    width: 60px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--couleur-texte-clair);
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
}

nav ul li a:hover {
    color: var(--couleur-accent);
}

/* Main */
main {
    padding: 25px 30px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Ligne intro */
.ligne-intro {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.photo-portrait {
    width: 140px;
    height: 190px;
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.photo-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-texte {
    flex: 1;
    padding-top: 10px;
}

.intro-texte h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.intro-texte p {
    font-size: 14px;
    line-height: 1.7;
}

/* Ligne passions */
.ligne-passions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.passions-texte {
    flex: 1;
    padding-top: 10px;
}

.passions-texte h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.passions-texte p {
    font-size: 14px;
    line-height: 1.7;
}

/* Grand rectangle droite */
.photo-grande {
    width: 160px;
    height: 210px;
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.photo-grande img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grand rectangle bas gauche */
.ligne-bas {
    display: flex;
    justify-content: flex-start;
}

.photo-large {
    width: 220px;
    height: 220px; 
    background-color: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}

.photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; 
}

/* Footer */
footer {
    background-color: var(--couleur-secondaire);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 18px 40px;
    font-size: 12px;
    margin-top: 20px;
}

footer a {
    color: var(--couleur-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    main {
        padding: 20px 15px;
    }

    .ligne-intro,
    .ligne-passions {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .photo-portrait,
    .photo-grande,
    .photo-large {
        width: 100%;
        max-width: 450px;
    }

    .photo-large {
        height: 200px;
    }

    .ligne-bas {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .photo-portrait img {
    object-position: center 35%;
    }
    .photo-grande img,
    .photo-large img {
        object-position: top;
    }

}