/* Styles généraux */
body {
    background-image: url('../images/fond-creadams2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;

}

@font-face {
    font-family: 'vikingTypo';
    src: url('../FontPolice/vikingTypo.woff') format('truetype');
}

.header-container {
    background-color: #030303;
    padding: 10px 20px;
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
}

.logo {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}


.navbar-toggler {
    border-color: #ecb833;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28235, 184, 51, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar {
    background-color: #030303;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    width: 100%;
}

.navbar-nav {
    background-color: #1c1818;
    border: 1px solid #ecb833;
    width: 100%;
}

.navbar-nav .nav-item .nav-link {
    color: white;
    font-size: 1.2em;
    margin-left: 5px;
}

.fas {
    color: #ecb833;

}

.navbar-nav .nav-link:hover {
    background-color: #555;
}

.navbar-nav .nav-link.active {
    background-color: #777;
}

.navbar-collapse {
    width: 100%;
    background-color: #1c1818;
    position: absolute;
    top: 40px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.navbar-nav .dropdown-menu {
    background-color: #1c1818; 
    border: 1px solid #ecb833; 
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: #fff; 
    transition: background 0.3s ease-in-out;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #777; 
    color: #fff;
}

.content {
    padding: 0 0;
    flex-grow: 1;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    padding: 10px 0;
    color: white;
    background-color: #030303;
    max-width: 100%;
    margin-bottom: 10px;
    font-family: 'vikingTypo', sans-serif;
    font-size: 2rem;
}

@media (max-width: 1024px) {
    .user-greeting {
        font-size: 0.7em;
    }

    h1 {
        font-size: 1.7rem;
    }

    .navbar-nav .nav-item .nav-link {
        font-size: 1.1em; /* Légère réduction pour les écrans moyens */
    }
}

@media (max-width: 768px) {
    .user-greeting-text {
        font-size: 0.7em;
        text-align: center;
        margin-bottom: 10px; /* Créer un espacement sous la navbar */
        padding: 5px 0;
    }

    h1 {
        font-size: 1.3rem;
    }

    .navbar-nav .nav-item .nav-link {
        font-size: 1em; /* Réduction de la taille de la police pour les petits écrans */
    }
}

@media (max-width: 480px) {
    .user-greeting-text {
        font-size: 0.5em;
        margin-top: 5px;
    }

    h1 {
        font-size: 1rem;
    }

    .navbar-nav .nav-item .nav-link {
        font-size: 0.9em; /* Plus petite taille de police pour les très petits écrans */
    }
}

.title {
    color: white;
}

.user-greeting {
    font-size: 1em;
    color: #ecb833;
    padding: 5px 10px;
    text-transform: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
}

/* Footer styles */
.footer {
    background-color: #1c1818;
    color: white;
    padding: 10px 0;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer a {
    color: #ecb833;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .footer-section {
    padding: 5px;
}

.footer .footer-section h5 {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
}

.footer .footer-section ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer .footer-section ul li {
    margin-bottom: 5px;
}

.footer .footer-section .social-links {
    display: flex;
    margin-top: 5px;
}

.footer .footer-section .social-links a {
    margin: 10px;
    font-size: 2em;
    color: #ecb833;
}

.footer .text-center {
    margin-top: 10px;
    font-size: 0.9em;
}

.about-content {
    padding: 20px;
    flex-grow: 1;
}

.about-content p {
    color: white;
    font-size: 1em;
    line-height: 1.6;
    text-align: center;
}

/* Styles pour la page des réalisations */

.realisation-page .card {
    background-color: #1c1818;
    border: 2px solid #a22929;
    border-radius:  10px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.realisation-page .card-img-top {
    height: 200px;
    object-fit: contain;
    width: 100%;
}

.realisation-page .card-body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
}
.realisation-page .card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.realisation-page .card-title {
    color: #ecb833;
    font-size: 1.2em;
    text-align: center;
    margin-top: 10px;
}

.realisation-page .card-text-description {
    font-size: 1em;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.realisation-page .card-text-availability,
.realisation-page .card-text-price,
.realisation-page .card-text-stock {
    margin-top: auto;
    margin-bottom: 10px;
    color: #ecb833;
}

.realisation-page .carousel-item img {
    height: 200px;
    object-fit: contain;
    width: 100%;
}

/* Réduction des cartes pour les tablettes */
@media (max-width: 1024px) {
    .realisation-page .card {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Une seule colonne sur mobile */
@media (max-width: 767px) {
    .realisation-page .card {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    .realisation-page .search-bar {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
        margin-right: 20px;
        font-size: 0.6rem;
    }

    .realisation .btn-search {
        background-color: black;
        color: white;
        border-color: white;
        border-radius: 5px;
    }
}

.realisation-page .pagination-container {
    margin-top: 20px;
}

.realisation-page .pagination {
    background-color: transparent;
}

.realisation-page .page-item.active .page-link {
    background-color: #a22929;
    border-color: #a22929;
    color: white;
}

.realisation-page .page-link {
    color: #ecb833;
    background-color: #1c1818;
    border: 1px solid #ecb833;
}

.realisation-page .page-link:hover {
    background-color: #555;
    color: white;
}

.realisation-page .btn-primary-detail {
    background-color: #a22929;
    color: white;
    border-color: #ecb833;
    width: 100%;
    text-align: center;
}

.realisation-page .btn-primary-detail:hover {
    background-color: #ecb833;
    border-color: #ecb833;
    color: white;
}

.realisation-page .btn-primary-cart {
    background-color: #ecb833;
    color: white;
    border-color: #a22929;
    width: 100%;
    text-align: center;
}

.realisation-page .btn-primary-cart:hover {
    background-color: #a22929;
    border-color: #a22929;
    color: white;
}

.realisation-page .search-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    margin-right: 20px;
}

.realisation-page .btn-search {
    background-color: black;
    color: white;
    border-color: white;
    border-radius: 5px;
}

.realisation-page .btn-search:hover {
    background-color: #ecb833;
    color: white;
}


/* Style pour la page d'inscription */
.registration-page {
    padding: 20px;
    color: white;
}

.registration-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
    max-width: 100%;
    margin: 0 auto;
}

.registration-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
}

.registration-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.registration-page .form-group {
    margin-bottom: 1rem;
}

.registration-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
    width: 100%;
    padding: 10px;
    font-family: inherit;
}

.registration-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.registration-page .btn-primary {
    background-color: #a22929;
    border: 1px solid #e0a800;
    color: white;
    width: 100%;
    padding: 10px;
}

.registration-page .btn-primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.registration-page .text-center {
    text-align: center;
}
/* Conteneur principal */
.registration-page .password-group {
    position: relative; 
}

.registration-page .password-group .password-field {
    width: 100%; 
    padding-right: 40px;
}

.registration-page .password-group .input-group .toggle-password {
    position: absolute;
    top: 50%; /* Aligne verticalement au centre du champ */
    right: 10px; /* À droite du champ */
    transform: translateY(-50%); /* Ajuste pour centrer parfaitement */
    background: none;
    border: none;
    color: #e0a800;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    font-size: 1.2rem;
}

.registration-page .password-group .input-group .toggle-password:hover {
    color: #e0c800;
}

/* Boutons responsive */
@media (max-width: 768px) {

}


@media (max-width: 768px) {
    .registration-page .form-control {
        font-size: 1rem;
        color: white;
    }
        .registration-page .password-group .toggle-password {
        padding: 0 5px;
        margin-left: -35px;
    }
    .registration-page .card-body .form-control .required label{
        font-size: 1rem;
    }

    .registration-page .btn-primary {
        font-size: 1rem;
    }
}
@media (max-width: 500px) {
    .registration-page .card-body .form-control .required label{
        font-size: 0.8rem;
    }

    .registration-page .btn-primary {
        font-size: 0.8rem;
    }
}


/* Social icon */
.social-icons {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.social-icons a {
    color: #ecb833;
    text-decoration: none;
}

.social-icons i {
    font-size: 32px;
}

.social-icons img {
    width: 32px;
    height: 32px;
}

/* Style pour la page de connexion */
.login-page {
    padding: 20px;
    color: white;
}

.login-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.login-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
}

.login-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.login-page .form-group {
    margin-bottom: 1rem;
}

.login-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
}

.login-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.login-page .form-check-input {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
}

.login-page .form-check-input:checked {
    background-color: #a22929;
    border-color: #a22929;
}


.login-page .btn-custom {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
}

.login-page .btn-custom:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}

.login-page a {
    color: #e0a800;
}

.login-page a:hover {
    color: #d6a000;
}

.login-page .text-center {
    text-align: center;
}

@media (max-width: 576px) {
    .login-page .header-container-login h2 {
        font-size: 1.25rem;
    }
}


/* Styles pour la page "Mon Compte" */
.account-page {
    padding: 20px;
    color: white;
}

.account-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.account-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 10px;
}

