:root {
    --jref_main: #BC6C25;
    --jref_onmain: white;
    --jref_background: #d9d9d9;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Blinker', sans-serif;
}

body {
    background: var(--jref_background);
    min-height: 100vh;
    flex-direction: column;
    display: flex;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

main {
    max-width: 95%;
    margin: auto;
    flex-grow: 1;
}

header {
    background-color: var(--jref_main);
    color: var(--jref_onmain);
    margin: 0;
    display: block;
}

ul.menu {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
}

.menu li {
    display: inline-block;
    list-style-type: none;
    padding: 10px 15px;
}

header .menu li:hover {
    background: var(--jref_onmain);
}

header .menu li:hover a {
    color: var(--jref_main);
}

.menu li a {
    text-decoration: none;
    color: white;
}

footer {
    background-color: var(--jref_main);
    color: var(--jref_onmain);
    margin: 0;
    display: block;
    margin-top: 20px;
    padding: 10px;
}

footer ul.menu {
    justify-content: flex-end;
}



h1, h2, h3, h4, h5, h6 {
    padding: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    text-align: center;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.25em;
}

a, a:visited {
    color: var(--jref_main);
    text-decoration: none;
}

a:hover {
    filter: brightness(1.2);
}

a:active, a:focus {
    filter: brightness(0.8);
}






/* BANNER HOME */
.hero-block {
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: larger;
    background: url('../img/banner.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

#homepage-lastprojects {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

#homepage-lastprojects article {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    min-width: 33%;
    gap: 10px;
}

#homepage-lastprojects img {
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

@media(max-width: 740px) {
    #homepage-lastprojects {
        flex-direction: column;
    }
}

.team-block {
    display: grid;
    grid-template-columns: minmax(50%, 300px) minmax(50%, 300px);
    grid-template-rows: 1fr;
    gap: 10px;
    align-items: center;
    margin: auto;
    width: max-content;
    max-width: 100%;
}

.team-image {
    width: 400px;
}

.team-image-container {
    justify-self: flex-end;
}

.team-infos-container {
    justify-self: flex-start;
    align-self: center;
}

.objectifs-block {
    text-align: center;
}

.objectifs-block .objectif-entry {
    display: inline-block;
    margin: 10px;
}

.objectifs-block .objectif-entry img {
    width: 200px;
}

.projects-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-entry {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 16/9;
    background-image: var(--project_img);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-grid .project-entry h2, .reporters-grid .reporter-entry h2 {
    padding: 10px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 3px
  }

.project-video {
    text-align: center;
    margin: auto;
}

.reporters-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.reporter-entry {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 16/9;
    background-image: var(--reporter_img);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objectif-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.objectif-thumbnail {
    max-width: 250px;
}

.objectif-row .objectif-image {
    object-fit: cover;
}

.objectifs-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1100px;
    margin: auto;
    flex-direction: row;
}

.objectifs-grid.archive-grid .objectif-entry {
    max-width: 200px;
}

.team-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.team-row .team-image {
    max-width: 400px;
}

.team-block .team-title {
    font-weight: bold;
}

.error-empty {
    text-align: center;
    font-style: italic;
    color: #666666;
    padding: 5px;
}


@media (max-width: 700px) {
    .team-row, .objectif-row {
        flex-direction: column;
    }
}