:root {
    --pink: #f26d91;

    --header-bg-color: #fff6ee;
    --main-bg-color: var(--header-bg-color);
    --link-fr-color: #000000;
    --link-active-bg-color: var(--pink);
    --link-active-fr-color: #ffffff;
    --link-hover-bg-color: #f26e914f;
    --menu-toggle-color: #000000;

    --banner-bg-color: #ffffff;
    --button-one-bg-color: #f2a922;
    --button-one-fr-color: #ffffff;
    --button-two-bg-color: var(--pink);
    --button-two-fr-color: #ffffff;

    --footer-bg-color: #1d1b1a;
    --footer-fr-color: #ffffff;

    --main-max-width: 1000px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--footer-bg-color);
    margin: 0;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4 {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
}

main {
    flex: 1;
    font-family: "Roboto", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13pt;
    background-color: var(--main-bg-color);
}

main h1 {
    font-size: 20pt;
    margin-top: 0;
}

main h2 {
    font-size: 17pt;
}

main h3 {
    font-size: 14pt;
}

header {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
}

header nav {
    display: flex;
    width: 100%;
    height: 200px;
    background: var(--header-bg-color);
    align-items: center;
    justify-content: center;
}

#nav-links a.active {
    background-color: var(--link-active-bg-color);
    color: var(--link-active-fr-color);
}

#nav-links a.active:hover {
    background-color: var(--link-active-bg-color);
}

#nav-links a:hover {
    background-color: var(--link-hover-bg-color);
}

#nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav-links a {
    display: inline-block;
    border-radius: 20px;
    text-decoration: none;
    color: var(--link-fr-color);
    margin: 0 0.5em;
    font-size: 20px;
    padding: 0.5em 0.75em;
    transition: background-color 0.3s ease;
}

#social-media {
    display: flex;
    flex-flow: row nowrap;
}

#social-media a {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 0.25em;
    padding: 0.5em 0.2em;
}

header nav #logo {
    background-image: url("../images/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 175px;
    height: 100%;
}

/* Menu toggle button for mobile view */
header nav #menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

header nav #menu-toggle span {
    background-color: var(--menu-toggle-color);
    height: 3px;
    width: 25px;
    margin: 3px;
    border-radius: 5px;
}

main>* {
    max-width: var(--main-max-width);
    margin: 0 auto;
}

main>section {
    padding: 0.25em 1em;
}

main>form {
    padding: 0.25em 1em;
}

main>section:last-child {
    padding: 0.25em 1em 2em;
}

#banner {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    background-color: var(--banner-bg-color);
    margin-bottom: 15px;
    max-width: 1100px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#banner img {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    order: 1;
    object-fit: cover;
    width: 50%;
    flex-basis: 60%;
}

#banner-message {
    display: flex;
    flex-flow: column nowrap;
    padding: 1em 1.5em 1em 1.5em;
    order: 2;
    flex-basis: 40%;
}

#banner-message .buttons {
    margin: auto 0 0 0;
}

#banner-message h1 {
    margin: 10px 0 0 0;
}

.buttons {
    display: flex;
    flex-flow: column wrap;
}

a.button {
    display: inline-block;
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    background-color: var(--button-one-bg-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--button-one-fr-color);
    padding: 0.5em 1em;
    text-wrap: nowrap;
    text-align: center;
    margin: 5px;
}

a.contact {
    background-color: var(--button-two-bg-color);
    color: var(--button-two-fr-color);
}

footer {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    background-color: var(--footer-bg-color);
    color: var(--footer-fr-color);
    margin: 0 auto;
}

footer #content {
    margin: auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    font-size: 15px;
    max-width: 1000px;
    padding-left: 1.5em;
    padding-right: 1.5em;
}

footer>* {
    margin-top: 15px;
    margin-bottom: 15px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer p {
    align-self: flex-end;
}

footer a {
    color: #ffffff;
}

.home-section,
.model-section {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

.home-section>h2,
.model-section>h2 {
    text-align: center;
    font-size: 20pt;
    margin-bottom: 40px;
}

.table h3 {
    text-align: center;
}

.table {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    width: 100%;
}

.table>* {
    flex: 0 0 30%;
}

.parcours article {
    flex: 0 0 45%;
    background-color: var(--banner-bg-color);
    border-radius: 20px;
    padding: 10px;
}

.parcours ol {
    list-style-position: outside;
    padding-left: 30px;
}

.parcours ol ::marker {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--pink);
}

.achat-machine ol ::marker {
    color: var(--button-one-bg-color);
}

.parcours ol li {
    padding-left: 5px;
    margin-bottom: 5px;
}

.table img {
    width: 75px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.home-section .button {
    margin: 10px auto 10px auto;
}

form {
    display: flex;
    flex-flow: column nowrap;
}

form>* {
    margin-bottom: 10px;
}

form input[type=text],
input[type=tel],
input[type=email],
textarea {
    font-family: "Roboto", serif;
    font-weight: 400;
    font-style: normal;
    box-sizing: border-box;
    width: 100%;
    margin-top: 5px;
    font-size: 12pt;
}

form input[type=text],
input[type=tel],
input[type=email] {
    height: 30px;
}

form textarea {
    height: 150px;
}

form button {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    margin-top: 20px;
    background-color: var(--pink);
    border-radius: 20px;
    padding: 0.5em 1em;
    border: none;
    color: white;
    font-size: 13pt;
    align-items: center;
    margin: 15px auto;
    width: 100%;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #fd7a9d;
}

form .important_label {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13pt;
    color: #B2790F;
}

form fieldset {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

form #name {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

form #name>* {
    flex: 0 0 47%;
    margin: 0;
}

#notification {
    display: none;
    margin-bottom: 20px;
    padding: 30px;
    border-radius: 5px;
    font-size: 13pt;
    text-align: center;
    font-weight: bold;
}

#notification.sent {
    display: block;
    background-color: #03a647;
    color: white;
}