@media (max-width: 576px) {
    .account-page .card-header h2 {
        font-size: 1.25rem;
    }
}

.account-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.account-page .form-group {
    margin-bottom: 1rem;
}

.account-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
}

.account-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.account-page .btn-custom {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
}

.account-page .btn-custom:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}

.account-page .w-100 {
    width: 100%;
}

.account-page .text-center {
    text-align: center;
}


/* Style pour la page de confirmation de suppression */
.delete-confirm-page {
    padding: 20px;
    color: white;
}

.delete-confirm-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.delete-confirm-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
    text-align: center;
}

.delete-confirm-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.delete-confirm-page .form-group {
    margin-bottom: 1rem;
}

.delete-confirm-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
}

.delete-confirm-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.delete-confirm-page .btn-danger {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.delete-confirm-page .btn-danger:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}

.delete-confirm-page .btn-secondary {
    background-color: #6c757d;
    border: 1px solid #6c757d;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.delete-confirm-page .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
}

@media (max-width: 576px) {
    .delete-confirm-page .card-header h2 {
        font-size: 1.25rem;
    }
}

/*Style page d'ajout d'article */
.new-article-page {
    padding: 20px;
    color: white;
}

.new-article-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.new-article-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
    text-align: center;
}

.new-article-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.new-article-page .form-group {
    margin-bottom: 1rem;
    color: #e0a800;
}

.new-article-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
    width: 100%;
}

.new-article-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.new-article-page .form-check-input {
    margin-right: 0.5rem;
}


.new-article-page .custom-file-input {
    cursor: pointer;
}

.new-article-page .btn-custom {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.new-article-page .btn-custom:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}

