
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000ff;
    margin: 0;
    color: #FFFFFF;
    text-align: center;
}

.hero {
    background-image: url("images/background.gif");
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 90px;
}

.hero .underline {
    border-bottom: 2px solid #FFFFFF;
}

nav {
    
    position: fixed;
    background-color: #000000ff;
    width: 100%;
    top: 0;
}

ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
}

li {
    font-size: larger;
    padding: 0 50px;
}

li:hover {
    font-size: x-large;
}

a {
    text-decoration: none;
    color: inherit;
}

#articles {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background-color: #FFFFFF;
    color: #000000ff;
}

h2 {
    font-size: 60px;
    padding: 80px 0;
    margin: 0;
}

#articles .underline {
    border-bottom: 2px solid #000000ff;
}

.article {
    display: flex;
    border-radius: 10px;
    padding-bottom: 150px;
    
}

.image {
    width: 200px;
    margin-right: 50px;
    background-color: #FFFFFF;
    width: 250px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
}

.tag {
    border: 1px solid #000000ff;
    border-radius: 20px;
    padding: 3px 10px;
}

.title h3 {
    font-size: 30px;
    width: 600px;
    text-align: left;
}

#about {
    background-color: #000000ff;
    color: #FFFFFF;
    padding-bottom: 100px;
}

#about h2 {
    padding-bottom: 20px;
}

#about p {
    text-align: center;
    padding: 10px 200px 0 200px;
    font-size: larger;
}

.socials {
    margin-top: 70px;
}

#about .underline {
    border-bottom: 2px solid #FFFFFF;
}

#contact {
    background-color: #FFFFFF;
    color: #000000ff;
    padding-bottom: 100px;
}

#contact .underline {
    border-bottom: 2px solid #000000ff;
}

.container {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 40px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input[type=email], input[type=text], textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box;
    margin-top: 6px; 
    margin-bottom: 16px; 
    resize: vertical 
}

.name {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box;
    margin-top: 6px; 
    margin-bottom: 16px; 
    resize: vertical 
}

input[type=submit] {
    color: #000000ff;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #000000ff;
    color: #FFFFFF;
}

footer {
    padding: 3px;
}

/* --- ADAPTATION MOBILE (Écrans de moins de 768px) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Navigation : On permet aux liens de passer sur deux lignes si besoin */
    ul {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    li {
        padding: 5px 10px; 
        font-size: 14px; /* Plus petit pour que tout rentre */
    }

    li:hover {
        font-size: 14px; /* On évite le saut de taille au survol sur mobile */
    }

    /* 2. Hero Section */
    .hero {
        height: 80vh; /* Un peu moins haut sur mobile */
    }

    .hero h1 {
        font-size: 40px;
        width: 90%;
    }
    
    .hero h1 img {
        width: 100%; /* Le logo s'adapte à la largeur de l'écran */
        max-width: 300px;
        height: auto;
    }

    /* 3. Section Articles */
    h2 {
        font-size: 35px;
        padding: 30px 0;
    }

    .article {
        flex-direction: column;
        align-items: center;
        padding-bottom: 40px;
        width: 90%;
    }

    .image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        max-width: 280px;
    }

    .title {
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .title h3 {
        width: 100%; /* Prend toute la largeur dispo */
        font-size: 18px;
        text-align: center;
    }

    /* 4. Section À Propos (Le point le plus important) */
    #about p {
        padding: 10px 5% !important; /* Utilise un pourcentage au lieu de pixels fixes */
        font-size: 16px;
        line-height: 1.5; /* Plus lisible sur petit écran */
    }

    /* 5. Section Contact */
    .container {
        width: 85%;
        padding: 20px;
    }

    /* 6. Footer */
    footer img {
        width: 180px; /* QR code plus petit sur mobile */
    }
}

#visits {
    background-color: #2ecc71; /* Vert brocoli ! */
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