#notification.rate_limit {
    display: block;
    background-color: #bf6517;
    color: white;
}

#notification.error {
    display: block;
    background-color: #9c150c;
    color: white;
}

table {
    width: 100%;
}

th {
    background-color: #8c3b67;
    color: white;
    height: 30px;
}

tr {
    height: 30px;
}

td {
    padding: 5px;
}

.prices tr>td:last-of-type {
    width: 20%;
}

.prices thead>tr>th:last-of-type>sup>a {
    color: white;
}


tr:nth-child(even) {
    background-color: #8c3b680e;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: rgb(0, 0, 0);
}

.breadcrumb ol {
    padding-left: 0;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li:not(:last-child)::after {
    content: "»";
}

.pagination {
    text-align: center;
    width: 100%;
    padding: 0;
}

.pagination a {
    color: rgb(0, 0, 0);
}

.pagination li {
    display: inline;
    margin-left: 5px;
}

#product-showcase {
    border-radius: 15px;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    background-color: var(--banner-bg-color);
    margin: 0 auto;
    margin-bottom: 20px;
}

#product-showcase img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    object-fit: cover;
    width: 100%;
}

#product-showcase #product-msg {
    padding: 1em 1em 1em 1em;
    display: flex;
    flex-flow: row nowrap;
    order: 2;
    justify-content: space-between;
    align-items: center;
}

#product-showcase .product-title-price {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-content: start;
}

.product-title-price h1 {
    margin-bottom: 0.25em;
}

.item-title-price h3 {
    margin: 0;
    font-size: 18pt;
}

.product-title-price .price,
.item-title-price .price {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    font-size: 17pt;
}

.product-title-price .price {
    font-size: 17pt;
}

.available {
    color: #3b8c48;
}

.sold {
    color: grey;
}

.toOrder {
    color: #8c3b67;
}

img.sold {
    filter: grayscale(0.9);
}

.product-title-price p,
.item-title-price p {
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
}

.product-title-price p {
    font-size: 13pt;
}

#product-showcase #button {
    margin-top: auto;
}

.items-showcase {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, 33%);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    margin-bottom: 20px;
}

.home-section>.items-showcase {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    margin-bottom: 20px;
    overflow-x: scroll;
    width: 100%;
    max-height: 325px;
}

.home-section>.items-showcase .items {
    width: 300px;
    flex: 0 0 30%;
}

.items-showcase .items {
    display: flex;
    flex-flow: column nowrap;
    text-decoration: none;
    color: black;
    width: 100%;
    background-color: var(--banner-bg-color);
    border-radius: 20px;
    min-height: 325px;
}

.items-showcase .items img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.item-title-price {
    padding: 1em 1em 1em 1em;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    flex: auto;
}

.price-status {
    margin-top: auto;
}

.slideshow-container {
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: #00000021;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #717171;
}

.right-side-footer {
    text-align: right;
}

.figure {
    max-width: 100%;
    border-radius: 20px;
    margin-top: 20px;
}

.photo {
    max-width: 400px;
}

.faq-container {
    margin-bottom: 1em;
}

.faq-item {
    border: 1px solid #ddd;
    padding: 1em;
    margin-top: 0.5em;
}

.faq-question {
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--pink);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 1%;
}

.faq-arrow {
    transition: transform 0.2s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(90deg);
}

a.call_to_act {
    display: block;
    width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.emoji {
    margin-right: 0.2em;
}

#blog-posts {
    display: flex;
    flex-flow: column nowrap;
}

#blog-posts article {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    background-color: var(--banner-bg-color);
    margin-bottom: 15px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#blog-posts article>img {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    object-fit: cover;
    width: 40%;
}

#article-msg {
    box-sizing: border-box;
    display: flex;
    flex-flow: column nowrap;
    padding: 1em 1.5em 1em 1.5em;
    order: 2;
    width: 60%;
}

#article-msg>h1>a {
    color: black;
    text-decoration: none;
}