.new-article-page .header-container-article {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.new-article-page .form-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-thumbnail-custom {
    max-width: 50%;
    max-height: 50%;
    width: auto;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .new-article-page .card-header,
    .new-article-page .card-body,
    .new-article-page .form-control,
    .new-article-page .form-check-label,
    .new-article-page .custom-file-label {
        text-align: left;
    }

    .new-article-page .btn-custom {
        margin-top: 15px;
    }

    .new-article-page .custom-file-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .new-article-page .form-title {
        font-size: 1.2rem;
    }
}

/* Styles pour la page modif article*/
.edit-article-page {
    padding: 20px;   
    color: white;
}

.edit-article-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.edit-article-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
    text-align: center;
}

.edit-article-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.edit-article-page .form-group {
    margin-bottom: 1rem;
    color: #e0a800;
}

.edit-article-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
    width: 100%;

}

.edit-article-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.edit-article-page .form-check-input {
    margin-right: 0.5rem;
}


.edit-article-page .custom-file-input {
    cursor: pointer;
}


.edit-article-page .btn-custom {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.edit-article-page .btn-custom:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}

.edit-article-page .header-container-article {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.edit-article-page .form-title {
    white-space: nowrap; /* Empêche le texte de se couper*/
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute des "..." si le texte dépasse */
}

.edit-article-page .img-thumbnail-custom {
    max-width: 50%;
    max-height: 50%;
    width: auto;
    height: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .edit-article-page .card-header,
    .edit-article-page .card-body,
    .edit-article-page .form-control,
    .edit-article-page .form-check-label,
    .edit-article-page .custom-file-label {
        text-align: left;
    }

    .edit-article-page .btn-custom {
        margin-top: 15px;
    }

    .edit-article-page .custom-file-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap; /* Éviter que le texte dépasse */
    }

    .edit-form-title {
        font-size: 0.8rem;
    }
}

/*Style page détail article */
.detail-page {
    margin-top: 40px;
}

.detail-page .article-card {
    background-color: #1c1818;
    color: white;
    padding: 20px;
    border: 2px solid #a22929;
    border-radius: 8px;
}

.detail-page .main-article-img {
    max-width: 80%;
    height: auto;
    border: 2px solid #ecb833;
    border-radius: 8px;
}

.detail-page .extra-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #a22929;
    border-radius: 8px;
    cursor: pointer; /* Ajouté pour indiquer que l'image est cliquable */
}

.detail-page .extra-image:hover {
    border-color: #ecb833;
}

.detail-page .text-yellow {
    color: #ecb833;
}

.detail-page .btn-primary-back, .btn-primary-cart {
    background-color: #a22929;
    color: white;
    border: 1px solid #ecb833;
    margin-top: 10px;
}

.detail-page .btn-primary-back:hover, .btn-primary-cart:hover {
    background-color: #ecb833;
    color: white;
}

@media (max-width: 991px) {
    .detail-page .extra-image {
        max-width: 80%;
        height: auto;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .detail-page .extra-image {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }
}


/*Style pour la modale (panier qui s'affiche dynamiquement) */
.modal-header {
    background-color: #1c1818;
    color: #ecb833;
    border-bottom: 2px solid #a22929;
}

.modal-footer {
    background-color: #1c1818;
    border-top: 2px solid #a22929;
}


.modal-footer .btn-secondary {
    background-color: #a22929;
    color: white;
    border-color: #a22929;
}

.modal-footer .btn-primary {
    background-color: #ecb833;
    color: white;
    border-color: #ecb833;
}

.modal-body {
    background-color: #1c1818;
    color: white;
}

.modal-dialog {
    margin: 1.75rem auto;
}

@media (max-width: 780px) {
    .modal-header,
    .modal-body,
    .modal-footer,
    .modal-dialog,
    h5 {
        font-size: 0.8rem;
        padding: 10px;
    }

}

@media (max-width: 480px) {
    .modal-header,
    .modal-body,
    .modal-footer,
    .modal-dialog,
    h5 {
        font-size: 0.7rem;
        padding: 5px;
    }

}

/* Styles pour la page de panier */

.cart-page {
    color: white;
    margin: 0;
    width: 100%;
}

.cart-page .container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
}

.cart-page h1 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.cart-page #cart-items-container {
    margin-top: 20px;
}

.cart-page .cart-item {
    background-color: #2d2727;
    border: 2px solid #a22929;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.cart-page .cart-item h5 {
    color: #ecb833;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
}

.cart-page .cart-item p {
    color: #ecb833;
    margin-bottom: 5px;
    text-align: center;
}

.cart-page .cart-item img {
    display: block;
    margin: auto;
}

.cart-page .cart-item .btn-danger {
    background-color: #a22929;
    border-color: #a22929;
    color: white;
    display: block;
    margin: auto;
    width: 100%;
}

.cart-page .cart-item .btn-danger:hover {
    background-color: #ecb833;
    border-color: #ecb833;
}

.cart-page #delete-cart {
    background-color: #a22929;
    border-color: #a22929;
    color: white;
    display: block;
    margin: auto;
    width: 100%;
}

.cart-page #delete-cart:hover {
    background-color: #ecb833;
    border-color: #ecb833;
}

.total-price-container {
    background-color: #2d2727;
    border: 3px solid #a22929;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    color: #ecb833;
}

.cart-page .btn-primary {
    background-color: #ecb833;
    border: 3px solid #a22929;
}

