/*créé par Keawta Sommer / 04 décembre 2024*/

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #E6DCD6;
    color: black;
    padding-bottom: 40px;
}

.padding-marges {
    padding-left: 50px;
    padding-right: 50px
}

h3 {
    padding-top: 50px;
}

p {
    padding-top: 20px;
    text-align: justify;
}

article {
    margin-bottom: 10px;
    padding-top: 40px;
}

* {
    margin: 0px;
    padding: 0px;
}

.nolink {
    text-decoration: none;
    font-size: 15px;
    color: black;
}

.titre {
    color: white;
    padding-left: 50px;
    padding-top: 70px;
}

.green {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #0f7e29;
    padding-left: 50px;
}

.logo {
    width: 190px;
    padding-left: 50px;
    float: left;
    padding-top: 40px;
}

.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./images/walter.webp");
    height: 30%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

nav {
    width: 100%;
    position: sticky;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    float: left;
    width: 15%;
    position: relative;
}

nav ul::after {
    content: "";
    display: table;
    clear: both;
}

nav a {
    display: block;
    text-decoration: none;
    color: rgb(255, 255, 255);
    border-bottom: 2px solid transparent;
    padding: 10px 0px;
}

nav a:hover {
    color: rgb(8, 202, 73);
    border-bottom: 2px solid #0f7e29;
}

.sous {
    display: none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: rgb(192, 166, 150);
    position: absolute;
    width: 100%;
    z-index: 1000;
}

nav>ul li:hover .sous {
    display: block;
}

.sous li {
    float: none;
    width: 100%;
    text-align: left;
}

.sous a {
    padding: 10px;
    border-bottom: none;
}

.sous a:hover {
    border-bottom: none;
    background-color: RGBa(200, 200, 200, 0.1);
}

.deroulant>a::after {
    content: " ▼";
    font-size: 12px;
}

.search-container {
    float: right;
    margin-bottom: 20px;
}

.search-container input[type="text"] {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
}

.search-container button {
    padding: 10px 15px;
    background-color: #4CAF50;
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.search-container button:hover {
    background-color: #45a049;
}

.highlight {
    background-color: lightgreen;
}

.time {
    padding-top: 50px;
    padding-bottom: 10px;
    font-size: 10vh;
    height: 100px;
    justify-content: center;
    text-align: center;
    align-items: center;
}


@media (max-width: 1000px) {

    body {
        padding-bottom: 20px;
    }

    .titre {
        padding-left: 0px;
        padding-top: 0px;
        text-align: center;
    }

    .green {
        padding-left: 20px;
        text-align: center;
    }

    .logo {
        width: 150px;
        align-self: center;
        padding-left: 0px;
        float: none;
        display: block;
        padding-top: 20px;
        margin: 0 auto;
    }

    .hero-image {
        height: 40%;
        position: relative;
        top: -21px;
    }

    nav ul li {
        width: 33%;
    }

    nav a {
        font-size: 15px;
    }

    .deroulant>a::after {
        content: " ▼";
        font-size: 10px;
    }

    .sous {
        width: auto
    }

    .search-container {
        float: none;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    .search-container input[type="text"] {
        width: 80%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 3px;
        font-size: 16px;
    }

    .time {
        font-size: 30px;
        padding-top: 35px;
        padding-bottom: 0px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        justify-self: center;
        text-align: center;
        padding-right: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}