html {
    position: relative;
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Use 100vh for full viewport height */
}
/* Push main content to grow and push footer down */
main {
    flex: 1;
}
/* Prevent footer from shrinking */
.footer {
    flex-shrink: 0; 
}

/* Styles for main-product-image */
.main-product-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex; /* Use flexbox to center the image if needed */
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd; /* Optional: add a border for better visualization */
    margin: 0 auto; /* Center the div itself */
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the entire image is visible and centered, no cropping */
}

/* Overrides for restricted card styles from style7.css */
.main-content .card {
    width: 100% !important;
    height: 100% !important; /* Change to 100% to fill the column height */
    margin-top: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid rgba(0,0,0,.125) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.main-content .card-img-top {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
}

.main-content .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 1.5rem !important; /* Increase padding */
}

.main-content .card-title {
    margin-bottom: 0.75rem !important;
    font-weight: bold !important;
}

.main-content .card-text {
    flex-grow: 1 !important; /* Push everything else to the bottom */
    margin-bottom: 1rem !important;
}

.main-content .card .mt-auto, .main-content .card .btn {
    width: 100% !important;
    margin-top: auto !important;
}

/* Footer overrides to match bdk_site_global */
.footer {
    background-color: black !important;
}

.footer .card-body {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 2rem !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: #d1bc92 !important;
}

.footer .Pfooter, .footer .h6footer, .footer p, .footer a {
    color: #d1bc92 !important;
}

.footer a:hover {
    color: #f8ebcd !important;
}

@media only screen and (max-width: 900px) {
    .footer .card-body {
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
        color: whitesmoke !important;
    }
    .footer .card-body .Contact {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around !important;
    }
    .footer .card-body .reseauSocieaux {
        flex-direction: row;
        margin-top: 1rem;
    }
    .footer .Pfooter, .footer .h6footer, .footer p, .footer a {
        color: whitesmoke !important;
    }
}

/* --- Uniformisation des boutons (Charte Graphique) --- */
.btn, 
button, 
input[type="submit"],
input[type="button"],
.btn-primary, 
.btn-secondary, 
.btn-success, 
.btn-danger, 
.btn-warning, 
.btn-info, 
.btn-light, 
.btn-dark, 
.btn-auth, 
.btn_tuto, 
.btn_tuto2, 
.rdv-btn, 
.search-btn,
.btncookiesOK,
.btncookiesNO,
.retour,
.btn-retour,
.prestation_text {
  background-color: #d1bc92 !important;
  border-color: #d1bc92 !important;
  color: #000 !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:focus,
.btn-primary:hover, 
.btn-secondary:hover, 
.btn-success:hover, 
.btn-danger:hover, 
.btn-warning:hover, 
.btn-info:hover, 
.btn-light:hover, 
.btn-dark:hover, 
.btn-auth:hover, 
.btn_tuto:hover, 
.btn_tuto2:hover, 
.rdv-btn:hover, 
.search-btn:hover,
.btncookiesOK:hover,
.btncookiesNO:hover,
.retour:hover,
.btn-retour:hover,
.prestation_text:hover {
  background-color: #b89e7a !important; /* Jaune plus foncé */
  border-color: #b89e7a !important;
  color: #000 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.btn a, 
button a, 
.rdv-btn a, 
.btn-auth a {
  color: inherit !important;
  text-decoration: none !important;
}