.total-price {
    font-size: 20px;
    font-weight: bold;
}

/* Styles pour le formulaire d'oubli de mot de passe */
.forgot-password-page {
    padding: 20px;
    color: white;
}

.forgot-password-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.forgot-password-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
}

.forgot-password-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.forgot-password-page .form-group {
    margin-bottom: 1rem;
}

.forgot-password-page .form-control-forgot-password {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
}

.forgot-password-page .form-control-forgot-password:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.forgot-password-page .btn-forgot-password {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.forgot-password-page .btn-forgot-password:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}


/* Styles pour le formulaire de réinitialisation de mot de passe */
.reset-password-page {
    padding: 20px;
    color: white;
}

.reset-password-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.reset-password-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
}

.reset-password-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.reset-password-page .form-group {
    margin-bottom: 1rem;
}

.reset-password-page .form-control-reset-password {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
}

.reset-password-page .form-control-reset-password:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.reset-password-page .btn-reset-password {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.reset-password-page .btn-reset-password:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}


/* Styles pour la page de récapitulatif de la commande */
.order-summary-container {
    color: white;
    background-color: #2d2727;
    border: 2px solid #a22929;
    padding: 20px;
    border-radius: 15px;
}

.order-summary-container h1 {
    text-align: center;
    color: white;
    border-bottom: 2px solid #a22929;
    padding-bottom: 10px;
}

.order-item.card {
    background-color: #3d3d3d;
    border: 1px solid #a22929;
    margin-bottom: 15px;
    color: #ecb833;
}

.order-item .card-title {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.order-item .card-text {
    text-align: center;
    color: white;
}

.total-price {
    background-color: #3d3d3d;
    border: 2px solid #a22929;
    color: #ecb833;
    border-radius: 10px;
}

.paypal-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#paypal-button-container {
    width: 100%;
    max-width: 500px;
}

/* Styles pour la page du tableau de bord administratif */
.dashboard-page {
    color: white;
    margin: 0;
    width: 100%;
}

.dashboard-page h2 {
    text-align: center;
    margin-bottom: 15px;
    color: white;
    border: 2px solid #a22929;
    background-color: #2d2d2d;
    border-radius: 15px;

}

.dashboard-page .order, .dashboard-page .payment {
    background-color: #2d2727;
    border: 2px solid #a22929;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.dashboard-page .order p, .dashboard-page .payment p {
    color: #ecb833; /* Couleur du texte */
    margin-bottom: 5px;
    text-align: center;
}

.dashboard-page .order img {
    display: block;
    margin: auto;
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
}

.dashboard-page .btn-success, .dashboard-page .btn-danger, .dashboard-page .btn-dash-custom {
    display: block;
    margin: auto;
    width: 100%;
    color: white;
}

.dashboard-page .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    margin-bottom: 5px;
    border-radius: 10px;
}

.dashboard-page .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.dashboard-page .btn-danger, .dashboard-page .btn-dash-custom {
    background-color: #a22929;
    border: 1px solid #ecb833;
    border-radius: 10px;

}

.dashboard-page .btn-danger:hover, .dashboard-page .btn-dash-custom:hover {
    background-color: #ecb833;
    border-color: #ecb833;
    color: white;
}

.dashboard-page .custom-card {
    background-color: #2d2d2d;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #a22929;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 15px;

}

.dashboard-page .custom-img-container img {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.dashboard-page .custom-card .card-title {
    color: #e0a800;
    text-align: center;

}

.dashboard-page .custom-card .card-body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-page .card-text-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.dashboard-page .search-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    margin-right: 20px;
}

.dashboard-page .btn-search {
    background-color: black;
    color: white;
    border-color: white;
    border-radius: 5px;
}

.dashboard-page .btn-search:hover {
    background-color: #ecb833;
    color: white;
}

@media (max-width: 1340px) {
    .dashboard-page h2 {
        font-size: 1.2rem;
    }

    .dashboard-page .card-text-description {
        font-size: 0.8rem;
    }

    .dashboard-page .search-bar {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
        margin-right: 20px;
        font-size: 0.6rem;
    }

    .dashboard-page .btn-search {
        background-color: black;
        color: white;
        border-color: white;
        border-radius: 5px;
    }

}

/* Style pour le dashboard gestion utilisateurs */
.nav-tabs {
    justify-content: center; /* Centre les onglets horizontalement */
    margin-bottom: 20px;
    border: transparent;
    text-align: center;
}

.nav-tabs .nav-link {
    color: white;
    background-color: #2d2d2d;
    border: 1px solid #a22929;
}

.nav-tabs .nav-link.active {
    background-color: #a22929;
    color: white;
    border-bottom: none;
}

/* Tableau gestion utilisateurs */
.dashboard-page .user-management-page .user-management-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #2d2d2d;
}

.dashboard-page .user-management-page .user-management-table th,
.dashboard-page .user-management-page .user-management-table td {
    padding: 10px;
    border: 1px solid #a22929;
    text-align: center;
    color: white;
    background-color: #2d2d2d;
}

.dashboard-page .user-management-page .user-management-table th {
    background-color: #2d2d2d;
    color: #e0a800;
}

