body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    position: relative;
    width: 100%;
    height: 500px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 70px;
    z-index: 0;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.baseline {
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.baseline p {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.cta-button-large {
    padding: 20px 30px;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    background-color: #ff7c00;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    margin-top: -30px;
    display: inline-block;
}

.cta-button-large:hover {
    background-color: #e56c00;
}

/* Style pour le bouton "Configurer ma porte métallique" */
.cta-button-configure {
    padding: 20px 30px;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff; /* Typo blanche */
    background-color: #28a745; /* Fond vert */
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    margin-top: -30px;
    display: inline-block;
    margin-left: 15px; /* Espace entre les deux boutons */
}

.cta-button-configure:hover {
    background-color: #218838; /* Couleur plus foncée au survol */
}


.search-bar-container {
    width: 80%;
    margin: 20px auto;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 2;
}

#search-bar {
    width: 80%;
    padding: 10px;
    color: black;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.search-results {
    position: absolute;
    background: white;
    width: 80%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    display: none;
    left: 50%;
    text-align: left;
    top: calc(100% + 5px);
    transform: translateX(-50%);
    z-index: 2;
}

.search-result-item {
    padding: 10px;
    text-align: left;
    color: black;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f0f0f0;
    color: cornflowerblue;
}

.container-main {
    width: 100%;
    padding: 0px;
    position: relative;
    z-index: 0;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0;
    flex: 1;
    width: 100%;
}

.product {
    background: white;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: calc(30% - 10px);
    text-align: left;
    border-radius: 5px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 550px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.product img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2px;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 50px;
    padding-left: 10px;
    padding-right: 10px;
}

.product-content h2 {
    text-align: center;
    font-size: 1em;
    margin: 10px 0;
    color: black;
}

.product-content p {
    margin: 5px 0 0 0;
    width: 100%;
    text-align: left;
    flex-grow: 1;
    font-size: 0.9em;
}

.product-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

.pictograms {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 2px;
    overflow: hidden;
}

.pictograms img {
    width: 50px;
    height: auto;
}

.tags {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    justify-content: center;
}

.tag {
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
}

.tag-standard {
    background-color: #34C352;
}

.tag-delai-rapide {
    background-color: #2A8EC1;
}

.tag-sur-mesure {
    background-color: #FF7D00;
}

.tag-5-6-semaines {
    background-color: #3AA59F;
}

.cta-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #ff7c00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.72em;
    cursor: pointer;
    border: none;
    padding: 7.2px 14.4px;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #084352;
}

.price-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.price {
    font-weight: bold;
    color: orange;
    font-size: 1.1em;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.filter-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-right: 1px solid #ccc;
    margin-bottom: 20px;
    width: 180px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.filter-title {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-options label {
    font-size: 0.8em;
    color: #333;
    display: flex;
    align-items: center;
}

.filter-options input {
    margin-right: 5px;
}

.show-more {
    cursor: pointer;
    color: #007BFF;
    font-size: 0.8em;
    margin-top: 5px;
    text-align: left;
}

.reset-button {
    background-color: #ff7c00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 7.2px 14.4px;
    cursor: pointer;
    font-size: 0.72em;
    margin-top: 10px;
}

.reset-button:hover {
    background-color: #084352;
}

.pagination {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0;
}

.pagination button {
    padding: 10px;
    margin: 0 5px;
    border: none;
    background-color: #ff7c00;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button:hover {
    background-color: #e56c00;
}

.pagination button.active {
    background-color: #e56c00;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .product {
        width: 45%;
    }
}

@media (max-width: 950px) {
    .product {
        width: 40%;
        height: 600px;
    }
}

@media (max-width: 800px) {
    .product {
        width: calc(100% - 10px);
        margin: 0 5px;
        height: 600px;
    }
}

@media (min-width: 800px) {
    .filter-button {
        display: none;
    }
}

@media (max-width: 799px) {
    .product {
        width: calc(100% - 10px);
        margin: 0 5px;
        height: 850px;
    }
}

@media (max-width: 599px) {
    .product {
        width: calc(100% - 10px);
        margin: 0 5px;
        height: 650px;
    }

    .filter-container {
        display: none;
    }

    .filter-button {
        display: block;
        position: fixed;
        top: 110px;
        left: 14%;
        transform: translateX(-50%);
        background-color: #ff7c00;
        color: white;
        border: none;
        border-radius: 4px;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 1em;
        z-index: 3;
    }

    .container-main {
        width: 100%;
        padding: 0px;
        position: relative;
        z-index: 0;
    }

    .filter-container.mobile-active {
        display: flex;
        position: fixed;
        bottom: 50px;
        left: 30%;
        right: 10px;
        top: 110px;
        background: white;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        flex-direction: column;
        overflow-y: auto;
        z-index: 3;
    }

    .filter-section {
        display: flex;
        flex-direction: column;
        text-align: left;
        width: 100%;
        margin-bottom: 10px;
    }

    .filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .filter-options label {
        flex: 1 1 auto;
    }

    .filter-close-button {
        display: block;
        background-color: #ff7c00;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 1em;
        margin-top: 10px;
        width: 100%;
    }

    .search-bar-container {
        width: 0%;
        margin: 0px auto;
        text-align: center;
        position: relative;
        display: flex;
        justify-content: center;
        z-index: 1;
    }

    #search-bar {
        width: 0%;
        padding: 0px;
        color: black;
        font-size: 1em;
        border-radius: 0px;
        border: 0px solid #ccc;
    }

    .search-results {
        position: absolute;
        background: white;
        width: 0%;
        max-height: px;
        overflow-y: auto;
        border: 0px solid #ccc;
        display: none;
        left: 50%;
        text-align: left;
        top: calc(100% + 5px);
        transform: translateX(-50%);
        z-index: 1;
    }

    .search-result-item {
        padding: 0px;
        text-align: left;
        color: black;
        cursor: pointer;
    }

    .search-result-item:hover {
        background-color: #f0f0f0;
        color: cornflowerblue;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
}

.modal-content input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #023753;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content button:hover {
    background-color: #023753;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: black;
    cursor: pointer;
}

header h1, header h2, header h3, header h4, header h5, header h6 {
    font-size: 2.5em;
    margin-top: 20px;
    color: white;
}

/* Centrer le produit configurateur et limiter sa largeur à 400px */
.product.configurator {
    max-height: 550px;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer les éléments à l'intérieur horizontalement */
    justify-content: center; /* Centrer les éléments à l'intérieur verticalement */
    position: relative; /* Nécessaire pour le positionnement absolu du bouton */
}

/* Classe pour le produit configurateur lorsqu'il est seul */
.product.configurator.full-width {
    width: 100%;
    max-width: 400px;
    flex: 1 1 100%;
    margin: 0 auto;
    height: 1050px;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    position: relative; /* Pour que le bouton soit positionné correctement */
}

/* Conteneur de prix stylisé pour le produit configurateur */
.configurator-price-container {
    margin-top: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Style pour le label "À partir de" */
.price-label {
    font-size: 1em;
    color: #333;
    text-align: center;
}

/* Style pour la valeur du prix "xxx €ht" */
.price-value {
    font-size: 1.5em;
    color: orange;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

/* Style pour le texte "(hors livraison)" */
.price-delivery {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* Agrandir le bouton du produit configurateur et augmenter la taille du texte */
.configurator .cta-button.cta-devis {
    font-size: 1.1em;
    padding: 7px 14px;
    background-color: #ff7c00;
    border-radius: 6px;
    display: block;
    text-align: center;
    margin: 0px auto;
    transition: background-color 0.3s ease;
}

/* Positionner le bouton au centre de l'image lorsque le produit configurateur est seul */
.product.configurator.full-width .cta-button.cta-devis {
    font-size: 1.3em;
    padding: 13px 14px;
    background-color: #ff7c00;
    border-radius: 6px;
    display: block;
    text-align: center;
    margin: 371px 35px;
    transition: background-color 0.3s ease;
    z-index: 2; /* Assure que le bouton soit au-dessus de l'image */
}

.configurator .cta-button.cta-devis:hover {
    background-color: #e56c00;
}