#article-msg a.button {
    width: 100px;
    margin: auto 0 0 auto;
}

#article-msg h1+p {
    margin: 0;
}

/* Small screens */
@media all and (max-width: 900px) {
    #banner {
        flex-flow: column nowrap;
        border-top-left-radius: 0px;
        border-bottom-right-radius: 0px;
        border-top-right-radius: 0px;
        border-top-left-radius: 0px;
    }

    #banner img {
        order: 2;
        width: 100%;
        height: 100%;
        border-top-left-radius: 0px;
        border-bottom-right-radius: 0px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    #banner-message {
        order: 1;
    }

    header nav {
        width: 100%;
        height: 80px;
        justify-content: space-between;
        border-bottom: 1px black;
    }

    header nav #logo {
        width: 80px;
        height: 100%;
        margin-left: 20px;
    }

    header nav #menu-toggle {
        display: flex;
        margin-right: 20px;
    }

    #nav-links {
        z-index: 999;
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        left: 0;
        padding-top: 0px;
        padding-bottom: 10px;
        background-color: var(--header-bg-color);
        border-bottom: 1px solid #333333;
    }

    #nav-links.withoutannounce {
        top: 80px;
    }

    #nav-links.withannounce {
        top: 130px;
    }

    #nav-links li {
        width: 100%;
    }

    #nav-links.active {
        display: flex;
        align-items: center;
    }

    #nav-links a {
        display: inline-block;
        text-align: center;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 10px 0 10px 0;
        border-radius: 0;
    }

    #social-media a {
        display: inline-block;
        width: 30px;
        height: 30px;
        margin: 0 0.25em;
        padding: 0.5em;
    }

    footer #content {
        flex-flow: column nowrap;
        justify-content: space-around;
    }

    .right-side-footer {
        text-align: left;
    }

    .table {
        flex-flow: column nowrap;
        justify-content: space-around;
    }

    .table article:not(:last-child) {
        margin-bottom: 20px;
    }

    .table.parcours article {
        flex-basis: 0;
    }

    form fieldset {
        flex-flow: column nowrap;
    }

    #product-showcase {
        flex-flow: column nowrap;
    }

    #product-showcase #product-msg {
        flex-flow: column nowrap;
        align-items: normal;
    }

    #product-showcase .buttons {
        margin-top: 20px;
    }

    .items-showcase {
        grid-template-columns: repeat(1, 100%);
    }

    #blog-posts article {
        flex-flow: column nowrap;
    }

    #blog-posts article>img {
        width: 100%;
        max-width: 100%;
        border-top-left-radius: 20px;
        border-bottom-right-radius: 0px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0px;
    }

    #article-msg {
        width: 100%;
    }
}


#annoucement {
    height: 50px;
    display: flex;
    justify-content: center;
    background-color: #f2a922;
    color: white;
}

#annoucement p {
    padding: 0.5em;
    align-self: center;
    font-size: 12pt;
    text-align: center;
}

blockquote {
    margin: 0px auto;
    padding: 20px;
    border-left: black 2px solid;
}

blockquote>p {
    margin: 0px;
}

.step {
    display: flex;
    flex-flow: column nowrap;
}

.step > h2 {
    margin-bottom: 20px;
    text-align: center;
}

.step > h3 {
    margin: 0;
}

#step1 > input, #step5 > input {
    margin: 5px auto;
}

.stepform {
    display: flex;
    flex-flow: column nowrap;
    margin-top: 20px;
    margin-bottom: 10px;
}

.stepform > * {
    margin-bottom: 10px;
}

.step input[type="button"], input[type="submit"] {
    margin: 5px;
    max-width: 350px;
    display: block;
    font-family: "Patua One", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12pt;
    background-color: var(--button-one-bg-color);
    color: var(--button-one-fr-color);
    border-radius: 20px;
    text-decoration: none;
    padding: 0.5em 1em;
    text-align: center;
    text-wrap: wrap;
    border: none;
    cursor: pointer;
}

.step input[type="button"]:disabled, .step input[type="submit"]:disabled {
    background-color: white;
    border: 1px solid #8a6829;
    color: #8a6829;
}

.appointment {
    margin: 0 auto;
    justify-content: center;
    max-width: 100%;
    min-width: 50%;
}

.side-by-side {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
}

.reduced > * {
}

#slots-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    overflow: scroll;
    max-height: 375px;
}

.day {
    display: flex;
    flex-direction: column;
    margin: 10px;
    width: 18%;
}

.day > h3 {
    margin: 0;
    text-align: center;
}

.day > h3 > span {
  display: block;
}

.day > ul {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    list-style-type: none;
    padding: 0;
}

.slot-btn {
    width: 100%;
    border: 1px solid #f26d91;
    background-color: white;
    color: #f26d91;
    margin: 5px;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.slot-btn.selected {
    background-color: #f26d91;
    color: white;
}

.slot-btn:hover {
    background-color: #f26d91;
    color: white;
}

.hidden {
    display: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}