


body {
    background-image: url("Image/background.jpg");
    background-size: cover;       
    background-position: center;   
    background-repeat: no-repeat;  
    min-height: 100vh; /* Changed from height to min-height */
    margin: 0;
}
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px); /* Screen height minus navbar height */
    padding: 100px 0; /* Adds space so it doesn't touch nav or footer */
}

/* Remove absolute positioning from the container in your PHP */
.Boite {
    width: 500px;
    /* Remove height: 450px; to allow it to grow if needed */
    min-height: 450px; 
    background: white;
    border-radius: 28px;
    box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.08);
    position: relative; /* Changed from absolute */
    z-index: 1;
}

h1{
    color: grey;
}
.fin{
    background-color: #B71414;
    color: white;
    border-top: 2px solid #B71414;
}
.maps{
    border-radius: 30px;
    background-color: white;
    color: red;
}
.reseau-img img{
    width: 40px;
    height: 40px;
    display: block;
    transition: transform 0.2s;
    border-radius: 8px;
    
}
.footer-footer{
    background-color: #A51D1D;
    color: grey;
    
}


@media screen and (max-width: 991px){
    .burger{
        display: flex;
    }
    .tableau{
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9); 
        padding: 20px 0;
        list-style: none;
        z-index: 1000;
    }
    .tableau.active{
        display: flex;
    }
    .tableau li {
        margin: 15px 0;
        text-align: center;
    }
    .carde{
        padding: 10px;
    }
    .image-container img{
        display: block;
    }
    .deuxtitre h2{
        font-size: 1,25rem;
    }
    
}


/* Nav Bar */
nav {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tableau {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px; 
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    color: #3A2E26;
}

.dropdown {
    position: relative; 
}

.menu-plat, .occasion a, .nous a, .rejoindre a {
    text-decoration: none;
    color: #3A2E26;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}


.lacarte, .lecompte {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); 
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 160px;
    margin-top: 10px; 
}


.menu-checkbox:checked ~ .lacarte,
.icone-checkbox:checked ~ .lecompte {
    display: block;
}


.lacarte li, .lecompte li {
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.lacarte li a, .lecompte li a {
    text-decoration: none;
    color: #3A2E26;
    font-family: 'Inter', sans-serif; 
    font-size: 0.9rem;
}

.lacarte li:hover, .lecompte li:hover {
    background-color: #faecd9; 
}


.logo {
    height: 45px;
    border-radius: 50%;
    margin-right: 40px;
}

.icone {
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}


.menu-checkbox, .icone-checkbox {
    display: none;
}

.burger, .bande, .menu-checkbox, .icone-checkbox {
    display: none !important;
}


.lacarte, .lecompte {
    display: block;
    visibility: hidden;
    opacity: 0;
    
    position: absolute;
    top: 80%; 
    left: 50%;
    transform: translateX(-50%) translateY(-10px); 
    
   
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 15px;
    border-radius: 15px;
    min-width: 180px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: -1; 
    border: 2px solid rgba(255, 255, 255, 0.7); 
background: rgba(255, 255, 255, 0.4);      
backdrop-filter: blur(15px);                
}


.menu-checkbox:checked ~ .lacarte,
.icone-checkbox:checked ~ .lecompte {
    visibility: visible;
    opacity: 1;
    top: 100%;
    transform: translateX(-50%) translateY(10px); 
}


.lacarte li, .lecompte li {
    padding: 10px;
    list-style: none;
    text-align: center;
}

.lacarte li a, .lecompte li a {
    font-family: 'Inter', sans-serif;
    color: #3A2E26;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    transition: 0.2s;
    font-weight: 700; 
    color: #2D241E;
}

.lacarte li:hover {
    background: rgba(255, 255, 255, 1);
    border-radius: 10px;
}

body.dark-mode.offre-page-body {
    background-color: #121212 !important;
}

/* 2. Titles & Descriptions */
body.dark-mode h3,
body.dark-mode .page-title-container h1,
body.dark-mode .offer-content h2,
body.dark-mode .offer-content p,
body.dark-mode .offer-box h2,
body.dark-mode .offer-box p {
    color: #ffffff !important;
}

/* 3. The Containers/Boxes */
body.dark-mode .page-title-container,
body.dark-mode .offer-box {
    background-color: #831010 !important;
    border-color: #ffffff !important;
}


body.dark-mode .text-price,
body.dark-mode .price {
    color: #f37777 !important; 
}

body.dark-mode nav {
    background-color: rgba(0, 0, 0, 0.8) !important; 
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .tableau a, 
body.dark-mode .menu-plat {
    color: #ffffff !important;
}
