.slider-section {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
}

.slider-section h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.slider img {
    height: 200px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.slider img:hover {
    transform: scale(1.05);
}


body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #1d1d2c;
    color: #fff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #12121b;
    padding: 15px 30px;
}

.logo {
    height: 60px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
}

.navbar a.active,
.navbar a:hover {
    color: #fff;
}

.hero {
    padding: 60px 30px;
    text-align: center;
}

.intro h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    background-color: #444;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #666;
}

footer {
    background-color: #12121b;
    text-align: center;
    padding: 15px;
    margin-top: 50px;
    font-size: 0.9em;
    color: #888;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #1e1e2f;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background-color: #2c2c3a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

h1, h2 {
    text-align: center;
    color: #ffffff;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    background-color: #2a2a3b;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

input[type="file"] {
    color: white;
}

textarea {
    resize: vertical;
    height: 100px;
}

button {
    padding: 12px;
    background-color: #0078ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
input[type="email"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button:hover {
    background-color: #005ed1;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.checkbox-item {
    background-color: #444457;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.checkbox-item:hover {
    border: 1px solid #0078ff;
}

.checkbox-item input[type="checkbox"] {
    margin-bottom: 5px;
}

header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #111;
}

.logo {
    height: 60px;
    cursor: pointer;
}
.commande-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.commande-card {
    background-color: #1e1e2f;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.commande-card:hover {
    transform: scale(1.02);
}

.commande-card a {
    text-decoration: none;
    color: white;
    display: block;
}

.batiment-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
}
.admin-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 40px;
}

.commande-card {
    border: 1px solid #444;
    border-radius: 12px;
    background-color: #2a2a3a;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.commande-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.commande-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.commande-card a:hover {
    text-decoration: none;
}

.batiment-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 16px;
    text-align: center;
    color: #fff;
}

.card-info h3 {
    margin: 0 0 8px;
    font-size: 1.2em;
    color: #ffffff;
}

.card-info p {
    margin: 0;
    font-size: 0.95em;
    color: #cccccc;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.checkbox-item {
    background: #2a2a3b;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    overflow: hidden;
    width: 180px;
    height: 240px; /* ✅ force une hauteur stable */
}



.checkbox-item:hover {
    transform: scale(1.02);
}

.checkbox-item img.batiment-thumb {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}


.checkbox-item input {
    margin-top: 8px;
}
.commande-card {
    position: relative;
}

.delete-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.delete-btn {
    background: #ff4444;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
}
