html, body {
    padding:0%;
    margin: 0%;
    font-family: Cambria, serif;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    background-color: #555555; /* gris foncé un peu plus clair */
    color: #fafafa; /* gris très clair */
    padding: 0.5em;
}

header h1 {
    text-align: center;
}

main{
    flex: 1;
}

.about {
    display: flex;
    align-self: center;
    max-width: 1000px;
    gap: 8%;
    margin: 3%;
    background-color: #7f7f7f; /* Fond inchangé */
    color: #fafafa;            /* Texte plus foncé pour le contraste */
    border-radius: 1em;
    padding: 3em;
}

.about img {
    width: 33%;
    flex-wrap: wrap;
    aspect-ratio: 3/4;
    object-fit: cover   ;
    box-shadow: 0 0 3em 1.5em rgb(147, 146, 146);
    border-radius: 1em;
}

.about p {
    width: 50%;
    font-size: 1.2em;
}

.gear {
    font-size: large;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 1em;
}

.gear h2 {
    font-size: 1.75em;
    margin: 2em;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 1em;
}

/* Partie non écrite par moi */
.gear h2::before,
.gear h2::after {
    content: '';
    flex-grow: 1;
    height: 3px;
    background-color: #555555;
}
/* Fin partie non écrite par moi */

.gear p {
    margin-bottom: 2em;
}

.gear .pics{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-self: center;
    max-width: 1000px;
    gap: 0 2em
}

.gear img{
    max-width: 100%;
    height: auto;
}

header ul {
    list-style: none;
    display: flex;
    margin:2em;
    padding: 0%;
    justify-content: center;
    gap: 5%
}

header a {
    color: #fafafa;
    font-weight:800;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

main {
    margin:0;
    background-color: #fbfbfb; /* gris très pâle, plus clair */
    padding: 1.5em;
    color: #555555;
    flex:1;
}

footer{
    margin: 0;
    padding: 1em;
    background-color: #c8c8c8; /* gris moyen plus clair */
    display: flex;
    justify-content: space-between;
    align-items:center;
    color: #fafafa;
}

.footer-left{
    margin-left: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 3em;  
}

.footer-left a {
    text-decoration: none;
    color: #fafafa;
}

.footer-left a:hover{
    color: #555555;
    transition-duration: 0.5s;
}

.footer-right{
    margin-right: 1em;
}

@media (min-width: 1000px) {
    .about {font-size: 1.1em;}
}

@media (max-width: 700px) {
    .about {
        flex-direction: column;
        align-items: center;
        gap: 2em
    }
    .about img,
    .about p {
        width: 100%;
    }
    
    html{font-size: 0.8em;}
}
