:root {
    --brown1: #C69C7D;
    --brown2: #B9865F;
    --brown3: #7B5436;
    --brown4: #352417;
    --brown5: #1B140F;
    /*--yellow: #ffcc00;*/
    --yellow: #D2BC87;
}

/* if you have the URL of a font, you can set it below */
/* feel free to delete this if it's not your vibe */

/* this seems like a lot for just one font and I would have to agree 
but I wanted to include an example of how to include a custom font.
If you download a font file you can upload it onto your Neocities
and then link it! Many fonts have separate files for each style
(bold, italic, etc. T_T) which is why there are so many! */
@font-face {
    font-family: Nunito;
    src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf');
}

@font-face {
    font-family: Nunito;
    src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: Nunito;
    src: url('https://sadhost.neocities.org/fonts/Nunito-Italic.ttf');
    font-style: italic;
}

@font-face {
    font-family: Nunito;
    src: url('https://sadhost.neocities.org/fonts/Nunito-BoldItalic.ttf');
    font-style: italic;
    font-weight: bold;
}

@font-face {
    font-family: Titles;
    src: url('/fonts/jfjunroc.ttf');
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    /*background-size: 200px;*/
    color: var(--yellow);
    background-image: url("/images/decor/tiles/sky.gif");
}

* {
    box-sizing: border-box;
}

/* the "container" is what wraps your entire website */
/* if you want something (like the header) to be Wider than
the other elements, you will need to move that div outside
of the container */
#container {
    max-width: 900px;
    /* this is the width of your layout! */
    /* if you change the above value, scroll to the bottom
and change the media query according to the comment! */
    margin: 0 auto;
    /* this centers the entire page */
}

/* the area below is for all links on your page
EXCEPT for the navigation */
#container a {
    color: var(--brown1);
    font-weight: bold;
    /* if you want to remove the underline
you can add a line below here that says:
text-decoration:none; */
}

#header {
    width: 100%;
    height: 145px;
    background-image: url("/images/decor/banner.png");
    background-size: 100%;
}

/* navigation section!! */
#navbar {
    height: 40px;
    background-color: var(--brown5);
    /* navbar color */
    width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
}

/* navigation links*/
#navbar li a {
    color: var(--brown1);
    /* navbar text color */
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
}

#flex {
    display: flex;
}

/* this colors BOTH sidebars
if you want to style them separately,
create styles for #leftSidebar and #rightSidebar */
aside {
    background-color: var(--brown4);
    width: 200px;
    padding: 20px;
    font-size: smaller;
    /* this makes the sidebar text slightly smaller */
}

/* this is the color of the main content area,
between the sidebars! */
main {
    background-color: var(--brown3);
    flex: 1;
    padding: 20px;
    order: 2;
}

.separator {
    background-image: url('/images/decor/footsteps.png');
    width: 100%;
    height: 60px;
    margin: 50px auto 50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.decor {
    margin: -20px -20px;
}

.decor img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 10;
}

.banner {
    /*background-color: var(--brown4);*/
    background-image: url('/images/decor/bois.jpeg');
    background-size: 100%;
}

.galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.galerie img {
    flex: 1 1 45%;
    max-width: 48%;
    height: auto;
    object-fit: cover;
}

.trio img {
    flex: 1 1 30%;
    max-width: 31%;
}

.galerie p {
    text-align: justify;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.btn-rondin {
    position: relative;
    width: 100px;
    height: 60px;
    margin: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-image: url('/images/decor/rondin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s ease; 
}

.menu .btn-rondin {
    background-image: url('/images/decor/rondin_long.png');
    width: 170px;
    background-size: 100% 100%;
}

.btn-rondin:hover {
    transform: scale(1.1);
}

/* Style du texte superposé */
.btn-rondin .texte-bouton {
    color: var(--yellow);
    font-weight: bold;
}

.menu .btn-rondin .texte-bouton {
    padding-left: 15px;
}

.presentation img,iframe {
    margin: auto;
    display: block;
    border-style: none;
}

.presentation p {
    text-align: justify;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin: 20px 30px -60px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 20;
}

.prevarrow {
  display: inline-block;
  transform: rotate(180deg);
}

/* what's this "order" stuff about??
allow me to explain!
if you're using both sidebars, the "order" value
tells the CSS the order in which to display them.
left sidebar is 1, content is 2, and right sidebar is 3! */
#leftSidebar {
    order: 1;
}

#rightSidebar {
    order: 3;
}

footer {
    background-color: var(--brown5);
    /* background color for footer */
    width: 100%;
    height: 40px;
    padding: 10px;
    text-align: center;
    /* this centers the footer text */
}

h2,
h3 {
    color: var(--brown1);
}

h1 {
    color: var(--yellow);
    font-size: 55px;
    font-weight: 500;
    font-family: "Titles";
    text-align: center;
    margin: -60px 0 40px;
    padding: 0 0 58px;
}

strong {
    /* this styles bold text */
    color: var(--brown1);
}

/* this is just a cool box, it's the darker colored one */
.box {
    background-color: var(--brown5);
    border: 1px solid var(--brown2);
    padding: 10px;
}

/* Le conteneur du tableau / le tableau lui-même */
.table-box {
    width: 100%;
    border-collapse: collapse; /* Supprime les doubles bordures */
    background-color: var(--brown5);
    border: 1px solid var(--brown2);
    border-radius: 4px; /* Optionnel : pour adoucir les angles comme une box */
    overflow: hidden; /* Nécessaire si vous utilisez un border-radius */
}

/* Style des cellules pour la structure et le padding */
.table-box th,
.table-box td {
    border-bottom: 1px solid var(--brown2); /* Lignes de séparation internes */
    padding: 10px;
}

/* Supprime la bordure du bas pour la dernière ligne */
.table-box tr:last-child td {
    border-bottom: none;
}

/* CSS for extras */

#topBar {
    width: 100%;
    height: 30px;
    padding: 10px;
    font-size: smaller;
    background-color: var(--brown5);
}


/* BELOW THIS POINT IS MEDIA QUERY */

/* so you wanna change the width of your page? 
by default, the container width is 900px.
in order to keep things responsive, take your new height,
and then subtrack it by 100. use this new number as the 
"max-width" value below */
@media only screen and (max-width: 800px) {
    #flex {
        flex-wrap: wrap;
    }

    aside {
        width: 100%;
    }

    /* the order of the items is adjusted here for responsiveness!
since the sidebars would be too small on a mobile device.
feel free to play around with the order! */
    main {
        order: 1;
    }

    #leftSidebar {
        order: 2;
    }

    #rightSidebar {
        order: 3;
    }

    #navbar ul {
        flex-wrap: wrap;
    }
}
