:root {
    --accent: #0069c0;
    --muted: #666
}

body {
    font-family: system-ui, Arial, sans-serif;
    margin: 0;
    color: #222;
    background: #f8f9fa
}

header {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1)
}

.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 16px
}

.grid {
    display: grid;
    grid-template-columns:1fr 360px;
    gap: 20px
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15, 15, 15, 0.06)
}

.price {
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 700
}

ul.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 10px 0;
    list-style: none
}

ul.features li {
    background: #eef6ff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem
}

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

.gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery a:hover {
    transform: scale(1.02);
}

.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logoDpe {
    width: 40px;
    height: 40px;
    object-fit: contain; /* Garde les proportions de l'image */
    display: inline-block; /* Meilleur contrôle du placement */
    vertical-align: middle; /* Alignement vertical */
}

form label {
    display: block;
    font-weight: 600;
    margin-top: 10px
}

input[type=text], input[type=email], textarea {
    width: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px
}

button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer
}

.errors {
    background: #ffecec;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px
}

.success {
    background: #e6ffed;
    border: 1px solid #b7f0c4;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px
}

footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 20px
}

form span.mandatoryForm {
    color: #ab4747 !important;
    font-size: 0.7rem;
    display: block;
    margin-top: 5px;
}


@media (max-width: 900px) {
    .grid {
        grid-template-columns:1fr
    }

    .gallery img {
        height: 140px
    }
}