/* Boutons Désactiver et Anonymiser */
.dashboard-page .user-management-page .user-management-btn-warning,
.dashboard-page .user-management-page .user-management-btn-danger {
    background-color: #a22929;
    border: 1px solid #e0a800;
    padding: 10px;
    color: white;
    width: 50%;
    max-width: 175px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.dashboard-page .user-management-page .user-management-btn-warning:hover,
.dashboard-page .user-management-page .user-management-btn-danger:hover {
    background-color: #e0a800;
    color: #2d2d2d;
}

/* Style pour les cartes utilisateurs sur petits écrans */
.user-management-card {
    display: none; /* Masqué par défaut */
    background-color: #2d2d2d;
    color: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #a22929;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;

}

.user-management-card h3 {
    font-size: 1.5rem;
    color: #e0a800;
    margin-bottom: 10px;
}

.user-management-card p {
    margin-bottom: 5px;
}

.dashboard-page .user-management-page .user-management-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive pour petits écrans */
@media (max-width: 1340px) {
    .user-management-table {
        display: none; /* Masquer le tableau */

    }

    .dashboard-page .user-management-page .user-management-actions {
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .dashboard-page .user-management-page .user-management-btn-warning,
    .dashboard-page .user-management-page .user-management-btn-danger {
        font-size: 0.8rem;
        transition: background-color 0.3s ease;
        text-align: center;
        max-width: 125px;
    }

    .user-management-card {
        display: block; /* Afficher les cartes */
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* Grandes tailles d'écran - cacher les cartes */
@media (min-width: 1341px) {
    .user-management-card {
        display: none;
    }
}


/* Styles liste article admin */
.list-article-page .card {
    background-color: #2d2d2d;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #a22929;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box

}

.list-article-page .card .card-title {
    color: #e0a800;

}

.list-article-page .card-body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-article-page .card .btn-primary-custom {
    background-color: #a22929;
    color: white;
}

.list-article-page .card .btn-primary-custom:hover {
    background-color: #e0a800;
}

.list-article-page .image-container img {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
    border-radius: 10px 10px 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card .btn-primary-custom {
        width: 100%;
    }
}


/* Style success page */
.success-page {
    color: white;
    text-align: center;
}

.success-page h1 {
    width: 100%;
}

.success-page .container {
    background-color: #2d2d2d;
    border: #a22929 solid 2px;
}

/* Style page mes commandes */
.my-orders-page {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #a22929;
}

.my-orders-page h1 {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 24px;
}

.my-orders-page .order {
    border: 1px solid #a22929;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #2d2d2d;
    transition: box-shadow 0.3s ease;
}

.my-orders-page .order:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.my-orders-page .order h2 {
    color: #e0a800;
    font-size: 20px;
    margin-bottom: 10px;
}

.my-orders-page .order p {
    margin: 5px 0;
    color: white;
    font-size: 16px;
}

.my-orders-page .order-item {
    border-top: 1px solid #a22929;
    padding-top: 10px;
    margin-top: 10px;
}

.my-orders-page .order-item p {
    margin: 3px 0;
    color: white;
    font-size: 14px;
}

.my-orders-page .cancel-button {
    display: inline-block;
    background-color: #a22929;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.my-orders-page .cancel-button:hover {
    background-color: #e0a800;
}
.my-orders-page .empty-order{
    text-align: center;
    color: white;

}
/* Responsive */
@media (max-width: 768px) {
    .my-orders-page {
        padding: 15px;
    }

    .my-orders-page .order {
        padding: 15px;
    }

    .my-orders-page .order h2 {
        font-size: 18px;
    }

    .my-orders-page .order p {
        font-size: 14px;
    }

    .my-orders-page .cancel-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .my-orders-page .order-item p {
        font-size: 12px;
    }
}

/* Style page légales */
.legal-page {
    background-color: #3d3d3d;
    color: #ecb833;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
}

.legal-page h2 {
    font-size: 1.8rem;
    color: #ecb833;
    margin-top: 0;
    padding-bottom: 10px;
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.8;
    color: #f1f1f1;
    margin-bottom: 20px;
}

.legal-page a {
    color: #ecb833;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-page a:hover {
    color: #a22929;
}

.container-legal {
    padding: 30px;
    background-color: #2c2c2c;
    border: 1px solid #a22929;
    border-radius: 10px;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #3b3b3b;
    border-radius: 8px;
    border: 1px solid #a22929;
    transition: background-color 0.3s ease;
}

.legal-section:hover {
    background-color: #4d4d4d;
}

.legal-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #a22929;
}

.legal-section p {
    margin-top: 10px;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-page h2 {
        font-size: 1.5rem;
    }

    .legal-page p {
        font-size: 0.9rem;
    }

    .container-legal {
        padding: 15px;
    }
}

/* Style page Achat et Livraison */
.delivery-page {
    background-color: #3d3d3d;
    color: #ecb833;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
}

.delivery-page h2 {
    font-size: 1.8rem;
    color: #ecb833;
    margin-top: 0;
    padding-bottom: 10px;
}

.delivery-page p {
    font-size: 1rem;
    line-height: 1.8;
    color: #f1f1f1;
    margin-bottom: 20px;
}

.container-delivery {
    padding: 30px;
    background-color: #2c2c2c;
    border: 1px solid #a22929;
    border-radius: 10px;
    margin-bottom: 40px;
}

.delivery-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #3b3b3b;
    border-radius: 8px;
    border: 1px solid #a22929;
    transition: background-color 0.3s ease;
}

.delivery-section:hover {
    background-color: #4d4d4d;
}

.delivery-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #a22929;
}
.delivery-section p {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Style pour l'image */
.delivery-img-container {
    margin-top: 20px;
    text-align: center; 
    padding: 15px;
    background-color: #2c2c2c;
    border-radius: 10px;
    border: 1px solid #a22929;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.delivery-img-responsive {
    max-width: 100%; 
    height: auto;
    border-radius: 8px; 
    margin-bottom: 10px;
}

.delivery-img-caption {
    font-size: 0.9rem;
    color: #ecb833;
    margin-top: 10px;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .delivery-page h1 {
        font-size: 2rem;
    }

    .delivery-page h2 {
        font-size: 1.5rem;
    }

    .delivery-page p {
        font-size: 0.9rem;
    }

    .container-delivery {
        padding: 15px;
    }
    .delivery-img-container {
        padding: 10px;
    }

    .delivery-img-caption {
        font-size: 0.8rem;
    }
}


/* Style page d'accueil */
.home-page .title {
    text-align: center;
    margin-bottom: 30px;
}

.home-page .card {
    background-color: #1c1818;
    border: 2px solid #a22929;
    color: white;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
}

.home-page .card-articles {
    height: 600px;
}

.home-page .card-events {
    height: auto;
}

.home-page .card-title {
    color: white;
    text-align: center;
    margin-top: 10px;
}

.home-page .card-articles .carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.home-page .card-body {
    padding: 15px;
    position: relative;
    border-radius: 15px;
}

.home-page .carousel-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    text-align: center;
    border-radius: 0 0 10px 10px;
    color: white;
}

.home-page .carousel-description h6 {
    margin: 0;
    color: #ecb833;
}

.home-page .carousel-description p {
    margin: 5px 0;
}

.home-page .btn-primary-detail {
    display: inline-block;
    margin-top: 10px;
    background-color: #a22929;
    color: white;
    border-color: #ecb833;
}

.home-page .btn-primary-detail:hover {
    background-color: #ecb833;
    border-color: #ecb833;
    color: white;
}

.home-page .event-list {
    list-style-type: none;
    padding: 0;
}

.home-page .event-item {
    background-color: #2a1b1b;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    color: white;
    text-align: center;
    border: 2px solid #a22929;

}

.home-page .event-item img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
}

