:root {
    --background-color: #F7F5EF;
    --text-color: #584132;
    --accent-color: #627359;
    --secondary-color: #73513A;
    --hero-color: #584132;
    --vert-sauge: #A9B7A1;
    --brun-terre: #7C5C47;
    --ocre-dore:#D9A86C;
    --ocre-dore-clair: #E8CFAF;
    --bleu-gris-brume:#A7B4B7;
    --creme: #F7F5EF;
    --vert-mousse: #5E7D67;
    --argile-rosee: #C8A793;
}

/*******/

html,
body {
    background: var(--background-color);
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.5;
    margin:0;
    padding:0;
}

a {
    color: var(--accent-color);
}

p, ul, li, h1, h2, h3, h4, h5, h6 {
    line-height: 1.6;
}
html, body, main, footer, header, p {
    font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

main > *:not(.wide) {
    padding-left: 10px;
    padding-right: 10px;
}

header, main > *:not(.wide) {
    max-width: 80ch;
    margin-left:auto;
    margin-right:auto;
}

header {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
}

.header_name {
    font-size:1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    font-variant: small-caps;
    font-family: cursive;
    padding: 10px;
    margin: 10px auto;
    border-bottom: var(--vert-sauge) 1px solid;
}

.header_menu ul {
    display:flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items:last baseline;
    padding-right:10px;
}

.header_menu ul li {
    display: block;
}
.header_menu ul li a {
    display:block;
    text-align: center;
    width:100%;
    color:var(--accent-color);
    text-decoration: none;
    padding: 5px;
    margin: 0 10px;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

.header_menu ul li a::after {
    display: block;
    content: '';
    width: 0%;
    background-color: var(--ocre-dore);
    height: 2px;
    transition: all .3s ease;

}

.header_menu ul li a:hover::after {
    width: 100%;
}

.footer_menu ul {
    margin-top: 35px;
    border-top: 1px solid var(--vert-sauge);
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.footer_menu ul li {
    display: block;
    flex: 1;
    text-align: center;
    max-width: 35ch;
}

.footer_menu ul li a {
    display:flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color:var(--accent-color);
}
.footer_menu ul li a > * {
    display: block;
}
.footer_menu ul li a img {
    height: 100px;
    margin: 10px;
}


main img {
    max-width: 100%;
    margin: auto;
}

hr {
    width: 80%;
    height:0;
    border:0;
    border-top: 1px solid var(--vert-sauge);
    margin: 50px auto;
}


.bigtext {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin: 20px auto;
}

.floating_img {
    float: right;
    overflow: hidden    ;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    width: calc((100% - 80ch) / 2) !important;
    min-width: 40ch; 
}
.floating_img img {
    border-radius: 10px 0 0 10px;
}


x-blocks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2ch;
    margin: 20px 50px;
}

x-block {
    flex: 1;
    justify-content: center;
    min-width: 25ch;
    padding: 10px;
    background-color: var(--ocre-dore-clair);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 700px) {
    x-blocks {
        flex-direction: column;
        margin: 10px;
    }
}

.column-blocks > * {
    flex: 1;
    min-width: 25ch;
}

@media screen and (max-width: 1000px) {
    .floating_img {
        float: none;
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important; 
    }
}

.hero {
    background-color: var(--hero-color);
    color: white;
    font-weight: lighter;
    font-size:1.8rem;
    border: 3px solid #f1f1f1;
    z-index: 2;
    margin:1em auto 0 auto;
    text-align: center;
    width:calc(100% - 40px); 
    padding:20px;
    border:0;
    position:relative;
    border-top: 5px solid var(--vert-sauge);
}


.bg-hero {
    width: 100%; 
    min-height: calc(50vh + 10em);
    transition: background-image 0.2s ease-in-out;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position:relative;
    border-bottom: 5px solid var(--vert-sauge);
    margin-bottom:2rem;
}

.hero + .bg-hero::before {
    height: 5vh;
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    content: "";
    z-index: 500;
    background-image: linear-gradient(180deg,var(--hero-color) 0%, rgba(247,245,239, 0) 100%);
}


h5 {
    font-size: 1em;
}

.offres {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    flex-direction: row;
    align-items:flex-start;
    justify-content: start;
    flex-wrap: wrap;
    padding: 20px;
    margin: 20px auto;
}

@media screen and (min-width: 800px) {
    .offres {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (min-width: 1200px) {
    .offres {
        grid-template-columns: repeat(4, 1fr);
    }
}

.offre {
    height:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 0 20px;
    border: 2px solid var(--ocre-dore-clair);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.offre h4 {
    text-transform: uppercase;
    display:block;
    width:100%;
    text-align: center;
    border-bottom: 2px solid var(--ocre-dore-clair);
    padding-bottom: 10px;
}


.footnotes:target {
   background-color: #ffa;
}

.footnotes {
    font-size:0.8em;
}
