/************ Couleur disponible ************/

:root {
    --color-background: rgba(223,133,47,1);
    --color-background-content: rgb(255, 255, 255);
    --color-background-secondary: rgb(83, 79, 70);
    --color-text: rgb(0, 0, 0);
    --color-text-secondary: rgb(255, 255, 255);

    --color-primary: rgb(255, 136, 0);
    --color-secondary: rgb(83, 79, 70);
    --color-secondary-light: rgb(179, 175, 165);
}

/************ Styles body ************/

body {
    padding: 0;
    margin: 0;
    text-align: center;
    font-family: "Montserrat", sans-serif, "google";
}

.background-slider {
    position: fixed;      /* toujours derrière le contenu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;          /* derrière tout */
    transition: background-image 1s ease-in-out; /* transition douce */
}

/************ Style header ************/
header {
    background-color: var(--color-background-content);
    padding-bottom: 10px;
    align-items: center;
    justify-items: center;
}
/* NAvigation bar */
nav{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--color-background);
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}
nav ul {
    width: auto;
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 20px;
}
nav ul li a {
    text-decoration: none;
    color: var(--color-text-secondary);
    padding: 5px 10px;
    font-size: 1.2em;
    font-family: "Oswald", sans-serif, "google";
}
nav ul li a.active {
    border-radius: 5px;
    text-decoration: underline;
} 
nav ul li a:hover {
    color: var(--color-text);
}
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--color-text-secondary);
    margin: 0 0.5em;
}
@media (max-width: 768px) {
    nav {
        justify-content: flex-start; 
    }
    nav ul {
        flex-direction: column; /* menu vertical */
        display: none;          /* caché par défaut */
    }
    nav ul.show {
        display: flex;          /* afficher quand activé */
    }
    .hamburger {
        display: block;         /* bouton visible */
    }
}

/* Header info */
div.header-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
@media (max-width: 900px) {
    div.header-info {
        flex-direction: column;
        gap: 20px;
    }
}
div.header-info div {
    display: flex;
    flex: 1;
    justify-items: center;
    align-items: center;
    flex-direction: column;
    font-size: 1.2em;
    font-family: "Montserrat", sans-serif, "google";
}
div.header-info div a{
    color: inherit;
    text-decoration: none;
}
div.header-info div a:hover{
    text-decoration: underline;
}
img.logo {
    width: 20em;
    height: auto;
    display: block;
    margin: 0 auto;
}

/************ Style footer ************/

footer {
    background-color: rgba(255, 255, 255, 0.75);
    /* backdrop-filter: blur(10px); */
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 1em;
    font-family: "Montserrat", sans-serif, "google";
}
div.footer-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
@media (max-width: 900px) {
    div.footer-info {
        flex-direction: column;
        gap: 20px;
    }
}
div.footer-info div {
    display: flex;
    flex: 1;
    justify-items: center;
    align-items: center;
    flex-direction: column;
}
div.footer-info div a{
    color: inherit;
    text-decoration: none;
}
div.footer-info div a:hover{
    text-decoration: underline;
}

/************ Style content ************/
.content {
    display: flow-root;
    padding: 15px 1%;
    margin: 0;
    margin-top: 10%;
    background-color: var(--color-background-content);
}

.content h1  {
    width: 80%;
    margin: auto;
    color: var(--color-primary);
    padding: 1%;
    font-size: 1.9em;
    text-transform: uppercase;
}
.content h2{
    width: 80%;
    margin: auto;
    color: var(--color-secondary);
    font-size: 1.6em;
    padding: 1%;
}
.content h3{
    width: 80%;
    margin: auto;
    color: var(--color-text);
    font-weight: bold;
    font-size: 1.3em;
    padding: 1%;
}

.content p {
    width: 80%;
    margin: 0 auto 10px;
    font-size: 1.1em;
    color: var(--color-text);
}


/* Contenu en ligne */
.row {
    width: 70%;
    margin: 0 3% 25px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-self: center;
}
.row div {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
}
.row img {
    width: 60%;
    height: auto;
}
.row img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.row a{
    width: 100%;
    text-decoration: none;
}
.row a p:hover{
    text-decoration: underline;
}

button {
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    border: none;
    padding: 20px 30px;
    font-size: 1.4em;
    cursor: pointer;
    border-radius: 10px;
    margin: 20px;
}

.grid-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;    
    justify-content: center;
    gap: 20px;
    padding: 0 5%;
}
.grid-row div {
    display: inline-block;
    margin: 5px;
    white-space: nowrap;
    width: auto;
    max-width: 15%;
    flex: none;
}
.grid-row div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}