.home-page .event-item h6 {
    margin: 0;
    color: #ecb833;
}

.home-page .event-item p {
    margin: 5px 0;
    color: #fff;
}

.home-page .pagination-container {
    margin-top: 20px;
}

/* Styles pour la page de liste des événements */
.list-events-page {
    padding: 20px;
}

.list-events-page .events-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.list-events-page .btn-container {
    text-align: center;
    margin-bottom: 10px;
}

.list-events-page .event-card {
    background-color: #2a1b1b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    border: 1px solid #a22929;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-events-page .event-header h2 {
    color: #e0a800;
    font-size: 1.5rem;
    text-align: center;
}

.list-events-page .event-header .event-date {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.list-events-page .event-body p {
    margin: 10px 0;
}

.list-events-page .event-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

.list-events-page .event-footer .list-event-btn-primary,
.list-events-page .event-footer .list-event-btn-danger {
    background-color: #a22929;
    border: 1px solid #e0a800;
    color: white;
    padding: 10px;
    flex-grow: 1;
    text-align: center;
    margin-right: 10px;
}

.list-events-page .event-footer .list-event-btn-primary:hover,
.list-events-page .event-footer .list-event-btn-danger:hover {
    background-color: #e0a800;
}

.list-events-page .event-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    overflow: hidden;
    background-color: #1c1818;
    border: 2px solid white;
}

.list-events-page img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Bouton général */
.list-events-page .btn-custom {
    background-color: #a22929;
    border-color: #e0a800;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.list-events-page .btn-custom:hover {
    background-color: #e0a800;
    border: 1px solid #e0a800;
}

/* Responsive */
@media (max-width: 992px) {
    .list-events-page .event-card {
        width: 48%; /* Deux cartes par ligne sur écrans moyens */
    }

    .list-events-page .event-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .list-events-page .event-header h2 {
        font-size: 1.1rem;
    }

    .list-events-page .events-list {
        flex-direction: column;
        gap: 15px;
    }

    .list-events-page .event-card {
        width: 100%;
        margin: auto;
    }

    .list-events-page .event-footer {
        flex-direction: column;
        gap: 10px;
    }

    .list-events-page .event-footer .list-event-btn-primary,
    .list-events-page .event-footer .list-event-btn-danger {
        width: 100%;
    }
}

/* Style pour la page de création d'événement */
.create-event-page {
    padding: 20px;
    color: white;
}

.create-event-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.create-event-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
    text-align: center;

}

.create-event-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.create-event-page .form-group {
    margin-bottom: 1rem;
}

.create-event-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
}

.create-event-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.create-event-page .btn-success {
    background-color: #a22929;
    border: 1px solid #e0a800;
    color: white;
}

.create-event-page .btn-success:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.create-event-page .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.create-event-page .btn-secondary:hover {
    background-color: #5a6268;
}

.create-event-page .text-center {
    text-align: center;
}

.create-event-page .card-footer {
    background-color: white;
}

/* Style pour la page de modif d'événement */
.edit-event-page {
    padding: 20px;
    color: white;
}

