* {
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding:0;

    scroll-padding-top: 60px;
    scroll-behavior: smooth;
}

header {
    height: 60px;
    background-color: #d8007e;
    background-color: #d8007ecc;
    font-weight: bold;
    line-height: 60px;
    display: flex;
    padding: 0 5px 0 0;
    position: fixed;
    width: 100%;
}

header a:first-child { flex: 1; }
header a:last-child span { 
    background-color: #ddd;
    padding: 10px 15px;
    color: black;
    border-radius: 20px;
}

header a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

header a.active {
    color: rgb(82, 196, 224);
    border-bottom: 5px solid rgb(82, 196, 224);
}

header a img {
    float: left;
    margin: 5px;
}

header input {
    position: fixed;
    right: 10px;
    top: 60px;
    height: 35px;
    margin: 13px 10px 0 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-image: url('img/loupe.png');
    background-repeat: no-repeat;
    background-position: center right 10px;
    padding: 0 10px;
}

h1 {
    margin: 0;
    padding: 110px 0 50px 0;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.3), 
        rgba(0, 0, 0, 0.3)
      ), url('img/bg.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100%;
    background-position: 0 -300px;
    text-align: center;
}

h1 span {
    display: inline-block;
    max-width: 1000px;
    font-size: 35px;
    font-weight: normal;
    color: white;
}

main div h2 {
    margin: 0;
    padding: 30px 0;
    text-align: center;
    font-weight: normal;
    font-size: 30px;
    color: #444;
}

main div:nth-child(even) {
    background-color: #ddd;
}

main#liens div ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 12px;
    color: #888;
    max-width: 1000px;
    margin: auto;
}

main#liens div ul li {
    width: 150px;
    list-style: none;
    margin: 10px 0 20px 10px;
    color: #555;
    font-size: 13px;
}

main#liens div ul li a {
    text-align: center;
    display: block;
    color: black;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    padding: 15px 0 1px 0;
    transition: background-color 0.3s;
}

main#liens div ul li a:hover {
    background-color: #eee;
}


main#liens div ul li a span {
    display: block;
    margin: 15px 0;

}

main#liens div ul li a img {
    width: 80px;
    display: block;
    margin: auto;
}

#brand {
    margin-top: 10px;
    height: 40px;
    display: none;
}

footer {
    padding: 30px 0;
    background-color: #d8007e;
    text-align: center;
}    

footer a {
    color: white;
    text-decoration: none;
}

@media (max-width: 1150px) {
    nav {
        display: none;
        background: white;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
    }

    nav.visible {
        display: block;
    }

    nav a {
        display: block;
        color: #ccc;
    }

    #brand {
        display: block;
    }

}

#mentions-legales {
    max-width: 1000px;
    margin: auto;
}


@media (max-width: 1000px) {
    h1 {
        background-size: auto;
        background-position: center -300px;
        font-size: 30px;
    }
    h1 span {
        font-size: 30px;
    }

    main div h2 {
        font-size: 25px;
    }
}

@media (max-width: 750px) {
    h1 span {
        font-size: 22px;
    }
    main div h2 {
        font-size: 18px;
    }
}

#popup {
    z-index: 10;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(5, 5, 5, .8);
}

#popup #content {
    background-color: white;
    border: 1px solid black;
    max-width: 800px;
    margin: auto;
    padding: 3rem;
    margin-top: 50vh;
    transform: translateY(-50%);
}

#popup .important {
    color: #d8007e;
    font-weight: bold;

}

#popup li {
    margin: 0.5em;
}

.btn {
    background-color: #d8007e;
    color: white;
    padding: 0.7em;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    border: 0px;
    width: 100%;
    font-size: 18px;
    cursor: pointer;
}

.btn:hover {
    background-color: #9c005b;
    
}

.btn:active {
    background-color: #d8007e;
}

.btn input {
    width: 20px;
    width: 20px;
}

table {
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
}

table th {
    background-color: #d8007e;
    color: white;
}

table tr:nth-child(even) {background-color: #f2f2f2;}