.edit-event-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.edit-event-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
}

.edit-event-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.edit-event-page .form-group {
    margin-bottom: 1rem;
}

.edit-event-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
}

.edit-event-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.edit-event-page .btn-primary {
    background-color: #a22929;
    border: 1px solid #e0a800;
    color: white;
}

.edit-event-page .btn-primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.edit-event-page .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.edit-event-page .btn-secondary:hover {
    background-color: #5a6268;
}

.edit-event-page .text-center {
    text-align: center;
}

/* Style contact us */
.contact-page {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.contact-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
    max-width: 600px;
    width: 100%;
    background-color: #2d2d2d;
}

.contact-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
}

.contact-page .card-body {
    padding: 20px;
}

.contact-page p {
    margin-bottom: 1rem;
    font-size: 18px;
}

.contact-page a {
    color: #e0a800;
    text-decoration: none;
    font-weight: bold;
}

.contact-page a:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.contact-page .card-footer {
    background-color: white;
    color: #2d2d2d;
    border-top: 1px solid #2d2d2d;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 15px;
}
@media (max-width: 768px) {
    h2
    {
        font-size: 1rem;
    }
    .card-body p, a{
        font-size: 0.8rem;
    }
    .card-footer p {
        font-size: 0.8rem;
    }
}
@media (max-width: 380px) {
    h2
    {
        font-size: 0.8rem;
    }
    .card-body p, a{
        font-size: 0.7rem;
    }
    .card-footer p {
        font-size: 0.6rem;
    }
}

/* Style pour la page liste des factures */
.list-invoice-page h1 {
    text-align: center;
    margin-bottom: 20px;
}

.list-invoice-page .btn-custom,
.list-invoice-page .btn-primary-custom {
    background-color: #a22929;
    color: white;
    border: 1px solid white;
    padding: 5px 10px;
    margin-top: 5px;
}

.list-invoice-page .btn-custom:hover,
.list-invoice-page .btn-primary-custom:hover {
    background-color: #e0a800;
}

.list-invoice-page td, .list-invoice-page th {
    background-color: #2d2d2d;
    color: white;
    padding: 10px;
}

.list-invoice-page th {
    color: #e0a800;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

/* Par défaut, les cards sont visibles */
.invoice-card {
    display: block;
}

/* Masquer les cards et afficher le tableau sur grands écrans >1341px) */
@media (min-width: 1341px) {
    .invoice-card {
        display: none;
    }

    .table {
        display: table;
    }
}

/* Masquer le tableau et afficher les cards entre 1200px et 1340px */
@media (max-width: 1340px) and (min-width: 1200px) {
    .table {
        display: none;
    }

    .invoice-card {
        display: block;
        background-color: #2d2d2d;
        color: white;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #a22929;
    }

    .list-invoice-page .invoice-card h2 {
        color: #e0a800;
        font-size: 1.2rem;
    }
}

/* Masquer le tableau et afficher les cards pour les écrans <1199px */
@media (max-width: 1199px) and (min-width: 1px) {
    .table {
        display: none;
    }

    .invoice-card {
        display: block;
        background-color: #2d2d2d;
        color: white;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #a22929;
    }

    .list-invoice-page .invoice-card h2 {
        color: #e0a800;
        font-size: 1.2rem;
    }
}

/* Masquer le tableau et afficher les cards pour les petits écrans (jusqu'à 1090px) */
@media (max-width: 1090px) {
    .table {
        display: none;
    }

    .invoice-card {
        display: block;
    }
}


/* Style pour la page détails de la facture */
.invoice-details-page .invoice-details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #a22929;
    border-radius: 8px;
    background-color: #2d2d2d;
}

.invoice-details-page .invoice-info {
    margin-bottom: 20px;
}

.invoice-details-page .invoice-info p {
    background-color: #2d2d2d;
    color: white;
    border: 1px solid #a22929;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.invoice-details-page .section-title {
    text-align: center;
    color: #e0a800;
    margin-top: 20px;
    margin-bottom: 10px;
}

.invoice-details-page .invoice-items-container {
    margin-bottom: 20px;
    overflow-x: auto; /* Permet le défilement horizontal si le tableau est trop large */
}

/* Style pour le tableau des articles */
.invoice-details-page .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.invoice-details-page .table th,
.invoice-details-page .table td {
    background-color: #2d2d2d;
    color: white;
    padding: 10px;
    border: 1px solid #a22929;
    text-align: left;
    white-space: nowrap; /* Empêche le texte de se casser à la ligne */
}

.invoice-details-page .table th {
    color: #e0a800;
    font-weight: bold;
}

.invoice-details-page .table td {
    color: white;
}

/* Bouton Télécharger */
.invoice-details-page .btn-primary-custom {
    display: block;
    margin: 20px auto;
    background-color: #a22929;
    color: white;
}

.invoice-details-page .btn-primary-custom:hover {
    background-color: #e0a800;
}

/* Responsive */
@media (max-width: 768px) {
    .invoice-details-page .invoice-details-container {
        padding: 10px;
    }

    .invoice-details-page .table th,
    .invoice-details-page .table td {
        padding: 8px;
    }
}

/* Styles de table communs */
.table {
    width: 100%;
}

.table th, .table td {
    padding: 8px;
    text-align: left;
    color: white;
}

.table thead th {
    background-color: #2d2d2d;
    color: #e0a800;
}

.table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Ajout de styles spécifiques e dessous de < 1341px */
@media (max-width: 1340px) {
    .invoice-details-page .invoice-items-container {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .invoice-details-page .table {
        display: table;
        width: 100%;
    }
}


/* Styles pour la page Article personnalisé */
.custom-article-page {
    padding: 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.custom-article-page .card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
    max-width: 800px;
    width: 100%;
    background-color: #2d2d2d;
    margin: 0 auto;
}

.custom-article-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
}

.custom-article-page .card-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.custom-article-page .card-body {
    padding: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.custom-article-page p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.custom-article-page a {
    color: #e0a800;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.custom-article-page a:hover {
    text-decoration: underline;
}

.custom-article-page .card-footer {
    background-color: white;
    color: #2d2d2d;
    border-top: 1px solid #2d2d2d;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 20px;
    font-size: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .custom-article-page .card-header h2 {
        font-size: 1.3rem;
    }

    .custom-article-page .card-body{
        padding: 20px;
        font-size: 1rem;
    }
    .custom-article-page p a {
        font-size: 1rem;

    }

    .custom-article-page .card-footer {
        padding: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .custom-article-page .card-header h2 {
        font-size: 0.8rem;
    }

    .custom-article-page .card-body,
    .custom-article-page p
     {
        font-size: 0.7rem;
    }
    .custom-article-page  .text-center a {
        font-size: 0.7rem;
    }
}

/* overlay pour confirm/annulation commande coté dashboard et coté client "mes commandes" */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#loadingSpinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

/*cookies*/
#cookieConsent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    z-index: 1000;
}

#cookieConsent p {
    margin: 0;
    padding: 0;
}

#acceptCookies {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
/* Page Portfolio */
.portfolio-page {
    text-align: center;
    margin: 20px;
}


.portfolio-container {
    display: grid;
    grid-template-columns: repeat(5,1fr); /* Minimum de 250px, maximum partagé */
    gap: 20px; /* Espacement entre les cartes */
    justify-content: center; /* Centre la grille */
    align-items: start; /* Aligne les cartes en haut */
    max-width: 1300px; /* Limite la largeur totale de la grille */
    margin: 0 auto; /* Centre le conteneur dans la page */
    padding: 0 15px; /* Ajoute une marge intérieure pour éviter que le contenu soit collé aux bords */
}

.portfolio-card {
    background-color: #1c1818;
    border: 2px solid #a22929;
    border-radius: 10px;
    color: white;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-bottom: 2px solid #a22929;
}

.portfolio-info {
    padding: 15px;
}

.portfolio-category {
    color: #ecb833;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}
.portfolio-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.portfolio-header form {
    margin-left: auto; /* Pousse le formulaire de recherche vers la droite */
}

.portfolio-header .btn-custom {
    display: inline-block; /* Assure un bouton adapté au texte */
    background-color: #a22929;
    color: white;
    border: 2px solid #ecb833;
    padding: 10px 20px; /* Ajuste l'intérieur du bouton */
    border-radius: 5px; /* Coins arrondis */
    font-size: 1.1rem; /* Taille du texte */
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.portfolio-header .btn-custom:hover {
    background-color: #ecb833;
    border: 2px solid #a22929;
    color: white;
}
@media (max-width: 1100px) {
    .portfolio-container {
        grid-template-columns: repeat(3, 1fr); /* 3 cartes par ligne pour les écrans intermédiaires */
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne pour les tablettes */
    }
}

@media (max-width: 480px) {
    .portfolio-container {
        grid-template-columns: 1fr; /* 1 carte par ligne pour les mobiles */
    }
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination .btn-custom {
    background-color: #353535;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination .btn-custom:hover {
    background-color: #a22929;
}

.pagination .btn-custom.active {
    background-color: #ecb833;
    font-weight: bold;
}

/* Style page d'ajout de photo */
.portfolio-add-page {
    padding: 20px;
    color: white;
}

.portfolio-add-page .card {
    width: 50%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #2d2d2d;
}

.portfolio-add-page .card-header {
    background-color: #a22929;
    color: white;
    border-bottom: 1px solid #a22929;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
    text-align: center;
}

.portfolio-add-page .card-body {
    padding: 20px;
    background-color: #2d2d2d;
}

.portfolio-add-page .form-group {
    margin-bottom: 1rem;
    color: #e0a800;
}

.portfolio-add-page .form-control {
    background-color: #3a3a3a;
    border: 1px solid #4a4a4a;
    color: white;
    width: 100%;
}

.portfolio-add-page .form-control:focus {
    background-color: #2d2d2d;
    border-color: #e0a800;
    color: white;
}

.portfolio-add-page .btn-custom {
    background-color: #a22929;
    border: 1px solid #a22929;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.portfolio-add-page .btn-custom:hover {
    background-color: #801a1a;
    border-color: #801a1a;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-add-page .card-header,
    .portfolio-add-page .card-body,
    .portfolio-add-page .form-control {
        text-align: center;
    }

    .portfolio-add-page .card {
        width: 75%; /* Réduit la carte à 75% de la largeur sur mobile */
    }

    .portfolio-add-page h3 {
        font-size: 1.2rem; /* Réduit la taille du h3 sur les petits écrans */
    }

    .portfolio-add-page .btn-custom {
        margin-top: 15px;
    }
}
